Apache_Hadoop_Common_3.1.2.xml 1.5 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Tue Jan 29 03:45:10 UTC 2019 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="Apache Hadoop Common 3.1.2"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet -docletpath /build/source/hadoop-common-project/hadoop-common/target/hadoop-annotations.jar:/build/source/hadoop-common-project/hadoop-common/target/jdiff.jar -verbose -classpath /build/source/hadoop-common-project/hadoop-common/target/classes:/build/source/hadoop-common-project/hadoop-annotations/target/hadoop-annotations-3.1.2.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar:/maven/com/google/guava/guava/11.0.2/guava-11.0.2.jar:/maven/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/maven/org/apache/commons/commons-math3/3.1.1/commons-math3-3.1.1.jar:/maven/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar:/maven/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar:/maven/commons-codec/commons-codec/1.11/commons-codec-1.11.jar:/maven/commons-io/commons-io/2.5/commons-io-2.5.jar:/maven/commons-net/commons-net/3.6/commons-net-3.6.jar:/maven/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/maven/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar:/maven/org/eclipse/jetty/jetty-server/9.3.24.v20180605/jetty-server-9.3.24.v20180605.jar:/maven/org/eclipse/jetty/jetty-http/9.3.24.v20180605/jetty-http-9.3.24.v20180605.jar:/maven/org/eclipse/jetty/jetty-io/9.3.24.v20180605/jetty-io-9.3.24.v20180605.jar:/maven/org/eclipse/jetty/jetty-util/9.3.24.v20180605/jetty-util-9.3.24.v20180605.jar:/maven/org/eclipse/jetty/jetty-servlet/9.3.24.v20180605/jetty-servlet-9.3.24.v20180605.jar:/maven/org/eclipse/jetty/jetty-security/9.3.24.v20180605/jetty-security-9.3.24.v20180605.jar:/maven/org/eclipse/jetty/jetty-webapp/9.3.24.v20180605/jetty-webapp-9.3.24.v20180605.jar:/maven/org/eclipse/jetty/jetty-xml/9.3.24.v20180605/jetty-xml-9.3.24.v20180605.jar:/maven/com/sun/jersey/jersey-core/1.19/jersey-core-1.19.jar:/maven/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar:/maven/com/sun/jersey/jersey-servlet/1.19/jersey-servlet-1.19.jar:/maven/com/sun/jersey/jersey-json/1.19/jersey-json-1.19.jar:/maven/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/maven/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/maven/javax/xml/bind/jaxb-api/2.2.11/jaxb-api-2.2.11.jar:/maven/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/maven/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/maven/org/codehaus/jackson/jackson-jaxrs/1.9.13/jackson-jaxrs-1.9.13.jar:/maven/org/codehaus/jackson/jackson-xc/1.9.13/jackson-xc-1.9.13.jar:/maven/com/sun/jersey/jersey-server/1.19/jersey-server-1.19.jar:/maven/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/maven/log4j/log4j/1.2.17/log4j-1.2.17.jar:/maven/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/maven/commons-beanutils/commons-beanutils/1.9.3/commons-beanutils-1.9.3.jar:/maven/org/apache/commons/commons-configuration2/2.1.1/commons-configuration2-2.1.1.jar:/maven/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar:/maven/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar:/maven/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar:/maven/org/apache/avro/avro/1.7.7/avro-1.7.7.jar:/maven/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar:/maven/org/xerial/snappy/snappy-java/1.0.5/snappy-java-1.0.5.jar:/maven/com/google/re2j/re2j/1.1/re2j-1.1.jar:/maven/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar:/maven/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/build/source/hadoop-common-project/hadoop-auth/target/hadoop-auth-3.1.2.jar:/maven/com/nimbusds/nimbus-jose-jwt/4.41.1/nimbus-jose-jwt-4.41.1.jar:/maven/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar:/maven/net/minidev/json-smart/2.3/json-smart-2.3.jar:/maven/net/minidev/accessors-smart/1.2/accessors-smart-1.2.jar:/maven/org/ow2/asm/asm/5.0.4/asm-5.0.4.jar:/maven/org/apache/curator/curator-framework/2.13.0/curator-framework-2.13.0.jar:/maven/com/jcraft/jsch/0.1.54/jsch-0.1.54.jar:/maven/org/apache/curator/curator-client/2.13.0/curator-client-2.13.0.jar:/maven/org/apache/curator/curator-recipes/2.13.0/curator-recipes-2.13.0.jar:/maven/com/google/code/findbugs/jsr305/3.0.0/jsr305-3.0.0.jar:/maven/org/apache/htrace/htrace-core4/4.1.0-incubating/htrace-core4-4.1.0-incubating.jar:/maven/org/apache/zookeeper/zookeeper/3.4.13/zookeeper-3.4.13.jar:/maven/org/apache/yetus/audience-annotations/0.5.0/audience-annotations-0.5.0.jar:/maven/io/netty/netty/3.10.5.Final/netty-3.10.5.Final.jar:/maven/org/apache/commons/commons-compress/1.18/commons-compress-1.18.jar:/maven/org/apache/kerby/kerb-simplekdc/1.0.1/kerb-simplekdc-1.0.1.jar:/maven/org/apache/kerby/kerb-client/1.0.1/kerb-client-1.0.1.jar:/maven/org/apache/kerby/kerby-config/1.0.1/kerby-config-1.0.1.jar:/maven/org/apache/kerby/kerb-core/1.0.1/kerb-core-1.0.1.jar:/maven/org/apache/kerby/kerby-pkix/1.0.1/kerby-pkix-1.0.1.jar:/maven/org/apache/kerby/kerby-asn1/1.0.1/kerby-asn1-1.0.1.jar:/maven/org/apache/kerby/kerby-util/1.0.1/kerby-util-1.0.1.jar:/maven/org/apache/kerby/kerb-common/1.0.1/kerb-common-1.0.1.jar:/maven/org/apache/kerby/kerb-crypto/1.0.1/kerb-crypto-1.0.1.jar:/maven/org/apache/kerby/kerb-util/1.0.1/kerb-util-1.0.1.jar:/maven/org/apache/kerby/token-provider/1.0.1/token-provider-1.0.1.jar:/maven/org/apache/kerby/kerb-admin/1.0.1/kerb-admin-1.0.1.jar:/maven/org/apache/kerby/kerb-server/1.0.1/kerb-server-1.0.1.jar:/maven/org/apache/kerby/kerb-identity/1.0.1/kerb-identity-1.0.1.jar:/maven/org/apache/kerby/kerby-xdr/1.0.1/kerby-xdr-1.0.1.jar:/maven/com/fasterxml/jackson/core/jackson-databind/2.7.8/jackson-databind-2.7.8.jar:/maven/com/fasterxml/jackson/core/jackson-annotations/2.7.8/jackson-annotations-2.7.8.jar:/maven/com/fasterxml/jackson/core/jackson-core/2.7.8/jackson-core-2.7.8.jar:/maven/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar:/maven/com/fasterxml/woodstox/woodstox-core/5.0.3/woodstox-core-5.0.3.jar:/maven/xerces/xercesImpl/2.11.0/xercesImpl-2.11.0.jar:/maven/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar -sourcepath /build/source/hadoop-common-project/hadoop-common/src/main/java -doclet org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet -docletpath /build/source/hadoop-common-project/hadoop-common/target/hadoop-annotations.jar:/build/source/hadoop-common-project/hadoop-common/target/jdiff.jar -apidir /build/source/hadoop-common-project/hadoop-common/target/site/jdiff/xml -apiname Apache Hadoop Common 3.1.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="reloadExistingConfigurations"
  220. abstract="false" native="false" synchronized="true"
  221. static="true" final="false" visibility="public"
  222. deprecated="not deprecated">
  223. <doc>
  224. <![CDATA[Reload existing configuration instances.]]>
  225. </doc>
  226. </method>
  227. <method name="addDefaultResource"
  228. abstract="false" native="false" synchronized="true"
  229. static="true" final="false" visibility="public"
  230. deprecated="not deprecated">
  231. <param name="name" type="java.lang.String"/>
  232. <doc>
  233. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  234. added.
  235. @param name file name. File should be present in the classpath.]]>
  236. </doc>
  237. </method>
  238. <method name="setRestrictSystemPropertiesDefault"
  239. abstract="false" native="false" synchronized="false"
  240. static="true" final="false" visibility="public"
  241. deprecated="not deprecated">
  242. <param name="val" type="boolean"/>
  243. </method>
  244. <method name="setRestrictSystemProperties"
  245. abstract="false" native="false" synchronized="false"
  246. static="false" final="false" visibility="public"
  247. deprecated="not deprecated">
  248. <param name="val" type="boolean"/>
  249. </method>
  250. <method name="addResource"
  251. abstract="false" native="false" synchronized="false"
  252. static="false" final="false" visibility="public"
  253. deprecated="not deprecated">
  254. <param name="name" type="java.lang.String"/>
  255. <doc>
  256. <![CDATA[Add a configuration resource.
  257. The properties of this resource will override properties of previously
  258. added resources, unless they were marked <a href="#Final">final</a>.
  259. @param name resource to be added, the classpath is examined for a file
  260. with that name.]]>
  261. </doc>
  262. </method>
  263. <method name="addResource"
  264. abstract="false" native="false" synchronized="false"
  265. static="false" final="false" visibility="public"
  266. deprecated="not deprecated">
  267. <param name="name" type="java.lang.String"/>
  268. <param name="restrictedParser" type="boolean"/>
  269. </method>
  270. <method name="addResource"
  271. abstract="false" native="false" synchronized="false"
  272. static="false" final="false" visibility="public"
  273. deprecated="not deprecated">
  274. <param name="url" type="java.net.URL"/>
  275. <doc>
  276. <![CDATA[Add a configuration resource.
  277. The properties of this resource will override properties of previously
  278. added resources, unless they were marked <a href="#Final">final</a>.
  279. @param url url of the resource to be added, the local filesystem is
  280. examined directly to find the resource, without referring to
  281. the classpath.]]>
  282. </doc>
  283. </method>
  284. <method name="addResource"
  285. abstract="false" native="false" synchronized="false"
  286. static="false" final="false" visibility="public"
  287. deprecated="not deprecated">
  288. <param name="url" type="java.net.URL"/>
  289. <param name="restrictedParser" type="boolean"/>
  290. </method>
  291. <method name="addResource"
  292. abstract="false" native="false" synchronized="false"
  293. static="false" final="false" visibility="public"
  294. deprecated="not deprecated">
  295. <param name="file" type="org.apache.hadoop.fs.Path"/>
  296. <doc>
  297. <![CDATA[Add a configuration resource.
  298. The properties of this resource will override properties of previously
  299. added resources, unless they were marked <a href="#Final">final</a>.
  300. @param file file-path of resource to be added, the local filesystem is
  301. examined directly to find the resource, without referring to
  302. the classpath.]]>
  303. </doc>
  304. </method>
  305. <method name="addResource"
  306. abstract="false" native="false" synchronized="false"
  307. static="false" final="false" visibility="public"
  308. deprecated="not deprecated">
  309. <param name="file" type="org.apache.hadoop.fs.Path"/>
  310. <param name="restrictedParser" type="boolean"/>
  311. </method>
  312. <method name="addResource"
  313. abstract="false" native="false" synchronized="false"
  314. static="false" final="false" visibility="public"
  315. deprecated="not deprecated">
  316. <param name="in" type="java.io.InputStream"/>
  317. <doc>
  318. <![CDATA[Add a configuration resource.
  319. The properties of this resource will override properties of previously
  320. added resources, unless they were marked <a href="#Final">final</a>.
  321. WARNING: The contents of the InputStream will be cached, by this method.
  322. So use this sparingly because it does increase the memory consumption.
  323. @param in InputStream to deserialize the object from. In will be read from
  324. when a get or set is called next. After it is read the stream will be
  325. closed.]]>
  326. </doc>
  327. </method>
  328. <method name="addResource"
  329. abstract="false" native="false" synchronized="false"
  330. static="false" final="false" visibility="public"
  331. deprecated="not deprecated">
  332. <param name="in" type="java.io.InputStream"/>
  333. <param name="restrictedParser" type="boolean"/>
  334. </method>
  335. <method name="addResource"
  336. abstract="false" native="false" synchronized="false"
  337. static="false" final="false" visibility="public"
  338. deprecated="not deprecated">
  339. <param name="in" type="java.io.InputStream"/>
  340. <param name="name" type="java.lang.String"/>
  341. <doc>
  342. <![CDATA[Add a configuration resource.
  343. The properties of this resource will override properties of previously
  344. added resources, unless they were marked <a href="#Final">final</a>.
  345. @param in InputStream to deserialize the object from.
  346. @param name the name of the resource because InputStream.toString is not
  347. very descriptive some times.]]>
  348. </doc>
  349. </method>
  350. <method name="addResource"
  351. abstract="false" native="false" synchronized="false"
  352. static="false" final="false" visibility="public"
  353. deprecated="not deprecated">
  354. <param name="in" type="java.io.InputStream"/>
  355. <param name="name" type="java.lang.String"/>
  356. <param name="restrictedParser" type="boolean"/>
  357. </method>
  358. <method name="addResource"
  359. abstract="false" native="false" synchronized="false"
  360. static="false" final="false" visibility="public"
  361. deprecated="not deprecated">
  362. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  363. <doc>
  364. <![CDATA[Add a configuration resource.
  365. The properties of this resource will override properties of previously
  366. added resources, unless they were marked <a href="#Final">final</a>.
  367. @param conf Configuration object from which to load properties]]>
  368. </doc>
  369. </method>
  370. <method name="reloadConfiguration"
  371. abstract="false" native="false" synchronized="true"
  372. static="false" final="false" visibility="public"
  373. deprecated="not deprecated">
  374. <doc>
  375. <![CDATA[Reload configuration from previously added resources.
  376. This method will clear all the configuration read from the added
  377. resources, and final parameters. This will make the resources to
  378. be read again before accessing the values. Values that are added
  379. via set methods will overlay values read from the resources.]]>
  380. </doc>
  381. </method>
  382. <method name="get" return="java.lang.String"
  383. abstract="false" native="false" synchronized="false"
  384. static="false" final="false" visibility="public"
  385. deprecated="not deprecated">
  386. <param name="name" type="java.lang.String"/>
  387. <doc>
  388. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  389. no such property exists. If the key is deprecated, it returns the value of
  390. the first key which replaces the deprecated key and is not null.
  391. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  392. before being returned.
  393. @param name the property name, will be trimmed before get value.
  394. @return the value of the <code>name</code> or its replacing property,
  395. or null if no such property exists.]]>
  396. </doc>
  397. </method>
  398. <method name="setAllowNullValueProperties"
  399. abstract="false" native="false" synchronized="false"
  400. static="false" final="false" visibility="public"
  401. deprecated="not deprecated">
  402. <param name="val" type="boolean"/>
  403. <doc>
  404. <![CDATA[Set Configuration to allow keys without values during setup. Intended
  405. for use during testing.
  406. @param val If true, will allow Configuration to store keys without values]]>
  407. </doc>
  408. </method>
  409. <method name="setRestrictSystemProps"
  410. abstract="false" native="false" synchronized="false"
  411. static="false" final="false" visibility="public"
  412. deprecated="not deprecated">
  413. <param name="val" type="boolean"/>
  414. </method>
  415. <method name="onlyKeyExists" return="boolean"
  416. abstract="false" native="false" synchronized="false"
  417. static="false" final="false" visibility="public"
  418. deprecated="not deprecated">
  419. <param name="name" type="java.lang.String"/>
  420. <doc>
  421. <![CDATA[Return existence of the <code>name</code> property, but only for
  422. names which have no valid value, usually non-existent or commented
  423. out in XML.
  424. @param name the property name
  425. @return true if the property <code>name</code> exists without value]]>
  426. </doc>
  427. </method>
  428. <method name="getTrimmed" return="java.lang.String"
  429. abstract="false" native="false" synchronized="false"
  430. static="false" final="false" visibility="public"
  431. deprecated="not deprecated">
  432. <param name="name" type="java.lang.String"/>
  433. <doc>
  434. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  435. <code>null</code> if no such property exists.
  436. If the key is deprecated, it returns the value of
  437. the first key which replaces the deprecated key and is not null
  438. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  439. before being returned.
  440. @param name the property name.
  441. @return the value of the <code>name</code> or its replacing property,
  442. or null if no such property exists.]]>
  443. </doc>
  444. </method>
  445. <method name="getTrimmed" return="java.lang.String"
  446. abstract="false" native="false" synchronized="false"
  447. static="false" final="false" visibility="public"
  448. deprecated="not deprecated">
  449. <param name="name" type="java.lang.String"/>
  450. <param name="defaultValue" type="java.lang.String"/>
  451. <doc>
  452. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  453. <code>defaultValue</code> if no such property exists.
  454. See @{Configuration#getTrimmed} for more details.
  455. @param name the property name.
  456. @param defaultValue the property default value.
  457. @return the value of the <code>name</code> or defaultValue
  458. if it is not set.]]>
  459. </doc>
  460. </method>
  461. <method name="getRaw" return="java.lang.String"
  462. abstract="false" native="false" synchronized="false"
  463. static="false" final="false" visibility="public"
  464. deprecated="not deprecated">
  465. <param name="name" type="java.lang.String"/>
  466. <doc>
  467. <![CDATA[Get the value of the <code>name</code> property, without doing
  468. <a href="#VariableExpansion">variable expansion</a>.If the key is
  469. deprecated, it returns the value of the first key which replaces
  470. the deprecated key and is not null.
  471. @param name the property name.
  472. @return the value of the <code>name</code> property or
  473. its replacing property and null if no such property exists.]]>
  474. </doc>
  475. </method>
  476. <method name="set"
  477. abstract="false" native="false" synchronized="false"
  478. static="false" final="false" visibility="public"
  479. deprecated="not deprecated">
  480. <param name="name" type="java.lang.String"/>
  481. <param name="value" type="java.lang.String"/>
  482. <doc>
  483. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  484. <code>name</code> is deprecated or there is a deprecated name associated to it,
  485. it sets the value to both names. Name will be trimmed before put into
  486. configuration.
  487. @param name property name.
  488. @param value property value.]]>
  489. </doc>
  490. </method>
  491. <method name="set"
  492. abstract="false" native="false" synchronized="false"
  493. static="false" final="false" visibility="public"
  494. deprecated="not deprecated">
  495. <param name="name" type="java.lang.String"/>
  496. <param name="value" type="java.lang.String"/>
  497. <param name="source" type="java.lang.String"/>
  498. <doc>
  499. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  500. <code>name</code> is deprecated, it also sets the <code>value</code> to
  501. the keys that replace the deprecated key. Name will be trimmed before put
  502. into configuration.
  503. @param name property name.
  504. @param value property value.
  505. @param source the place that this configuration value came from
  506. (For debugging).
  507. @throws IllegalArgumentException when the value or name is null.]]>
  508. </doc>
  509. </method>
  510. <method name="unset"
  511. abstract="false" native="false" synchronized="true"
  512. static="false" final="false" visibility="public"
  513. deprecated="not deprecated">
  514. <param name="name" type="java.lang.String"/>
  515. <doc>
  516. <![CDATA[Unset a previously set property.]]>
  517. </doc>
  518. </method>
  519. <method name="setIfUnset"
  520. abstract="false" native="false" synchronized="true"
  521. static="false" final="false" visibility="public"
  522. deprecated="not deprecated">
  523. <param name="name" type="java.lang.String"/>
  524. <param name="value" type="java.lang.String"/>
  525. <doc>
  526. <![CDATA[Sets a property if it is currently unset.
  527. @param name the property name
  528. @param value the new value]]>
  529. </doc>
  530. </method>
  531. <method name="get" return="java.lang.String"
  532. abstract="false" native="false" synchronized="false"
  533. static="false" final="false" visibility="public"
  534. deprecated="not deprecated">
  535. <param name="name" type="java.lang.String"/>
  536. <param name="defaultValue" type="java.lang.String"/>
  537. <doc>
  538. <![CDATA[Get the value of the <code>name</code>. If the key is deprecated,
  539. it returns the value of the first key which replaces the deprecated key
  540. and is not null.
  541. If no such property exists,
  542. then <code>defaultValue</code> is returned.
  543. @param name property name, will be trimmed before get value.
  544. @param defaultValue default value.
  545. @return property value, or <code>defaultValue</code> if the property
  546. doesn't exist.]]>
  547. </doc>
  548. </method>
  549. <method name="getInt" return="int"
  550. abstract="false" native="false" synchronized="false"
  551. static="false" final="false" visibility="public"
  552. deprecated="not deprecated">
  553. <param name="name" type="java.lang.String"/>
  554. <param name="defaultValue" type="int"/>
  555. <doc>
  556. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  557. If no such property exists, the provided default value is returned,
  558. or if the specified value is not a valid <code>int</code>,
  559. then an error is thrown.
  560. @param name property name.
  561. @param defaultValue default value.
  562. @throws NumberFormatException when the value is invalid
  563. @return property value as an <code>int</code>,
  564. or <code>defaultValue</code>.]]>
  565. </doc>
  566. </method>
  567. <method name="getInts" return="int[]"
  568. abstract="false" native="false" synchronized="false"
  569. static="false" final="false" visibility="public"
  570. deprecated="not deprecated">
  571. <param name="name" type="java.lang.String"/>
  572. <doc>
  573. <![CDATA[Get the value of the <code>name</code> property as a set of comma-delimited
  574. <code>int</code> values.
  575. If no such property exists, an empty array is returned.
  576. @param name property name
  577. @return property value interpreted as an array of comma-delimited
  578. <code>int</code> values]]>
  579. </doc>
  580. </method>
  581. <method name="setInt"
  582. abstract="false" native="false" synchronized="false"
  583. static="false" final="false" visibility="public"
  584. deprecated="not deprecated">
  585. <param name="name" type="java.lang.String"/>
  586. <param name="value" type="int"/>
  587. <doc>
  588. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  589. @param name property name.
  590. @param value <code>int</code> value of the property.]]>
  591. </doc>
  592. </method>
  593. <method name="getLong" return="long"
  594. abstract="false" native="false" synchronized="false"
  595. static="false" final="false" visibility="public"
  596. deprecated="not deprecated">
  597. <param name="name" type="java.lang.String"/>
  598. <param name="defaultValue" type="long"/>
  599. <doc>
  600. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  601. If no such property exists, the provided default value is returned,
  602. or if the specified value is not a valid <code>long</code>,
  603. then an error is thrown.
  604. @param name property name.
  605. @param defaultValue default value.
  606. @throws NumberFormatException when the value is invalid
  607. @return property value as a <code>long</code>,
  608. or <code>defaultValue</code>.]]>
  609. </doc>
  610. </method>
  611. <method name="getLongBytes" return="long"
  612. abstract="false" native="false" synchronized="false"
  613. static="false" final="false" visibility="public"
  614. deprecated="not deprecated">
  615. <param name="name" type="java.lang.String"/>
  616. <param name="defaultValue" type="long"/>
  617. <doc>
  618. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code> or
  619. human readable format. If no such property exists, the provided default
  620. value is returned, or if the specified value is not a valid
  621. <code>long</code> or human readable format, then an error is thrown. You
  622. can use the following suffix (case insensitive): k(kilo), m(mega), g(giga),
  623. t(tera), p(peta), e(exa)
  624. @param name property name.
  625. @param defaultValue default value.
  626. @throws NumberFormatException when the value is invalid
  627. @return property value as a <code>long</code>,
  628. or <code>defaultValue</code>.]]>
  629. </doc>
  630. </method>
  631. <method name="setLong"
  632. abstract="false" native="false" synchronized="false"
  633. static="false" final="false" visibility="public"
  634. deprecated="not deprecated">
  635. <param name="name" type="java.lang.String"/>
  636. <param name="value" type="long"/>
  637. <doc>
  638. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  639. @param name property name.
  640. @param value <code>long</code> value of the property.]]>
  641. </doc>
  642. </method>
  643. <method name="getFloat" return="float"
  644. abstract="false" native="false" synchronized="false"
  645. static="false" final="false" visibility="public"
  646. deprecated="not deprecated">
  647. <param name="name" type="java.lang.String"/>
  648. <param name="defaultValue" type="float"/>
  649. <doc>
  650. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  651. If no such property exists, the provided default value is returned,
  652. or if the specified value is not a valid <code>float</code>,
  653. then an error is thrown.
  654. @param name property name.
  655. @param defaultValue default value.
  656. @throws NumberFormatException when the value is invalid
  657. @return property value as a <code>float</code>,
  658. or <code>defaultValue</code>.]]>
  659. </doc>
  660. </method>
  661. <method name="setFloat"
  662. abstract="false" native="false" synchronized="false"
  663. static="false" final="false" visibility="public"
  664. deprecated="not deprecated">
  665. <param name="name" type="java.lang.String"/>
  666. <param name="value" type="float"/>
  667. <doc>
  668. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  669. @param name property name.
  670. @param value property value.]]>
  671. </doc>
  672. </method>
  673. <method name="getDouble" return="double"
  674. abstract="false" native="false" synchronized="false"
  675. static="false" final="false" visibility="public"
  676. deprecated="not deprecated">
  677. <param name="name" type="java.lang.String"/>
  678. <param name="defaultValue" type="double"/>
  679. <doc>
  680. <![CDATA[Get the value of the <code>name</code> property as a <code>double</code>.
  681. If no such property exists, the provided default value is returned,
  682. or if the specified value is not a valid <code>double</code>,
  683. then an error is thrown.
  684. @param name property name.
  685. @param defaultValue default value.
  686. @throws NumberFormatException when the value is invalid
  687. @return property value as a <code>double</code>,
  688. or <code>defaultValue</code>.]]>
  689. </doc>
  690. </method>
  691. <method name="setDouble"
  692. abstract="false" native="false" synchronized="false"
  693. static="false" final="false" visibility="public"
  694. deprecated="not deprecated">
  695. <param name="name" type="java.lang.String"/>
  696. <param name="value" type="double"/>
  697. <doc>
  698. <![CDATA[Set the value of the <code>name</code> property to a <code>double</code>.
  699. @param name property name.
  700. @param value property value.]]>
  701. </doc>
  702. </method>
  703. <method name="getBoolean" return="boolean"
  704. abstract="false" native="false" synchronized="false"
  705. static="false" final="false" visibility="public"
  706. deprecated="not deprecated">
  707. <param name="name" type="java.lang.String"/>
  708. <param name="defaultValue" type="boolean"/>
  709. <doc>
  710. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  711. If no such property is specified, or if the specified value is not a valid
  712. <code>boolean</code>, then <code>defaultValue</code> is returned.
  713. @param name property name.
  714. @param defaultValue default value.
  715. @return property value as a <code>boolean</code>,
  716. or <code>defaultValue</code>.]]>
  717. </doc>
  718. </method>
  719. <method name="setBoolean"
  720. abstract="false" native="false" synchronized="false"
  721. static="false" final="false" visibility="public"
  722. deprecated="not deprecated">
  723. <param name="name" type="java.lang.String"/>
  724. <param name="value" type="boolean"/>
  725. <doc>
  726. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  727. @param name property name.
  728. @param value <code>boolean</code> value of the property.]]>
  729. </doc>
  730. </method>
  731. <method name="setBooleanIfUnset"
  732. abstract="false" native="false" synchronized="false"
  733. static="false" final="false" visibility="public"
  734. deprecated="not deprecated">
  735. <param name="name" type="java.lang.String"/>
  736. <param name="value" type="boolean"/>
  737. <doc>
  738. <![CDATA[Set the given property, if it is currently unset.
  739. @param name property name
  740. @param value new value]]>
  741. </doc>
  742. </method>
  743. <method name="setEnum"
  744. abstract="false" native="false" synchronized="false"
  745. static="false" final="false" visibility="public"
  746. deprecated="not deprecated">
  747. <param name="name" type="java.lang.String"/>
  748. <param name="value" type="T"/>
  749. <doc>
  750. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  751. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  752. @param name property name
  753. @param value new value]]>
  754. </doc>
  755. </method>
  756. <method name="getEnum" return="T"
  757. abstract="false" native="false" synchronized="false"
  758. static="false" final="false" visibility="public"
  759. deprecated="not deprecated">
  760. <param name="name" type="java.lang.String"/>
  761. <param name="defaultValue" type="T"/>
  762. <doc>
  763. <![CDATA[Return value matching this enumerated type.
  764. Note that the returned value is trimmed by this method.
  765. @param name Property name
  766. @param defaultValue Value returned if no mapping exists
  767. @throws IllegalArgumentException If mapping is illegal for the type
  768. provided]]>
  769. </doc>
  770. </method>
  771. <method name="setTimeDuration"
  772. abstract="false" native="false" synchronized="false"
  773. static="false" final="false" visibility="public"
  774. deprecated="not deprecated">
  775. <param name="name" type="java.lang.String"/>
  776. <param name="value" type="long"/>
  777. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  778. <doc>
  779. <![CDATA[Set the value of <code>name</code> to the given time duration. This
  780. is equivalent to <code>set(&lt;name&gt;, value + &lt;time suffix&gt;)</code>.
  781. @param name Property name
  782. @param value Time duration
  783. @param unit Unit of time]]>
  784. </doc>
  785. </method>
  786. <method name="getTimeDuration" return="long"
  787. abstract="false" native="false" synchronized="false"
  788. static="false" final="false" visibility="public"
  789. deprecated="not deprecated">
  790. <param name="name" type="java.lang.String"/>
  791. <param name="defaultValue" type="long"/>
  792. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  793. <doc>
  794. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  795. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  796. (ms), seconds (s), minutes (m), hours (h), and days (d).
  797. @param name Property name
  798. @param defaultValue Value returned if no mapping exists.
  799. @param unit Unit to convert the stored property, if it exists.
  800. @throws NumberFormatException If the property stripped of its unit is not
  801. a number]]>
  802. </doc>
  803. </method>
  804. <method name="getTimeDuration" return="long"
  805. abstract="false" native="false" synchronized="false"
  806. static="false" final="false" visibility="public"
  807. deprecated="not deprecated">
  808. <param name="name" type="java.lang.String"/>
  809. <param name="defaultValue" type="java.lang.String"/>
  810. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  811. </method>
  812. <method name="getTimeDurationHelper" return="long"
  813. abstract="false" native="false" synchronized="false"
  814. static="false" final="false" visibility="public"
  815. deprecated="not deprecated">
  816. <param name="name" type="java.lang.String"/>
  817. <param name="vStr" type="java.lang.String"/>
  818. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  819. <doc>
  820. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  821. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  822. (ms), seconds (s), minutes (m), hours (h), and days (d).
  823. @param name Property name
  824. @param vStr The string value with time unit suffix to be converted.
  825. @param unit Unit to convert the stored property, if it exists.]]>
  826. </doc>
  827. </method>
  828. <method name="getTimeDurations" return="long[]"
  829. abstract="false" native="false" synchronized="false"
  830. static="false" final="false" visibility="public"
  831. deprecated="not deprecated">
  832. <param name="name" type="java.lang.String"/>
  833. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  834. </method>
  835. <method name="getStorageSize" return="double"
  836. abstract="false" native="false" synchronized="false"
  837. static="false" final="false" visibility="public"
  838. deprecated="not deprecated">
  839. <param name="name" type="java.lang.String"/>
  840. <param name="defaultValue" type="java.lang.String"/>
  841. <param name="targetUnit" type="org.apache.hadoop.conf.StorageUnit"/>
  842. <doc>
  843. <![CDATA[Gets the Storage Size from the config, or returns the defaultValue. The
  844. unit of return value is specified in target unit.
  845. @param name - Key Name
  846. @param defaultValue - Default Value -- e.g. 100MB
  847. @param targetUnit - The units that we want result to be in.
  848. @return double -- formatted in target Units]]>
  849. </doc>
  850. </method>
  851. <method name="getStorageSize" return="double"
  852. abstract="false" native="false" synchronized="false"
  853. static="false" final="false" visibility="public"
  854. deprecated="not deprecated">
  855. <param name="name" type="java.lang.String"/>
  856. <param name="defaultValue" type="double"/>
  857. <param name="targetUnit" type="org.apache.hadoop.conf.StorageUnit"/>
  858. <doc>
  859. <![CDATA[Gets storage size from a config file.
  860. @param name - Key to read.
  861. @param defaultValue - The default value to return in case the key is
  862. not present.
  863. @param targetUnit - The Storage unit that should be used
  864. for the return value.
  865. @return - double value in the Storage Unit specified.]]>
  866. </doc>
  867. </method>
  868. <method name="setStorageSize"
  869. abstract="false" native="false" synchronized="false"
  870. static="false" final="false" visibility="public"
  871. deprecated="not deprecated">
  872. <param name="name" type="java.lang.String"/>
  873. <param name="value" type="double"/>
  874. <param name="unit" type="org.apache.hadoop.conf.StorageUnit"/>
  875. <doc>
  876. <![CDATA[Sets Storage Size for the specified key.
  877. @param name - Key to set.
  878. @param value - The numeric value to set.
  879. @param unit - Storage Unit to be used.]]>
  880. </doc>
  881. </method>
  882. <method name="getPattern" return="java.util.regex.Pattern"
  883. abstract="false" native="false" synchronized="false"
  884. static="false" final="false" visibility="public"
  885. deprecated="not deprecated">
  886. <param name="name" type="java.lang.String"/>
  887. <param name="defaultValue" type="java.util.regex.Pattern"/>
  888. <doc>
  889. <![CDATA[Get the value of the <code>name</code> property as a <code>Pattern</code>.
  890. If no such property is specified, or if the specified value is not a valid
  891. <code>Pattern</code>, then <code>DefaultValue</code> is returned.
  892. Note that the returned value is NOT trimmed by this method.
  893. @param name property name
  894. @param defaultValue default value
  895. @return property value as a compiled Pattern, or defaultValue]]>
  896. </doc>
  897. </method>
  898. <method name="setPattern"
  899. abstract="false" native="false" synchronized="false"
  900. static="false" final="false" visibility="public"
  901. deprecated="not deprecated">
  902. <param name="name" type="java.lang.String"/>
  903. <param name="pattern" type="java.util.regex.Pattern"/>
  904. <doc>
  905. <![CDATA[Set the given property to <code>Pattern</code>.
  906. If the pattern is passed as null, sets the empty pattern which results in
  907. further calls to getPattern(...) returning the default value.
  908. @param name property name
  909. @param pattern new value]]>
  910. </doc>
  911. </method>
  912. <method name="getPropertySources" return="java.lang.String[]"
  913. abstract="false" native="false" synchronized="true"
  914. static="false" final="false" visibility="public"
  915. deprecated="not deprecated">
  916. <param name="name" type="java.lang.String"/>
  917. <doc>
  918. <![CDATA[Gets information about why a property was set. Typically this is the
  919. path to the resource objects (file, URL, etc.) the property came from, but
  920. it can also indicate that it was set programmatically, or because of the
  921. command line.
  922. @param name - The property name to get the source of.
  923. @return null - If the property or its source wasn't found. Otherwise,
  924. returns a list of the sources of the resource. The older sources are
  925. the first ones in the list. So for example if a configuration is set from
  926. the command line, and then written out to a file that is read back in the
  927. first entry would indicate that it was set from the command line, while
  928. the second one would indicate the file that the new configuration was read
  929. in from.]]>
  930. </doc>
  931. </method>
  932. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  933. abstract="false" native="false" synchronized="false"
  934. static="false" final="false" visibility="public"
  935. deprecated="not deprecated">
  936. <param name="name" type="java.lang.String"/>
  937. <param name="defaultValue" type="java.lang.String"/>
  938. <doc>
  939. <![CDATA[Parse the given attribute as a set of integer ranges
  940. @param name the attribute name
  941. @param defaultValue the default value if it is not set
  942. @return a new set of ranges from the configured value]]>
  943. </doc>
  944. </method>
  945. <method name="getStringCollection" return="java.util.Collection"
  946. abstract="false" native="false" synchronized="false"
  947. static="false" final="false" visibility="public"
  948. deprecated="not deprecated">
  949. <param name="name" type="java.lang.String"/>
  950. <doc>
  951. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  952. a collection of <code>String</code>s.
  953. If no such property is specified then empty collection is returned.
  954. <p>
  955. This is an optimized version of {@link #getStrings(String)}
  956. @param name property name.
  957. @return property value as a collection of <code>String</code>s.]]>
  958. </doc>
  959. </method>
  960. <method name="getStrings" return="java.lang.String[]"
  961. abstract="false" native="false" synchronized="false"
  962. static="false" final="false" visibility="public"
  963. deprecated="not deprecated">
  964. <param name="name" type="java.lang.String"/>
  965. <doc>
  966. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  967. an array of <code>String</code>s.
  968. If no such property is specified then <code>null</code> is returned.
  969. @param name property name.
  970. @return property value as an array of <code>String</code>s,
  971. or <code>null</code>.]]>
  972. </doc>
  973. </method>
  974. <method name="getStrings" return="java.lang.String[]"
  975. abstract="false" native="false" synchronized="false"
  976. static="false" final="false" visibility="public"
  977. deprecated="not deprecated">
  978. <param name="name" type="java.lang.String"/>
  979. <param name="defaultValue" type="java.lang.String[]"/>
  980. <doc>
  981. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  982. an array of <code>String</code>s.
  983. If no such property is specified then default value is returned.
  984. @param name property name.
  985. @param defaultValue The default value
  986. @return property value as an array of <code>String</code>s,
  987. or default value.]]>
  988. </doc>
  989. </method>
  990. <method name="getTrimmedStringCollection" return="java.util.Collection"
  991. abstract="false" native="false" synchronized="false"
  992. static="false" final="false" visibility="public"
  993. deprecated="not deprecated">
  994. <param name="name" type="java.lang.String"/>
  995. <doc>
  996. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  997. a collection of <code>String</code>s, trimmed of the leading and trailing whitespace.
  998. If no such property is specified then empty <code>Collection</code> is returned.
  999. @param name property name.
  1000. @return property value as a collection of <code>String</code>s, or empty <code>Collection</code>]]>
  1001. </doc>
  1002. </method>
  1003. <method name="getTrimmedStrings" return="java.lang.String[]"
  1004. abstract="false" native="false" synchronized="false"
  1005. static="false" final="false" visibility="public"
  1006. deprecated="not deprecated">
  1007. <param name="name" type="java.lang.String"/>
  1008. <doc>
  1009. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1010. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  1011. If no such property is specified then an empty array is returned.
  1012. @param name property name.
  1013. @return property value as an array of trimmed <code>String</code>s,
  1014. or empty array.]]>
  1015. </doc>
  1016. </method>
  1017. <method name="getTrimmedStrings" return="java.lang.String[]"
  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="defaultValue" type="java.lang.String[]"/>
  1023. <doc>
  1024. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1025. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  1026. If no such property is specified then default value is returned.
  1027. @param name property name.
  1028. @param defaultValue The default value
  1029. @return property value as an array of trimmed <code>String</code>s,
  1030. or default value.]]>
  1031. </doc>
  1032. </method>
  1033. <method name="setStrings"
  1034. abstract="false" native="false" synchronized="false"
  1035. static="false" final="false" visibility="public"
  1036. deprecated="not deprecated">
  1037. <param name="name" type="java.lang.String"/>
  1038. <param name="values" type="java.lang.String[]"/>
  1039. <doc>
  1040. <![CDATA[Set the array of string values for the <code>name</code> property as
  1041. as comma delimited values.
  1042. @param name property name.
  1043. @param values The values]]>
  1044. </doc>
  1045. </method>
  1046. <method name="getPassword" return="char[]"
  1047. abstract="false" native="false" synchronized="false"
  1048. static="false" final="false" visibility="public"
  1049. deprecated="not deprecated">
  1050. <param name="name" type="java.lang.String"/>
  1051. <exception name="IOException" type="java.io.IOException"/>
  1052. <doc>
  1053. <![CDATA[Get the value for a known password configuration element.
  1054. In order to enable the elimination of clear text passwords in config,
  1055. this method attempts to resolve the property name as an alias through
  1056. the CredentialProvider API and conditionally fallsback to config.
  1057. @param name property name
  1058. @return password]]>
  1059. </doc>
  1060. </method>
  1061. <method name="getPasswordFromCredentialProviders" return="char[]"
  1062. abstract="false" native="false" synchronized="false"
  1063. static="false" final="false" visibility="public"
  1064. deprecated="not deprecated">
  1065. <param name="name" type="java.lang.String"/>
  1066. <exception name="IOException" type="java.io.IOException"/>
  1067. <doc>
  1068. <![CDATA[Try and resolve the provided element name as a credential provider
  1069. alias.
  1070. @param name alias of the provisioned credential
  1071. @return password or null if not found
  1072. @throws IOException]]>
  1073. </doc>
  1074. </method>
  1075. <method name="getPasswordFromConfig" return="char[]"
  1076. abstract="false" native="false" synchronized="false"
  1077. static="false" final="false" visibility="protected"
  1078. deprecated="not deprecated">
  1079. <param name="name" type="java.lang.String"/>
  1080. <doc>
  1081. <![CDATA[Fallback to clear text passwords in configuration.
  1082. @param name
  1083. @return clear text password or null]]>
  1084. </doc>
  1085. </method>
  1086. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  1087. abstract="false" native="false" synchronized="false"
  1088. static="false" final="false" visibility="public"
  1089. deprecated="not deprecated">
  1090. <param name="hostProperty" type="java.lang.String"/>
  1091. <param name="addressProperty" type="java.lang.String"/>
  1092. <param name="defaultAddressValue" type="java.lang.String"/>
  1093. <param name="defaultPort" type="int"/>
  1094. <doc>
  1095. <![CDATA[Get the socket address for <code>hostProperty</code> as a
  1096. <code>InetSocketAddress</code>. If <code>hostProperty</code> is
  1097. <code>null</code>, <code>addressProperty</code> will be used. This
  1098. is useful for cases where we want to differentiate between host
  1099. bind address and address clients should use to establish connection.
  1100. @param hostProperty bind host property name.
  1101. @param addressProperty address property name.
  1102. @param defaultAddressValue the default value
  1103. @param defaultPort the default port
  1104. @return InetSocketAddress]]>
  1105. </doc>
  1106. </method>
  1107. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  1108. abstract="false" native="false" synchronized="false"
  1109. static="false" final="false" visibility="public"
  1110. deprecated="not deprecated">
  1111. <param name="name" type="java.lang.String"/>
  1112. <param name="defaultAddress" type="java.lang.String"/>
  1113. <param name="defaultPort" type="int"/>
  1114. <doc>
  1115. <![CDATA[Get the socket address for <code>name</code> property as a
  1116. <code>InetSocketAddress</code>.
  1117. @param name property name.
  1118. @param defaultAddress the default value
  1119. @param defaultPort the default port
  1120. @return InetSocketAddress]]>
  1121. </doc>
  1122. </method>
  1123. <method name="setSocketAddr"
  1124. abstract="false" native="false" synchronized="false"
  1125. static="false" final="false" visibility="public"
  1126. deprecated="not deprecated">
  1127. <param name="name" type="java.lang.String"/>
  1128. <param name="addr" type="java.net.InetSocketAddress"/>
  1129. <doc>
  1130. <![CDATA[Set the socket address for the <code>name</code> property as
  1131. a <code>host:port</code>.]]>
  1132. </doc>
  1133. </method>
  1134. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1135. abstract="false" native="false" synchronized="false"
  1136. static="false" final="false" visibility="public"
  1137. deprecated="not deprecated">
  1138. <param name="hostProperty" type="java.lang.String"/>
  1139. <param name="addressProperty" type="java.lang.String"/>
  1140. <param name="defaultAddressValue" type="java.lang.String"/>
  1141. <param name="addr" type="java.net.InetSocketAddress"/>
  1142. <doc>
  1143. <![CDATA[Set the socket address a client can use to connect for the
  1144. <code>name</code> property as a <code>host:port</code>. The wildcard
  1145. address is replaced with the local host's address. If the host and address
  1146. properties are configured the host component of the address will be combined
  1147. with the port component of the addr to generate the address. This is to allow
  1148. optional control over which host name is used in multi-home bind-host
  1149. cases where a host can have multiple names
  1150. @param hostProperty the bind-host configuration name
  1151. @param addressProperty the service address configuration name
  1152. @param defaultAddressValue the service default address configuration value
  1153. @param addr InetSocketAddress of the service listener
  1154. @return InetSocketAddress for clients to connect]]>
  1155. </doc>
  1156. </method>
  1157. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1158. abstract="false" native="false" synchronized="false"
  1159. static="false" final="false" visibility="public"
  1160. deprecated="not deprecated">
  1161. <param name="name" type="java.lang.String"/>
  1162. <param name="addr" type="java.net.InetSocketAddress"/>
  1163. <doc>
  1164. <![CDATA[Set the socket address a client can use to connect for the
  1165. <code>name</code> property as a <code>host:port</code>. The wildcard
  1166. address is replaced with the local host's address.
  1167. @param name property name.
  1168. @param addr InetSocketAddress of a listener to store in the given property
  1169. @return InetSocketAddress for clients to connect]]>
  1170. </doc>
  1171. </method>
  1172. <method name="getClassByName" return="java.lang.Class"
  1173. abstract="false" native="false" synchronized="false"
  1174. static="false" final="false" visibility="public"
  1175. deprecated="not deprecated">
  1176. <param name="name" type="java.lang.String"/>
  1177. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  1178. <doc>
  1179. <![CDATA[Load a class by name.
  1180. @param name the class name.
  1181. @return the class object.
  1182. @throws ClassNotFoundException if the class is not found.]]>
  1183. </doc>
  1184. </method>
  1185. <method name="getClassByNameOrNull" return="java.lang.Class"
  1186. abstract="false" native="false" synchronized="false"
  1187. static="false" final="false" visibility="public"
  1188. deprecated="not deprecated">
  1189. <param name="name" type="java.lang.String"/>
  1190. <doc>
  1191. <![CDATA[Load a class by name, returning null rather than throwing an exception
  1192. if it couldn't be loaded. This is to avoid the overhead of creating
  1193. an exception.
  1194. @param name the class name
  1195. @return the class object, or null if it could not be found.]]>
  1196. </doc>
  1197. </method>
  1198. <method name="getClasses" return="java.lang.Class[]"
  1199. abstract="false" native="false" synchronized="false"
  1200. static="false" final="false" visibility="public"
  1201. deprecated="not deprecated">
  1202. <param name="name" type="java.lang.String"/>
  1203. <param name="defaultValue" type="java.lang.Class[]"/>
  1204. <doc>
  1205. <![CDATA[Get the value of the <code>name</code> property
  1206. as an array of <code>Class</code>.
  1207. The value of the property specifies a list of comma separated class names.
  1208. If no such property is specified, then <code>defaultValue</code> is
  1209. returned.
  1210. @param name the property name.
  1211. @param defaultValue default value.
  1212. @return property value as a <code>Class[]</code>,
  1213. or <code>defaultValue</code>.]]>
  1214. </doc>
  1215. </method>
  1216. <method name="getClass" return="java.lang.Class"
  1217. abstract="false" native="false" synchronized="false"
  1218. static="false" final="false" visibility="public"
  1219. deprecated="not deprecated">
  1220. <param name="name" type="java.lang.String"/>
  1221. <param name="defaultValue" type="java.lang.Class"/>
  1222. <doc>
  1223. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  1224. If no such property is specified, then <code>defaultValue</code> is
  1225. returned.
  1226. @param name the class name.
  1227. @param defaultValue default value.
  1228. @return property value as a <code>Class</code>,
  1229. or <code>defaultValue</code>.]]>
  1230. </doc>
  1231. </method>
  1232. <method name="getClass" return="java.lang.Class"
  1233. abstract="false" native="false" synchronized="false"
  1234. static="false" final="false" visibility="public"
  1235. deprecated="not deprecated">
  1236. <param name="name" type="java.lang.String"/>
  1237. <param name="defaultValue" type="java.lang.Class"/>
  1238. <param name="xface" type="java.lang.Class"/>
  1239. <doc>
  1240. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  1241. implementing the interface specified by <code>xface</code>.
  1242. If no such property is specified, then <code>defaultValue</code> is
  1243. returned.
  1244. An exception is thrown if the returned class does not implement the named
  1245. interface.
  1246. @param name the class name.
  1247. @param defaultValue default value.
  1248. @param xface the interface implemented by the named class.
  1249. @return property value as a <code>Class</code>,
  1250. or <code>defaultValue</code>.]]>
  1251. </doc>
  1252. </method>
  1253. <method name="getInstances" return="java.util.List"
  1254. abstract="false" native="false" synchronized="false"
  1255. static="false" final="false" visibility="public"
  1256. deprecated="not deprecated">
  1257. <param name="name" type="java.lang.String"/>
  1258. <param name="xface" type="java.lang.Class"/>
  1259. <doc>
  1260. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  1261. of objects implementing the interface specified by <code>xface</code>.
  1262. An exception is thrown if any of the classes does not exist, or if it does
  1263. not implement the named interface.
  1264. @param name the property name.
  1265. @param xface the interface implemented by the classes named by
  1266. <code>name</code>.
  1267. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  1268. </doc>
  1269. </method>
  1270. <method name="setClass"
  1271. abstract="false" native="false" synchronized="false"
  1272. static="false" final="false" visibility="public"
  1273. deprecated="not deprecated">
  1274. <param name="name" type="java.lang.String"/>
  1275. <param name="theClass" type="java.lang.Class"/>
  1276. <param name="xface" type="java.lang.Class"/>
  1277. <doc>
  1278. <![CDATA[Set the value of the <code>name</code> property to the name of a
  1279. <code>theClass</code> implementing the given interface <code>xface</code>.
  1280. An exception is thrown if <code>theClass</code> does not implement the
  1281. interface <code>xface</code>.
  1282. @param name property name.
  1283. @param theClass property value.
  1284. @param xface the interface implemented by the named class.]]>
  1285. </doc>
  1286. </method>
  1287. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  1288. abstract="false" native="false" synchronized="false"
  1289. static="false" final="false" visibility="public"
  1290. deprecated="not deprecated">
  1291. <param name="dirsProp" type="java.lang.String"/>
  1292. <param name="path" type="java.lang.String"/>
  1293. <exception name="IOException" type="java.io.IOException"/>
  1294. <doc>
  1295. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  1296. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1297. then one is chosen based on <i>path</i>'s hash code. If the selected
  1298. directory does not exist, an attempt is made to create it.
  1299. @param dirsProp directory in which to locate the file.
  1300. @param path file-path.
  1301. @return local file under the directory with the given path.]]>
  1302. </doc>
  1303. </method>
  1304. <method name="getFile" return="java.io.File"
  1305. abstract="false" native="false" synchronized="false"
  1306. static="false" final="false" visibility="public"
  1307. deprecated="not deprecated">
  1308. <param name="dirsProp" type="java.lang.String"/>
  1309. <param name="path" type="java.lang.String"/>
  1310. <exception name="IOException" type="java.io.IOException"/>
  1311. <doc>
  1312. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  1313. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1314. then one is chosen based on <i>path</i>'s hash code. If the selected
  1315. directory does not exist, an attempt is made to create it.
  1316. @param dirsProp directory in which to locate the file.
  1317. @param path file-path.
  1318. @return local file under the directory with the given path.]]>
  1319. </doc>
  1320. </method>
  1321. <method name="getResource" return="java.net.URL"
  1322. abstract="false" native="false" synchronized="false"
  1323. static="false" final="false" visibility="public"
  1324. deprecated="not deprecated">
  1325. <param name="name" type="java.lang.String"/>
  1326. <doc>
  1327. <![CDATA[Get the {@link URL} for the named resource.
  1328. @param name resource name.
  1329. @return the url for the named resource.]]>
  1330. </doc>
  1331. </method>
  1332. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  1333. abstract="false" native="false" synchronized="false"
  1334. static="false" final="false" visibility="public"
  1335. deprecated="not deprecated">
  1336. <param name="name" type="java.lang.String"/>
  1337. <doc>
  1338. <![CDATA[Get an input stream attached to the configuration resource with the
  1339. given <code>name</code>.
  1340. @param name configuration resource name.
  1341. @return an input stream attached to the resource.]]>
  1342. </doc>
  1343. </method>
  1344. <method name="getConfResourceAsReader" return="java.io.Reader"
  1345. abstract="false" native="false" synchronized="false"
  1346. static="false" final="false" visibility="public"
  1347. deprecated="not deprecated">
  1348. <param name="name" type="java.lang.String"/>
  1349. <doc>
  1350. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  1351. given <code>name</code>.
  1352. @param name configuration resource name.
  1353. @return a reader attached to the resource.]]>
  1354. </doc>
  1355. </method>
  1356. <method name="getFinalParameters" return="java.util.Set"
  1357. abstract="false" native="false" synchronized="false"
  1358. static="false" final="false" visibility="public"
  1359. deprecated="not deprecated">
  1360. <doc>
  1361. <![CDATA[Get the set of parameters marked final.
  1362. @return final parameter set.]]>
  1363. </doc>
  1364. </method>
  1365. <method name="getProps" return="java.util.Properties"
  1366. abstract="false" native="false" synchronized="true"
  1367. static="false" final="false" visibility="protected"
  1368. deprecated="not deprecated">
  1369. </method>
  1370. <method name="size" return="int"
  1371. abstract="false" native="false" synchronized="false"
  1372. static="false" final="false" visibility="public"
  1373. deprecated="not deprecated">
  1374. <doc>
  1375. <![CDATA[Return the number of keys in the configuration.
  1376. @return number of keys in the configuration.]]>
  1377. </doc>
  1378. </method>
  1379. <method name="clear"
  1380. abstract="false" native="false" synchronized="false"
  1381. static="false" final="false" visibility="public"
  1382. deprecated="not deprecated">
  1383. <doc>
  1384. <![CDATA[Clears all keys from the configuration.]]>
  1385. </doc>
  1386. </method>
  1387. <method name="iterator" return="java.util.Iterator"
  1388. abstract="false" native="false" synchronized="false"
  1389. static="false" final="false" visibility="public"
  1390. deprecated="not deprecated">
  1391. <doc>
  1392. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  1393. key-value pairs in the configuration.
  1394. @return an iterator over the entries.]]>
  1395. </doc>
  1396. </method>
  1397. <method name="getPropsWithPrefix" return="java.util.Map"
  1398. abstract="false" native="false" synchronized="false"
  1399. static="false" final="false" visibility="public"
  1400. deprecated="not deprecated">
  1401. <param name="confPrefix" type="java.lang.String"/>
  1402. <doc>
  1403. <![CDATA[Constructs a mapping of configuration and includes all properties that
  1404. start with the specified configuration prefix. Property names in the
  1405. mapping are trimmed to remove the configuration prefix.
  1406. @param confPrefix configuration prefix
  1407. @return mapping of configuration properties with prefix stripped]]>
  1408. </doc>
  1409. </method>
  1410. <method name="writeXml"
  1411. abstract="false" native="false" synchronized="false"
  1412. static="false" final="false" visibility="public"
  1413. deprecated="not deprecated">
  1414. <param name="out" type="java.io.OutputStream"/>
  1415. <exception name="IOException" type="java.io.IOException"/>
  1416. <doc>
  1417. <![CDATA[Write out the non-default properties in this configuration to the given
  1418. {@link OutputStream} using UTF-8 encoding.
  1419. @param out the output stream to write to.]]>
  1420. </doc>
  1421. </method>
  1422. <method name="writeXml"
  1423. abstract="false" native="false" synchronized="false"
  1424. static="false" final="false" visibility="public"
  1425. deprecated="not deprecated">
  1426. <param name="out" type="java.io.Writer"/>
  1427. <exception name="IOException" type="java.io.IOException"/>
  1428. </method>
  1429. <method name="writeXml"
  1430. abstract="false" native="false" synchronized="false"
  1431. static="false" final="false" visibility="public"
  1432. deprecated="not deprecated">
  1433. <param name="propertyName" type="java.lang.String"/>
  1434. <param name="out" type="java.io.Writer"/>
  1435. <exception name="IOException" type="java.io.IOException"/>
  1436. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  1437. <doc>
  1438. <![CDATA[Write out the non-default properties in this configuration to the
  1439. given {@link Writer}.
  1440. <li>
  1441. When property name is not empty and the property exists in the
  1442. configuration, this method writes the property and its attributes
  1443. to the {@link Writer}.
  1444. </li>
  1445. <p>
  1446. <li>
  1447. When property name is null or empty, this method writes all the
  1448. configuration properties and their attributes to the {@link Writer}.
  1449. </li>
  1450. <p>
  1451. <li>
  1452. When property name is not empty but the property doesn't exist in
  1453. the configuration, this method throws an {@link IllegalArgumentException}.
  1454. </li>
  1455. <p>
  1456. @param out the writer to write to.]]>
  1457. </doc>
  1458. </method>
  1459. <method name="dumpConfiguration"
  1460. abstract="false" native="false" synchronized="false"
  1461. static="true" final="false" visibility="public"
  1462. deprecated="not deprecated">
  1463. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1464. <param name="propertyName" type="java.lang.String"/>
  1465. <param name="out" type="java.io.Writer"/>
  1466. <exception name="IOException" type="java.io.IOException"/>
  1467. <doc>
  1468. <![CDATA[Writes properties and their attributes (final and resource)
  1469. to the given {@link Writer}.
  1470. <li>
  1471. When propertyName is not empty, and the property exists
  1472. in the configuration, the format of the output would be,
  1473. <pre>
  1474. {
  1475. "property": {
  1476. "key" : "key1",
  1477. "value" : "value1",
  1478. "isFinal" : "key1.isFinal",
  1479. "resource" : "key1.resource"
  1480. }
  1481. }
  1482. </pre>
  1483. </li>
  1484. <li>
  1485. When propertyName is null or empty, it behaves same as
  1486. {@link #dumpConfiguration(Configuration, Writer)}, the
  1487. output would be,
  1488. <pre>
  1489. { "properties" :
  1490. [ { key : "key1",
  1491. value : "value1",
  1492. isFinal : "key1.isFinal",
  1493. resource : "key1.resource" },
  1494. { key : "key2",
  1495. value : "value2",
  1496. isFinal : "ke2.isFinal",
  1497. resource : "key2.resource" }
  1498. ]
  1499. }
  1500. </pre>
  1501. </li>
  1502. <li>
  1503. When propertyName is not empty, and the property is not
  1504. found in the configuration, this method will throw an
  1505. {@link IllegalArgumentException}.
  1506. </li>
  1507. <p>
  1508. @param config the configuration
  1509. @param propertyName property name
  1510. @param out the Writer to write to
  1511. @throws IOException
  1512. @throws IllegalArgumentException when property name is not
  1513. empty and the property is not found in configuration]]>
  1514. </doc>
  1515. </method>
  1516. <method name="dumpConfiguration"
  1517. abstract="false" native="false" synchronized="false"
  1518. static="true" final="false" visibility="public"
  1519. deprecated="not deprecated">
  1520. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1521. <param name="out" type="java.io.Writer"/>
  1522. <exception name="IOException" type="java.io.IOException"/>
  1523. <doc>
  1524. <![CDATA[Writes out all properties and their attributes (final and resource) to
  1525. the given {@link Writer}, the format of the output would be,
  1526. <pre>
  1527. { "properties" :
  1528. [ { key : "key1",
  1529. value : "value1",
  1530. isFinal : "key1.isFinal",
  1531. resource : "key1.resource" },
  1532. { key : "key2",
  1533. value : "value2",
  1534. isFinal : "ke2.isFinal",
  1535. resource : "key2.resource" }
  1536. ]
  1537. }
  1538. </pre>
  1539. It does not output the properties of the configuration object which
  1540. is loaded from an input stream.
  1541. <p>
  1542. @param config the configuration
  1543. @param out the Writer to write to
  1544. @throws IOException]]>
  1545. </doc>
  1546. </method>
  1547. <method name="getClassLoader" return="java.lang.ClassLoader"
  1548. abstract="false" native="false" synchronized="false"
  1549. static="false" final="false" visibility="public"
  1550. deprecated="not deprecated">
  1551. <doc>
  1552. <![CDATA[Get the {@link ClassLoader} for this job.
  1553. @return the correct class loader.]]>
  1554. </doc>
  1555. </method>
  1556. <method name="setClassLoader"
  1557. abstract="false" native="false" synchronized="false"
  1558. static="false" final="false" visibility="public"
  1559. deprecated="not deprecated">
  1560. <param name="classLoader" type="java.lang.ClassLoader"/>
  1561. <doc>
  1562. <![CDATA[Set the class loader that will be used to load the various objects.
  1563. @param classLoader the new class loader.]]>
  1564. </doc>
  1565. </method>
  1566. <method name="toString" return="java.lang.String"
  1567. abstract="false" native="false" synchronized="false"
  1568. static="false" final="false" visibility="public"
  1569. deprecated="not deprecated">
  1570. </method>
  1571. <method name="setQuietMode"
  1572. abstract="false" native="false" synchronized="true"
  1573. static="false" final="false" visibility="public"
  1574. deprecated="not deprecated">
  1575. <param name="quietmode" type="boolean"/>
  1576. <doc>
  1577. <![CDATA[Set the quietness-mode.
  1578. In the quiet-mode, error and informational messages might not be logged.
  1579. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  1580. to turn it off.]]>
  1581. </doc>
  1582. </method>
  1583. <method name="main"
  1584. abstract="false" native="false" synchronized="false"
  1585. static="true" final="false" visibility="public"
  1586. deprecated="not deprecated">
  1587. <param name="args" type="java.lang.String[]"/>
  1588. <exception name="Exception" type="java.lang.Exception"/>
  1589. <doc>
  1590. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  1591. </doc>
  1592. </method>
  1593. <method name="readFields"
  1594. abstract="false" native="false" synchronized="false"
  1595. static="false" final="false" visibility="public"
  1596. deprecated="not deprecated">
  1597. <param name="in" type="java.io.DataInput"/>
  1598. <exception name="IOException" type="java.io.IOException"/>
  1599. </method>
  1600. <method name="write"
  1601. abstract="false" native="false" synchronized="false"
  1602. static="false" final="false" visibility="public"
  1603. deprecated="not deprecated">
  1604. <param name="out" type="java.io.DataOutput"/>
  1605. <exception name="IOException" type="java.io.IOException"/>
  1606. </method>
  1607. <method name="getValByRegex" return="java.util.Map"
  1608. abstract="false" native="false" synchronized="false"
  1609. static="false" final="false" visibility="public"
  1610. deprecated="not deprecated">
  1611. <param name="regex" type="java.lang.String"/>
  1612. <doc>
  1613. <![CDATA[get keys matching the the regex
  1614. @param regex
  1615. @return Map<String,String> with matching keys]]>
  1616. </doc>
  1617. </method>
  1618. <method name="dumpDeprecatedKeys"
  1619. abstract="false" native="false" synchronized="false"
  1620. static="true" final="false" visibility="public"
  1621. deprecated="not deprecated">
  1622. </method>
  1623. <method name="hasWarnedDeprecation" return="boolean"
  1624. abstract="false" native="false" synchronized="false"
  1625. static="true" final="false" visibility="public"
  1626. deprecated="not deprecated">
  1627. <param name="name" type="java.lang.String"/>
  1628. <doc>
  1629. <![CDATA[Returns whether or not a deprecated name has been warned. If the name is not
  1630. deprecated then always return false]]>
  1631. </doc>
  1632. </method>
  1633. <method name="getAllPropertiesByTag" return="java.util.Properties"
  1634. abstract="false" native="false" synchronized="false"
  1635. static="false" final="false" visibility="public"
  1636. deprecated="not deprecated">
  1637. <param name="tag" type="java.lang.String"/>
  1638. <doc>
  1639. <![CDATA[Get all properties belonging to tag.
  1640. @param tag tag
  1641. @return Properties with matching tag]]>
  1642. </doc>
  1643. </method>
  1644. <method name="getAllPropertiesByTags" return="java.util.Properties"
  1645. abstract="false" native="false" synchronized="false"
  1646. static="false" final="false" visibility="public"
  1647. deprecated="not deprecated">
  1648. <param name="tagList" type="java.util.List"/>
  1649. <doc>
  1650. <![CDATA[Get all properties belonging to list of input tags. Calls
  1651. getAllPropertiesByTag internally.
  1652. @param tagList list of input tags
  1653. @return Properties with matching tags]]>
  1654. </doc>
  1655. </method>
  1656. <method name="isPropertyTag" return="boolean"
  1657. abstract="false" native="false" synchronized="false"
  1658. static="false" final="false" visibility="public"
  1659. deprecated="not deprecated">
  1660. <param name="tagStr" type="java.lang.String"/>
  1661. <doc>
  1662. <![CDATA[Get Property tag Enum corresponding to given source.
  1663. @param tagStr String representation of Enum
  1664. @return true if tagStr is a valid tag]]>
  1665. </doc>
  1666. </method>
  1667. <doc>
  1668. <![CDATA[Provides access to configuration parameters.
  1669. <h4 id="Resources">Resources</h4>
  1670. <p>Configurations are specified by resources. A resource contains a set of
  1671. name/value pairs as XML data. Each resource is named by either a
  1672. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  1673. then the classpath is examined for a file with that name. If named by a
  1674. <code>Path</code>, then the local filesystem is examined directly, without
  1675. referring to the classpath.
  1676. <p>Unless explicitly turned off, Hadoop by default specifies two
  1677. resources, loaded in-order from the classpath: <ol>
  1678. <li><tt>
  1679. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  1680. core-default.xml</a></tt>: Read-only defaults for hadoop.</li>
  1681. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  1682. installation.</li>
  1683. </ol>
  1684. Applications may add additional resources, which are loaded
  1685. subsequent to these resources in the order they are added.
  1686. <h4 id="FinalParams">Final Parameters</h4>
  1687. <p>Configuration parameters may be declared <i>final</i>.
  1688. Once a resource declares a value final, no subsequently-loaded
  1689. resource can alter that value.
  1690. For example, one might define a final parameter with:
  1691. <tt><pre>
  1692. &lt;property&gt;
  1693. &lt;name&gt;dfs.hosts.include&lt;/name&gt;
  1694. &lt;value&gt;/etc/hadoop/conf/hosts.include&lt;/value&gt;
  1695. <b>&lt;final&gt;true&lt;/final&gt;</b>
  1696. &lt;/property&gt;</pre></tt>
  1697. Administrators typically define parameters as final in
  1698. <tt>core-site.xml</tt> for values that user applications may not alter.
  1699. <h4 id="VariableExpansion">Variable Expansion</h4>
  1700. <p>Value strings are first processed for <i>variable expansion</i>. The
  1701. available properties are:<ol>
  1702. <li>Other properties defined in this Configuration; and, if a name is
  1703. undefined here,</li>
  1704. <li>Environment variables in {@link System#getenv()} if a name starts with
  1705. "env.", or</li>
  1706. <li>Properties in {@link System#getProperties()}.</li>
  1707. </ol>
  1708. <p>For example, if a configuration resource contains the following property
  1709. definitions:
  1710. <tt><pre>
  1711. &lt;property&gt;
  1712. &lt;name&gt;basedir&lt;/name&gt;
  1713. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  1714. &lt;/property&gt;
  1715. &lt;property&gt;
  1716. &lt;name&gt;tempdir&lt;/name&gt;
  1717. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  1718. &lt;/property&gt;
  1719. &lt;property&gt;
  1720. &lt;name&gt;otherdir&lt;/name&gt;
  1721. &lt;value&gt;${<i>env.BASE_DIR</i>}/other&lt;/value&gt;
  1722. &lt;/property&gt;
  1723. </pre></tt>
  1724. <p>When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  1725. will be resolved to another property in this Configuration, while
  1726. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  1727. of the System property with that name.
  1728. <p>When <tt>conf.get("otherdir")</tt> is called, then <tt>${<i>env.BASE_DIR</i>}</tt>
  1729. will be resolved to the value of the <tt>${<i>BASE_DIR</i>}</tt> environment variable.
  1730. It supports <tt>${<i>env.NAME:-default</i>}</tt> and <tt>${<i>env.NAME-default</i>}</tt> notations.
  1731. The former is resolved to "default" if <tt>${<i>NAME</i>}</tt> environment variable is undefined
  1732. or its value is empty.
  1733. The latter behaves the same way only if <tt>${<i>NAME</i>}</tt> is undefined.
  1734. <p>By default, warnings will be given to any deprecated configuration
  1735. parameters and these are suppressible by configuring
  1736. <tt>log4j.logger.org.apache.hadoop.conf.Configuration.deprecation</tt> in
  1737. log4j.properties file.
  1738. <h4 id="Tags">Tags</h4>
  1739. <p>Optionally we can tag related properties together by using tag
  1740. attributes. System tags are defined by hadoop.system.tags property. Users
  1741. can define there own custom tags in hadoop.custom.tags property.
  1742. <p>For example, we can tag existing property as:
  1743. <tt><pre>
  1744. &lt;property&gt;
  1745. &lt;name&gt;dfs.replication&lt;/name&gt;
  1746. &lt;value&gt;3&lt;/value&gt;
  1747. &lt;tag&gt;HDFS,REQUIRED&lt;/tag&gt;
  1748. &lt;/property&gt;
  1749. &lt;property&gt;
  1750. &lt;name&gt;dfs.data.transfer.protection&lt;/name&gt;
  1751. &lt;value&gt;3&lt;/value&gt;
  1752. &lt;tag&gt;HDFS,SECURITY&lt;/tag&gt;
  1753. &lt;/property&gt;
  1754. </pre></tt>
  1755. <p> Properties marked with tags can be retrieved with <tt>conf
  1756. .getAllPropertiesByTag("HDFS")</tt> or <tt>conf.getAllPropertiesByTags
  1757. (Arrays.asList("YARN","SECURITY"))</tt>.</p>]]>
  1758. </doc>
  1759. </class>
  1760. <!-- end class org.apache.hadoop.conf.Configuration -->
  1761. <!-- start class org.apache.hadoop.conf.Configured -->
  1762. <class name="Configured" extends="java.lang.Object"
  1763. abstract="false"
  1764. static="false" final="false" visibility="public"
  1765. deprecated="not deprecated">
  1766. <implements name="org.apache.hadoop.conf.Configurable"/>
  1767. <constructor name="Configured"
  1768. static="false" final="false" visibility="public"
  1769. deprecated="not deprecated">
  1770. <doc>
  1771. <![CDATA[Construct a Configured.]]>
  1772. </doc>
  1773. </constructor>
  1774. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1775. static="false" final="false" visibility="public"
  1776. deprecated="not deprecated">
  1777. <doc>
  1778. <![CDATA[Construct a Configured.]]>
  1779. </doc>
  1780. </constructor>
  1781. <method name="setConf"
  1782. abstract="false" native="false" synchronized="false"
  1783. static="false" final="false" visibility="public"
  1784. deprecated="not deprecated">
  1785. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1786. </method>
  1787. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1788. abstract="false" native="false" synchronized="false"
  1789. static="false" final="false" visibility="public"
  1790. deprecated="not deprecated">
  1791. </method>
  1792. <doc>
  1793. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1794. </doc>
  1795. </class>
  1796. <!-- end class org.apache.hadoop.conf.Configured -->
  1797. <doc>
  1798. <![CDATA[Configuration of system parameters.]]>
  1799. </doc>
  1800. </package>
  1801. <package name="org.apache.hadoop.crypto">
  1802. </package>
  1803. <package name="org.apache.hadoop.crypto.key">
  1804. <!-- start class org.apache.hadoop.crypto.key.KeyProvider -->
  1805. <class name="KeyProvider" extends="java.lang.Object"
  1806. abstract="true"
  1807. static="false" final="false" visibility="public"
  1808. deprecated="not deprecated">
  1809. <constructor name="KeyProvider" type="org.apache.hadoop.conf.Configuration"
  1810. static="false" final="false" visibility="public"
  1811. deprecated="not deprecated">
  1812. <doc>
  1813. <![CDATA[Constructor.
  1814. @param conf configuration for the provider]]>
  1815. </doc>
  1816. </constructor>
  1817. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1818. abstract="false" native="false" synchronized="false"
  1819. static="false" final="false" visibility="public"
  1820. deprecated="not deprecated">
  1821. <doc>
  1822. <![CDATA[Return the provider configuration.
  1823. @return the provider configuration]]>
  1824. </doc>
  1825. </method>
  1826. <method name="options" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  1827. abstract="false" native="false" synchronized="false"
  1828. static="true" final="false" visibility="public"
  1829. deprecated="not deprecated">
  1830. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1831. <doc>
  1832. <![CDATA[A helper function to create an options object.
  1833. @param conf the configuration to use
  1834. @return a new options object]]>
  1835. </doc>
  1836. </method>
  1837. <method name="isTransient" return="boolean"
  1838. abstract="false" native="false" synchronized="false"
  1839. static="false" final="false" visibility="public"
  1840. deprecated="not deprecated">
  1841. <doc>
  1842. <![CDATA[Indicates whether this provider represents a store
  1843. that is intended for transient use - such as the UserProvider
  1844. is. These providers are generally used to provide access to
  1845. keying material rather than for long term storage.
  1846. @return true if transient, false otherwise]]>
  1847. </doc>
  1848. </method>
  1849. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1850. abstract="true" native="false" synchronized="false"
  1851. static="false" final="false" visibility="public"
  1852. deprecated="not deprecated">
  1853. <param name="versionName" type="java.lang.String"/>
  1854. <exception name="IOException" type="java.io.IOException"/>
  1855. <doc>
  1856. <![CDATA[Get the key material for a specific version of the key. This method is used
  1857. when decrypting data.
  1858. @param versionName the name of a specific version of the key
  1859. @return the key material
  1860. @throws IOException]]>
  1861. </doc>
  1862. </method>
  1863. <method name="getKeys" return="java.util.List"
  1864. abstract="true" native="false" synchronized="false"
  1865. static="false" final="false" visibility="public"
  1866. deprecated="not deprecated">
  1867. <exception name="IOException" type="java.io.IOException"/>
  1868. <doc>
  1869. <![CDATA[Get the key names for all keys.
  1870. @return the list of key names
  1871. @throws IOException]]>
  1872. </doc>
  1873. </method>
  1874. <method name="getKeysMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata[]"
  1875. abstract="false" native="false" synchronized="false"
  1876. static="false" final="false" visibility="public"
  1877. deprecated="not deprecated">
  1878. <param name="names" type="java.lang.String[]"/>
  1879. <exception name="IOException" type="java.io.IOException"/>
  1880. <doc>
  1881. <![CDATA[Get key metadata in bulk.
  1882. @param names the names of the keys to get
  1883. @throws IOException]]>
  1884. </doc>
  1885. </method>
  1886. <method name="getKeyVersions" return="java.util.List"
  1887. abstract="true" native="false" synchronized="false"
  1888. static="false" final="false" visibility="public"
  1889. deprecated="not deprecated">
  1890. <param name="name" type="java.lang.String"/>
  1891. <exception name="IOException" type="java.io.IOException"/>
  1892. <doc>
  1893. <![CDATA[Get the key material for all versions of a specific key name.
  1894. @return the list of key material
  1895. @throws IOException]]>
  1896. </doc>
  1897. </method>
  1898. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1899. abstract="false" native="false" synchronized="false"
  1900. static="false" final="false" visibility="public"
  1901. deprecated="not deprecated">
  1902. <param name="name" type="java.lang.String"/>
  1903. <exception name="IOException" type="java.io.IOException"/>
  1904. <doc>
  1905. <![CDATA[Get the current version of the key, which should be used for encrypting new
  1906. data.
  1907. @param name the base name of the key
  1908. @return the version name of the current version of the key or null if the
  1909. key version doesn't exist
  1910. @throws IOException]]>
  1911. </doc>
  1912. </method>
  1913. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  1914. abstract="true" native="false" synchronized="false"
  1915. static="false" final="false" visibility="public"
  1916. deprecated="not deprecated">
  1917. <param name="name" type="java.lang.String"/>
  1918. <exception name="IOException" type="java.io.IOException"/>
  1919. <doc>
  1920. <![CDATA[Get metadata about the key.
  1921. @param name the basename of the key
  1922. @return the key's metadata or null if the key doesn't exist
  1923. @throws IOException]]>
  1924. </doc>
  1925. </method>
  1926. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1927. abstract="true" native="false" synchronized="false"
  1928. static="false" final="false" visibility="public"
  1929. deprecated="not deprecated">
  1930. <param name="name" type="java.lang.String"/>
  1931. <param name="material" type="byte[]"/>
  1932. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  1933. <exception name="IOException" type="java.io.IOException"/>
  1934. <doc>
  1935. <![CDATA[Create a new key. The given key must not already exist.
  1936. @param name the base name of the key
  1937. @param material the key material for the first version of the key.
  1938. @param options the options for the new key.
  1939. @return the version name of the first version of the key.
  1940. @throws IOException]]>
  1941. </doc>
  1942. </method>
  1943. <method name="generateKey" return="byte[]"
  1944. abstract="false" native="false" synchronized="false"
  1945. static="false" final="false" visibility="protected"
  1946. deprecated="not deprecated">
  1947. <param name="size" type="int"/>
  1948. <param name="algorithm" type="java.lang.String"/>
  1949. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1950. <doc>
  1951. <![CDATA[Generates a key material.
  1952. @param size length of the key.
  1953. @param algorithm algorithm to use for generating the key.
  1954. @return the generated key.
  1955. @throws NoSuchAlgorithmException]]>
  1956. </doc>
  1957. </method>
  1958. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1959. abstract="false" native="false" synchronized="false"
  1960. static="false" final="false" visibility="public"
  1961. deprecated="not deprecated">
  1962. <param name="name" type="java.lang.String"/>
  1963. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  1964. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1965. <exception name="IOException" type="java.io.IOException"/>
  1966. <doc>
  1967. <![CDATA[Create a new key generating the material for it.
  1968. The given key must not already exist.
  1969. <p/>
  1970. This implementation generates the key material and calls the
  1971. {@link #createKey(String, byte[], Options)} method.
  1972. @param name the base name of the key
  1973. @param options the options for the new key.
  1974. @return the version name of the first version of the key.
  1975. @throws IOException
  1976. @throws NoSuchAlgorithmException]]>
  1977. </doc>
  1978. </method>
  1979. <method name="deleteKey"
  1980. abstract="true" native="false" synchronized="false"
  1981. static="false" final="false" visibility="public"
  1982. deprecated="not deprecated">
  1983. <param name="name" type="java.lang.String"/>
  1984. <exception name="IOException" type="java.io.IOException"/>
  1985. <doc>
  1986. <![CDATA[Delete the given key.
  1987. @param name the name of the key to delete
  1988. @throws IOException]]>
  1989. </doc>
  1990. </method>
  1991. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1992. abstract="true" native="false" synchronized="false"
  1993. static="false" final="false" visibility="public"
  1994. deprecated="not deprecated">
  1995. <param name="name" type="java.lang.String"/>
  1996. <param name="material" type="byte[]"/>
  1997. <exception name="IOException" type="java.io.IOException"/>
  1998. <doc>
  1999. <![CDATA[Roll a new version of the given key.
  2000. @param name the basename of the key
  2001. @param material the new key material
  2002. @return the name of the new version of the key
  2003. @throws IOException]]>
  2004. </doc>
  2005. </method>
  2006. <method name="close"
  2007. abstract="false" native="false" synchronized="false"
  2008. static="false" final="false" visibility="public"
  2009. deprecated="not deprecated">
  2010. <exception name="IOException" type="java.io.IOException"/>
  2011. <doc>
  2012. <![CDATA[Can be used by implementing classes to close any resources
  2013. that require closing]]>
  2014. </doc>
  2015. </method>
  2016. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2017. abstract="false" native="false" synchronized="false"
  2018. static="false" final="false" visibility="public"
  2019. deprecated="not deprecated">
  2020. <param name="name" type="java.lang.String"/>
  2021. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2022. <exception name="IOException" type="java.io.IOException"/>
  2023. <doc>
  2024. <![CDATA[Roll a new version of the given key generating the material for it.
  2025. <p/>
  2026. This implementation generates the key material and calls the
  2027. {@link #rollNewVersion(String, byte[])} method.
  2028. @param name the basename of the key
  2029. @return the name of the new version of the key
  2030. @throws IOException]]>
  2031. </doc>
  2032. </method>
  2033. <method name="invalidateCache"
  2034. abstract="false" native="false" synchronized="false"
  2035. static="false" final="false" visibility="public"
  2036. deprecated="not deprecated">
  2037. <param name="name" type="java.lang.String"/>
  2038. <exception name="IOException" type="java.io.IOException"/>
  2039. <doc>
  2040. <![CDATA[Can be used by implementing classes to invalidate the caches. This could be
  2041. used after rollNewVersion to provide a strong guarantee to return the new
  2042. version of the given key.
  2043. @param name the basename of the key
  2044. @throws IOException]]>
  2045. </doc>
  2046. </method>
  2047. <method name="flush"
  2048. abstract="true" native="false" synchronized="false"
  2049. static="false" final="false" visibility="public"
  2050. deprecated="not deprecated">
  2051. <exception name="IOException" type="java.io.IOException"/>
  2052. <doc>
  2053. <![CDATA[Ensures that any changes to the keys are written to persistent store.
  2054. @throws IOException]]>
  2055. </doc>
  2056. </method>
  2057. <method name="getBaseName" return="java.lang.String"
  2058. abstract="false" native="false" synchronized="false"
  2059. static="true" final="false" visibility="public"
  2060. deprecated="not deprecated">
  2061. <param name="versionName" type="java.lang.String"/>
  2062. <exception name="IOException" type="java.io.IOException"/>
  2063. <doc>
  2064. <![CDATA[Split the versionName in to a base name. Converts "/aaa/bbb/3" to
  2065. "/aaa/bbb".
  2066. @param versionName the version name to split
  2067. @return the base name of the key
  2068. @throws IOException]]>
  2069. </doc>
  2070. </method>
  2071. <method name="buildVersionName" return="java.lang.String"
  2072. abstract="false" native="false" synchronized="false"
  2073. static="true" final="false" visibility="protected"
  2074. deprecated="not deprecated">
  2075. <param name="name" type="java.lang.String"/>
  2076. <param name="version" type="int"/>
  2077. <doc>
  2078. <![CDATA[Build a version string from a basename and version number. Converts
  2079. "/aaa/bbb" and 3 to "/aaa/bbb@3".
  2080. @param name the basename of the key
  2081. @param version the version of the key
  2082. @return the versionName of the key.]]>
  2083. </doc>
  2084. </method>
  2085. <method name="findProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2086. abstract="false" native="false" synchronized="false"
  2087. static="true" final="false" visibility="public"
  2088. deprecated="not deprecated">
  2089. <param name="providerList" type="java.util.List"/>
  2090. <param name="keyName" type="java.lang.String"/>
  2091. <exception name="IOException" type="java.io.IOException"/>
  2092. <doc>
  2093. <![CDATA[Find the provider with the given key.
  2094. @param providerList the list of providers
  2095. @param keyName the key name we are looking for
  2096. @return the KeyProvider that has the key]]>
  2097. </doc>
  2098. </method>
  2099. <method name="needsPassword" return="boolean"
  2100. abstract="false" native="false" synchronized="false"
  2101. static="false" final="false" visibility="public"
  2102. deprecated="not deprecated">
  2103. <exception name="IOException" type="java.io.IOException"/>
  2104. <doc>
  2105. <![CDATA[Does this provider require a password? This means that a password is
  2106. required for normal operation, and it has not been found through normal
  2107. means. If true, the password should be provided by the caller using
  2108. setPassword().
  2109. @return Whether or not the provider requires a password
  2110. @throws IOException]]>
  2111. </doc>
  2112. </method>
  2113. <method name="noPasswordWarning" return="java.lang.String"
  2114. abstract="false" native="false" synchronized="false"
  2115. static="false" final="false" visibility="public"
  2116. deprecated="not deprecated">
  2117. <doc>
  2118. <![CDATA[If a password for the provider is needed, but is not provided, this will
  2119. return a warning and instructions for supplying said password to the
  2120. provider.
  2121. @return A warning and instructions for supplying the password]]>
  2122. </doc>
  2123. </method>
  2124. <method name="noPasswordError" return="java.lang.String"
  2125. abstract="false" native="false" synchronized="false"
  2126. static="false" final="false" visibility="public"
  2127. deprecated="not deprecated">
  2128. <doc>
  2129. <![CDATA[If a password for the provider is needed, but is not provided, this will
  2130. return an error message and instructions for supplying said password to
  2131. the provider.
  2132. @return An error message and instructions for supplying the password]]>
  2133. </doc>
  2134. </method>
  2135. <field name="DEFAULT_CIPHER_NAME" type="java.lang.String"
  2136. transient="false" volatile="false"
  2137. static="true" final="true" visibility="public"
  2138. deprecated="not deprecated">
  2139. </field>
  2140. <field name="DEFAULT_CIPHER" type="java.lang.String"
  2141. transient="false" volatile="false"
  2142. static="true" final="true" visibility="public"
  2143. deprecated="not deprecated">
  2144. </field>
  2145. <field name="DEFAULT_BITLENGTH_NAME" type="java.lang.String"
  2146. transient="false" volatile="false"
  2147. static="true" final="true" visibility="public"
  2148. deprecated="not deprecated">
  2149. </field>
  2150. <field name="DEFAULT_BITLENGTH" type="int"
  2151. transient="false" volatile="false"
  2152. static="true" final="true" visibility="public"
  2153. deprecated="not deprecated">
  2154. </field>
  2155. <field name="JCEKS_KEY_SERIALFILTER_DEFAULT" type="java.lang.String"
  2156. transient="false" volatile="false"
  2157. static="true" final="true" visibility="public"
  2158. deprecated="not deprecated">
  2159. </field>
  2160. <field name="JCEKS_KEY_SERIAL_FILTER" type="java.lang.String"
  2161. transient="false" volatile="false"
  2162. static="true" final="true" visibility="public"
  2163. deprecated="not deprecated">
  2164. </field>
  2165. <doc>
  2166. <![CDATA[A provider of secret key material for Hadoop applications. Provides an
  2167. abstraction to separate key storage from users of encryption. It
  2168. is intended to support getting or storing keys in a variety of ways,
  2169. including third party bindings.
  2170. <P/>
  2171. <code>KeyProvider</code> implementations must be thread safe.]]>
  2172. </doc>
  2173. </class>
  2174. <!-- end class org.apache.hadoop.crypto.key.KeyProvider -->
  2175. <!-- start class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2176. <class name="KeyProviderFactory" extends="java.lang.Object"
  2177. abstract="true"
  2178. static="false" final="false" visibility="public"
  2179. deprecated="not deprecated">
  2180. <constructor name="KeyProviderFactory"
  2181. static="false" final="false" visibility="public"
  2182. deprecated="not deprecated">
  2183. </constructor>
  2184. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2185. abstract="true" native="false" synchronized="false"
  2186. static="false" final="false" visibility="public"
  2187. deprecated="not deprecated">
  2188. <param name="providerName" type="java.net.URI"/>
  2189. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2190. <exception name="IOException" type="java.io.IOException"/>
  2191. </method>
  2192. <method name="getProviders" return="java.util.List"
  2193. abstract="false" native="false" synchronized="false"
  2194. static="true" final="false" visibility="public"
  2195. deprecated="not deprecated">
  2196. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2197. <exception name="IOException" type="java.io.IOException"/>
  2198. </method>
  2199. <method name="get" return="org.apache.hadoop.crypto.key.KeyProvider"
  2200. abstract="false" native="false" synchronized="false"
  2201. static="true" final="false" visibility="public"
  2202. deprecated="not deprecated">
  2203. <param name="uri" type="java.net.URI"/>
  2204. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2205. <exception name="IOException" type="java.io.IOException"/>
  2206. <doc>
  2207. <![CDATA[Create a KeyProvider based on a provided URI.
  2208. @param uri key provider URI
  2209. @param conf configuration to initialize the key provider
  2210. @return the key provider for the specified URI, or <code>NULL</code> if
  2211. a provider for the specified URI scheme could not be found.
  2212. @throws IOException thrown if the provider failed to initialize.]]>
  2213. </doc>
  2214. </method>
  2215. <field name="KEY_PROVIDER_PATH" type="java.lang.String"
  2216. transient="false" volatile="false"
  2217. static="true" final="true" visibility="public"
  2218. deprecated="not deprecated">
  2219. </field>
  2220. <doc>
  2221. <![CDATA[A factory to create a list of KeyProvider based on the path given in a
  2222. Configuration. It uses a service loader interface to find the available
  2223. KeyProviders and create them based on the list of URIs.]]>
  2224. </doc>
  2225. </class>
  2226. <!-- end class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2227. </package>
  2228. <package name="org.apache.hadoop.crypto.key.kms">
  2229. </package>
  2230. <package name="org.apache.hadoop.crypto.random">
  2231. </package>
  2232. <package name="org.apache.hadoop.fs">
  2233. <!-- start class org.apache.hadoop.fs.AbstractFileSystem -->
  2234. <class name="AbstractFileSystem" extends="java.lang.Object"
  2235. abstract="true"
  2236. static="false" final="false" visibility="public"
  2237. deprecated="not deprecated">
  2238. <constructor name="AbstractFileSystem" type="java.net.URI, java.lang.String, boolean, int"
  2239. static="false" final="false" visibility="public"
  2240. deprecated="not deprecated">
  2241. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  2242. <doc>
  2243. <![CDATA[Constructor to be called by subclasses.
  2244. @param uri for this file system.
  2245. @param supportedScheme the scheme supported by the implementor
  2246. @param authorityNeeded if true then theURI must have authority, if false
  2247. then the URI must have null authority.
  2248. @throws URISyntaxException <code>uri</code> has syntax error]]>
  2249. </doc>
  2250. </constructor>
  2251. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  2252. abstract="false" native="false" synchronized="false"
  2253. static="false" final="false" visibility="public"
  2254. deprecated="not deprecated">
  2255. </method>
  2256. <method name="isValidName" return="boolean"
  2257. abstract="false" native="false" synchronized="false"
  2258. static="false" final="false" visibility="public"
  2259. deprecated="not deprecated">
  2260. <param name="src" type="java.lang.String"/>
  2261. <doc>
  2262. <![CDATA[Returns true if the specified string is considered valid in the path part
  2263. of a URI by this file system. The default implementation enforces the rules
  2264. of HDFS, but subclasses may override this method to implement specific
  2265. validation rules for specific file systems.
  2266. @param src String source filename to check, path part of the URI
  2267. @return boolean true if the specified string is considered valid]]>
  2268. </doc>
  2269. </method>
  2270. <method name="createFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  2271. abstract="false" native="false" synchronized="false"
  2272. static="true" final="false" visibility="public"
  2273. deprecated="not deprecated">
  2274. <param name="uri" type="java.net.URI"/>
  2275. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2276. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2277. <doc>
  2278. <![CDATA[Create a file system instance for the specified uri using the conf. The
  2279. conf is used to find the class name that implements the file system. The
  2280. conf is also passed to the file system for its configuration.
  2281. @param uri URI of the file system
  2282. @param conf Configuration for the file system
  2283. @return Returns the file system for the given URI
  2284. @throws UnsupportedFileSystemException file system for <code>uri</code> is
  2285. not found]]>
  2286. </doc>
  2287. </method>
  2288. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  2289. abstract="false" native="false" synchronized="true"
  2290. static="true" final="false" visibility="protected"
  2291. deprecated="not deprecated">
  2292. <param name="uri" type="java.net.URI"/>
  2293. <doc>
  2294. <![CDATA[Get the statistics for a particular file system.
  2295. @param uri
  2296. used as key to lookup STATISTICS_TABLE. Only scheme and authority
  2297. part of the uri are used.
  2298. @return a statistics object]]>
  2299. </doc>
  2300. </method>
  2301. <method name="clearStatistics"
  2302. abstract="false" native="false" synchronized="true"
  2303. static="true" final="false" visibility="public"
  2304. deprecated="not deprecated">
  2305. </method>
  2306. <method name="printStatistics"
  2307. abstract="false" native="false" synchronized="true"
  2308. static="true" final="false" visibility="public"
  2309. deprecated="not deprecated">
  2310. <doc>
  2311. <![CDATA[Prints statistics for all file systems.]]>
  2312. </doc>
  2313. </method>
  2314. <method name="getAllStatistics" return="java.util.Map"
  2315. abstract="false" native="false" synchronized="true"
  2316. static="true" final="false" visibility="protected"
  2317. deprecated="not deprecated">
  2318. </method>
  2319. <method name="get" return="org.apache.hadoop.fs.AbstractFileSystem"
  2320. abstract="false" native="false" synchronized="false"
  2321. static="true" final="false" visibility="public"
  2322. deprecated="not deprecated">
  2323. <param name="uri" type="java.net.URI"/>
  2324. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2325. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2326. <doc>
  2327. <![CDATA[The main factory method for creating a file system. Get a file system for
  2328. the URI's scheme and authority. The scheme of the <code>uri</code>
  2329. determines a configuration property name,
  2330. <tt>fs.AbstractFileSystem.<i>scheme</i>.impl</tt> whose value names the
  2331. AbstractFileSystem class.
  2332. The entire URI and conf is passed to the AbstractFileSystem factory method.
  2333. @param uri for the file system to be created.
  2334. @param conf which is passed to the file system impl.
  2335. @return file system for the given URI.
  2336. @throws UnsupportedFileSystemException if the file system for
  2337. <code>uri</code> is not supported.]]>
  2338. </doc>
  2339. </method>
  2340. <method name="checkScheme"
  2341. abstract="false" native="false" synchronized="false"
  2342. static="false" final="false" visibility="public"
  2343. deprecated="not deprecated">
  2344. <param name="uri" type="java.net.URI"/>
  2345. <param name="supportedScheme" type="java.lang.String"/>
  2346. <doc>
  2347. <![CDATA[Check that the Uri's scheme matches
  2348. @param uri
  2349. @param supportedScheme]]>
  2350. </doc>
  2351. </method>
  2352. <method name="getUriDefaultPort" return="int"
  2353. abstract="true" native="false" synchronized="false"
  2354. static="false" final="false" visibility="public"
  2355. deprecated="not deprecated">
  2356. <doc>
  2357. <![CDATA[The default port of this file system.
  2358. @return default port of this file system's Uri scheme
  2359. A uri with a port of -1 => default port;]]>
  2360. </doc>
  2361. </method>
  2362. <method name="getUri" return="java.net.URI"
  2363. abstract="false" native="false" synchronized="false"
  2364. static="false" final="false" visibility="public"
  2365. deprecated="not deprecated">
  2366. <doc>
  2367. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.
  2368. @return the uri of this file system.]]>
  2369. </doc>
  2370. </method>
  2371. <method name="checkPath"
  2372. abstract="false" native="false" synchronized="false"
  2373. static="false" final="false" visibility="public"
  2374. deprecated="not deprecated">
  2375. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2376. <doc>
  2377. <![CDATA[Check that a Path belongs to this FileSystem.
  2378. If the path is fully qualified URI, then its scheme and authority
  2379. matches that of this file system. Otherwise the path must be
  2380. slash-relative name.
  2381. @throws InvalidPathException if the path is invalid]]>
  2382. </doc>
  2383. </method>
  2384. <method name="getUriPath" return="java.lang.String"
  2385. abstract="false" native="false" synchronized="false"
  2386. static="false" final="false" visibility="public"
  2387. deprecated="not deprecated">
  2388. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2389. <doc>
  2390. <![CDATA[Get the path-part of a pathname. Checks that URI matches this file system
  2391. and that the path-part is a valid name.
  2392. @param p path
  2393. @return path-part of the Path p]]>
  2394. </doc>
  2395. </method>
  2396. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2397. abstract="false" native="false" synchronized="false"
  2398. static="false" final="false" visibility="public"
  2399. deprecated="not deprecated">
  2400. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2401. <doc>
  2402. <![CDATA[Make the path fully qualified to this file system
  2403. @param path
  2404. @return the qualified path]]>
  2405. </doc>
  2406. </method>
  2407. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  2408. abstract="false" native="false" synchronized="false"
  2409. static="false" final="false" visibility="public"
  2410. deprecated="not deprecated">
  2411. <doc>
  2412. <![CDATA[Some file systems like LocalFileSystem have an initial workingDir
  2413. that is used as the starting workingDir. For other file systems
  2414. like HDFS there is no built in notion of an initial workingDir.
  2415. @return the initial workingDir if the file system has such a notion
  2416. otherwise return a null.]]>
  2417. </doc>
  2418. </method>
  2419. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  2420. abstract="false" native="false" synchronized="false"
  2421. static="false" final="false" visibility="public"
  2422. deprecated="not deprecated">
  2423. <doc>
  2424. <![CDATA[Return the current user's home directory in this file system.
  2425. The default implementation returns "/user/$USER/".
  2426. @return current user's home directory.]]>
  2427. </doc>
  2428. </method>
  2429. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2430. abstract="true" native="false" synchronized="false"
  2431. static="false" final="false" visibility="public"
  2432. deprecated="use {@link #getServerDefaults(Path)} instead">
  2433. <exception name="IOException" type="java.io.IOException"/>
  2434. <doc>
  2435. <![CDATA[Return a set of server default configuration values.
  2436. @return server default configuration values
  2437. @throws IOException an I/O error occurred
  2438. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  2439. </doc>
  2440. </method>
  2441. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2442. abstract="false" native="false" synchronized="false"
  2443. static="false" final="false" visibility="public"
  2444. deprecated="not deprecated">
  2445. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2446. <exception name="IOException" type="java.io.IOException"/>
  2447. <doc>
  2448. <![CDATA[Return a set of server default configuration values based on path.
  2449. @param f path to fetch server defaults
  2450. @return server default configuration values for path
  2451. @throws IOException an I/O error occurred]]>
  2452. </doc>
  2453. </method>
  2454. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  2455. abstract="false" native="false" synchronized="false"
  2456. static="false" final="false" visibility="public"
  2457. deprecated="not deprecated">
  2458. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2459. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2460. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2461. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2462. <exception name="IOException" type="java.io.IOException"/>
  2463. <doc>
  2464. <![CDATA[Return the fully-qualified path of path f resolving the path
  2465. through any internal symlinks or mount point
  2466. @param p path to be resolved
  2467. @return fully qualified path
  2468. @throws FileNotFoundException, AccessControlException, IOException
  2469. UnresolvedLinkException if symbolic link on path cannot be resolved
  2470. internally]]>
  2471. </doc>
  2472. </method>
  2473. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2474. abstract="false" native="false" synchronized="false"
  2475. static="false" final="true" visibility="public"
  2476. deprecated="not deprecated">
  2477. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2478. <param name="createFlag" type="java.util.EnumSet"/>
  2479. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  2480. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2481. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2482. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2483. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2484. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2485. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2486. <exception name="IOException" type="java.io.IOException"/>
  2487. <doc>
  2488. <![CDATA[The specification of this method matches that of
  2489. {@link FileContext#create(Path, EnumSet, Options.CreateOpts...)} except
  2490. that the Path f must be fully qualified and the permission is absolute
  2491. (i.e. umask has been applied).]]>
  2492. </doc>
  2493. </method>
  2494. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  2495. abstract="true" native="false" synchronized="false"
  2496. static="false" final="false" visibility="public"
  2497. deprecated="not deprecated">
  2498. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2499. <param name="flag" type="java.util.EnumSet"/>
  2500. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2501. <param name="bufferSize" type="int"/>
  2502. <param name="replication" type="short"/>
  2503. <param name="blockSize" type="long"/>
  2504. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2505. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  2506. <param name="createParent" type="boolean"/>
  2507. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2508. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2509. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2510. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2511. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2512. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2513. <exception name="IOException" type="java.io.IOException"/>
  2514. <doc>
  2515. <![CDATA[The specification of this method matches that of
  2516. {@link #create(Path, EnumSet, Options.CreateOpts...)} except that the opts
  2517. have been declared explicitly.]]>
  2518. </doc>
  2519. </method>
  2520. <method name="mkdir"
  2521. abstract="true" native="false" synchronized="false"
  2522. static="false" final="false" visibility="public"
  2523. deprecated="not deprecated">
  2524. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2525. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2526. <param name="createParent" type="boolean"/>
  2527. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2528. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2529. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2530. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2531. <exception name="IOException" type="java.io.IOException"/>
  2532. <doc>
  2533. <![CDATA[The specification of this method matches that of
  2534. {@link FileContext#mkdir(Path, FsPermission, boolean)} except that the Path
  2535. f must be fully qualified and the permission is absolute (i.e.
  2536. umask has been applied).]]>
  2537. </doc>
  2538. </method>
  2539. <method name="delete" return="boolean"
  2540. abstract="true" native="false" synchronized="false"
  2541. static="false" final="false" visibility="public"
  2542. deprecated="not deprecated">
  2543. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2544. <param name="recursive" type="boolean"/>
  2545. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2546. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2547. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2548. <exception name="IOException" type="java.io.IOException"/>
  2549. <doc>
  2550. <![CDATA[The specification of this method matches that of
  2551. {@link FileContext#delete(Path, boolean)} except that Path f must be for
  2552. this file system.]]>
  2553. </doc>
  2554. </method>
  2555. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2556. abstract="false" native="false" synchronized="false"
  2557. static="false" final="false" visibility="public"
  2558. deprecated="not deprecated">
  2559. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2560. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2561. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2562. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2563. <exception name="IOException" type="java.io.IOException"/>
  2564. <doc>
  2565. <![CDATA[The specification of this method matches that of
  2566. {@link FileContext#open(Path)} except that Path f must be for this
  2567. file system.]]>
  2568. </doc>
  2569. </method>
  2570. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2571. abstract="true" native="false" synchronized="false"
  2572. static="false" final="false" visibility="public"
  2573. deprecated="not deprecated">
  2574. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2575. <param name="bufferSize" type="int"/>
  2576. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2577. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2578. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2579. <exception name="IOException" type="java.io.IOException"/>
  2580. <doc>
  2581. <![CDATA[The specification of this method matches that of
  2582. {@link FileContext#open(Path, int)} except that Path f must be for this
  2583. file system.]]>
  2584. </doc>
  2585. </method>
  2586. <method name="truncate" return="boolean"
  2587. abstract="false" native="false" synchronized="false"
  2588. static="false" final="false" visibility="public"
  2589. deprecated="not deprecated">
  2590. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2591. <param name="newLength" type="long"/>
  2592. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2593. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2594. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2595. <exception name="IOException" type="java.io.IOException"/>
  2596. <doc>
  2597. <![CDATA[The specification of this method matches that of
  2598. {@link FileContext#truncate(Path, long)} except that Path f must be for
  2599. this file system.]]>
  2600. </doc>
  2601. </method>
  2602. <method name="setReplication" return="boolean"
  2603. abstract="true" native="false" synchronized="false"
  2604. static="false" final="false" visibility="public"
  2605. deprecated="not deprecated">
  2606. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2607. <param name="replication" type="short"/>
  2608. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2609. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2610. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2611. <exception name="IOException" type="java.io.IOException"/>
  2612. <doc>
  2613. <![CDATA[The specification of this method matches that of
  2614. {@link FileContext#setReplication(Path, short)} except that Path f must be
  2615. for this file system.]]>
  2616. </doc>
  2617. </method>
  2618. <method name="rename"
  2619. abstract="false" native="false" synchronized="false"
  2620. static="false" final="true" visibility="public"
  2621. deprecated="not deprecated">
  2622. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2623. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2624. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  2625. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2626. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2627. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2628. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2629. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2630. <exception name="IOException" type="java.io.IOException"/>
  2631. <doc>
  2632. <![CDATA[The specification of this method matches that of
  2633. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2634. f must be for this file system.]]>
  2635. </doc>
  2636. </method>
  2637. <method name="renameInternal"
  2638. abstract="true" native="false" synchronized="false"
  2639. static="false" final="false" visibility="public"
  2640. deprecated="not deprecated">
  2641. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2642. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2643. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2644. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2645. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2646. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2647. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2648. <exception name="IOException" type="java.io.IOException"/>
  2649. <doc>
  2650. <![CDATA[The specification of this method matches that of
  2651. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2652. f must be for this file system and NO OVERWRITE is performed.
  2653. File systems that do not have a built in overwrite need implement only this
  2654. method and can take advantage of the default impl of the other
  2655. {@link #renameInternal(Path, Path, boolean)}]]>
  2656. </doc>
  2657. </method>
  2658. <method name="renameInternal"
  2659. abstract="false" native="false" synchronized="false"
  2660. static="false" final="false" visibility="public"
  2661. deprecated="not deprecated">
  2662. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2663. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2664. <param name="overwrite" type="boolean"/>
  2665. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2666. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2667. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2668. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2669. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2670. <exception name="IOException" type="java.io.IOException"/>
  2671. <doc>
  2672. <![CDATA[The specification of this method matches that of
  2673. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2674. f must be for this file system.]]>
  2675. </doc>
  2676. </method>
  2677. <method name="supportsSymlinks" return="boolean"
  2678. abstract="false" native="false" synchronized="false"
  2679. static="false" final="false" visibility="public"
  2680. deprecated="not deprecated">
  2681. <doc>
  2682. <![CDATA[Returns true if the file system supports symlinks, false otherwise.
  2683. @return true if filesystem supports symlinks]]>
  2684. </doc>
  2685. </method>
  2686. <method name="createSymlink"
  2687. abstract="false" native="false" synchronized="false"
  2688. static="false" final="false" visibility="public"
  2689. deprecated="not deprecated">
  2690. <param name="target" type="org.apache.hadoop.fs.Path"/>
  2691. <param name="link" type="org.apache.hadoop.fs.Path"/>
  2692. <param name="createParent" type="boolean"/>
  2693. <exception name="IOException" type="java.io.IOException"/>
  2694. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2695. <doc>
  2696. <![CDATA[The specification of this method matches that of
  2697. {@link FileContext#createSymlink(Path, Path, boolean)};]]>
  2698. </doc>
  2699. </method>
  2700. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  2701. abstract="false" native="false" synchronized="false"
  2702. static="false" final="false" visibility="public"
  2703. deprecated="not deprecated">
  2704. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2705. <exception name="IOException" type="java.io.IOException"/>
  2706. <doc>
  2707. <![CDATA[Partially resolves the path. This is used during symlink resolution in
  2708. {@link FSLinkResolver}, and differs from the similarly named method
  2709. {@link FileContext#getLinkTarget(Path)}.
  2710. @throws IOException subclass implementations may throw IOException]]>
  2711. </doc>
  2712. </method>
  2713. <method name="setPermission"
  2714. abstract="true" native="false" synchronized="false"
  2715. static="false" final="false" visibility="public"
  2716. deprecated="not deprecated">
  2717. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2718. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2719. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2720. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2721. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2722. <exception name="IOException" type="java.io.IOException"/>
  2723. <doc>
  2724. <![CDATA[The specification of this method matches that of
  2725. {@link FileContext#setPermission(Path, FsPermission)} except that Path f
  2726. must be for this file system.]]>
  2727. </doc>
  2728. </method>
  2729. <method name="setOwner"
  2730. abstract="true" native="false" synchronized="false"
  2731. static="false" final="false" visibility="public"
  2732. deprecated="not deprecated">
  2733. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2734. <param name="username" type="java.lang.String"/>
  2735. <param name="groupname" type="java.lang.String"/>
  2736. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2737. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2738. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2739. <exception name="IOException" type="java.io.IOException"/>
  2740. <doc>
  2741. <![CDATA[The specification of this method matches that of
  2742. {@link FileContext#setOwner(Path, String, String)} except that Path f must
  2743. be for this file system.]]>
  2744. </doc>
  2745. </method>
  2746. <method name="setTimes"
  2747. abstract="true" native="false" synchronized="false"
  2748. static="false" final="false" visibility="public"
  2749. deprecated="not deprecated">
  2750. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2751. <param name="mtime" type="long"/>
  2752. <param name="atime" type="long"/>
  2753. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2754. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2755. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2756. <exception name="IOException" type="java.io.IOException"/>
  2757. <doc>
  2758. <![CDATA[The specification of this method matches that of
  2759. {@link FileContext#setTimes(Path, long, long)} except that Path f must be
  2760. for this file system.]]>
  2761. </doc>
  2762. </method>
  2763. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  2764. abstract="true" native="false" synchronized="false"
  2765. static="false" final="false" visibility="public"
  2766. deprecated="not deprecated">
  2767. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2768. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2769. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2770. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2771. <exception name="IOException" type="java.io.IOException"/>
  2772. <doc>
  2773. <![CDATA[The specification of this method matches that of
  2774. {@link FileContext#getFileChecksum(Path)} except that Path f must be for
  2775. this file system.]]>
  2776. </doc>
  2777. </method>
  2778. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  2779. abstract="true" native="false" synchronized="false"
  2780. static="false" final="false" visibility="public"
  2781. deprecated="not deprecated">
  2782. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2783. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2784. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2785. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2786. <exception name="IOException" type="java.io.IOException"/>
  2787. <doc>
  2788. <![CDATA[The specification of this method matches that of
  2789. {@link FileContext#getFileStatus(Path)}
  2790. except that an UnresolvedLinkException may be thrown if a symlink is
  2791. encountered in the path.]]>
  2792. </doc>
  2793. </method>
  2794. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  2795. abstract="false" native="false" synchronized="false"
  2796. static="false" final="false" visibility="public"
  2797. deprecated="not deprecated">
  2798. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2799. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2800. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2801. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2802. <exception name="IOException" type="java.io.IOException"/>
  2803. <doc>
  2804. <![CDATA[The specification of this method matches that of
  2805. {@link FileContext#getFileLinkStatus(Path)}
  2806. except that an UnresolvedLinkException may be thrown if a symlink is
  2807. encountered in the path leading up to the final path component.
  2808. If the file system does not support symlinks then the behavior is
  2809. equivalent to {@link AbstractFileSystem#getFileStatus(Path)}.]]>
  2810. </doc>
  2811. </method>
  2812. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2813. abstract="true" native="false" synchronized="false"
  2814. static="false" final="false" visibility="public"
  2815. deprecated="not deprecated">
  2816. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2817. <param name="start" type="long"/>
  2818. <param name="len" type="long"/>
  2819. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2820. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2821. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2822. <exception name="IOException" type="java.io.IOException"/>
  2823. <doc>
  2824. <![CDATA[The specification of this method matches that of
  2825. {@link FileContext#getFileBlockLocations(Path, long, long)} except that
  2826. Path f must be for this file system.]]>
  2827. </doc>
  2828. </method>
  2829. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2830. abstract="false" native="false" synchronized="false"
  2831. static="false" final="false" visibility="public"
  2832. deprecated="not deprecated">
  2833. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2834. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2835. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2836. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2837. <exception name="IOException" type="java.io.IOException"/>
  2838. <doc>
  2839. <![CDATA[The specification of this method matches that of
  2840. {@link FileContext#getFsStatus(Path)} except that Path f must be for this
  2841. file system.]]>
  2842. </doc>
  2843. </method>
  2844. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2845. abstract="true" native="false" synchronized="false"
  2846. static="false" final="false" visibility="public"
  2847. deprecated="not deprecated">
  2848. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2849. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2850. <exception name="IOException" type="java.io.IOException"/>
  2851. <doc>
  2852. <![CDATA[The specification of this method matches that of
  2853. {@link FileContext#getFsStatus(Path)}.]]>
  2854. </doc>
  2855. </method>
  2856. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  2857. abstract="false" native="false" synchronized="false"
  2858. static="false" final="false" visibility="public"
  2859. deprecated="not deprecated">
  2860. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2861. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2862. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2863. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2864. <exception name="IOException" type="java.io.IOException"/>
  2865. <doc>
  2866. <![CDATA[The specification of this method matches that of
  2867. {@link FileContext#listStatus(Path)} except that Path f must be for this
  2868. file system.]]>
  2869. </doc>
  2870. </method>
  2871. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  2872. abstract="false" native="false" synchronized="false"
  2873. static="false" final="false" visibility="public"
  2874. deprecated="not deprecated">
  2875. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2876. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2877. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2878. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2879. <exception name="IOException" type="java.io.IOException"/>
  2880. <doc>
  2881. <![CDATA[The specification of this method matches that of
  2882. {@link FileContext#listLocatedStatus(Path)} except that Path f
  2883. must be for this file system.
  2884. In HDFS implementation, the BlockLocation of returned LocatedFileStatus
  2885. will have different formats for replicated and erasure coded file. Please
  2886. refer to {@link FileSystem#getFileBlockLocations(FileStatus, long, long)}
  2887. for more details.]]>
  2888. </doc>
  2889. </method>
  2890. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2891. abstract="true" native="false" synchronized="false"
  2892. static="false" final="false" visibility="public"
  2893. deprecated="not deprecated">
  2894. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2895. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2896. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2897. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2898. <exception name="IOException" type="java.io.IOException"/>
  2899. <doc>
  2900. <![CDATA[The specification of this method matches that of
  2901. {@link FileContext.Util#listStatus(Path)} except that Path f must be
  2902. for this file system.]]>
  2903. </doc>
  2904. </method>
  2905. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  2906. abstract="false" native="false" synchronized="false"
  2907. static="false" final="false" visibility="public"
  2908. deprecated="not deprecated">
  2909. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2910. <exception name="IOException" type="java.io.IOException"/>
  2911. <doc>
  2912. <![CDATA[@return an iterator over the corrupt files under the given path
  2913. (may contain duplicates if a file has more than one corrupt block)
  2914. @throws IOException]]>
  2915. </doc>
  2916. </method>
  2917. <method name="setVerifyChecksum"
  2918. abstract="true" native="false" synchronized="false"
  2919. static="false" final="false" visibility="public"
  2920. deprecated="not deprecated">
  2921. <param name="verifyChecksum" type="boolean"/>
  2922. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2923. <exception name="IOException" type="java.io.IOException"/>
  2924. <doc>
  2925. <![CDATA[The specification of this method matches that of
  2926. {@link FileContext#setVerifyChecksum(boolean, Path)} except that Path f
  2927. must be for this file system.]]>
  2928. </doc>
  2929. </method>
  2930. <method name="getCanonicalServiceName" return="java.lang.String"
  2931. abstract="false" native="false" synchronized="false"
  2932. static="false" final="false" visibility="public"
  2933. deprecated="not deprecated">
  2934. <doc>
  2935. <![CDATA[Get a canonical name for this file system.
  2936. @return a URI string that uniquely identifies this file system]]>
  2937. </doc>
  2938. </method>
  2939. <method name="modifyAclEntries"
  2940. abstract="false" native="false" synchronized="false"
  2941. static="false" final="false" visibility="public"
  2942. deprecated="not deprecated">
  2943. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2944. <param name="aclSpec" type="java.util.List"/>
  2945. <exception name="IOException" type="java.io.IOException"/>
  2946. <doc>
  2947. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  2948. entries or modify the permissions on existing ACL entries. All existing
  2949. ACL entries that are not specified in this call are retained without
  2950. changes. (Modifications are merged into the current ACL.)
  2951. @param path Path to modify
  2952. @param aclSpec List<AclEntry> describing modifications
  2953. @throws IOException if an ACL could not be modified]]>
  2954. </doc>
  2955. </method>
  2956. <method name="removeAclEntries"
  2957. abstract="false" native="false" synchronized="false"
  2958. static="false" final="false" visibility="public"
  2959. deprecated="not deprecated">
  2960. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2961. <param name="aclSpec" type="java.util.List"/>
  2962. <exception name="IOException" type="java.io.IOException"/>
  2963. <doc>
  2964. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  2965. retained.
  2966. @param path Path to modify
  2967. @param aclSpec List<AclEntry> describing entries to remove
  2968. @throws IOException if an ACL could not be modified]]>
  2969. </doc>
  2970. </method>
  2971. <method name="removeDefaultAcl"
  2972. abstract="false" native="false" synchronized="false"
  2973. static="false" final="false" visibility="public"
  2974. deprecated="not deprecated">
  2975. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2976. <exception name="IOException" type="java.io.IOException"/>
  2977. <doc>
  2978. <![CDATA[Removes all default ACL entries from files and directories.
  2979. @param path Path to modify
  2980. @throws IOException if an ACL could not be modified]]>
  2981. </doc>
  2982. </method>
  2983. <method name="removeAcl"
  2984. abstract="false" native="false" synchronized="false"
  2985. static="false" final="false" visibility="public"
  2986. deprecated="not deprecated">
  2987. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2988. <exception name="IOException" type="java.io.IOException"/>
  2989. <doc>
  2990. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  2991. for user, group, and others are retained for compatibility with permission
  2992. bits.
  2993. @param path Path to modify
  2994. @throws IOException if an ACL could not be removed]]>
  2995. </doc>
  2996. </method>
  2997. <method name="setAcl"
  2998. abstract="false" native="false" synchronized="false"
  2999. static="false" final="false" visibility="public"
  3000. deprecated="not deprecated">
  3001. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3002. <param name="aclSpec" type="java.util.List"/>
  3003. <exception name="IOException" type="java.io.IOException"/>
  3004. <doc>
  3005. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  3006. entries.
  3007. @param path Path to modify
  3008. @param aclSpec List<AclEntry> describing modifications, must include entries
  3009. for user, group, and others for compatibility with permission bits.
  3010. @throws IOException if an ACL could not be modified]]>
  3011. </doc>
  3012. </method>
  3013. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  3014. abstract="false" native="false" synchronized="false"
  3015. static="false" final="false" visibility="public"
  3016. deprecated="not deprecated">
  3017. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3018. <exception name="IOException" type="java.io.IOException"/>
  3019. <doc>
  3020. <![CDATA[Gets the ACLs of files and directories.
  3021. @param path Path to get
  3022. @return RemoteIterator<AclStatus> which returns each AclStatus
  3023. @throws IOException if an ACL could not be read]]>
  3024. </doc>
  3025. </method>
  3026. <method name="setXAttr"
  3027. abstract="false" native="false" synchronized="false"
  3028. static="false" final="false" visibility="public"
  3029. deprecated="not deprecated">
  3030. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3031. <param name="name" type="java.lang.String"/>
  3032. <param name="value" type="byte[]"/>
  3033. <exception name="IOException" type="java.io.IOException"/>
  3034. <doc>
  3035. <![CDATA[Set an xattr of a file or directory.
  3036. The name must be prefixed with the namespace followed by ".". For example,
  3037. "user.attr".
  3038. <p/>
  3039. Refer to the HDFS extended attributes user documentation for details.
  3040. @param path Path to modify
  3041. @param name xattr name.
  3042. @param value xattr value.
  3043. @throws IOException]]>
  3044. </doc>
  3045. </method>
  3046. <method name="setXAttr"
  3047. abstract="false" native="false" synchronized="false"
  3048. static="false" final="false" visibility="public"
  3049. deprecated="not deprecated">
  3050. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3051. <param name="name" type="java.lang.String"/>
  3052. <param name="value" type="byte[]"/>
  3053. <param name="flag" type="java.util.EnumSet"/>
  3054. <exception name="IOException" type="java.io.IOException"/>
  3055. <doc>
  3056. <![CDATA[Set an xattr of a file or directory.
  3057. The name must be prefixed with the namespace followed by ".". For example,
  3058. "user.attr".
  3059. <p/>
  3060. Refer to the HDFS extended attributes user documentation for details.
  3061. @param path Path to modify
  3062. @param name xattr name.
  3063. @param value xattr value.
  3064. @param flag xattr set flag
  3065. @throws IOException]]>
  3066. </doc>
  3067. </method>
  3068. <method name="getXAttr" return="byte[]"
  3069. abstract="false" native="false" synchronized="false"
  3070. static="false" final="false" visibility="public"
  3071. deprecated="not deprecated">
  3072. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3073. <param name="name" type="java.lang.String"/>
  3074. <exception name="IOException" type="java.io.IOException"/>
  3075. <doc>
  3076. <![CDATA[Get an xattr for a file or directory.
  3077. The name must be prefixed with the namespace followed by ".". For example,
  3078. "user.attr".
  3079. <p/>
  3080. Refer to the HDFS extended attributes user documentation for details.
  3081. @param path Path to get extended attribute
  3082. @param name xattr name.
  3083. @return byte[] xattr value.
  3084. @throws IOException]]>
  3085. </doc>
  3086. </method>
  3087. <method name="getXAttrs" return="java.util.Map"
  3088. abstract="false" native="false" synchronized="false"
  3089. static="false" final="false" visibility="public"
  3090. deprecated="not deprecated">
  3091. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3092. <exception name="IOException" type="java.io.IOException"/>
  3093. <doc>
  3094. <![CDATA[Get all of the xattrs for a file or directory.
  3095. Only those xattrs for which the logged-in user has permissions to view
  3096. are returned.
  3097. <p/>
  3098. Refer to the HDFS extended attributes user documentation for details.
  3099. @param path Path to get extended attributes
  3100. @return Map<String, byte[]> describing the XAttrs of the file or directory
  3101. @throws IOException]]>
  3102. </doc>
  3103. </method>
  3104. <method name="getXAttrs" return="java.util.Map"
  3105. abstract="false" native="false" synchronized="false"
  3106. static="false" final="false" visibility="public"
  3107. deprecated="not deprecated">
  3108. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3109. <param name="names" type="java.util.List"/>
  3110. <exception name="IOException" type="java.io.IOException"/>
  3111. <doc>
  3112. <![CDATA[Get all of the xattrs for a file or directory.
  3113. Only those xattrs for which the logged-in user has permissions to view
  3114. are returned.
  3115. <p/>
  3116. Refer to the HDFS extended attributes user documentation for details.
  3117. @param path Path to get extended attributes
  3118. @param names XAttr names.
  3119. @return Map<String, byte[]> describing the XAttrs of the file or directory
  3120. @throws IOException]]>
  3121. </doc>
  3122. </method>
  3123. <method name="listXAttrs" return="java.util.List"
  3124. abstract="false" native="false" synchronized="false"
  3125. static="false" final="false" visibility="public"
  3126. deprecated="not deprecated">
  3127. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3128. <exception name="IOException" type="java.io.IOException"/>
  3129. <doc>
  3130. <![CDATA[Get all of the xattr names for a file or directory.
  3131. Only the xattr names for which the logged-in user has permissions to view
  3132. are returned.
  3133. <p/>
  3134. Refer to the HDFS extended attributes user documentation for details.
  3135. @param path Path to get extended attributes
  3136. @return Map<String, byte[]> describing the XAttrs of the file or directory
  3137. @throws IOException]]>
  3138. </doc>
  3139. </method>
  3140. <method name="removeXAttr"
  3141. abstract="false" native="false" synchronized="false"
  3142. static="false" final="false" visibility="public"
  3143. deprecated="not deprecated">
  3144. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3145. <param name="name" type="java.lang.String"/>
  3146. <exception name="IOException" type="java.io.IOException"/>
  3147. <doc>
  3148. <![CDATA[Remove an xattr of a file or directory.
  3149. The name must be prefixed with the namespace followed by ".". For example,
  3150. "user.attr".
  3151. <p/>
  3152. Refer to the HDFS extended attributes user documentation for details.
  3153. @param path Path to remove extended attribute
  3154. @param name xattr name
  3155. @throws IOException]]>
  3156. </doc>
  3157. </method>
  3158. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  3159. abstract="false" native="false" synchronized="false"
  3160. static="false" final="false" visibility="public"
  3161. deprecated="not deprecated">
  3162. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3163. <param name="snapshotName" type="java.lang.String"/>
  3164. <exception name="IOException" type="java.io.IOException"/>
  3165. <doc>
  3166. <![CDATA[The specification of this method matches that of
  3167. {@link FileContext#createSnapshot(Path, String)}.]]>
  3168. </doc>
  3169. </method>
  3170. <method name="renameSnapshot"
  3171. abstract="false" native="false" synchronized="false"
  3172. static="false" final="false" visibility="public"
  3173. deprecated="not deprecated">
  3174. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3175. <param name="snapshotOldName" type="java.lang.String"/>
  3176. <param name="snapshotNewName" type="java.lang.String"/>
  3177. <exception name="IOException" type="java.io.IOException"/>
  3178. <doc>
  3179. <![CDATA[The specification of this method matches that of
  3180. {@link FileContext#renameSnapshot(Path, String, String)}.]]>
  3181. </doc>
  3182. </method>
  3183. <method name="deleteSnapshot"
  3184. abstract="false" native="false" synchronized="false"
  3185. static="false" final="false" visibility="public"
  3186. deprecated="not deprecated">
  3187. <param name="snapshotDir" type="org.apache.hadoop.fs.Path"/>
  3188. <param name="snapshotName" type="java.lang.String"/>
  3189. <exception name="IOException" type="java.io.IOException"/>
  3190. <doc>
  3191. <![CDATA[The specification of this method matches that of
  3192. {@link FileContext#deleteSnapshot(Path, String)}.]]>
  3193. </doc>
  3194. </method>
  3195. <method name="setStoragePolicy"
  3196. abstract="false" native="false" synchronized="false"
  3197. static="false" final="false" visibility="public"
  3198. deprecated="not deprecated">
  3199. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3200. <param name="policyName" type="java.lang.String"/>
  3201. <exception name="IOException" type="java.io.IOException"/>
  3202. <doc>
  3203. <![CDATA[Set the storage policy for a given file or directory.
  3204. @param path file or directory path.
  3205. @param policyName the name of the target storage policy. The list
  3206. of supported Storage policies can be retrieved
  3207. via {@link #getAllStoragePolicies}.]]>
  3208. </doc>
  3209. </method>
  3210. <method name="unsetStoragePolicy"
  3211. abstract="false" native="false" synchronized="false"
  3212. static="false" final="false" visibility="public"
  3213. deprecated="not deprecated">
  3214. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3215. <exception name="IOException" type="java.io.IOException"/>
  3216. <doc>
  3217. <![CDATA[Unset the storage policy set for a given file or directory.
  3218. @param src file or directory path.
  3219. @throws IOException]]>
  3220. </doc>
  3221. </method>
  3222. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  3223. abstract="false" native="false" synchronized="false"
  3224. static="false" final="false" visibility="public"
  3225. deprecated="not deprecated">
  3226. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3227. <exception name="IOException" type="java.io.IOException"/>
  3228. <doc>
  3229. <![CDATA[Retrieve the storage policy for a given file or directory.
  3230. @param src file or directory path.
  3231. @return storage policy for give file.
  3232. @throws IOException]]>
  3233. </doc>
  3234. </method>
  3235. <method name="getAllStoragePolicies" return="java.util.Collection"
  3236. abstract="false" native="false" synchronized="false"
  3237. static="false" final="false" visibility="public"
  3238. deprecated="not deprecated">
  3239. <exception name="IOException" type="java.io.IOException"/>
  3240. <doc>
  3241. <![CDATA[Retrieve all the storage policies supported by this file system.
  3242. @return all storage policies supported by this filesystem.
  3243. @throws IOException]]>
  3244. </doc>
  3245. </method>
  3246. <method name="hashCode" return="int"
  3247. abstract="false" native="false" synchronized="false"
  3248. static="false" final="false" visibility="public"
  3249. deprecated="not deprecated">
  3250. </method>
  3251. <method name="equals" return="boolean"
  3252. abstract="false" native="false" synchronized="false"
  3253. static="false" final="false" visibility="public"
  3254. deprecated="not deprecated">
  3255. <param name="other" type="java.lang.Object"/>
  3256. </method>
  3257. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3258. transient="false" volatile="false"
  3259. static="false" final="false" visibility="protected"
  3260. deprecated="not deprecated">
  3261. <doc>
  3262. <![CDATA[The statistics for this file system.]]>
  3263. </doc>
  3264. </field>
  3265. <doc>
  3266. <![CDATA[This class provides an interface for implementors of a Hadoop file system
  3267. (analogous to the VFS of Unix). Applications do not access this class;
  3268. instead they access files across all file systems using {@link FileContext}.
  3269. Pathnames passed to AbstractFileSystem can be fully qualified URI that
  3270. matches the "this" file system (ie same scheme and authority)
  3271. or a Slash-relative name that is assumed to be relative
  3272. to the root of the "this" file system .]]>
  3273. </doc>
  3274. </class>
  3275. <!-- end class org.apache.hadoop.fs.AbstractFileSystem -->
  3276. <!-- start class org.apache.hadoop.fs.AvroFSInput -->
  3277. <class name="AvroFSInput" extends="java.lang.Object"
  3278. abstract="false"
  3279. static="false" final="false" visibility="public"
  3280. deprecated="not deprecated">
  3281. <implements name="java.io.Closeable"/>
  3282. <implements name="org.apache.avro.file.SeekableInput"/>
  3283. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FSDataInputStream, long"
  3284. static="false" final="false" visibility="public"
  3285. deprecated="not deprecated">
  3286. <doc>
  3287. <![CDATA[Construct given an {@link FSDataInputStream} and its length.]]>
  3288. </doc>
  3289. </constructor>
  3290. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FileContext, org.apache.hadoop.fs.Path"
  3291. static="false" final="false" visibility="public"
  3292. deprecated="not deprecated">
  3293. <exception name="IOException" type="java.io.IOException"/>
  3294. <doc>
  3295. <![CDATA[Construct given a {@link FileContext} and a {@link Path}.]]>
  3296. </doc>
  3297. </constructor>
  3298. <method name="length" return="long"
  3299. abstract="false" native="false" synchronized="false"
  3300. static="false" final="false" visibility="public"
  3301. deprecated="not deprecated">
  3302. </method>
  3303. <method name="read" return="int"
  3304. abstract="false" native="false" synchronized="false"
  3305. static="false" final="false" visibility="public"
  3306. deprecated="not deprecated">
  3307. <param name="b" type="byte[]"/>
  3308. <param name="off" type="int"/>
  3309. <param name="len" type="int"/>
  3310. <exception name="IOException" type="java.io.IOException"/>
  3311. </method>
  3312. <method name="seek"
  3313. abstract="false" native="false" synchronized="false"
  3314. static="false" final="false" visibility="public"
  3315. deprecated="not deprecated">
  3316. <param name="p" type="long"/>
  3317. <exception name="IOException" type="java.io.IOException"/>
  3318. </method>
  3319. <method name="tell" return="long"
  3320. abstract="false" native="false" synchronized="false"
  3321. static="false" final="false" visibility="public"
  3322. deprecated="not deprecated">
  3323. <exception name="IOException" type="java.io.IOException"/>
  3324. </method>
  3325. <method name="close"
  3326. abstract="false" native="false" synchronized="false"
  3327. static="false" final="false" visibility="public"
  3328. deprecated="not deprecated">
  3329. <exception name="IOException" type="java.io.IOException"/>
  3330. </method>
  3331. <doc>
  3332. <![CDATA[Adapts an {@link FSDataInputStream} to Avro's SeekableInput interface.]]>
  3333. </doc>
  3334. </class>
  3335. <!-- end class org.apache.hadoop.fs.AvroFSInput -->
  3336. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  3337. <class name="BlockLocation" extends="java.lang.Object"
  3338. abstract="false"
  3339. static="false" final="false" visibility="public"
  3340. deprecated="not deprecated">
  3341. <implements name="java.io.Serializable"/>
  3342. <constructor name="BlockLocation"
  3343. static="false" final="false" visibility="public"
  3344. deprecated="not deprecated">
  3345. <doc>
  3346. <![CDATA[Default Constructor]]>
  3347. </doc>
  3348. </constructor>
  3349. <constructor name="BlockLocation" type="org.apache.hadoop.fs.BlockLocation"
  3350. static="false" final="false" visibility="public"
  3351. deprecated="not deprecated">
  3352. <doc>
  3353. <![CDATA[Copy constructor]]>
  3354. </doc>
  3355. </constructor>
  3356. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  3357. static="false" final="false" visibility="public"
  3358. deprecated="not deprecated">
  3359. <doc>
  3360. <![CDATA[Constructor with host, name, offset and length]]>
  3361. </doc>
  3362. </constructor>
  3363. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long, boolean"
  3364. static="false" final="false" visibility="public"
  3365. deprecated="not deprecated">
  3366. <doc>
  3367. <![CDATA[Constructor with host, name, offset, length and corrupt flag]]>
  3368. </doc>
  3369. </constructor>
  3370. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  3371. static="false" final="false" visibility="public"
  3372. deprecated="not deprecated">
  3373. <doc>
  3374. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  3375. </doc>
  3376. </constructor>
  3377. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3378. static="false" final="false" visibility="public"
  3379. deprecated="not deprecated">
  3380. <doc>
  3381. <![CDATA[Constructor with host, name, network topology, offset, length
  3382. and corrupt flag]]>
  3383. </doc>
  3384. </constructor>
  3385. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3386. static="false" final="false" visibility="public"
  3387. deprecated="not deprecated">
  3388. </constructor>
  3389. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], org.apache.hadoop.fs.StorageType[], long, long, boolean"
  3390. static="false" final="false" visibility="public"
  3391. deprecated="not deprecated">
  3392. </constructor>
  3393. <method name="getHosts" return="java.lang.String[]"
  3394. abstract="false" native="false" synchronized="false"
  3395. static="false" final="false" visibility="public"
  3396. deprecated="not deprecated">
  3397. <exception name="IOException" type="java.io.IOException"/>
  3398. <doc>
  3399. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  3400. </doc>
  3401. </method>
  3402. <method name="getCachedHosts" return="java.lang.String[]"
  3403. abstract="false" native="false" synchronized="false"
  3404. static="false" final="false" visibility="public"
  3405. deprecated="not deprecated">
  3406. <doc>
  3407. <![CDATA[Get the list of hosts (hostname) hosting a cached replica of the block]]>
  3408. </doc>
  3409. </method>
  3410. <method name="getNames" return="java.lang.String[]"
  3411. abstract="false" native="false" synchronized="false"
  3412. static="false" final="false" visibility="public"
  3413. deprecated="not deprecated">
  3414. <exception name="IOException" type="java.io.IOException"/>
  3415. <doc>
  3416. <![CDATA[Get the list of names (IP:xferPort) hosting this block]]>
  3417. </doc>
  3418. </method>
  3419. <method name="getTopologyPaths" return="java.lang.String[]"
  3420. abstract="false" native="false" synchronized="false"
  3421. static="false" final="false" visibility="public"
  3422. deprecated="not deprecated">
  3423. <exception name="IOException" type="java.io.IOException"/>
  3424. <doc>
  3425. <![CDATA[Get the list of network topology paths for each of the hosts.
  3426. The last component of the path is the "name" (IP:xferPort).]]>
  3427. </doc>
  3428. </method>
  3429. <method name="getStorageIds" return="java.lang.String[]"
  3430. abstract="false" native="false" synchronized="false"
  3431. static="false" final="false" visibility="public"
  3432. deprecated="not deprecated">
  3433. <doc>
  3434. <![CDATA[Get the storageID of each replica of the block.]]>
  3435. </doc>
  3436. </method>
  3437. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3438. abstract="false" native="false" synchronized="false"
  3439. static="false" final="false" visibility="public"
  3440. deprecated="not deprecated">
  3441. <doc>
  3442. <![CDATA[Get the storage type of each replica of the block.]]>
  3443. </doc>
  3444. </method>
  3445. <method name="getOffset" return="long"
  3446. abstract="false" native="false" synchronized="false"
  3447. static="false" final="false" visibility="public"
  3448. deprecated="not deprecated">
  3449. <doc>
  3450. <![CDATA[Get the start offset of file associated with this block]]>
  3451. </doc>
  3452. </method>
  3453. <method name="getLength" return="long"
  3454. abstract="false" native="false" synchronized="false"
  3455. static="false" final="false" visibility="public"
  3456. deprecated="not deprecated">
  3457. <doc>
  3458. <![CDATA[Get the length of the block]]>
  3459. </doc>
  3460. </method>
  3461. <method name="isCorrupt" return="boolean"
  3462. abstract="false" native="false" synchronized="false"
  3463. static="false" final="false" visibility="public"
  3464. deprecated="not deprecated">
  3465. <doc>
  3466. <![CDATA[Get the corrupt flag.]]>
  3467. </doc>
  3468. </method>
  3469. <method name="setOffset"
  3470. abstract="false" native="false" synchronized="false"
  3471. static="false" final="false" visibility="public"
  3472. deprecated="not deprecated">
  3473. <param name="offset" type="long"/>
  3474. <doc>
  3475. <![CDATA[Set the start offset of file associated with this block]]>
  3476. </doc>
  3477. </method>
  3478. <method name="setLength"
  3479. abstract="false" native="false" synchronized="false"
  3480. static="false" final="false" visibility="public"
  3481. deprecated="not deprecated">
  3482. <param name="length" type="long"/>
  3483. <doc>
  3484. <![CDATA[Set the length of block]]>
  3485. </doc>
  3486. </method>
  3487. <method name="setCorrupt"
  3488. abstract="false" native="false" synchronized="false"
  3489. static="false" final="false" visibility="public"
  3490. deprecated="not deprecated">
  3491. <param name="corrupt" type="boolean"/>
  3492. <doc>
  3493. <![CDATA[Set the corrupt flag.]]>
  3494. </doc>
  3495. </method>
  3496. <method name="setHosts"
  3497. abstract="false" native="false" synchronized="false"
  3498. static="false" final="false" visibility="public"
  3499. deprecated="not deprecated">
  3500. <param name="hosts" type="java.lang.String[]"/>
  3501. <exception name="IOException" type="java.io.IOException"/>
  3502. <doc>
  3503. <![CDATA[Set the hosts hosting this block]]>
  3504. </doc>
  3505. </method>
  3506. <method name="setCachedHosts"
  3507. abstract="false" native="false" synchronized="false"
  3508. static="false" final="false" visibility="public"
  3509. deprecated="not deprecated">
  3510. <param name="cachedHosts" type="java.lang.String[]"/>
  3511. <doc>
  3512. <![CDATA[Set the hosts hosting a cached replica of this block]]>
  3513. </doc>
  3514. </method>
  3515. <method name="setNames"
  3516. abstract="false" native="false" synchronized="false"
  3517. static="false" final="false" visibility="public"
  3518. deprecated="not deprecated">
  3519. <param name="names" type="java.lang.String[]"/>
  3520. <exception name="IOException" type="java.io.IOException"/>
  3521. <doc>
  3522. <![CDATA[Set the names (host:port) hosting this block]]>
  3523. </doc>
  3524. </method>
  3525. <method name="setTopologyPaths"
  3526. abstract="false" native="false" synchronized="false"
  3527. static="false" final="false" visibility="public"
  3528. deprecated="not deprecated">
  3529. <param name="topologyPaths" type="java.lang.String[]"/>
  3530. <exception name="IOException" type="java.io.IOException"/>
  3531. <doc>
  3532. <![CDATA[Set the network topology paths of the hosts]]>
  3533. </doc>
  3534. </method>
  3535. <method name="setStorageIds"
  3536. abstract="false" native="false" synchronized="false"
  3537. static="false" final="false" visibility="public"
  3538. deprecated="not deprecated">
  3539. <param name="storageIds" type="java.lang.String[]"/>
  3540. </method>
  3541. <method name="setStorageTypes"
  3542. abstract="false" native="false" synchronized="false"
  3543. static="false" final="false" visibility="public"
  3544. deprecated="not deprecated">
  3545. <param name="storageTypes" type="org.apache.hadoop.fs.StorageType[]"/>
  3546. </method>
  3547. <method name="toString" return="java.lang.String"
  3548. abstract="false" native="false" synchronized="false"
  3549. static="false" final="false" visibility="public"
  3550. deprecated="not deprecated">
  3551. </method>
  3552. <doc>
  3553. <![CDATA[Represents the network location of a block, information about the hosts
  3554. that contain block replicas, and other block metadata (E.g. the file
  3555. offset associated with the block, length, whether it is corrupt, etc).
  3556. For a single BlockLocation, it will have different meanings for replicated
  3557. and erasure coded files.
  3558. If the file is 3-replicated, offset and length of a BlockLocation represent
  3559. the absolute value in the file and the hosts are the 3 datanodes that
  3560. holding the replicas. Here is an example:
  3561. <pre>
  3562. BlockLocation(offset: 0, length: BLOCK_SIZE,
  3563. hosts: {"host1:9866", "host2:9866, host3:9866"})
  3564. </pre>
  3565. And if the file is erasure-coded, each BlockLocation represents a logical
  3566. block groups. Value offset is the offset of a block group in the file and
  3567. value length is the total length of a block group. Hosts of a BlockLocation
  3568. are the datanodes that holding all the data blocks and parity blocks of a
  3569. block group.
  3570. Suppose we have a RS_3_2 coded file (3 data units and 2 parity units).
  3571. A BlockLocation example will be like:
  3572. <pre>
  3573. BlockLocation(offset: 0, length: 3 * BLOCK_SIZE, hosts: {"host1:9866",
  3574. "host2:9866","host3:9866","host4:9866","host5:9866"})
  3575. </pre>
  3576. Please refer to
  3577. {@link FileSystem#getFileBlockLocations(FileStatus, long, long)} or
  3578. {@link FileContext#getFileBlockLocations(Path, long, long)}
  3579. for more examples.]]>
  3580. </doc>
  3581. </class>
  3582. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  3583. <!-- start interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  3584. <interface name="BlockStoragePolicySpi" abstract="true"
  3585. static="false" final="false" visibility="public"
  3586. deprecated="not deprecated">
  3587. <method name="getName" return="java.lang.String"
  3588. abstract="true" native="false" synchronized="false"
  3589. static="false" final="false" visibility="public"
  3590. deprecated="not deprecated">
  3591. <doc>
  3592. <![CDATA[Return the name of the storage policy. Policies are uniquely
  3593. identified by name.
  3594. @return the name of the storage policy.]]>
  3595. </doc>
  3596. </method>
  3597. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3598. abstract="true" native="false" synchronized="false"
  3599. static="false" final="false" visibility="public"
  3600. deprecated="not deprecated">
  3601. <doc>
  3602. <![CDATA[Return the preferred storage types associated with this policy. These
  3603. storage types are used sequentially for successive block replicas.
  3604. @return preferred storage types used for placing block replicas.]]>
  3605. </doc>
  3606. </method>
  3607. <method name="getCreationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  3608. abstract="true" native="false" synchronized="false"
  3609. static="false" final="false" visibility="public"
  3610. deprecated="not deprecated">
  3611. <doc>
  3612. <![CDATA[Get the fallback storage types for creating new block replicas. Fallback
  3613. storage types are used if the preferred storage types are not available.
  3614. @return fallback storage types for new block replicas..]]>
  3615. </doc>
  3616. </method>
  3617. <method name="getReplicationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  3618. abstract="true" native="false" synchronized="false"
  3619. static="false" final="false" visibility="public"
  3620. deprecated="not deprecated">
  3621. <doc>
  3622. <![CDATA[Get the fallback storage types for replicating existing block replicas.
  3623. Fallback storage types are used if the preferred storage types are not
  3624. available.
  3625. @return fallback storage types for replicating existing block replicas.]]>
  3626. </doc>
  3627. </method>
  3628. <method name="isCopyOnCreateFile" return="boolean"
  3629. abstract="true" native="false" synchronized="false"
  3630. static="false" final="false" visibility="public"
  3631. deprecated="not deprecated">
  3632. <doc>
  3633. <![CDATA[Returns true if the policy is inherit-only and cannot be changed for
  3634. an existing file.
  3635. @return true if the policy is inherit-only.]]>
  3636. </doc>
  3637. </method>
  3638. <doc>
  3639. <![CDATA[A storage policy specifies the placement of block replicas on specific
  3640. storage types.]]>
  3641. </doc>
  3642. </interface>
  3643. <!-- end interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  3644. <!-- start interface org.apache.hadoop.fs.ByteBufferReadable -->
  3645. <interface name="ByteBufferReadable" abstract="true"
  3646. static="false" final="false" visibility="public"
  3647. deprecated="not deprecated">
  3648. <method name="read" return="int"
  3649. abstract="true" native="false" synchronized="false"
  3650. static="false" final="false" visibility="public"
  3651. deprecated="not deprecated">
  3652. <param name="buf" type="java.nio.ByteBuffer"/>
  3653. <exception name="IOException" type="java.io.IOException"/>
  3654. <doc>
  3655. <![CDATA[Reads up to buf.remaining() bytes into buf. Callers should use
  3656. buf.limit(..) to control the size of the desired read.
  3657. <p/>
  3658. After a successful call, buf.position() will be advanced by the number
  3659. of bytes read and buf.limit() should be unchanged.
  3660. <p/>
  3661. In the case of an exception, the values of buf.position() and buf.limit()
  3662. are undefined, and callers should be prepared to recover from this
  3663. eventuality.
  3664. <p/>
  3665. Many implementations will throw {@link UnsupportedOperationException}, so
  3666. callers that are not confident in support for this method from the
  3667. underlying filesystem should be prepared to handle that exception.
  3668. <p/>
  3669. Implementations should treat 0-length requests as legitimate, and must not
  3670. signal an error upon their receipt.
  3671. @param buf
  3672. the ByteBuffer to receive the results of the read operation.
  3673. @return the number of bytes read, possibly zero, or -1 if
  3674. reach end-of-stream
  3675. @throws IOException
  3676. if there is some error performing the read]]>
  3677. </doc>
  3678. </method>
  3679. <doc>
  3680. <![CDATA[Implementers of this interface provide a read API that writes to a
  3681. ByteBuffer, not a byte[].]]>
  3682. </doc>
  3683. </interface>
  3684. <!-- end interface org.apache.hadoop.fs.ByteBufferReadable -->
  3685. <!-- start interface org.apache.hadoop.fs.CanSetDropBehind -->
  3686. <interface name="CanSetDropBehind" abstract="true"
  3687. static="false" final="false" visibility="public"
  3688. deprecated="not deprecated">
  3689. <method name="setDropBehind"
  3690. abstract="true" native="false" synchronized="false"
  3691. static="false" final="false" visibility="public"
  3692. deprecated="not deprecated">
  3693. <param name="dropCache" type="java.lang.Boolean"/>
  3694. <exception name="IOException" type="java.io.IOException"/>
  3695. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3696. <doc>
  3697. <![CDATA[Configure whether the stream should drop the cache.
  3698. @param dropCache Whether to drop the cache. null means to use the
  3699. default value.
  3700. @throws IOException If there was an error changing the dropBehind
  3701. setting.
  3702. UnsupportedOperationException If this stream doesn't support
  3703. setting the drop-behind.]]>
  3704. </doc>
  3705. </method>
  3706. </interface>
  3707. <!-- end interface org.apache.hadoop.fs.CanSetDropBehind -->
  3708. <!-- start interface org.apache.hadoop.fs.CanSetReadahead -->
  3709. <interface name="CanSetReadahead" abstract="true"
  3710. static="false" final="false" visibility="public"
  3711. deprecated="not deprecated">
  3712. <method name="setReadahead"
  3713. abstract="true" native="false" synchronized="false"
  3714. static="false" final="false" visibility="public"
  3715. deprecated="not deprecated">
  3716. <param name="readahead" type="java.lang.Long"/>
  3717. <exception name="IOException" type="java.io.IOException"/>
  3718. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3719. <doc>
  3720. <![CDATA[Set the readahead on this stream.
  3721. @param readahead The readahead to use. null means to use the default.
  3722. @throws IOException If there was an error changing the dropBehind
  3723. setting.
  3724. UnsupportedOperationException If this stream doesn't support
  3725. setting readahead.]]>
  3726. </doc>
  3727. </method>
  3728. </interface>
  3729. <!-- end interface org.apache.hadoop.fs.CanSetReadahead -->
  3730. <!-- start interface org.apache.hadoop.fs.CanUnbuffer -->
  3731. <interface name="CanUnbuffer" abstract="true"
  3732. static="false" final="false" visibility="public"
  3733. deprecated="not deprecated">
  3734. <method name="unbuffer"
  3735. abstract="true" native="false" synchronized="false"
  3736. static="false" final="false" visibility="public"
  3737. deprecated="not deprecated">
  3738. <doc>
  3739. <![CDATA[Reduce the buffering. This will also free sockets and file descriptors
  3740. held by the stream, if possible.]]>
  3741. </doc>
  3742. </method>
  3743. <doc>
  3744. <![CDATA[FSDataInputStreams implement this interface to indicate that they can clear
  3745. their buffers on request.]]>
  3746. </doc>
  3747. </interface>
  3748. <!-- end interface org.apache.hadoop.fs.CanUnbuffer -->
  3749. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  3750. <class name="ChecksumException" extends="java.io.IOException"
  3751. abstract="false"
  3752. static="false" final="false" visibility="public"
  3753. deprecated="not deprecated">
  3754. <constructor name="ChecksumException" type="java.lang.String, long"
  3755. static="false" final="false" visibility="public"
  3756. deprecated="not deprecated">
  3757. </constructor>
  3758. <method name="getPos" return="long"
  3759. abstract="false" native="false" synchronized="false"
  3760. static="false" final="false" visibility="public"
  3761. deprecated="not deprecated">
  3762. </method>
  3763. <doc>
  3764. <![CDATA[Thrown for checksum errors.]]>
  3765. </doc>
  3766. </class>
  3767. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  3768. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  3769. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  3770. abstract="true"
  3771. static="false" final="false" visibility="public"
  3772. deprecated="not deprecated">
  3773. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  3774. static="false" final="false" visibility="public"
  3775. deprecated="not deprecated">
  3776. </constructor>
  3777. <method name="getApproxChkSumLength" return="double"
  3778. abstract="false" native="false" synchronized="false"
  3779. static="true" final="false" visibility="public"
  3780. deprecated="not deprecated">
  3781. <param name="size" type="long"/>
  3782. </method>
  3783. <method name="setConf"
  3784. abstract="false" native="false" synchronized="false"
  3785. static="false" final="false" visibility="public"
  3786. deprecated="not deprecated">
  3787. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3788. </method>
  3789. <method name="setVerifyChecksum"
  3790. abstract="false" native="false" synchronized="false"
  3791. static="false" final="false" visibility="public"
  3792. deprecated="not deprecated">
  3793. <param name="verifyChecksum" type="boolean"/>
  3794. <doc>
  3795. <![CDATA[Set whether to verify checksum.]]>
  3796. </doc>
  3797. </method>
  3798. <method name="setWriteChecksum"
  3799. abstract="false" native="false" synchronized="false"
  3800. static="false" final="false" visibility="public"
  3801. deprecated="not deprecated">
  3802. <param name="writeChecksum" type="boolean"/>
  3803. </method>
  3804. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  3805. abstract="false" native="false" synchronized="false"
  3806. static="false" final="false" visibility="public"
  3807. deprecated="not deprecated">
  3808. <doc>
  3809. <![CDATA[get the raw file system]]>
  3810. </doc>
  3811. </method>
  3812. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  3813. abstract="false" native="false" synchronized="false"
  3814. static="false" final="false" visibility="public"
  3815. deprecated="not deprecated">
  3816. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3817. <doc>
  3818. <![CDATA[Return the name of the checksum file associated with a file.]]>
  3819. </doc>
  3820. </method>
  3821. <method name="isChecksumFile" return="boolean"
  3822. abstract="false" native="false" synchronized="false"
  3823. static="true" final="false" visibility="public"
  3824. deprecated="not deprecated">
  3825. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3826. <doc>
  3827. <![CDATA[Return true iff file is a checksum file name.]]>
  3828. </doc>
  3829. </method>
  3830. <method name="getChecksumFileLength" return="long"
  3831. abstract="false" native="false" synchronized="false"
  3832. static="false" final="false" visibility="public"
  3833. deprecated="not deprecated">
  3834. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3835. <param name="fileSize" type="long"/>
  3836. <doc>
  3837. <![CDATA[Return the length of the checksum file given the size of the
  3838. actual file.]]>
  3839. </doc>
  3840. </method>
  3841. <method name="getBytesPerSum" return="int"
  3842. abstract="false" native="false" synchronized="false"
  3843. static="false" final="false" visibility="public"
  3844. deprecated="not deprecated">
  3845. <doc>
  3846. <![CDATA[Return the bytes Per Checksum]]>
  3847. </doc>
  3848. </method>
  3849. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3850. abstract="false" native="false" synchronized="false"
  3851. static="false" final="false" visibility="public"
  3852. deprecated="not deprecated">
  3853. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3854. <param name="bufferSize" type="int"/>
  3855. <exception name="IOException" type="java.io.IOException"/>
  3856. <doc>
  3857. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  3858. @param f the file name to open
  3859. @param bufferSize the size of the buffer to be used.]]>
  3860. </doc>
  3861. </method>
  3862. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  3863. abstract="false" native="false" synchronized="false"
  3864. static="false" final="false" visibility="public"
  3865. deprecated="not deprecated">
  3866. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3867. <param name="bufferSize" type="int"/>
  3868. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3869. <exception name="IOException" type="java.io.IOException"/>
  3870. </method>
  3871. <method name="truncate" return="boolean"
  3872. abstract="false" native="false" synchronized="false"
  3873. static="false" final="false" visibility="public"
  3874. deprecated="not deprecated">
  3875. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3876. <param name="newLength" type="long"/>
  3877. <exception name="IOException" type="java.io.IOException"/>
  3878. </method>
  3879. <method name="getChecksumLength" return="long"
  3880. abstract="false" native="false" synchronized="false"
  3881. static="true" final="false" visibility="public"
  3882. deprecated="not deprecated">
  3883. <param name="size" type="long"/>
  3884. <param name="bytesPerSum" type="int"/>
  3885. <doc>
  3886. <![CDATA[Calculated the length of the checksum file in bytes.
  3887. @param size the length of the data file in bytes
  3888. @param bytesPerSum the number of bytes in a checksum block
  3889. @return the number of bytes in the checksum file]]>
  3890. </doc>
  3891. </method>
  3892. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  3893. abstract="false" native="false" synchronized="false"
  3894. static="false" final="false" visibility="public"
  3895. deprecated="not deprecated">
  3896. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3897. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3898. <param name="overwrite" type="boolean"/>
  3899. <param name="bufferSize" type="int"/>
  3900. <param name="replication" type="short"/>
  3901. <param name="blockSize" type="long"/>
  3902. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3903. <exception name="IOException" type="java.io.IOException"/>
  3904. </method>
  3905. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  3906. abstract="false" native="false" synchronized="false"
  3907. static="false" final="false" visibility="public"
  3908. deprecated="not deprecated">
  3909. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3910. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3911. <param name="overwrite" type="boolean"/>
  3912. <param name="bufferSize" type="int"/>
  3913. <param name="replication" type="short"/>
  3914. <param name="blockSize" type="long"/>
  3915. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3916. <exception name="IOException" type="java.io.IOException"/>
  3917. </method>
  3918. <method name="setPermission"
  3919. abstract="false" native="false" synchronized="false"
  3920. static="false" final="false" visibility="public"
  3921. deprecated="not deprecated">
  3922. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3923. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3924. <exception name="IOException" type="java.io.IOException"/>
  3925. </method>
  3926. <method name="setOwner"
  3927. abstract="false" native="false" synchronized="false"
  3928. static="false" final="false" visibility="public"
  3929. deprecated="not deprecated">
  3930. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3931. <param name="username" type="java.lang.String"/>
  3932. <param name="groupname" type="java.lang.String"/>
  3933. <exception name="IOException" type="java.io.IOException"/>
  3934. </method>
  3935. <method name="setAcl"
  3936. abstract="false" native="false" synchronized="false"
  3937. static="false" final="false" visibility="public"
  3938. deprecated="not deprecated">
  3939. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3940. <param name="aclSpec" type="java.util.List"/>
  3941. <exception name="IOException" type="java.io.IOException"/>
  3942. </method>
  3943. <method name="modifyAclEntries"
  3944. abstract="false" native="false" synchronized="false"
  3945. static="false" final="false" visibility="public"
  3946. deprecated="not deprecated">
  3947. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3948. <param name="aclSpec" type="java.util.List"/>
  3949. <exception name="IOException" type="java.io.IOException"/>
  3950. </method>
  3951. <method name="removeAcl"
  3952. abstract="false" native="false" synchronized="false"
  3953. static="false" final="false" visibility="public"
  3954. deprecated="not deprecated">
  3955. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3956. <exception name="IOException" type="java.io.IOException"/>
  3957. </method>
  3958. <method name="removeAclEntries"
  3959. abstract="false" native="false" synchronized="false"
  3960. static="false" final="false" visibility="public"
  3961. deprecated="not deprecated">
  3962. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3963. <param name="aclSpec" type="java.util.List"/>
  3964. <exception name="IOException" type="java.io.IOException"/>
  3965. </method>
  3966. <method name="removeDefaultAcl"
  3967. abstract="false" native="false" synchronized="false"
  3968. static="false" final="false" visibility="public"
  3969. deprecated="not deprecated">
  3970. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3971. <exception name="IOException" type="java.io.IOException"/>
  3972. </method>
  3973. <method name="setReplication" return="boolean"
  3974. abstract="false" native="false" synchronized="false"
  3975. static="false" final="false" visibility="public"
  3976. deprecated="not deprecated">
  3977. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3978. <param name="replication" type="short"/>
  3979. <exception name="IOException" type="java.io.IOException"/>
  3980. <doc>
  3981. <![CDATA[Set replication for an existing file.
  3982. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  3983. @param src file name
  3984. @param replication new replication
  3985. @throws IOException
  3986. @return true if successful;
  3987. false if file does not exist or is a directory]]>
  3988. </doc>
  3989. </method>
  3990. <method name="rename" return="boolean"
  3991. abstract="false" native="false" synchronized="false"
  3992. static="false" final="false" visibility="public"
  3993. deprecated="not deprecated">
  3994. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3995. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3996. <exception name="IOException" type="java.io.IOException"/>
  3997. <doc>
  3998. <![CDATA[Rename files/dirs]]>
  3999. </doc>
  4000. </method>
  4001. <method name="delete" return="boolean"
  4002. abstract="false" native="false" synchronized="false"
  4003. static="false" final="false" visibility="public"
  4004. deprecated="not deprecated">
  4005. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4006. <param name="recursive" type="boolean"/>
  4007. <exception name="IOException" type="java.io.IOException"/>
  4008. <doc>
  4009. <![CDATA[Implement the delete(Path, boolean) in checksum
  4010. file system.]]>
  4011. </doc>
  4012. </method>
  4013. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4014. abstract="false" native="false" synchronized="false"
  4015. static="false" final="false" visibility="public"
  4016. deprecated="not deprecated">
  4017. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4018. <exception name="IOException" type="java.io.IOException"/>
  4019. <doc>
  4020. <![CDATA[List the statuses of the files/directories in the given path if the path is
  4021. a directory.
  4022. @param f
  4023. given path
  4024. @return the statuses of the files/directories in the given path
  4025. @throws IOException]]>
  4026. </doc>
  4027. </method>
  4028. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  4029. abstract="false" native="false" synchronized="false"
  4030. static="false" final="false" visibility="public"
  4031. deprecated="not deprecated">
  4032. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4033. <exception name="IOException" type="java.io.IOException"/>
  4034. <doc>
  4035. <![CDATA[List the statuses of the files/directories in the given path if the path is
  4036. a directory.
  4037. @param f
  4038. given path
  4039. @return the statuses of the files/directories in the given patch
  4040. @throws IOException]]>
  4041. </doc>
  4042. </method>
  4043. <method name="mkdirs" return="boolean"
  4044. abstract="false" native="false" synchronized="false"
  4045. static="false" final="false" visibility="public"
  4046. deprecated="not deprecated">
  4047. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4048. <exception name="IOException" type="java.io.IOException"/>
  4049. </method>
  4050. <method name="copyFromLocalFile"
  4051. abstract="false" native="false" synchronized="false"
  4052. static="false" final="false" visibility="public"
  4053. deprecated="not deprecated">
  4054. <param name="delSrc" type="boolean"/>
  4055. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4056. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4057. <exception name="IOException" type="java.io.IOException"/>
  4058. </method>
  4059. <method name="copyToLocalFile"
  4060. abstract="false" native="false" synchronized="false"
  4061. static="false" final="false" visibility="public"
  4062. deprecated="not deprecated">
  4063. <param name="delSrc" type="boolean"/>
  4064. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4065. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4066. <exception name="IOException" type="java.io.IOException"/>
  4067. <doc>
  4068. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4069. Copy it from FS control to the local dst name.]]>
  4070. </doc>
  4071. </method>
  4072. <method name="copyToLocalFile"
  4073. abstract="false" native="false" synchronized="false"
  4074. static="false" final="false" visibility="public"
  4075. deprecated="not deprecated">
  4076. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4077. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4078. <param name="copyCrc" type="boolean"/>
  4079. <exception name="IOException" type="java.io.IOException"/>
  4080. <doc>
  4081. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4082. Copy it from FS control to the local dst name.
  4083. If src and dst are directories, the copyCrc parameter
  4084. determines whether to copy CRC files.]]>
  4085. </doc>
  4086. </method>
  4087. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4088. abstract="false" native="false" synchronized="false"
  4089. static="false" final="false" visibility="public"
  4090. deprecated="not deprecated">
  4091. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4092. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4093. <exception name="IOException" type="java.io.IOException"/>
  4094. </method>
  4095. <method name="completeLocalOutput"
  4096. abstract="false" native="false" synchronized="false"
  4097. static="false" final="false" visibility="public"
  4098. deprecated="not deprecated">
  4099. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4100. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4101. <exception name="IOException" type="java.io.IOException"/>
  4102. </method>
  4103. <method name="reportChecksumFailure" return="boolean"
  4104. abstract="false" native="false" synchronized="false"
  4105. static="false" final="false" visibility="public"
  4106. deprecated="not deprecated">
  4107. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4108. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  4109. <param name="inPos" type="long"/>
  4110. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  4111. <param name="sumsPos" type="long"/>
  4112. <doc>
  4113. <![CDATA[Report a checksum error to the file system.
  4114. @param f the file name containing the error
  4115. @param in the stream open on the file
  4116. @param inPos the position of the beginning of the bad data in the file
  4117. @param sums the stream open on the checksum file
  4118. @param sumsPos the position of the beginning of the bad data in the checksum file
  4119. @return if retry is necessary]]>
  4120. </doc>
  4121. </method>
  4122. <doc>
  4123. <![CDATA[Abstract Checksumed FileSystem.
  4124. It provide a basic implementation of a Checksumed FileSystem,
  4125. which creates a checksum file for each raw file.
  4126. It generates & verifies checksums at the client side.]]>
  4127. </doc>
  4128. </class>
  4129. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  4130. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  4131. <class name="CommonConfigurationKeysPublic" extends="java.lang.Object"
  4132. abstract="false"
  4133. static="false" final="false" visibility="public"
  4134. deprecated="not deprecated">
  4135. <constructor name="CommonConfigurationKeysPublic"
  4136. static="false" final="false" visibility="public"
  4137. deprecated="not deprecated">
  4138. </constructor>
  4139. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY" type="java.lang.String"
  4140. transient="false" volatile="false"
  4141. static="true" final="true" visibility="public"
  4142. deprecated="not deprecated">
  4143. <doc>
  4144. <![CDATA[@see
  4145. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4146. core-default.xml</a>]]>
  4147. </doc>
  4148. </field>
  4149. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_DEFAULT" type="int"
  4150. transient="false" volatile="false"
  4151. static="true" final="true" visibility="public"
  4152. deprecated="not deprecated">
  4153. <doc>
  4154. <![CDATA[Default value for NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY]]>
  4155. </doc>
  4156. </field>
  4157. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  4158. transient="false" volatile="false"
  4159. static="true" final="true" visibility="public"
  4160. deprecated="not deprecated">
  4161. <doc>
  4162. <![CDATA[@see
  4163. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4164. core-default.xml</a>]]>
  4165. </doc>
  4166. </field>
  4167. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  4168. transient="false" volatile="false"
  4169. static="true" final="true" visibility="public"
  4170. deprecated="not deprecated">
  4171. <doc>
  4172. <![CDATA[Default value for FS_DEFAULT_NAME_KEY]]>
  4173. </doc>
  4174. </field>
  4175. <field name="FS_DF_INTERVAL_KEY" type="java.lang.String"
  4176. transient="false" volatile="false"
  4177. static="true" final="true" visibility="public"
  4178. deprecated="not deprecated">
  4179. <doc>
  4180. <![CDATA[@see
  4181. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4182. core-default.xml</a>]]>
  4183. </doc>
  4184. </field>
  4185. <field name="FS_DF_INTERVAL_DEFAULT" type="long"
  4186. transient="false" volatile="false"
  4187. static="true" final="true" visibility="public"
  4188. deprecated="not deprecated">
  4189. <doc>
  4190. <![CDATA[Default value for FS_DF_INTERVAL_KEY]]>
  4191. </doc>
  4192. </field>
  4193. <field name="FS_DU_INTERVAL_KEY" type="java.lang.String"
  4194. transient="false" volatile="false"
  4195. static="true" final="true" visibility="public"
  4196. deprecated="not deprecated">
  4197. <doc>
  4198. <![CDATA[@see
  4199. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4200. core-default.xml</a>]]>
  4201. </doc>
  4202. </field>
  4203. <field name="FS_DU_INTERVAL_DEFAULT" type="long"
  4204. transient="false" volatile="false"
  4205. static="true" final="true" visibility="public"
  4206. deprecated="not deprecated">
  4207. <doc>
  4208. <![CDATA[Default value for FS_DU_INTERVAL_KEY]]>
  4209. </doc>
  4210. </field>
  4211. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY" type="java.lang.String"
  4212. transient="false" volatile="false"
  4213. static="true" final="true" visibility="public"
  4214. deprecated="not deprecated">
  4215. <doc>
  4216. <![CDATA[@see
  4217. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4218. core-default.xml</a>]]>
  4219. </doc>
  4220. </field>
  4221. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_DEFAULT" type="boolean"
  4222. transient="false" volatile="false"
  4223. static="true" final="true" visibility="public"
  4224. deprecated="not deprecated">
  4225. <doc>
  4226. <![CDATA[Default value for FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY]]>
  4227. </doc>
  4228. </field>
  4229. <field name="NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4230. transient="false" volatile="false"
  4231. static="true" final="true" visibility="public"
  4232. deprecated="not deprecated">
  4233. <doc>
  4234. <![CDATA[@see
  4235. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4236. core-default.xml</a>]]>
  4237. </doc>
  4238. </field>
  4239. <field name="NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY" type="java.lang.String"
  4240. transient="false" volatile="false"
  4241. static="true" final="true" visibility="public"
  4242. deprecated="not deprecated">
  4243. <doc>
  4244. <![CDATA[@see
  4245. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4246. core-default.xml</a>]]>
  4247. </doc>
  4248. </field>
  4249. <field name="NET_TOPOLOGY_IMPL_KEY" type="java.lang.String"
  4250. transient="false" volatile="false"
  4251. static="true" final="true" visibility="public"
  4252. deprecated="not deprecated">
  4253. <doc>
  4254. <![CDATA[@see
  4255. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4256. core-default.xml</a>]]>
  4257. </doc>
  4258. </field>
  4259. <field name="NET_TOPOLOGY_TABLE_MAPPING_FILE_KEY" type="java.lang.String"
  4260. transient="false" volatile="false"
  4261. static="true" final="true" visibility="public"
  4262. deprecated="not deprecated">
  4263. <doc>
  4264. <![CDATA[@see
  4265. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4266. core-default.xml</a>]]>
  4267. </doc>
  4268. </field>
  4269. <field name="NET_DEPENDENCY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4270. transient="false" volatile="false"
  4271. static="true" final="true" visibility="public"
  4272. deprecated="not deprecated">
  4273. </field>
  4274. <field name="FS_TRASH_CHECKPOINT_INTERVAL_KEY" type="java.lang.String"
  4275. transient="false" volatile="false"
  4276. static="true" final="true" visibility="public"
  4277. deprecated="not deprecated">
  4278. <doc>
  4279. <![CDATA[@see
  4280. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4281. core-default.xml</a>]]>
  4282. </doc>
  4283. </field>
  4284. <field name="FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT" type="long"
  4285. transient="false" volatile="false"
  4286. static="true" final="true" visibility="public"
  4287. deprecated="not deprecated">
  4288. <doc>
  4289. <![CDATA[Default value for FS_TRASH_CHECKPOINT_INTERVAL_KEY]]>
  4290. </doc>
  4291. </field>
  4292. <field name="FS_PROTECTED_DIRECTORIES" type="java.lang.String"
  4293. transient="false" volatile="false"
  4294. static="true" final="true" visibility="public"
  4295. deprecated="not deprecated">
  4296. <doc>
  4297. <![CDATA[Directories that cannot be removed unless empty, even by an
  4298. administrator.]]>
  4299. </doc>
  4300. </field>
  4301. <field name="FS_LOCAL_BLOCK_SIZE_DEFAULT" type="long"
  4302. transient="false" volatile="false"
  4303. static="true" final="true" visibility="public"
  4304. deprecated="not deprecated">
  4305. <doc>
  4306. <![CDATA[Not used anywhere, looks like default value for FS_LOCAL_BLOCK_SIZE]]>
  4307. </doc>
  4308. </field>
  4309. <field name="FS_AUTOMATIC_CLOSE_KEY" type="java.lang.String"
  4310. transient="false" volatile="false"
  4311. static="true" final="true" visibility="public"
  4312. deprecated="not deprecated">
  4313. <doc>
  4314. <![CDATA[@see
  4315. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4316. core-default.xml</a>]]>
  4317. </doc>
  4318. </field>
  4319. <field name="FS_AUTOMATIC_CLOSE_DEFAULT" type="boolean"
  4320. transient="false" volatile="false"
  4321. static="true" final="true" visibility="public"
  4322. deprecated="not deprecated">
  4323. <doc>
  4324. <![CDATA[Default value for FS_AUTOMATIC_CLOSE_KEY]]>
  4325. </doc>
  4326. </field>
  4327. <field name="FS_FILE_IMPL_KEY" type="java.lang.String"
  4328. transient="false" volatile="false"
  4329. static="true" final="true" visibility="public"
  4330. deprecated="not deprecated">
  4331. <doc>
  4332. <![CDATA[@see
  4333. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4334. core-default.xml</a>]]>
  4335. </doc>
  4336. </field>
  4337. <field name="FS_FTP_HOST_KEY" type="java.lang.String"
  4338. transient="false" volatile="false"
  4339. static="true" final="true" visibility="public"
  4340. deprecated="not deprecated">
  4341. <doc>
  4342. <![CDATA[@see
  4343. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4344. core-default.xml</a>]]>
  4345. </doc>
  4346. </field>
  4347. <field name="FS_FTP_HOST_PORT_KEY" type="java.lang.String"
  4348. transient="false" volatile="false"
  4349. static="true" final="true" visibility="public"
  4350. deprecated="not deprecated">
  4351. <doc>
  4352. <![CDATA[@see
  4353. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4354. core-default.xml</a>]]>
  4355. </doc>
  4356. </field>
  4357. <field name="FS_TRASH_INTERVAL_KEY" type="java.lang.String"
  4358. transient="false" volatile="false"
  4359. static="true" final="true" visibility="public"
  4360. deprecated="not deprecated">
  4361. <doc>
  4362. <![CDATA[@see
  4363. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4364. core-default.xml</a>]]>
  4365. </doc>
  4366. </field>
  4367. <field name="FS_TRASH_INTERVAL_DEFAULT" type="long"
  4368. transient="false" volatile="false"
  4369. static="true" final="true" visibility="public"
  4370. deprecated="not deprecated">
  4371. <doc>
  4372. <![CDATA[Default value for FS_TRASH_INTERVAL_KEY]]>
  4373. </doc>
  4374. </field>
  4375. <field name="FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED" type="java.lang.String"
  4376. transient="false" volatile="false"
  4377. static="true" final="true" visibility="public"
  4378. deprecated="not deprecated">
  4379. <doc>
  4380. <![CDATA[@see
  4381. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4382. core-default.xml</a>]]>
  4383. </doc>
  4384. </field>
  4385. <field name="FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED_DEFAULT" type="boolean"
  4386. transient="false" volatile="false"
  4387. static="true" final="true" visibility="public"
  4388. deprecated="not deprecated">
  4389. <doc>
  4390. <![CDATA[Default value for FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED.]]>
  4391. </doc>
  4392. </field>
  4393. <field name="IO_MAPFILE_BLOOM_SIZE_KEY" type="java.lang.String"
  4394. transient="false" volatile="false"
  4395. static="true" final="true" visibility="public"
  4396. deprecated="not deprecated">
  4397. <doc>
  4398. <![CDATA[@see
  4399. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4400. core-default.xml</a>]]>
  4401. </doc>
  4402. </field>
  4403. <field name="IO_MAPFILE_BLOOM_SIZE_DEFAULT" type="int"
  4404. transient="false" volatile="false"
  4405. static="true" final="true" visibility="public"
  4406. deprecated="not deprecated">
  4407. <doc>
  4408. <![CDATA[Default value for IO_MAPFILE_BLOOM_SIZE_KEY]]>
  4409. </doc>
  4410. </field>
  4411. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_KEY" type="java.lang.String"
  4412. transient="false" volatile="false"
  4413. static="true" final="true" visibility="public"
  4414. deprecated="not deprecated">
  4415. <doc>
  4416. <![CDATA[@see
  4417. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4418. core-default.xml</a>]]>
  4419. </doc>
  4420. </field>
  4421. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_DEFAULT" type="float"
  4422. transient="false" volatile="false"
  4423. static="true" final="true" visibility="public"
  4424. deprecated="not deprecated">
  4425. <doc>
  4426. <![CDATA[Default value for IO_MAPFILE_BLOOM_ERROR_RATE_KEY]]>
  4427. </doc>
  4428. </field>
  4429. <field name="IO_COMPRESSION_CODEC_LZO_CLASS_KEY" type="java.lang.String"
  4430. transient="false" volatile="false"
  4431. static="true" final="true" visibility="public"
  4432. deprecated="not deprecated">
  4433. <doc>
  4434. <![CDATA[Codec class that implements Lzo compression algorithm]]>
  4435. </doc>
  4436. </field>
  4437. <field name="IO_MAP_INDEX_INTERVAL_KEY" type="java.lang.String"
  4438. transient="false" volatile="false"
  4439. static="true" final="true" visibility="public"
  4440. deprecated="not deprecated">
  4441. <doc>
  4442. <![CDATA[@see
  4443. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4444. core-default.xml</a>]]>
  4445. </doc>
  4446. </field>
  4447. <field name="IO_MAP_INDEX_INTERVAL_DEFAULT" type="int"
  4448. transient="false" volatile="false"
  4449. static="true" final="true" visibility="public"
  4450. deprecated="not deprecated">
  4451. <doc>
  4452. <![CDATA[Default value for IO_MAP_INDEX_INTERVAL_DEFAULT]]>
  4453. </doc>
  4454. </field>
  4455. <field name="IO_MAP_INDEX_SKIP_KEY" type="java.lang.String"
  4456. transient="false" volatile="false"
  4457. static="true" final="true" visibility="public"
  4458. deprecated="not deprecated">
  4459. <doc>
  4460. <![CDATA[@see
  4461. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4462. core-default.xml</a>]]>
  4463. </doc>
  4464. </field>
  4465. <field name="IO_MAP_INDEX_SKIP_DEFAULT" type="int"
  4466. transient="false" volatile="false"
  4467. static="true" final="true" visibility="public"
  4468. deprecated="not deprecated">
  4469. <doc>
  4470. <![CDATA[Default value for IO_MAP_INDEX_SKIP_KEY]]>
  4471. </doc>
  4472. </field>
  4473. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY" type="java.lang.String"
  4474. transient="false" volatile="false"
  4475. static="true" final="true" visibility="public"
  4476. deprecated="not deprecated">
  4477. <doc>
  4478. <![CDATA[@see
  4479. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4480. core-default.xml</a>]]>
  4481. </doc>
  4482. </field>
  4483. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_DEFAULT" type="int"
  4484. transient="false" volatile="false"
  4485. static="true" final="true" visibility="public"
  4486. deprecated="not deprecated">
  4487. <doc>
  4488. <![CDATA[Default value for IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY]]>
  4489. </doc>
  4490. </field>
  4491. <field name="IO_FILE_BUFFER_SIZE_KEY" type="java.lang.String"
  4492. transient="false" volatile="false"
  4493. static="true" final="true" visibility="public"
  4494. deprecated="not deprecated">
  4495. <doc>
  4496. <![CDATA[@see
  4497. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4498. core-default.xml</a>]]>
  4499. </doc>
  4500. </field>
  4501. <field name="IO_FILE_BUFFER_SIZE_DEFAULT" type="int"
  4502. transient="false" volatile="false"
  4503. static="true" final="true" visibility="public"
  4504. deprecated="not deprecated">
  4505. <doc>
  4506. <![CDATA[Default value for IO_FILE_BUFFER_SIZE_KEY]]>
  4507. </doc>
  4508. </field>
  4509. <field name="IO_SKIP_CHECKSUM_ERRORS_KEY" type="java.lang.String"
  4510. transient="false" volatile="false"
  4511. static="true" final="true" visibility="public"
  4512. deprecated="not deprecated">
  4513. <doc>
  4514. <![CDATA[@see
  4515. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4516. core-default.xml</a>]]>
  4517. </doc>
  4518. </field>
  4519. <field name="IO_SKIP_CHECKSUM_ERRORS_DEFAULT" type="boolean"
  4520. transient="false" volatile="false"
  4521. static="true" final="true" visibility="public"
  4522. deprecated="not deprecated">
  4523. <doc>
  4524. <![CDATA[Default value for IO_SKIP_CHECKSUM_ERRORS_KEY]]>
  4525. </doc>
  4526. </field>
  4527. <field name="IO_SORT_MB_KEY" type="java.lang.String"
  4528. transient="false" volatile="false"
  4529. static="true" final="true" visibility="public"
  4530. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.mb
  4531. in mapred-default.xml
  4532. See https://issues.apache.org/jira/browse/HADOOP-6801
  4533. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4534. instead, see {@link #SEQ_IO_SORT_MB_KEY}.">
  4535. <doc>
  4536. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.mb
  4537. in mapred-default.xml
  4538. See https://issues.apache.org/jira/browse/HADOOP-6801
  4539. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4540. instead, see {@link #SEQ_IO_SORT_MB_KEY}.]]>
  4541. </doc>
  4542. </field>
  4543. <field name="IO_SORT_MB_DEFAULT" type="int"
  4544. transient="false" volatile="false"
  4545. static="true" final="true" visibility="public"
  4546. deprecated="not deprecated">
  4547. <doc>
  4548. <![CDATA[Default value for {@link #IO_SORT_MB_KEY}.]]>
  4549. </doc>
  4550. </field>
  4551. <field name="IO_SORT_FACTOR_KEY" type="java.lang.String"
  4552. transient="false" volatile="false"
  4553. static="true" final="true" visibility="public"
  4554. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.factor
  4555. in mapred-default.xml
  4556. See https://issues.apache.org/jira/browse/HADOOP-6801
  4557. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4558. instead, see {@link #SEQ_IO_SORT_FACTOR_KEY}.">
  4559. <doc>
  4560. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.factor
  4561. in mapred-default.xml
  4562. See https://issues.apache.org/jira/browse/HADOOP-6801
  4563. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4564. instead, see {@link #SEQ_IO_SORT_FACTOR_KEY}.]]>
  4565. </doc>
  4566. </field>
  4567. <field name="IO_SORT_FACTOR_DEFAULT" type="int"
  4568. transient="false" volatile="false"
  4569. static="true" final="true" visibility="public"
  4570. deprecated="not deprecated">
  4571. <doc>
  4572. <![CDATA[Default value for {@link #IO_SORT_FACTOR_KEY}.]]>
  4573. </doc>
  4574. </field>
  4575. <field name="SEQ_IO_SORT_MB_KEY" type="java.lang.String"
  4576. transient="false" volatile="false"
  4577. static="true" final="true" visibility="public"
  4578. deprecated="not deprecated">
  4579. <doc>
  4580. <![CDATA[@see
  4581. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4582. core-default.xml</a>]]>
  4583. </doc>
  4584. </field>
  4585. <field name="SEQ_IO_SORT_MB_DEFAULT" type="int"
  4586. transient="false" volatile="false"
  4587. static="true" final="true" visibility="public"
  4588. deprecated="not deprecated">
  4589. <doc>
  4590. <![CDATA[Default value for {@link #SEQ_IO_SORT_MB_KEY}.]]>
  4591. </doc>
  4592. </field>
  4593. <field name="SEQ_IO_SORT_FACTOR_KEY" type="java.lang.String"
  4594. transient="false" volatile="false"
  4595. static="true" final="true" visibility="public"
  4596. deprecated="not deprecated">
  4597. <doc>
  4598. <![CDATA[@see
  4599. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4600. core-default.xml</a>]]>
  4601. </doc>
  4602. </field>
  4603. <field name="SEQ_IO_SORT_FACTOR_DEFAULT" type="int"
  4604. transient="false" volatile="false"
  4605. static="true" final="true" visibility="public"
  4606. deprecated="not deprecated">
  4607. <doc>
  4608. <![CDATA[Default value for {@link #SEQ_IO_SORT_FACTOR_KEY}.]]>
  4609. </doc>
  4610. </field>
  4611. <field name="IO_SERIALIZATIONS_KEY" type="java.lang.String"
  4612. transient="false" volatile="false"
  4613. static="true" final="true" visibility="public"
  4614. deprecated="not deprecated">
  4615. <doc>
  4616. <![CDATA[@see
  4617. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4618. core-default.xml</a>]]>
  4619. </doc>
  4620. </field>
  4621. <field name="TFILE_IO_CHUNK_SIZE_KEY" type="java.lang.String"
  4622. transient="false" volatile="false"
  4623. static="true" final="true" visibility="public"
  4624. deprecated="not deprecated">
  4625. <doc>
  4626. <![CDATA[@see
  4627. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4628. core-default.xml</a>]]>
  4629. </doc>
  4630. </field>
  4631. <field name="TFILE_IO_CHUNK_SIZE_DEFAULT" type="int"
  4632. transient="false" volatile="false"
  4633. static="true" final="true" visibility="public"
  4634. deprecated="not deprecated">
  4635. <doc>
  4636. <![CDATA[Default value for TFILE_IO_CHUNK_SIZE_DEFAULT]]>
  4637. </doc>
  4638. </field>
  4639. <field name="TFILE_FS_INPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  4640. transient="false" volatile="false"
  4641. static="true" final="true" visibility="public"
  4642. deprecated="not deprecated">
  4643. <doc>
  4644. <![CDATA[@see
  4645. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4646. core-default.xml</a>]]>
  4647. </doc>
  4648. </field>
  4649. <field name="TFILE_FS_INPUT_BUFFER_SIZE_DEFAULT" type="int"
  4650. transient="false" volatile="false"
  4651. static="true" final="true" visibility="public"
  4652. deprecated="not deprecated">
  4653. <doc>
  4654. <![CDATA[Default value for TFILE_FS_INPUT_BUFFER_SIZE_KEY]]>
  4655. </doc>
  4656. </field>
  4657. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  4658. transient="false" volatile="false"
  4659. static="true" final="true" visibility="public"
  4660. deprecated="not deprecated">
  4661. <doc>
  4662. <![CDATA[@see
  4663. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4664. core-default.xml</a>]]>
  4665. </doc>
  4666. </field>
  4667. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_DEFAULT" type="int"
  4668. transient="false" volatile="false"
  4669. static="true" final="true" visibility="public"
  4670. deprecated="not deprecated">
  4671. <doc>
  4672. <![CDATA[Default value for TFILE_FS_OUTPUT_BUFFER_SIZE_KEY]]>
  4673. </doc>
  4674. </field>
  4675. <field name="HADOOP_CALLER_CONTEXT_ENABLED_KEY" type="java.lang.String"
  4676. transient="false" volatile="false"
  4677. static="true" final="true" visibility="public"
  4678. deprecated="not deprecated">
  4679. </field>
  4680. <field name="HADOOP_CALLER_CONTEXT_ENABLED_DEFAULT" type="boolean"
  4681. transient="false" volatile="false"
  4682. static="true" final="true" visibility="public"
  4683. deprecated="not deprecated">
  4684. </field>
  4685. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_KEY" type="java.lang.String"
  4686. transient="false" volatile="false"
  4687. static="true" final="true" visibility="public"
  4688. deprecated="not deprecated">
  4689. </field>
  4690. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_DEFAULT" type="int"
  4691. transient="false" volatile="false"
  4692. static="true" final="true" visibility="public"
  4693. deprecated="not deprecated">
  4694. </field>
  4695. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_KEY" type="java.lang.String"
  4696. transient="false" volatile="false"
  4697. static="true" final="true" visibility="public"
  4698. deprecated="not deprecated">
  4699. </field>
  4700. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_DEFAULT" type="int"
  4701. transient="false" volatile="false"
  4702. static="true" final="true" visibility="public"
  4703. deprecated="not deprecated">
  4704. </field>
  4705. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY" type="java.lang.String"
  4706. transient="false" volatile="false"
  4707. static="true" final="true" visibility="public"
  4708. deprecated="not deprecated">
  4709. <doc>
  4710. <![CDATA[@see
  4711. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4712. core-default.xml</a>]]>
  4713. </doc>
  4714. </field>
  4715. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_DEFAULT" type="int"
  4716. transient="false" volatile="false"
  4717. static="true" final="true" visibility="public"
  4718. deprecated="not deprecated">
  4719. <doc>
  4720. <![CDATA[Default value for IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY]]>
  4721. </doc>
  4722. </field>
  4723. <field name="IPC_CLIENT_CONNECT_TIMEOUT_KEY" type="java.lang.String"
  4724. transient="false" volatile="false"
  4725. static="true" final="true" visibility="public"
  4726. deprecated="not deprecated">
  4727. <doc>
  4728. <![CDATA[@see
  4729. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4730. core-default.xml</a>]]>
  4731. </doc>
  4732. </field>
  4733. <field name="IPC_CLIENT_CONNECT_TIMEOUT_DEFAULT" type="int"
  4734. transient="false" volatile="false"
  4735. static="true" final="true" visibility="public"
  4736. deprecated="not deprecated">
  4737. <doc>
  4738. <![CDATA[Default value for IPC_CLIENT_CONNECT_TIMEOUT_KEY]]>
  4739. </doc>
  4740. </field>
  4741. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  4742. transient="false" volatile="false"
  4743. static="true" final="true" visibility="public"
  4744. deprecated="not deprecated">
  4745. <doc>
  4746. <![CDATA[@see
  4747. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4748. core-default.xml</a>]]>
  4749. </doc>
  4750. </field>
  4751. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  4752. transient="false" volatile="false"
  4753. static="true" final="true" visibility="public"
  4754. deprecated="not deprecated">
  4755. <doc>
  4756. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_KEY]]>
  4757. </doc>
  4758. </field>
  4759. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY" type="java.lang.String"
  4760. transient="false" volatile="false"
  4761. static="true" final="true" visibility="public"
  4762. deprecated="not deprecated">
  4763. <doc>
  4764. <![CDATA[@see
  4765. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4766. core-default.xml</a>]]>
  4767. </doc>
  4768. </field>
  4769. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_DEFAULT" type="int"
  4770. transient="false" volatile="false"
  4771. static="true" final="true" visibility="public"
  4772. deprecated="not deprecated">
  4773. <doc>
  4774. <![CDATA[Default value for IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY]]>
  4775. </doc>
  4776. </field>
  4777. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY" type="java.lang.String"
  4778. transient="false" volatile="false"
  4779. static="true" final="true" visibility="public"
  4780. deprecated="not deprecated">
  4781. <doc>
  4782. <![CDATA[@see
  4783. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4784. core-default.xml</a>]]>
  4785. </doc>
  4786. </field>
  4787. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_DEFAULT" type="int"
  4788. transient="false" volatile="false"
  4789. static="true" final="true" visibility="public"
  4790. deprecated="not deprecated">
  4791. <doc>
  4792. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY]]>
  4793. </doc>
  4794. </field>
  4795. <field name="IPC_CLIENT_TCPNODELAY_KEY" type="java.lang.String"
  4796. transient="false" volatile="false"
  4797. static="true" final="true" visibility="public"
  4798. deprecated="not deprecated">
  4799. <doc>
  4800. <![CDATA[@see
  4801. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4802. core-default.xml</a>]]>
  4803. </doc>
  4804. </field>
  4805. <field name="IPC_CLIENT_TCPNODELAY_DEFAULT" type="boolean"
  4806. transient="false" volatile="false"
  4807. static="true" final="true" visibility="public"
  4808. deprecated="not deprecated">
  4809. <doc>
  4810. <![CDATA[Default value for IPC_CLIENT_TCPNODELAY_KEY]]>
  4811. </doc>
  4812. </field>
  4813. <field name="IPC_CLIENT_LOW_LATENCY" type="java.lang.String"
  4814. transient="false" volatile="false"
  4815. static="true" final="true" visibility="public"
  4816. deprecated="not deprecated">
  4817. <doc>
  4818. <![CDATA[Enable low-latency connections from the client]]>
  4819. </doc>
  4820. </field>
  4821. <field name="IPC_CLIENT_LOW_LATENCY_DEFAULT" type="boolean"
  4822. transient="false" volatile="false"
  4823. static="true" final="true" visibility="public"
  4824. deprecated="not deprecated">
  4825. <doc>
  4826. <![CDATA[Default value of IPC_CLIENT_LOW_LATENCY]]>
  4827. </doc>
  4828. </field>
  4829. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_KEY" type="java.lang.String"
  4830. transient="false" volatile="false"
  4831. static="true" final="true" visibility="public"
  4832. deprecated="not deprecated">
  4833. <doc>
  4834. <![CDATA[@see
  4835. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4836. core-default.xml</a>]]>
  4837. </doc>
  4838. </field>
  4839. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_DEFAULT" type="int"
  4840. transient="false" volatile="false"
  4841. static="true" final="true" visibility="public"
  4842. deprecated="not deprecated">
  4843. <doc>
  4844. <![CDATA[Default value for IPC_SERVER_LISTEN_QUEUE_SIZE_KEY]]>
  4845. </doc>
  4846. </field>
  4847. <field name="IPC_CLIENT_KILL_MAX_KEY" type="java.lang.String"
  4848. transient="false" volatile="false"
  4849. static="true" final="true" visibility="public"
  4850. deprecated="not deprecated">
  4851. <doc>
  4852. <![CDATA[@see
  4853. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4854. core-default.xml</a>]]>
  4855. </doc>
  4856. </field>
  4857. <field name="IPC_CLIENT_KILL_MAX_DEFAULT" type="int"
  4858. transient="false" volatile="false"
  4859. static="true" final="true" visibility="public"
  4860. deprecated="not deprecated">
  4861. <doc>
  4862. <![CDATA[Default value for IPC_CLIENT_KILL_MAX_KEY]]>
  4863. </doc>
  4864. </field>
  4865. <field name="IPC_CLIENT_IDLETHRESHOLD_KEY" type="java.lang.String"
  4866. transient="false" volatile="false"
  4867. static="true" final="true" visibility="public"
  4868. deprecated="not deprecated">
  4869. <doc>
  4870. <![CDATA[@see
  4871. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4872. core-default.xml</a>]]>
  4873. </doc>
  4874. </field>
  4875. <field name="IPC_CLIENT_IDLETHRESHOLD_DEFAULT" type="int"
  4876. transient="false" volatile="false"
  4877. static="true" final="true" visibility="public"
  4878. deprecated="not deprecated">
  4879. <doc>
  4880. <![CDATA[Default value for IPC_CLIENT_IDLETHRESHOLD_DEFAULT]]>
  4881. </doc>
  4882. </field>
  4883. <field name="IPC_SERVER_TCPNODELAY_KEY" type="java.lang.String"
  4884. transient="false" volatile="false"
  4885. static="true" final="true" visibility="public"
  4886. deprecated="not deprecated">
  4887. <doc>
  4888. <![CDATA[@see
  4889. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4890. core-default.xml</a>]]>
  4891. </doc>
  4892. </field>
  4893. <field name="IPC_SERVER_TCPNODELAY_DEFAULT" type="boolean"
  4894. transient="false" volatile="false"
  4895. static="true" final="true" visibility="public"
  4896. deprecated="not deprecated">
  4897. <doc>
  4898. <![CDATA[Default value for IPC_SERVER_TCPNODELAY_KEY]]>
  4899. </doc>
  4900. </field>
  4901. <field name="IPC_SERVER_MAX_CONNECTIONS_KEY" type="java.lang.String"
  4902. transient="false" volatile="false"
  4903. static="true" final="true" visibility="public"
  4904. deprecated="not deprecated">
  4905. <doc>
  4906. <![CDATA[@see
  4907. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4908. core-default.xml</a>]]>
  4909. </doc>
  4910. </field>
  4911. <field name="IPC_SERVER_MAX_CONNECTIONS_DEFAULT" type="int"
  4912. transient="false" volatile="false"
  4913. static="true" final="true" visibility="public"
  4914. deprecated="not deprecated">
  4915. <doc>
  4916. <![CDATA[Default value for IPC_SERVER_MAX_CONNECTIONS_KEY]]>
  4917. </doc>
  4918. </field>
  4919. <field name="IPC_SERVER_LOG_SLOW_RPC" type="java.lang.String"
  4920. transient="false" volatile="false"
  4921. static="true" final="true" visibility="public"
  4922. deprecated="not deprecated">
  4923. <doc>
  4924. <![CDATA[Logs if a RPC is really slow compared to rest of RPCs.]]>
  4925. </doc>
  4926. </field>
  4927. <field name="IPC_SERVER_LOG_SLOW_RPC_DEFAULT" type="boolean"
  4928. transient="false" volatile="false"
  4929. static="true" final="true" visibility="public"
  4930. deprecated="not deprecated">
  4931. </field>
  4932. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_KEY" type="java.lang.String"
  4933. transient="false" volatile="false"
  4934. static="true" final="true" visibility="public"
  4935. deprecated="not deprecated">
  4936. <doc>
  4937. <![CDATA[@see
  4938. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4939. core-default.xml</a>]]>
  4940. </doc>
  4941. </field>
  4942. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_DEFAULT" type="java.lang.String"
  4943. transient="false" volatile="false"
  4944. static="true" final="true" visibility="public"
  4945. deprecated="not deprecated">
  4946. </field>
  4947. <field name="HADOOP_SOCKS_SERVER_KEY" type="java.lang.String"
  4948. transient="false" volatile="false"
  4949. static="true" final="true" visibility="public"
  4950. deprecated="not deprecated">
  4951. <doc>
  4952. <![CDATA[@see
  4953. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4954. core-default.xml</a>]]>
  4955. </doc>
  4956. </field>
  4957. <field name="HADOOP_UTIL_HASH_TYPE_KEY" type="java.lang.String"
  4958. transient="false" volatile="false"
  4959. static="true" final="true" visibility="public"
  4960. deprecated="not deprecated">
  4961. <doc>
  4962. <![CDATA[@see
  4963. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4964. core-default.xml</a>]]>
  4965. </doc>
  4966. </field>
  4967. <field name="HADOOP_UTIL_HASH_TYPE_DEFAULT" type="java.lang.String"
  4968. transient="false" volatile="false"
  4969. static="true" final="true" visibility="public"
  4970. deprecated="not deprecated">
  4971. <doc>
  4972. <![CDATA[Default value for HADOOP_UTIL_HASH_TYPE_KEY]]>
  4973. </doc>
  4974. </field>
  4975. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  4976. transient="false" volatile="false"
  4977. static="true" final="true" visibility="public"
  4978. deprecated="not deprecated">
  4979. <doc>
  4980. <![CDATA[@see
  4981. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4982. core-default.xml</a>]]>
  4983. </doc>
  4984. </field>
  4985. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS" type="java.lang.String"
  4986. transient="false" volatile="false"
  4987. static="true" final="true" visibility="public"
  4988. deprecated="not deprecated">
  4989. <doc>
  4990. <![CDATA[@see
  4991. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4992. core-default.xml</a>]]>
  4993. </doc>
  4994. </field>
  4995. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS_DEFAULT" type="long"
  4996. transient="false" volatile="false"
  4997. static="true" final="true" visibility="public"
  4998. deprecated="not deprecated">
  4999. <doc>
  5000. <![CDATA[@see
  5001. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5002. core-default.xml</a>]]>
  5003. </doc>
  5004. </field>
  5005. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS" type="java.lang.String"
  5006. transient="false" volatile="false"
  5007. static="true" final="true" visibility="public"
  5008. deprecated="not deprecated">
  5009. <doc>
  5010. <![CDATA[@see
  5011. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5012. core-default.xml</a>]]>
  5013. </doc>
  5014. </field>
  5015. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS_DEFAULT" type="long"
  5016. transient="false" volatile="false"
  5017. static="true" final="true" visibility="public"
  5018. deprecated="not deprecated">
  5019. <doc>
  5020. <![CDATA[@see
  5021. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5022. core-default.xml</a>]]>
  5023. </doc>
  5024. </field>
  5025. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS" type="java.lang.String"
  5026. transient="false" volatile="false"
  5027. static="true" final="true" visibility="public"
  5028. deprecated="not deprecated">
  5029. <doc>
  5030. <![CDATA[@see
  5031. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5032. core-default.xml</a>]]>
  5033. </doc>
  5034. </field>
  5035. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS_DEFAULT" type="long"
  5036. transient="false" volatile="false"
  5037. static="true" final="true" visibility="public"
  5038. deprecated="not deprecated">
  5039. </field>
  5040. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD" type="java.lang.String"
  5041. transient="false" volatile="false"
  5042. static="true" final="true" visibility="public"
  5043. deprecated="not deprecated">
  5044. <doc>
  5045. <![CDATA[@see
  5046. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5047. core-default.xml</a>]]>
  5048. </doc>
  5049. </field>
  5050. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_DEFAULT" type="boolean"
  5051. transient="false" volatile="false"
  5052. static="true" final="true" visibility="public"
  5053. deprecated="not deprecated">
  5054. <doc>
  5055. <![CDATA[@see
  5056. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5057. core-default.xml</a>]]>
  5058. </doc>
  5059. </field>
  5060. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS" type="java.lang.String"
  5061. transient="false" volatile="false"
  5062. static="true" final="true" visibility="public"
  5063. deprecated="not deprecated">
  5064. <doc>
  5065. <![CDATA[@see
  5066. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5067. core-default.xml</a>]]>
  5068. </doc>
  5069. </field>
  5070. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS_DEFAULT" type="int"
  5071. transient="false" volatile="false"
  5072. static="true" final="true" visibility="public"
  5073. deprecated="not deprecated">
  5074. <doc>
  5075. <![CDATA[@see
  5076. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5077. core-default.xml</a>]]>
  5078. </doc>
  5079. </field>
  5080. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY" type="java.lang.String"
  5081. transient="false" volatile="false"
  5082. static="true" final="true" visibility="public"
  5083. deprecated="not deprecated">
  5084. <doc>
  5085. <![CDATA[@see
  5086. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5087. core-default.xml</a>]]>
  5088. </doc>
  5089. </field>
  5090. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS" type="java.lang.String"
  5091. transient="false" volatile="false"
  5092. static="true" final="true" visibility="public"
  5093. deprecated="use
  5094. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY}
  5095. instead.">
  5096. <doc>
  5097. <![CDATA[@deprecated use
  5098. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY}
  5099. instead.]]>
  5100. </doc>
  5101. </field>
  5102. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT" type="long"
  5103. transient="false" volatile="false"
  5104. static="true" final="true" visibility="public"
  5105. deprecated="not deprecated">
  5106. <doc>
  5107. <![CDATA[@see
  5108. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5109. core-default.xml</a>]]>
  5110. </doc>
  5111. </field>
  5112. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS_DEFAULT" type="long"
  5113. transient="false" volatile="false"
  5114. static="true" final="true" visibility="public"
  5115. deprecated="use
  5116. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT}
  5117. instead.">
  5118. <doc>
  5119. <![CDATA[@deprecated use
  5120. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT}
  5121. instead.]]>
  5122. </doc>
  5123. </field>
  5124. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  5125. transient="false" volatile="false"
  5126. static="true" final="true" visibility="public"
  5127. deprecated="not deprecated">
  5128. <doc>
  5129. <![CDATA[@see
  5130. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5131. core-default.xml</a>]]>
  5132. </doc>
  5133. </field>
  5134. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  5135. transient="false" volatile="false"
  5136. static="true" final="true" visibility="public"
  5137. deprecated="not deprecated">
  5138. <doc>
  5139. <![CDATA[@see
  5140. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5141. core-default.xml</a>]]>
  5142. </doc>
  5143. </field>
  5144. <field name="HADOOP_SECURITY_INSTRUMENTATION_REQUIRES_ADMIN" type="java.lang.String"
  5145. transient="false" volatile="false"
  5146. static="true" final="true" visibility="public"
  5147. deprecated="not deprecated">
  5148. <doc>
  5149. <![CDATA[@see
  5150. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5151. core-default.xml</a>]]>
  5152. </doc>
  5153. </field>
  5154. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  5155. transient="false" volatile="false"
  5156. static="true" final="true" visibility="public"
  5157. deprecated="not deprecated">
  5158. <doc>
  5159. <![CDATA[@see
  5160. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5161. core-default.xml</a>]]>
  5162. </doc>
  5163. </field>
  5164. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL" type="java.lang.String"
  5165. transient="false" volatile="false"
  5166. static="true" final="true" visibility="public"
  5167. deprecated="not deprecated">
  5168. <doc>
  5169. <![CDATA[@see
  5170. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5171. core-default.xml</a>]]>
  5172. </doc>
  5173. </field>
  5174. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL_MECHANISM" type="java.lang.String"
  5175. transient="false" volatile="false"
  5176. static="true" final="true" visibility="public"
  5177. deprecated="not deprecated">
  5178. <doc>
  5179. <![CDATA[@see
  5180. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5181. core-default.xml</a>]]>
  5182. </doc>
  5183. </field>
  5184. <field name="HADOOP_SECURITY_DNS_INTERFACE_KEY" type="java.lang.String"
  5185. transient="false" volatile="false"
  5186. static="true" final="true" visibility="public"
  5187. deprecated="not deprecated">
  5188. <doc>
  5189. <![CDATA[@see
  5190. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5191. core-default.xml</a>]]>
  5192. </doc>
  5193. </field>
  5194. <field name="HADOOP_SECURITY_DNS_NAMESERVER_KEY" type="java.lang.String"
  5195. transient="false" volatile="false"
  5196. static="true" final="true" visibility="public"
  5197. deprecated="not deprecated">
  5198. <doc>
  5199. <![CDATA[@see
  5200. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5201. core-default.xml</a>]]>
  5202. </doc>
  5203. </field>
  5204. <field name="HADOOP_TOKEN_FILES" type="java.lang.String"
  5205. transient="false" volatile="false"
  5206. static="true" final="true" visibility="public"
  5207. deprecated="not deprecated">
  5208. <doc>
  5209. <![CDATA[@see
  5210. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5211. core-default.xml</a>]]>
  5212. </doc>
  5213. </field>
  5214. <field name="HADOOP_HTTP_AUTHENTICATION_TYPE" type="java.lang.String"
  5215. transient="false" volatile="false"
  5216. static="true" final="true" visibility="public"
  5217. deprecated="not deprecated">
  5218. </field>
  5219. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN" type="java.lang.String"
  5220. transient="false" volatile="false"
  5221. static="true" final="true" visibility="public"
  5222. deprecated="not deprecated">
  5223. <doc>
  5224. <![CDATA[@see
  5225. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5226. core-default.xml</a>]]>
  5227. </doc>
  5228. </field>
  5229. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN_DEFAULT" type="int"
  5230. transient="false" volatile="false"
  5231. static="true" final="true" visibility="public"
  5232. deprecated="not deprecated">
  5233. <doc>
  5234. <![CDATA[Default value for HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN]]>
  5235. </doc>
  5236. </field>
  5237. <field name="HADOOP_RPC_PROTECTION" type="java.lang.String"
  5238. transient="false" volatile="false"
  5239. static="true" final="true" visibility="public"
  5240. deprecated="not deprecated">
  5241. <doc>
  5242. <![CDATA[@see
  5243. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5244. core-default.xml</a>]]>
  5245. </doc>
  5246. </field>
  5247. <field name="HADOOP_SECURITY_SASL_PROPS_RESOLVER_CLASS" type="java.lang.String"
  5248. transient="false" volatile="false"
  5249. static="true" final="true" visibility="public"
  5250. deprecated="not deprecated">
  5251. <doc>
  5252. <![CDATA[Class to override Sasl Properties for a connection]]>
  5253. </doc>
  5254. </field>
  5255. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_KEY_PREFIX" type="java.lang.String"
  5256. transient="false" volatile="false"
  5257. static="true" final="true" visibility="public"
  5258. deprecated="not deprecated">
  5259. </field>
  5260. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_KEY" type="java.lang.String"
  5261. transient="false" volatile="false"
  5262. static="true" final="true" visibility="public"
  5263. deprecated="not deprecated">
  5264. </field>
  5265. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_DEFAULT" type="java.lang.String"
  5266. transient="false" volatile="false"
  5267. static="true" final="true" visibility="public"
  5268. deprecated="not deprecated">
  5269. </field>
  5270. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_KEY" type="java.lang.String"
  5271. transient="false" volatile="false"
  5272. static="true" final="true" visibility="public"
  5273. deprecated="not deprecated">
  5274. <doc>
  5275. <![CDATA[@see
  5276. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5277. core-default.xml</a>]]>
  5278. </doc>
  5279. </field>
  5280. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_DEFAULT" type="java.lang.String"
  5281. transient="false" volatile="false"
  5282. static="true" final="true" visibility="public"
  5283. deprecated="not deprecated">
  5284. </field>
  5285. <field name="HADOOP_SECURITY_CRYPTO_JCE_PROVIDER_KEY" type="java.lang.String"
  5286. transient="false" volatile="false"
  5287. static="true" final="true" visibility="public"
  5288. deprecated="not deprecated">
  5289. <doc>
  5290. <![CDATA[@see
  5291. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5292. core-default.xml</a>]]>
  5293. </doc>
  5294. </field>
  5295. <field name="HADOOP_SECURITY_CRYPTO_JCEKS_KEY_SERIALFILTER" type="java.lang.String"
  5296. transient="false" volatile="false"
  5297. static="true" final="true" visibility="public"
  5298. deprecated="not deprecated">
  5299. <doc>
  5300. <![CDATA[@see
  5301. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5302. core-default.xml</a>]]>
  5303. </doc>
  5304. </field>
  5305. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY" type="java.lang.String"
  5306. transient="false" volatile="false"
  5307. static="true" final="true" visibility="public"
  5308. deprecated="not deprecated">
  5309. <doc>
  5310. <![CDATA[@see
  5311. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5312. core-default.xml</a>]]>
  5313. </doc>
  5314. </field>
  5315. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_DEFAULT" type="int"
  5316. transient="false" volatile="false"
  5317. static="true" final="true" visibility="public"
  5318. deprecated="not deprecated">
  5319. <doc>
  5320. <![CDATA[Defalt value for HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY]]>
  5321. </doc>
  5322. </field>
  5323. <field name="HADOOP_SECURITY_IMPERSONATION_PROVIDER_CLASS" type="java.lang.String"
  5324. transient="false" volatile="false"
  5325. static="true" final="true" visibility="public"
  5326. deprecated="not deprecated">
  5327. <doc>
  5328. <![CDATA[Class to override Impersonation provider]]>
  5329. </doc>
  5330. </field>
  5331. <field name="HADOOP_SECURITY_KEY_PROVIDER_PATH" type="java.lang.String"
  5332. transient="false" volatile="false"
  5333. static="true" final="true" visibility="public"
  5334. deprecated="not deprecated">
  5335. <doc>
  5336. <![CDATA[@see
  5337. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5338. core-default.xml</a>]]>
  5339. </doc>
  5340. </field>
  5341. <field name="HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_KEY" type="java.lang.String"
  5342. transient="false" volatile="false"
  5343. static="true" final="true" visibility="public"
  5344. deprecated="not deprecated">
  5345. <doc>
  5346. <![CDATA[@see
  5347. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5348. core-default.xml</a>]]>
  5349. </doc>
  5350. </field>
  5351. <field name="HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_DEFAULT" type="int"
  5352. transient="false" volatile="false"
  5353. static="true" final="true" visibility="public"
  5354. deprecated="not deprecated">
  5355. <doc>
  5356. <![CDATA[Defalt value for HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_KEY.]]>
  5357. </doc>
  5358. </field>
  5359. <field name="HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY" type="java.lang.String"
  5360. transient="false" volatile="false"
  5361. static="true" final="true" visibility="public"
  5362. deprecated="not deprecated">
  5363. <doc>
  5364. <![CDATA[@see
  5365. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5366. core-default.xml</a>]]>
  5367. </doc>
  5368. </field>
  5369. <field name="HADOOP_SECURITY_KEY_DEFAULT_CIPHER_DEFAULT" type="java.lang.String"
  5370. transient="false" volatile="false"
  5371. static="true" final="true" visibility="public"
  5372. deprecated="not deprecated">
  5373. <doc>
  5374. <![CDATA[Defalt value for HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY.]]>
  5375. </doc>
  5376. </field>
  5377. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE" type="java.lang.String"
  5378. transient="false" volatile="false"
  5379. static="true" final="true" visibility="public"
  5380. deprecated="not deprecated">
  5381. <doc>
  5382. <![CDATA[@see
  5383. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5384. core-default.xml</a>]]>
  5385. </doc>
  5386. </field>
  5387. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE_DEFAULT" type="int"
  5388. transient="false" volatile="false"
  5389. static="true" final="true" visibility="public"
  5390. deprecated="not deprecated">
  5391. <doc>
  5392. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_SIZE]]>
  5393. </doc>
  5394. </field>
  5395. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK" type="java.lang.String"
  5396. transient="false" volatile="false"
  5397. static="true" final="true" visibility="public"
  5398. deprecated="not deprecated">
  5399. <doc>
  5400. <![CDATA[@see
  5401. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5402. core-default.xml</a>]]>
  5403. </doc>
  5404. </field>
  5405. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK_DEFAULT" type="float"
  5406. transient="false" volatile="false"
  5407. static="true" final="true" visibility="public"
  5408. deprecated="not deprecated">
  5409. <doc>
  5410. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK]]>
  5411. </doc>
  5412. </field>
  5413. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS" type="java.lang.String"
  5414. transient="false" volatile="false"
  5415. static="true" final="true" visibility="public"
  5416. deprecated="not deprecated">
  5417. <doc>
  5418. <![CDATA[@see
  5419. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5420. core-default.xml</a>]]>
  5421. </doc>
  5422. </field>
  5423. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT" type="int"
  5424. transient="false" volatile="false"
  5425. static="true" final="true" visibility="public"
  5426. deprecated="not deprecated">
  5427. <doc>
  5428. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_NUM_REFILL_THREADS]]>
  5429. </doc>
  5430. </field>
  5431. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_MS" type="java.lang.String"
  5432. transient="false" volatile="false"
  5433. static="true" final="true" visibility="public"
  5434. deprecated="not deprecated">
  5435. <doc>
  5436. <![CDATA[@see
  5437. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5438. core-default.xml</a>]]>
  5439. </doc>
  5440. </field>
  5441. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_DEFAULT" type="int"
  5442. transient="false" volatile="false"
  5443. static="true" final="true" visibility="public"
  5444. deprecated="not deprecated">
  5445. <doc>
  5446. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_EXPIRY (12 hrs)]]>
  5447. </doc>
  5448. </field>
  5449. <field name="KMS_CLIENT_TIMEOUT_SECONDS" type="java.lang.String"
  5450. transient="false" volatile="false"
  5451. static="true" final="true" visibility="public"
  5452. deprecated="not deprecated">
  5453. <doc>
  5454. <![CDATA[@see
  5455. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5456. core-default.xml</a>]]>
  5457. </doc>
  5458. </field>
  5459. <field name="KMS_CLIENT_TIMEOUT_DEFAULT" type="int"
  5460. transient="false" volatile="false"
  5461. static="true" final="true" visibility="public"
  5462. deprecated="not deprecated">
  5463. </field>
  5464. <field name="KMS_CLIENT_FAILOVER_MAX_RETRIES_KEY" type="java.lang.String"
  5465. transient="false" volatile="false"
  5466. static="true" final="true" visibility="public"
  5467. deprecated="not deprecated">
  5468. <doc>
  5469. <![CDATA[Default value is the number of providers specified.]]>
  5470. </doc>
  5471. </field>
  5472. <field name="KMS_CLIENT_FAILOVER_SLEEP_BASE_MILLIS_KEY" type="java.lang.String"
  5473. transient="false" volatile="false"
  5474. static="true" final="true" visibility="public"
  5475. deprecated="not deprecated">
  5476. <doc>
  5477. <![CDATA[@see
  5478. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5479. core-default.xml</a>]]>
  5480. </doc>
  5481. </field>
  5482. <field name="KMS_CLIENT_FAILOVER_SLEEP_BASE_MILLIS_DEFAULT" type="int"
  5483. transient="false" volatile="false"
  5484. static="true" final="true" visibility="public"
  5485. deprecated="not deprecated">
  5486. <doc>
  5487. <![CDATA[Default value is 100 ms.]]>
  5488. </doc>
  5489. </field>
  5490. <field name="KMS_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_KEY" type="java.lang.String"
  5491. transient="false" volatile="false"
  5492. static="true" final="true" visibility="public"
  5493. deprecated="not deprecated">
  5494. <doc>
  5495. <![CDATA[@see
  5496. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5497. core-default.xml</a>]]>
  5498. </doc>
  5499. </field>
  5500. <field name="KMS_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_DEFAULT" type="int"
  5501. transient="false" volatile="false"
  5502. static="true" final="true" visibility="public"
  5503. deprecated="not deprecated">
  5504. <doc>
  5505. <![CDATA[Default value is 2 secs.]]>
  5506. </doc>
  5507. </field>
  5508. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY" type="java.lang.String"
  5509. transient="false" volatile="false"
  5510. static="true" final="true" visibility="public"
  5511. deprecated="not deprecated">
  5512. <doc>
  5513. <![CDATA[@see
  5514. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5515. core-default.xml</a>]]>
  5516. </doc>
  5517. </field>
  5518. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_DEFAULT" type="java.lang.String"
  5519. transient="false" volatile="false"
  5520. static="true" final="true" visibility="public"
  5521. deprecated="not deprecated">
  5522. <doc>
  5523. <![CDATA[Defalt value for HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY]]>
  5524. </doc>
  5525. </field>
  5526. <field name="HADOOP_SECURITY_SECURE_RANDOM_IMPL_KEY" type="java.lang.String"
  5527. transient="false" volatile="false"
  5528. static="true" final="true" visibility="public"
  5529. deprecated="not deprecated">
  5530. <doc>
  5531. <![CDATA[@see
  5532. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5533. core-default.xml</a>]]>
  5534. </doc>
  5535. </field>
  5536. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_KEY" type="java.lang.String"
  5537. transient="false" volatile="false"
  5538. static="true" final="true" visibility="public"
  5539. deprecated="not deprecated">
  5540. <doc>
  5541. <![CDATA[@see
  5542. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5543. core-default.xml</a>]]>
  5544. </doc>
  5545. </field>
  5546. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_DEFAULT" type="java.lang.String"
  5547. transient="false" volatile="false"
  5548. static="true" final="true" visibility="public"
  5549. deprecated="not deprecated">
  5550. </field>
  5551. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_KEY" type="java.lang.String"
  5552. transient="false" volatile="false"
  5553. static="true" final="true" visibility="public"
  5554. deprecated="not deprecated">
  5555. <doc>
  5556. <![CDATA[@see
  5557. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5558. core-default.xml</a>]]>
  5559. </doc>
  5560. </field>
  5561. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_DEFAULT" type="boolean"
  5562. transient="false" volatile="false"
  5563. static="true" final="true" visibility="public"
  5564. deprecated="not deprecated">
  5565. </field>
  5566. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES" type="java.lang.String"
  5567. transient="false" volatile="false"
  5568. static="true" final="true" visibility="public"
  5569. deprecated="not deprecated">
  5570. <doc>
  5571. <![CDATA[@see
  5572. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5573. core-default.xml</a>]]>
  5574. </doc>
  5575. </field>
  5576. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES_DEFAULT" type="long"
  5577. transient="false" volatile="false"
  5578. static="true" final="true" visibility="public"
  5579. deprecated="not deprecated">
  5580. </field>
  5581. <field name="HADOOP_HTTP_LOGS_ENABLED" type="java.lang.String"
  5582. transient="false" volatile="false"
  5583. static="true" final="true" visibility="public"
  5584. deprecated="not deprecated">
  5585. <doc>
  5586. <![CDATA[@see
  5587. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5588. core-default.xml</a>]]>
  5589. </doc>
  5590. </field>
  5591. <field name="HADOOP_HTTP_LOGS_ENABLED_DEFAULT" type="boolean"
  5592. transient="false" volatile="false"
  5593. static="true" final="true" visibility="public"
  5594. deprecated="not deprecated">
  5595. <doc>
  5596. <![CDATA[Defalt value for HADOOP_HTTP_LOGS_ENABLED]]>
  5597. </doc>
  5598. </field>
  5599. <field name="HADOOP_SECURITY_CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  5600. transient="false" volatile="false"
  5601. static="true" final="true" visibility="public"
  5602. deprecated="not deprecated">
  5603. <doc>
  5604. <![CDATA[@see
  5605. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5606. core-default.xml</a>]]>
  5607. </doc>
  5608. </field>
  5609. <field name="HADOOP_SECURITY_CREDENTIAL_CLEAR_TEXT_FALLBACK" type="java.lang.String"
  5610. transient="false" volatile="false"
  5611. static="true" final="true" visibility="public"
  5612. deprecated="not deprecated">
  5613. <doc>
  5614. <![CDATA[@see
  5615. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5616. core-default.xml</a>]]>
  5617. </doc>
  5618. </field>
  5619. <field name="HADOOP_SECURITY_CREDENTIAL_CLEAR_TEXT_FALLBACK_DEFAULT" type="boolean"
  5620. transient="false" volatile="false"
  5621. static="true" final="true" visibility="public"
  5622. deprecated="not deprecated">
  5623. </field>
  5624. <field name="HADOOP_SECURITY_CREDENTIAL_PASSWORD_FILE_KEY" type="java.lang.String"
  5625. transient="false" volatile="false"
  5626. static="true" final="true" visibility="public"
  5627. deprecated="not deprecated">
  5628. <doc>
  5629. <![CDATA[@see
  5630. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5631. core-default.xml</a>]]>
  5632. </doc>
  5633. </field>
  5634. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS" type="java.lang.String"
  5635. transient="false" volatile="false"
  5636. static="true" final="true" visibility="public"
  5637. deprecated="not deprecated">
  5638. <doc>
  5639. <![CDATA[@see
  5640. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5641. core-default.xml</a>]]>
  5642. </doc>
  5643. </field>
  5644. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS_DEFAULT" type="java.lang.String"
  5645. transient="false" volatile="false"
  5646. static="true" final="true" visibility="public"
  5647. deprecated="not deprecated">
  5648. </field>
  5649. <field name="HADOOP_SYSTEM_TAGS" type="java.lang.String"
  5650. transient="false" volatile="false"
  5651. static="true" final="true" visibility="public"
  5652. deprecated="not deprecated">
  5653. </field>
  5654. <field name="HADOOP_CUSTOM_TAGS" type="java.lang.String"
  5655. transient="false" volatile="false"
  5656. static="true" final="true" visibility="public"
  5657. deprecated="not deprecated">
  5658. </field>
  5659. <field name="SERVICE_SHUTDOWN_TIMEOUT" type="java.lang.String"
  5660. transient="false" volatile="false"
  5661. static="true" final="true" visibility="public"
  5662. deprecated="not deprecated">
  5663. <doc>
  5664. <![CDATA[Configuration option for the shutdown hook manager shutdown time:
  5665. {@value}.]]>
  5666. </doc>
  5667. </field>
  5668. <field name="SERVICE_SHUTDOWN_TIMEOUT_DEFAULT" type="long"
  5669. transient="false" volatile="false"
  5670. static="true" final="true" visibility="public"
  5671. deprecated="not deprecated">
  5672. <doc>
  5673. <![CDATA[Default shutdown hook timeout: {@value} seconds.]]>
  5674. </doc>
  5675. </field>
  5676. <doc>
  5677. <![CDATA[This class contains constants for configuration keys used
  5678. in the common code.
  5679. It includes all publicly documented configuration keys. In general
  5680. this class should not be used directly (use CommonConfigurationKeys
  5681. instead)]]>
  5682. </doc>
  5683. </class>
  5684. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  5685. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  5686. <class name="ContentSummary" extends="org.apache.hadoop.fs.QuotaUsage"
  5687. abstract="false"
  5688. static="false" final="false" visibility="public"
  5689. deprecated="not deprecated">
  5690. <implements name="org.apache.hadoop.io.Writable"/>
  5691. <constructor name="ContentSummary"
  5692. static="false" final="false" visibility="public"
  5693. deprecated="not deprecated">
  5694. <doc>
  5695. <![CDATA[Constructor deprecated by ContentSummary.Builder]]>
  5696. </doc>
  5697. </constructor>
  5698. <constructor name="ContentSummary" type="long, long, long"
  5699. static="false" final="false" visibility="public"
  5700. deprecated="not deprecated">
  5701. <doc>
  5702. <![CDATA[Constructor, deprecated by ContentSummary.Builder
  5703. This constructor implicitly set spaceConsumed the same as length.
  5704. spaceConsumed and length must be set explicitly with
  5705. ContentSummary.Builder]]>
  5706. </doc>
  5707. </constructor>
  5708. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  5709. static="false" final="false" visibility="public"
  5710. deprecated="not deprecated">
  5711. <doc>
  5712. <![CDATA[Constructor, deprecated by ContentSummary.Builder]]>
  5713. </doc>
  5714. </constructor>
  5715. <method name="getLength" return="long"
  5716. abstract="false" native="false" synchronized="false"
  5717. static="false" final="false" visibility="public"
  5718. deprecated="not deprecated">
  5719. <doc>
  5720. <![CDATA[@return the length]]>
  5721. </doc>
  5722. </method>
  5723. <method name="getSnapshotLength" return="long"
  5724. abstract="false" native="false" synchronized="false"
  5725. static="false" final="false" visibility="public"
  5726. deprecated="not deprecated">
  5727. </method>
  5728. <method name="getDirectoryCount" return="long"
  5729. abstract="false" native="false" synchronized="false"
  5730. static="false" final="false" visibility="public"
  5731. deprecated="not deprecated">
  5732. <doc>
  5733. <![CDATA[@return the directory count]]>
  5734. </doc>
  5735. </method>
  5736. <method name="getSnapshotDirectoryCount" return="long"
  5737. abstract="false" native="false" synchronized="false"
  5738. static="false" final="false" visibility="public"
  5739. deprecated="not deprecated">
  5740. </method>
  5741. <method name="getFileCount" return="long"
  5742. abstract="false" native="false" synchronized="false"
  5743. static="false" final="false" visibility="public"
  5744. deprecated="not deprecated">
  5745. <doc>
  5746. <![CDATA[@return the file count]]>
  5747. </doc>
  5748. </method>
  5749. <method name="getSnapshotFileCount" return="long"
  5750. abstract="false" native="false" synchronized="false"
  5751. static="false" final="false" visibility="public"
  5752. deprecated="not deprecated">
  5753. </method>
  5754. <method name="getSnapshotSpaceConsumed" return="long"
  5755. abstract="false" native="false" synchronized="false"
  5756. static="false" final="false" visibility="public"
  5757. deprecated="not deprecated">
  5758. </method>
  5759. <method name="getErasureCodingPolicy" return="java.lang.String"
  5760. abstract="false" native="false" synchronized="false"
  5761. static="false" final="false" visibility="public"
  5762. deprecated="not deprecated">
  5763. </method>
  5764. <method name="equals" return="boolean"
  5765. abstract="false" native="false" synchronized="false"
  5766. static="false" final="false" visibility="public"
  5767. deprecated="not deprecated">
  5768. <param name="to" type="java.lang.Object"/>
  5769. </method>
  5770. <method name="hashCode" return="int"
  5771. abstract="false" native="false" synchronized="false"
  5772. static="false" final="false" visibility="public"
  5773. deprecated="not deprecated">
  5774. </method>
  5775. <method name="getHeader" return="java.lang.String"
  5776. abstract="false" native="false" synchronized="false"
  5777. static="true" final="false" visibility="public"
  5778. deprecated="not deprecated">
  5779. <param name="qOption" type="boolean"/>
  5780. <doc>
  5781. <![CDATA[Return the header of the output.
  5782. if qOption is false, output directory count, file count, and content size;
  5783. if qOption is true, output quota and remaining quota as well.
  5784. @param qOption a flag indicating if quota needs to be printed or not
  5785. @return the header of the output]]>
  5786. </doc>
  5787. </method>
  5788. <method name="getHeaderFields" return="java.lang.String[]"
  5789. abstract="false" native="false" synchronized="false"
  5790. static="true" final="false" visibility="public"
  5791. deprecated="not deprecated">
  5792. <doc>
  5793. <![CDATA[Returns the names of the fields from the summary header.
  5794. @return names of fields as displayed in the header]]>
  5795. </doc>
  5796. </method>
  5797. <method name="getQuotaHeaderFields" return="java.lang.String[]"
  5798. abstract="false" native="false" synchronized="false"
  5799. static="true" final="false" visibility="public"
  5800. deprecated="not deprecated">
  5801. <doc>
  5802. <![CDATA[Returns the names of the fields used in the quota summary.
  5803. @return names of quota fields as displayed in the header]]>
  5804. </doc>
  5805. </method>
  5806. <method name="toString" return="java.lang.String"
  5807. abstract="false" native="false" synchronized="false"
  5808. static="false" final="false" visibility="public"
  5809. deprecated="not deprecated">
  5810. </method>
  5811. <method name="toString" return="java.lang.String"
  5812. abstract="false" native="false" synchronized="false"
  5813. static="false" final="false" visibility="public"
  5814. deprecated="not deprecated">
  5815. <param name="qOption" type="boolean"/>
  5816. <doc>
  5817. <![CDATA[Return the string representation of the object in the output format.
  5818. if qOption is false, output directory count, file count, and content size;
  5819. if qOption is true, output quota and remaining quota as well.
  5820. @param qOption a flag indicating if quota needs to be printed or not
  5821. @return the string representation of the object]]>
  5822. </doc>
  5823. </method>
  5824. <method name="toString" return="java.lang.String"
  5825. abstract="false" native="false" synchronized="false"
  5826. static="false" final="false" visibility="public"
  5827. deprecated="not deprecated">
  5828. <param name="qOption" type="boolean"/>
  5829. <param name="hOption" type="boolean"/>
  5830. <doc>
  5831. <![CDATA[Return the string representation of the object in the output format.
  5832. For description of the options,
  5833. @see #toString(boolean, boolean, boolean, boolean, List)
  5834. @param qOption a flag indicating if quota needs to be printed or not
  5835. @param hOption a flag indicating if human readable output if to be used
  5836. @return the string representation of the object]]>
  5837. </doc>
  5838. </method>
  5839. <method name="toString" return="java.lang.String"
  5840. abstract="false" native="false" synchronized="false"
  5841. static="false" final="false" visibility="public"
  5842. deprecated="not deprecated">
  5843. <param name="qOption" type="boolean"/>
  5844. <param name="hOption" type="boolean"/>
  5845. <param name="xOption" type="boolean"/>
  5846. <doc>
  5847. <![CDATA[Return the string representation of the object in the output format.
  5848. For description of the options,
  5849. @see #toString(boolean, boolean, boolean, boolean, List)
  5850. @param qOption a flag indicating if quota needs to be printed or not
  5851. @param hOption a flag indicating if human readable output is to be used
  5852. @param xOption a flag indicating if calculation from snapshots is to be
  5853. included in the output
  5854. @return the string representation of the object]]>
  5855. </doc>
  5856. </method>
  5857. <method name="toString" return="java.lang.String"
  5858. abstract="false" native="false" synchronized="false"
  5859. static="false" final="false" visibility="public"
  5860. deprecated="not deprecated">
  5861. <param name="qOption" type="boolean"/>
  5862. <param name="hOption" type="boolean"/>
  5863. <param name="tOption" type="boolean"/>
  5864. <param name="types" type="java.util.List"/>
  5865. <doc>
  5866. <![CDATA[Return the string representation of the object in the output format.
  5867. For description of the options,
  5868. @see #toString(boolean, boolean, boolean, boolean, List)
  5869. @param qOption a flag indicating if quota needs to be printed or not
  5870. @param hOption a flag indicating if human readable output if to be used
  5871. @param tOption a flag indicating if display quota by storage types
  5872. @param types Storage types to display
  5873. @return the string representation of the object]]>
  5874. </doc>
  5875. </method>
  5876. <method name="toString" return="java.lang.String"
  5877. abstract="false" native="false" synchronized="false"
  5878. static="false" final="false" visibility="public"
  5879. deprecated="not deprecated">
  5880. <param name="qOption" type="boolean"/>
  5881. <param name="hOption" type="boolean"/>
  5882. <param name="tOption" type="boolean"/>
  5883. <param name="xOption" type="boolean"/>
  5884. <param name="types" type="java.util.List"/>
  5885. <doc>
  5886. <![CDATA[Return the string representation of the object in the output format.
  5887. if qOption is false, output directory count, file count, and content size;
  5888. if qOption is true, output quota and remaining quota as well.
  5889. if hOption is false, file sizes are returned in bytes
  5890. if hOption is true, file sizes are returned in human readable
  5891. if tOption is true, display the quota by storage types
  5892. if tOption is false, same logic with #toString(boolean,boolean)
  5893. if xOption is false, output includes the calculation from snapshots
  5894. if xOption is true, output excludes the calculation from snapshots
  5895. @param qOption a flag indicating if quota needs to be printed or not
  5896. @param hOption a flag indicating if human readable output is to be used
  5897. @param tOption a flag indicating if display quota by storage types
  5898. @param xOption a flag indicating if calculation from snapshots is to be
  5899. included in the output
  5900. @param types Storage types to display
  5901. @return the string representation of the object]]>
  5902. </doc>
  5903. </method>
  5904. <doc>
  5905. <![CDATA[Store the summary of a content (a directory or a file).]]>
  5906. </doc>
  5907. </class>
  5908. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  5909. <!-- start class org.apache.hadoop.fs.CreateFlag -->
  5910. <class name="CreateFlag" extends="java.lang.Enum"
  5911. abstract="false"
  5912. static="false" final="true" visibility="public"
  5913. deprecated="not deprecated">
  5914. <method name="values" return="org.apache.hadoop.fs.CreateFlag[]"
  5915. abstract="false" native="false" synchronized="false"
  5916. static="true" final="false" visibility="public"
  5917. deprecated="not deprecated">
  5918. </method>
  5919. <method name="valueOf" return="org.apache.hadoop.fs.CreateFlag"
  5920. abstract="false" native="false" synchronized="false"
  5921. static="true" final="false" visibility="public"
  5922. deprecated="not deprecated">
  5923. <param name="name" type="java.lang.String"/>
  5924. </method>
  5925. <method name="validate"
  5926. abstract="false" native="false" synchronized="false"
  5927. static="true" final="false" visibility="public"
  5928. deprecated="not deprecated">
  5929. <param name="flag" type="java.util.EnumSet"/>
  5930. <doc>
  5931. <![CDATA[Validate the CreateFlag and throw exception if it is invalid
  5932. @param flag set of CreateFlag
  5933. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  5934. </doc>
  5935. </method>
  5936. <method name="validate"
  5937. abstract="false" native="false" synchronized="false"
  5938. static="true" final="false" visibility="public"
  5939. deprecated="not deprecated">
  5940. <param name="path" type="java.lang.Object"/>
  5941. <param name="pathExists" type="boolean"/>
  5942. <param name="flag" type="java.util.EnumSet"/>
  5943. <exception name="IOException" type="java.io.IOException"/>
  5944. <doc>
  5945. <![CDATA[Validate the CreateFlag for create operation
  5946. @param path Object representing the path; usually String or {@link Path}
  5947. @param pathExists pass true if the path exists in the file system
  5948. @param flag set of CreateFlag
  5949. @throws IOException on error
  5950. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  5951. </doc>
  5952. </method>
  5953. <method name="validateForAppend"
  5954. abstract="false" native="false" synchronized="false"
  5955. static="true" final="false" visibility="public"
  5956. deprecated="not deprecated">
  5957. <param name="flag" type="java.util.EnumSet"/>
  5958. <doc>
  5959. <![CDATA[Validate the CreateFlag for the append operation. The flag must contain
  5960. APPEND, and cannot contain OVERWRITE.]]>
  5961. </doc>
  5962. </method>
  5963. <doc>
  5964. <![CDATA[CreateFlag specifies the file create semantic. Users can combine flags like: <br>
  5965. <code>
  5966. EnumSet.of(CreateFlag.CREATE, CreateFlag.APPEND)
  5967. <code>
  5968. <p>
  5969. Use the CreateFlag as follows:
  5970. <ol>
  5971. <li> CREATE - to create a file if it does not exist,
  5972. else throw FileAlreadyExists.</li>
  5973. <li> APPEND - to append to a file if it exists,
  5974. else throw FileNotFoundException.</li>
  5975. <li> OVERWRITE - to truncate a file if it exists,
  5976. else throw FileNotFoundException.</li>
  5977. <li> CREATE|APPEND - to create a file if it does not exist,
  5978. else append to an existing file.</li>
  5979. <li> CREATE|OVERWRITE - to create a file if it does not exist,
  5980. else overwrite an existing file.</li>
  5981. <li> SYNC_BLOCK - to force closed blocks to the disk device.
  5982. In addition {@link Syncable#hsync()} should be called after each write,
  5983. if true synchronous behavior is required.</li>
  5984. <li> LAZY_PERSIST - Create the block on transient storage (RAM) if
  5985. available.</li>
  5986. <li> APPEND_NEWBLOCK - Append data to a new block instead of end of the last
  5987. partial block.</li>
  5988. </ol>
  5989. Following combinations are not valid and will result in
  5990. {@link HadoopIllegalArgumentException}:
  5991. <ol>
  5992. <li> APPEND|OVERWRITE</li>
  5993. <li> CREATE|APPEND|OVERWRITE</li>
  5994. </ol>]]>
  5995. </doc>
  5996. </class>
  5997. <!-- end class org.apache.hadoop.fs.CreateFlag -->
  5998. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  5999. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  6000. abstract="false"
  6001. static="false" final="false" visibility="public"
  6002. deprecated="not deprecated">
  6003. <constructor name="FileAlreadyExistsException"
  6004. static="false" final="false" visibility="public"
  6005. deprecated="not deprecated">
  6006. </constructor>
  6007. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  6008. static="false" final="false" visibility="public"
  6009. deprecated="not deprecated">
  6010. </constructor>
  6011. <doc>
  6012. <![CDATA[Used when target file already exists for any operation and
  6013. is not configured to be overwritten.]]>
  6014. </doc>
  6015. </class>
  6016. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  6017. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  6018. <class name="FileChecksum" extends="java.lang.Object"
  6019. abstract="true"
  6020. static="false" final="false" visibility="public"
  6021. deprecated="not deprecated">
  6022. <implements name="org.apache.hadoop.io.Writable"/>
  6023. <constructor name="FileChecksum"
  6024. static="false" final="false" visibility="public"
  6025. deprecated="not deprecated">
  6026. </constructor>
  6027. <method name="getAlgorithmName" return="java.lang.String"
  6028. abstract="true" native="false" synchronized="false"
  6029. static="false" final="false" visibility="public"
  6030. deprecated="not deprecated">
  6031. <doc>
  6032. <![CDATA[The checksum algorithm name]]>
  6033. </doc>
  6034. </method>
  6035. <method name="getLength" return="int"
  6036. abstract="true" native="false" synchronized="false"
  6037. static="false" final="false" visibility="public"
  6038. deprecated="not deprecated">
  6039. <doc>
  6040. <![CDATA[The length of the checksum in bytes]]>
  6041. </doc>
  6042. </method>
  6043. <method name="getBytes" return="byte[]"
  6044. abstract="true" native="false" synchronized="false"
  6045. static="false" final="false" visibility="public"
  6046. deprecated="not deprecated">
  6047. <doc>
  6048. <![CDATA[The value of the checksum in bytes]]>
  6049. </doc>
  6050. </method>
  6051. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  6052. abstract="false" native="false" synchronized="false"
  6053. static="false" final="false" visibility="public"
  6054. deprecated="not deprecated">
  6055. </method>
  6056. <method name="equals" return="boolean"
  6057. abstract="false" native="false" synchronized="false"
  6058. static="false" final="false" visibility="public"
  6059. deprecated="not deprecated">
  6060. <param name="other" type="java.lang.Object"/>
  6061. <doc>
  6062. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  6063. </doc>
  6064. </method>
  6065. <method name="hashCode" return="int"
  6066. abstract="false" native="false" synchronized="false"
  6067. static="false" final="false" visibility="public"
  6068. deprecated="not deprecated">
  6069. </method>
  6070. <doc>
  6071. <![CDATA[An abstract class representing file checksums for files.]]>
  6072. </doc>
  6073. </class>
  6074. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  6075. <!-- start class org.apache.hadoop.fs.FileContext -->
  6076. <class name="FileContext" extends="java.lang.Object"
  6077. abstract="false"
  6078. static="false" final="false" visibility="public"
  6079. deprecated="not deprecated">
  6080. <method name="getFSofPath" return="org.apache.hadoop.fs.AbstractFileSystem"
  6081. abstract="false" native="false" synchronized="false"
  6082. static="false" final="false" visibility="protected"
  6083. deprecated="not deprecated">
  6084. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  6085. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6086. <exception name="IOException" type="java.io.IOException"/>
  6087. <doc>
  6088. <![CDATA[Get the file system of supplied path.
  6089. @param absOrFqPath - absolute or fully qualified path
  6090. @return the file system of the path
  6091. @throws UnsupportedFileSystemException If the file system for
  6092. <code>absOrFqPath</code> is not supported.
  6093. @throws IOException If the file system for <code>absOrFqPath</code> could
  6094. not be instantiated.]]>
  6095. </doc>
  6096. </method>
  6097. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6098. abstract="false" native="false" synchronized="false"
  6099. static="true" final="false" visibility="public"
  6100. deprecated="not deprecated">
  6101. <param name="defFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6102. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6103. <doc>
  6104. <![CDATA[Create a FileContext with specified FS as default using the specified
  6105. config.
  6106. @param defFS
  6107. @param aConf
  6108. @return new FileContext with specified FS as default.]]>
  6109. </doc>
  6110. </method>
  6111. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6112. abstract="false" native="false" synchronized="false"
  6113. static="true" final="false" visibility="protected"
  6114. deprecated="not deprecated">
  6115. <param name="defaultFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6116. <doc>
  6117. <![CDATA[Create a FileContext for specified file system using the default config.
  6118. @param defaultFS
  6119. @return a FileContext with the specified AbstractFileSystem
  6120. as the default FS.]]>
  6121. </doc>
  6122. </method>
  6123. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6124. abstract="false" native="false" synchronized="false"
  6125. static="true" final="false" visibility="public"
  6126. deprecated="not deprecated">
  6127. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6128. <doc>
  6129. <![CDATA[Create a FileContext using the default config read from the
  6130. $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
  6131. from core-defaults.xml in the release jar.
  6132. @throws UnsupportedFileSystemException If the file system from the default
  6133. configuration is not supported]]>
  6134. </doc>
  6135. </method>
  6136. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6137. abstract="false" native="false" synchronized="false"
  6138. static="true" final="false" visibility="public"
  6139. deprecated="not deprecated">
  6140. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6141. <doc>
  6142. <![CDATA[@return a FileContext for the local file system using the default config.
  6143. @throws UnsupportedFileSystemException If the file system for
  6144. {@link FsConstants#LOCAL_FS_URI} is not supported.]]>
  6145. </doc>
  6146. </method>
  6147. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6148. abstract="false" native="false" synchronized="false"
  6149. static="true" final="false" visibility="public"
  6150. deprecated="not deprecated">
  6151. <param name="defaultFsUri" type="java.net.URI"/>
  6152. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6153. <doc>
  6154. <![CDATA[Create a FileContext for specified URI using the default config.
  6155. @param defaultFsUri
  6156. @return a FileContext with the specified URI as the default FS.
  6157. @throws UnsupportedFileSystemException If the file system for
  6158. <code>defaultFsUri</code> is not supported]]>
  6159. </doc>
  6160. </method>
  6161. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6162. abstract="false" native="false" synchronized="false"
  6163. static="true" final="false" visibility="public"
  6164. deprecated="not deprecated">
  6165. <param name="defaultFsUri" type="java.net.URI"/>
  6166. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6167. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6168. <doc>
  6169. <![CDATA[Create a FileContext for specified default URI using the specified config.
  6170. @param defaultFsUri
  6171. @param aConf
  6172. @return new FileContext for specified uri
  6173. @throws UnsupportedFileSystemException If the file system with specified is
  6174. not supported
  6175. @throws RuntimeException If the file system specified is supported but
  6176. could not be instantiated, or if login fails.]]>
  6177. </doc>
  6178. </method>
  6179. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6180. abstract="false" native="false" synchronized="false"
  6181. static="true" final="false" visibility="public"
  6182. deprecated="not deprecated">
  6183. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6184. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6185. <doc>
  6186. <![CDATA[Create a FileContext using the passed config. Generally it is better to use
  6187. {@link #getFileContext(URI, Configuration)} instead of this one.
  6188. @param aConf
  6189. @return new FileContext
  6190. @throws UnsupportedFileSystemException If file system in the config
  6191. is not supported]]>
  6192. </doc>
  6193. </method>
  6194. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6195. abstract="false" native="false" synchronized="false"
  6196. static="true" final="false" visibility="public"
  6197. deprecated="not deprecated">
  6198. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6199. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6200. <doc>
  6201. <![CDATA[@param aConf - from which the FileContext is configured
  6202. @return a FileContext for the local file system using the specified config.
  6203. @throws UnsupportedFileSystemException If default file system in the config
  6204. is not supported]]>
  6205. </doc>
  6206. </method>
  6207. <method name="setWorkingDirectory"
  6208. abstract="false" native="false" synchronized="false"
  6209. static="false" final="false" visibility="public"
  6210. deprecated="not deprecated">
  6211. <param name="newWDir" type="org.apache.hadoop.fs.Path"/>
  6212. <exception name="IOException" type="java.io.IOException"/>
  6213. <doc>
  6214. <![CDATA[Set the working directory for wd-relative names (such a "foo/bar"). Working
  6215. directory feature is provided by simply prefixing relative names with the
  6216. working dir. Note this is different from Unix where the wd is actually set
  6217. to the inode. Hence setWorkingDir does not follow symlinks etc. This works
  6218. better in a distributed environment that has multiple independent roots.
  6219. {@link #getWorkingDirectory()} should return what setWorkingDir() set.
  6220. @param newWDir new working directory
  6221. @throws IOException
  6222. <br>
  6223. NewWdir can be one of:
  6224. <ul>
  6225. <li>relative path: "foo/bar";</li>
  6226. <li>absolute without scheme: "/foo/bar"</li>
  6227. <li>fully qualified with scheme: "xx://auth/foo/bar"</li>
  6228. </ul>
  6229. <br>
  6230. Illegal WDs:
  6231. <ul>
  6232. <li>relative with scheme: "xx:foo/bar"</li>
  6233. <li>non existent directory</li>
  6234. </ul>]]>
  6235. </doc>
  6236. </method>
  6237. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6238. abstract="false" native="false" synchronized="false"
  6239. static="false" final="false" visibility="public"
  6240. deprecated="not deprecated">
  6241. <doc>
  6242. <![CDATA[Gets the working directory for wd-relative names (such a "foo/bar").]]>
  6243. </doc>
  6244. </method>
  6245. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  6246. abstract="false" native="false" synchronized="false"
  6247. static="false" final="false" visibility="public"
  6248. deprecated="not deprecated">
  6249. <doc>
  6250. <![CDATA[Gets the ugi in the file-context
  6251. @return UserGroupInformation]]>
  6252. </doc>
  6253. </method>
  6254. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6255. abstract="false" native="false" synchronized="false"
  6256. static="false" final="false" visibility="public"
  6257. deprecated="not deprecated">
  6258. <doc>
  6259. <![CDATA[Return the current user's home directory in this file system.
  6260. The default implementation returns "/user/$USER/".
  6261. @return the home directory]]>
  6262. </doc>
  6263. </method>
  6264. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  6265. abstract="false" native="false" synchronized="false"
  6266. static="false" final="false" visibility="public"
  6267. deprecated="not deprecated">
  6268. <doc>
  6269. <![CDATA[@return the umask of this FileContext]]>
  6270. </doc>
  6271. </method>
  6272. <method name="setUMask"
  6273. abstract="false" native="false" synchronized="false"
  6274. static="false" final="false" visibility="public"
  6275. deprecated="not deprecated">
  6276. <param name="newUmask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6277. <doc>
  6278. <![CDATA[Set umask to the supplied parameter.
  6279. @param newUmask the new umask]]>
  6280. </doc>
  6281. </method>
  6282. <method name="resolvePath" 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. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6287. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6288. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  6289. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6290. <exception name="IOException" type="java.io.IOException"/>
  6291. <doc>
  6292. <![CDATA[Resolve the path following any symlinks or mount points
  6293. @param f to be resolved
  6294. @return fully qualified resolved path
  6295. @throws FileNotFoundException If <code>f</code> does not exist
  6296. @throws AccessControlException if access denied
  6297. @throws IOException If an IO Error occurred
  6298. Exceptions applicable to file systems accessed over RPC:
  6299. @throws RpcClientException If an exception occurred in the RPC client
  6300. @throws RpcServerException If an exception occurred in the RPC server
  6301. @throws UnexpectedServerException If server implementation throws
  6302. undeclared exception to RPC server
  6303. RuntimeExceptions:
  6304. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6305. </doc>
  6306. </method>
  6307. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6308. abstract="false" native="false" synchronized="false"
  6309. static="false" final="false" visibility="public"
  6310. deprecated="not deprecated">
  6311. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6312. <doc>
  6313. <![CDATA[Make the path fully qualified if it is isn't.
  6314. A Fully-qualified path has scheme and authority specified and an absolute
  6315. path.
  6316. Use the default file system and working dir in this FileContext to qualify.
  6317. @param path
  6318. @return qualified path]]>
  6319. </doc>
  6320. </method>
  6321. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6322. abstract="false" native="false" synchronized="false"
  6323. static="false" final="false" visibility="public"
  6324. deprecated="not deprecated">
  6325. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6326. <param name="createFlag" type="java.util.EnumSet"/>
  6327. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  6328. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6329. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6330. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6331. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6332. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6333. <exception name="IOException" type="java.io.IOException"/>
  6334. <doc>
  6335. <![CDATA[Create or overwrite file on indicated path and returns an output stream for
  6336. writing into the file.
  6337. @param f the file name to open
  6338. @param createFlag gives the semantics of create; see {@link CreateFlag}
  6339. @param opts file creation options; see {@link Options.CreateOpts}.
  6340. <ul>
  6341. <li>Progress - to report progress on the operation - default null
  6342. <li>Permission - umask is applied against permission: default is
  6343. FsPermissions:getDefault()
  6344. <li>CreateParent - create missing parent path; default is to not
  6345. to create parents
  6346. <li>The defaults for the following are SS defaults of the file
  6347. server implementing the target path. Not all parameters make sense
  6348. for all kinds of file system - eg. localFS ignores Blocksize,
  6349. replication, checksum
  6350. <ul>
  6351. <li>BufferSize - buffersize used in FSDataOutputStream
  6352. <li>Blocksize - block size for file blocks
  6353. <li>ReplicationFactor - replication for blocks
  6354. <li>ChecksumParam - Checksum parameters. server default is used
  6355. if not specified.
  6356. </ul>
  6357. </ul>
  6358. @return {@link FSDataOutputStream} for created file
  6359. @throws AccessControlException If access is denied
  6360. @throws FileAlreadyExistsException If file <code>f</code> already exists
  6361. @throws FileNotFoundException If parent of <code>f</code> does not exist
  6362. and <code>createParent</code> is false
  6363. @throws ParentNotDirectoryException If parent of <code>f</code> is not a
  6364. directory.
  6365. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6366. not supported
  6367. @throws IOException If an I/O error occurred
  6368. Exceptions applicable to file systems accessed over RPC:
  6369. @throws RpcClientException If an exception occurred in the RPC client
  6370. @throws RpcServerException If an exception occurred in the RPC server
  6371. @throws UnexpectedServerException If server implementation throws
  6372. undeclared exception to RPC server
  6373. RuntimeExceptions:
  6374. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6375. </doc>
  6376. </method>
  6377. <method name="mkdir"
  6378. abstract="false" native="false" synchronized="false"
  6379. static="false" final="false" visibility="public"
  6380. deprecated="not deprecated">
  6381. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6382. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6383. <param name="createParent" type="boolean"/>
  6384. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6385. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6386. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6387. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6388. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6389. <exception name="IOException" type="java.io.IOException"/>
  6390. <doc>
  6391. <![CDATA[Make(create) a directory and all the non-existent parents.
  6392. @param dir - the dir to make
  6393. @param permission - permissions is set permission&~umask
  6394. @param createParent - if true then missing parent dirs are created if false
  6395. then parent must exist
  6396. @throws AccessControlException If access is denied
  6397. @throws FileAlreadyExistsException If directory <code>dir</code> already
  6398. exists
  6399. @throws FileNotFoundException If parent of <code>dir</code> does not exist
  6400. and <code>createParent</code> is false
  6401. @throws ParentNotDirectoryException If parent of <code>dir</code> is not a
  6402. directory
  6403. @throws UnsupportedFileSystemException If file system for <code>dir</code>
  6404. is not supported
  6405. @throws IOException If an I/O error occurred
  6406. Exceptions applicable to file systems accessed over RPC:
  6407. @throws RpcClientException If an exception occurred in the RPC client
  6408. @throws UnexpectedServerException If server implementation throws
  6409. undeclared exception to RPC server
  6410. RuntimeExceptions:
  6411. @throws InvalidPathException If path <code>dir</code> is not valid]]>
  6412. </doc>
  6413. </method>
  6414. <method name="delete" return="boolean"
  6415. abstract="false" native="false" synchronized="false"
  6416. static="false" final="false" visibility="public"
  6417. deprecated="not deprecated">
  6418. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6419. <param name="recursive" type="boolean"/>
  6420. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6421. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6422. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6423. <exception name="IOException" type="java.io.IOException"/>
  6424. <doc>
  6425. <![CDATA[Delete a file.
  6426. @param f the path to delete.
  6427. @param recursive if path is a directory and set to
  6428. true, the directory is deleted else throws an exception. In
  6429. case of a file the recursive can be set to either true or false.
  6430. @throws AccessControlException If access is denied
  6431. @throws FileNotFoundException If <code>f</code> does not exist
  6432. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6433. not supported
  6434. @throws IOException If an I/O error occurred
  6435. Exceptions applicable to file systems accessed over RPC:
  6436. @throws RpcClientException If an exception occurred in the RPC client
  6437. @throws RpcServerException If an exception occurred in the RPC server
  6438. @throws UnexpectedServerException If server implementation throws
  6439. undeclared exception to RPC server
  6440. RuntimeExceptions:
  6441. @throws InvalidPathException If path <code>f</code> is invalid]]>
  6442. </doc>
  6443. </method>
  6444. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6445. abstract="false" native="false" synchronized="false"
  6446. static="false" final="false" visibility="public"
  6447. deprecated="not deprecated">
  6448. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6449. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6450. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6451. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6452. <exception name="IOException" type="java.io.IOException"/>
  6453. <doc>
  6454. <![CDATA[Opens an FSDataInputStream at the indicated Path using
  6455. default buffersize.
  6456. @param f the file name to open
  6457. @throws AccessControlException If access is denied
  6458. @throws FileNotFoundException If file <code>f</code> does not exist
  6459. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6460. is not supported
  6461. @throws IOException If an I/O error occurred
  6462. Exceptions applicable to file systems accessed over RPC:
  6463. @throws RpcClientException If an exception occurred in the RPC client
  6464. @throws RpcServerException If an exception occurred in the RPC server
  6465. @throws UnexpectedServerException If server implementation throws
  6466. undeclared exception to RPC server]]>
  6467. </doc>
  6468. </method>
  6469. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6470. abstract="false" native="false" synchronized="false"
  6471. static="false" final="false" visibility="public"
  6472. deprecated="not deprecated">
  6473. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6474. <param name="bufferSize" type="int"/>
  6475. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6476. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6477. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6478. <exception name="IOException" type="java.io.IOException"/>
  6479. <doc>
  6480. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  6481. @param f the file name to open
  6482. @param bufferSize the size of the buffer to be used.
  6483. @throws AccessControlException If access is denied
  6484. @throws FileNotFoundException If file <code>f</code> does not exist
  6485. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6486. not supported
  6487. @throws IOException If an I/O error occurred
  6488. Exceptions applicable to file systems accessed over RPC:
  6489. @throws RpcClientException If an exception occurred in the RPC client
  6490. @throws RpcServerException If an exception occurred in the RPC server
  6491. @throws UnexpectedServerException If server implementation throws
  6492. undeclared exception to RPC server]]>
  6493. </doc>
  6494. </method>
  6495. <method name="truncate" return="boolean"
  6496. abstract="false" native="false" synchronized="false"
  6497. static="false" final="false" visibility="public"
  6498. deprecated="not deprecated">
  6499. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6500. <param name="newLength" type="long"/>
  6501. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6502. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6503. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6504. <exception name="IOException" type="java.io.IOException"/>
  6505. <doc>
  6506. <![CDATA[Truncate the file in the indicated path to the indicated size.
  6507. <ul>
  6508. <li>Fails if path is a directory.
  6509. <li>Fails if path does not exist.
  6510. <li>Fails if path is not closed.
  6511. <li>Fails if new size is greater than current size.
  6512. </ul>
  6513. @param f The path to the file to be truncated
  6514. @param newLength The size the file is to be truncated to
  6515. @return <code>true</code> if the file has been truncated to the desired
  6516. <code>newLength</code> and is immediately available to be reused for
  6517. write operations such as <code>append</code>, or
  6518. <code>false</code> if a background process of adjusting the length of
  6519. the last block has been started, and clients should wait for it to
  6520. complete before proceeding with further file updates.
  6521. @throws AccessControlException If access is denied
  6522. @throws FileNotFoundException If file <code>f</code> does not exist
  6523. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6524. not supported
  6525. @throws IOException If an I/O error occurred
  6526. Exceptions applicable to file systems accessed over RPC:
  6527. @throws RpcClientException If an exception occurred in the RPC client
  6528. @throws RpcServerException If an exception occurred in the RPC server
  6529. @throws UnexpectedServerException If server implementation throws
  6530. undeclared exception to RPC server]]>
  6531. </doc>
  6532. </method>
  6533. <method name="setReplication" return="boolean"
  6534. abstract="false" native="false" synchronized="false"
  6535. static="false" final="false" visibility="public"
  6536. deprecated="not deprecated">
  6537. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6538. <param name="replication" type="short"/>
  6539. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6540. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6541. <exception name="IOException" type="java.io.IOException"/>
  6542. <doc>
  6543. <![CDATA[Set replication for an existing file.
  6544. @param f file name
  6545. @param replication new replication
  6546. @return true if successful
  6547. @throws AccessControlException If access is denied
  6548. @throws FileNotFoundException If file <code>f</code> does not exist
  6549. @throws IOException If an I/O error occurred
  6550. Exceptions applicable to file systems accessed over RPC:
  6551. @throws RpcClientException If an exception occurred in the RPC client
  6552. @throws RpcServerException If an exception occurred in the RPC server
  6553. @throws UnexpectedServerException If server implementation throws
  6554. undeclared exception to RPC server]]>
  6555. </doc>
  6556. </method>
  6557. <method name="rename"
  6558. abstract="false" native="false" synchronized="false"
  6559. static="false" final="false" visibility="public"
  6560. deprecated="not deprecated">
  6561. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6562. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6563. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  6564. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6565. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6566. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6567. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6568. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6569. <exception name="IOException" type="java.io.IOException"/>
  6570. <doc>
  6571. <![CDATA[Renames Path src to Path dst
  6572. <ul>
  6573. <li
  6574. <li>Fails if src is a file and dst is a directory.
  6575. <li>Fails if src is a directory and dst is a file.
  6576. <li>Fails if the parent of dst does not exist or is a file.
  6577. </ul>
  6578. <p>
  6579. If OVERWRITE option is not passed as an argument, rename fails if the dst
  6580. already exists.
  6581. <p>
  6582. If OVERWRITE option is passed as an argument, rename overwrites the dst if
  6583. it is a file or an empty directory. Rename fails if dst is a non-empty
  6584. directory.
  6585. <p>
  6586. Note that atomicity of rename is dependent on the file system
  6587. implementation. Please refer to the file system documentation for details
  6588. <p>
  6589. @param src path to be renamed
  6590. @param dst new path after rename
  6591. @throws AccessControlException If access is denied
  6592. @throws FileAlreadyExistsException If <code>dst</code> already exists and
  6593. <code>options</options> has {@link Options.Rename#OVERWRITE}
  6594. option false.
  6595. @throws FileNotFoundException If <code>src</code> does not exist
  6596. @throws ParentNotDirectoryException If parent of <code>dst</code> is not a
  6597. directory
  6598. @throws UnsupportedFileSystemException If file system for <code>src</code>
  6599. and <code>dst</code> is not supported
  6600. @throws IOException If an I/O error occurred
  6601. Exceptions applicable to file systems accessed over RPC:
  6602. @throws RpcClientException If an exception occurred in the RPC client
  6603. @throws RpcServerException If an exception occurred in the RPC server
  6604. @throws UnexpectedServerException If server implementation throws
  6605. undeclared exception to RPC server]]>
  6606. </doc>
  6607. </method>
  6608. <method name="setPermission"
  6609. abstract="false" native="false" synchronized="false"
  6610. static="false" final="false" visibility="public"
  6611. deprecated="not deprecated">
  6612. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6613. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6614. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6615. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6616. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6617. <exception name="IOException" type="java.io.IOException"/>
  6618. <doc>
  6619. <![CDATA[Set permission of a path.
  6620. @param f
  6621. @param permission - the new absolute permission (umask is not applied)
  6622. @throws AccessControlException If access is denied
  6623. @throws FileNotFoundException If <code>f</code> does not exist
  6624. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6625. is not supported
  6626. @throws IOException If an I/O error occurred
  6627. Exceptions applicable to file systems accessed over RPC:
  6628. @throws RpcClientException If an exception occurred in the RPC client
  6629. @throws RpcServerException If an exception occurred in the RPC server
  6630. @throws UnexpectedServerException If server implementation throws
  6631. undeclared exception to RPC server]]>
  6632. </doc>
  6633. </method>
  6634. <method name="setOwner"
  6635. abstract="false" native="false" synchronized="false"
  6636. static="false" final="false" visibility="public"
  6637. deprecated="not deprecated">
  6638. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6639. <param name="username" type="java.lang.String"/>
  6640. <param name="groupname" type="java.lang.String"/>
  6641. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6642. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6643. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6644. <exception name="IOException" type="java.io.IOException"/>
  6645. <doc>
  6646. <![CDATA[Set owner of a path (i.e. a file or a directory). The parameters username
  6647. and groupname cannot both be null.
  6648. @param f The path
  6649. @param username If it is null, the original username remains unchanged.
  6650. @param groupname If it is null, the original groupname remains unchanged.
  6651. @throws AccessControlException If access is denied
  6652. @throws FileNotFoundException If <code>f</code> does not exist
  6653. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6654. not supported
  6655. @throws IOException If an I/O error occurred
  6656. Exceptions applicable to file systems accessed over RPC:
  6657. @throws RpcClientException If an exception occurred in the RPC client
  6658. @throws RpcServerException If an exception occurred in the RPC server
  6659. @throws UnexpectedServerException If server implementation throws
  6660. undeclared exception to RPC server
  6661. RuntimeExceptions:
  6662. @throws HadoopIllegalArgumentException If <code>username</code> or
  6663. <code>groupname</code> is invalid.]]>
  6664. </doc>
  6665. </method>
  6666. <method name="setTimes"
  6667. abstract="false" native="false" synchronized="false"
  6668. static="false" final="false" visibility="public"
  6669. deprecated="not deprecated">
  6670. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6671. <param name="mtime" type="long"/>
  6672. <param name="atime" type="long"/>
  6673. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6674. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6675. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6676. <exception name="IOException" type="java.io.IOException"/>
  6677. <doc>
  6678. <![CDATA[Set access time of a file.
  6679. @param f The path
  6680. @param mtime Set the modification time of this file.
  6681. The number of milliseconds since epoch (Jan 1, 1970).
  6682. A value of -1 means that this call should not set modification time.
  6683. @param atime Set the access time of this file.
  6684. The number of milliseconds since Jan 1, 1970.
  6685. A value of -1 means that this call should not set access time.
  6686. @throws AccessControlException If access is denied
  6687. @throws FileNotFoundException If <code>f</code> does not exist
  6688. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6689. not supported
  6690. @throws IOException If an I/O error occurred
  6691. Exceptions applicable to file systems accessed over RPC:
  6692. @throws RpcClientException If an exception occurred in the RPC client
  6693. @throws RpcServerException If an exception occurred in the RPC server
  6694. @throws UnexpectedServerException If server implementation throws
  6695. undeclared exception to RPC server]]>
  6696. </doc>
  6697. </method>
  6698. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  6699. abstract="false" native="false" synchronized="false"
  6700. static="false" final="false" visibility="public"
  6701. deprecated="not deprecated">
  6702. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6703. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6704. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6705. <exception name="IOException" type="java.io.IOException"/>
  6706. <doc>
  6707. <![CDATA[Get the checksum of a file.
  6708. @param f file path
  6709. @return The file checksum. The default return value is null,
  6710. which indicates that no checksum algorithm is implemented
  6711. in the corresponding FileSystem.
  6712. @throws AccessControlException If access is denied
  6713. @throws FileNotFoundException If <code>f</code> does not exist
  6714. @throws IOException If an I/O error occurred
  6715. Exceptions applicable to file systems accessed over RPC:
  6716. @throws RpcClientException If an exception occurred in the RPC client
  6717. @throws RpcServerException If an exception occurred in the RPC server
  6718. @throws UnexpectedServerException If server implementation throws
  6719. undeclared exception to RPC server]]>
  6720. </doc>
  6721. </method>
  6722. <method name="setVerifyChecksum"
  6723. abstract="false" native="false" synchronized="false"
  6724. static="false" final="false" visibility="public"
  6725. deprecated="not deprecated">
  6726. <param name="verifyChecksum" type="boolean"/>
  6727. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6728. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6729. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6730. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6731. <exception name="IOException" type="java.io.IOException"/>
  6732. <doc>
  6733. <![CDATA[Set the verify checksum flag for the file system denoted by the path.
  6734. This is only applicable if the
  6735. corresponding FileSystem supports checksum. By default doesn't do anything.
  6736. @param verifyChecksum
  6737. @param f set the verifyChecksum for the Filesystem containing this path
  6738. @throws AccessControlException If access is denied
  6739. @throws FileNotFoundException If <code>f</code> does not exist
  6740. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6741. not supported
  6742. @throws IOException If an I/O error occurred
  6743. Exceptions applicable to file systems accessed over RPC:
  6744. @throws RpcClientException If an exception occurred in the RPC client
  6745. @throws RpcServerException If an exception occurred in the RPC server
  6746. @throws UnexpectedServerException If server implementation throws
  6747. undeclared exception to RPC server]]>
  6748. </doc>
  6749. </method>
  6750. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6751. abstract="false" native="false" synchronized="false"
  6752. static="false" final="false" visibility="public"
  6753. deprecated="not deprecated">
  6754. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6755. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6756. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6757. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6758. <exception name="IOException" type="java.io.IOException"/>
  6759. <doc>
  6760. <![CDATA[Return a file status object that represents the path.
  6761. @param f The path we want information from
  6762. @return a FileStatus object
  6763. @throws AccessControlException If access is denied
  6764. @throws FileNotFoundException If <code>f</code> does not exist
  6765. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6766. not supported
  6767. @throws IOException If an I/O error occurred
  6768. Exceptions applicable to file systems accessed over RPC:
  6769. @throws RpcClientException If an exception occurred in the RPC client
  6770. @throws RpcServerException If an exception occurred in the RPC server
  6771. @throws UnexpectedServerException If server implementation throws
  6772. undeclared exception to RPC server]]>
  6773. </doc>
  6774. </method>
  6775. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  6776. abstract="false" native="false" synchronized="false"
  6777. static="false" final="false" visibility="public"
  6778. deprecated="not deprecated">
  6779. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6780. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6781. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6782. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6783. <exception name="IOException" type="java.io.IOException"/>
  6784. <doc>
  6785. <![CDATA[Return a file status object that represents the path. If the path
  6786. refers to a symlink then the FileStatus of the symlink is returned.
  6787. The behavior is equivalent to #getFileStatus() if the underlying
  6788. file system does not support symbolic links.
  6789. @param f The path we want information from.
  6790. @return A FileStatus object
  6791. @throws AccessControlException If access is denied
  6792. @throws FileNotFoundException If <code>f</code> does not exist
  6793. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6794. not supported
  6795. @throws IOException If an I/O error occurred]]>
  6796. </doc>
  6797. </method>
  6798. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  6799. abstract="false" native="false" synchronized="false"
  6800. static="false" final="false" visibility="public"
  6801. deprecated="not deprecated">
  6802. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6803. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6804. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6805. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6806. <exception name="IOException" type="java.io.IOException"/>
  6807. <doc>
  6808. <![CDATA[Returns the target of the given symbolic link as it was specified
  6809. when the link was created. Links in the path leading up to the
  6810. final path component are resolved transparently.
  6811. @param f the path to return the target of
  6812. @return The un-interpreted target of the symbolic link.
  6813. @throws AccessControlException If access is denied
  6814. @throws FileNotFoundException If path <code>f</code> does not exist
  6815. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6816. not supported
  6817. @throws IOException If the given path does not refer to a symlink
  6818. or an I/O error occurred]]>
  6819. </doc>
  6820. </method>
  6821. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  6822. abstract="false" native="false" synchronized="false"
  6823. static="false" final="false" visibility="public"
  6824. deprecated="not deprecated">
  6825. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6826. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6827. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6828. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6829. <exception name="IOException" type="java.io.IOException"/>
  6830. <doc>
  6831. <![CDATA[Returns a status object describing the use and capacity of the
  6832. file system denoted by the Parh argument p.
  6833. If the file system has multiple partitions, the
  6834. use and capacity of the partition pointed to by the specified
  6835. path is reflected.
  6836. @param f Path for which status should be obtained. null means the
  6837. root partition of the default file system.
  6838. @return a FsStatus object
  6839. @throws AccessControlException If access is denied
  6840. @throws FileNotFoundException If <code>f</code> does not exist
  6841. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6842. not supported
  6843. @throws IOException If an I/O error occurred
  6844. Exceptions applicable to file systems accessed over RPC:
  6845. @throws RpcClientException If an exception occurred in the RPC client
  6846. @throws RpcServerException If an exception occurred in the RPC server
  6847. @throws UnexpectedServerException If server implementation throws
  6848. undeclared exception to RPC server]]>
  6849. </doc>
  6850. </method>
  6851. <method name="createSymlink"
  6852. abstract="false" native="false" synchronized="false"
  6853. static="false" final="false" visibility="public"
  6854. deprecated="not deprecated">
  6855. <param name="target" type="org.apache.hadoop.fs.Path"/>
  6856. <param name="link" type="org.apache.hadoop.fs.Path"/>
  6857. <param name="createParent" type="boolean"/>
  6858. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6859. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6860. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6861. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6862. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6863. <exception name="IOException" type="java.io.IOException"/>
  6864. <doc>
  6865. <![CDATA[Creates a symbolic link to an existing file. An exception is thrown if
  6866. the symlink exits, the user does not have permission to create symlink,
  6867. or the underlying file system does not support symlinks.
  6868. Symlink permissions are ignored, access to a symlink is determined by
  6869. the permissions of the symlink target.
  6870. Symlinks in paths leading up to the final path component are resolved
  6871. transparently. If the final path component refers to a symlink some
  6872. functions operate on the symlink itself, these are:
  6873. - delete(f) and deleteOnExit(f) - Deletes the symlink.
  6874. - rename(src, dst) - If src refers to a symlink, the symlink is
  6875. renamed. If dst refers to a symlink, the symlink is over-written.
  6876. - getLinkTarget(f) - Returns the target of the symlink.
  6877. - getFileLinkStatus(f) - Returns a FileStatus object describing
  6878. the symlink.
  6879. Some functions, create() and mkdir(), expect the final path component
  6880. does not exist. If they are given a path that refers to a symlink that
  6881. does exist they behave as if the path referred to an existing file or
  6882. directory. All other functions fully resolve, ie follow, the symlink.
  6883. These are: open, setReplication, setOwner, setTimes, setWorkingDirectory,
  6884. setPermission, getFileChecksum, setVerifyChecksum, getFileBlockLocations,
  6885. getFsStatus, getFileStatus, exists, and listStatus.
  6886. Symlink targets are stored as given to createSymlink, assuming the
  6887. underlying file system is capable of storing a fully qualified URI.
  6888. Dangling symlinks are permitted. FileContext supports four types of
  6889. symlink targets, and resolves them as follows
  6890. <pre>
  6891. Given a path referring to a symlink of form:
  6892. <---X--->
  6893. fs://host/A/B/link
  6894. <-----Y----->
  6895. In this path X is the scheme and authority that identify the file system,
  6896. and Y is the path leading up to the final path component "link". If Y is
  6897. a symlink itself then let Y' be the target of Y and X' be the scheme and
  6898. authority of Y'. Symlink targets may:
  6899. 1. Fully qualified URIs
  6900. fs://hostX/A/B/file Resolved according to the target file system.
  6901. 2. Partially qualified URIs (eg scheme but no host)
  6902. fs:///A/B/file Resolved according to the target file system. Eg resolving
  6903. a symlink to hdfs:///A results in an exception because
  6904. HDFS URIs must be fully qualified, while a symlink to
  6905. file:///A will not since Hadoop's local file systems
  6906. require partially qualified URIs.
  6907. 3. Relative paths
  6908. path Resolves to [Y'][path]. Eg if Y resolves to hdfs://host/A and path
  6909. is "../B/file" then [Y'][path] is hdfs://host/B/file
  6910. 4. Absolute paths
  6911. path Resolves to [X'][path]. Eg if Y resolves hdfs://host/A/B and path
  6912. is "/file" then [X][path] is hdfs://host/file
  6913. </pre>
  6914. @param target the target of the symbolic link
  6915. @param link the path to be created that points to target
  6916. @param createParent if true then missing parent dirs are created if
  6917. false then parent must exist
  6918. @throws AccessControlException If access is denied
  6919. @throws FileAlreadyExistsException If file <code>linkcode> already exists
  6920. @throws FileNotFoundException If <code>target</code> does not exist
  6921. @throws ParentNotDirectoryException If parent of <code>link</code> is not a
  6922. directory.
  6923. @throws UnsupportedFileSystemException If file system for
  6924. <code>target</code> or <code>link</code> is not supported
  6925. @throws IOException If an I/O error occurred]]>
  6926. </doc>
  6927. </method>
  6928. <method name="listStatus" return="org.apache.hadoop.fs.RemoteIterator"
  6929. abstract="false" native="false" synchronized="false"
  6930. static="false" final="false" visibility="public"
  6931. deprecated="not deprecated">
  6932. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6933. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6934. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6935. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6936. <exception name="IOException" type="java.io.IOException"/>
  6937. <doc>
  6938. <![CDATA[List the statuses of the files/directories in the given path if the path is
  6939. a directory.
  6940. @param f is the path
  6941. @return an iterator that traverses statuses of the files/directories
  6942. in the given path
  6943. @throws AccessControlException If access is denied
  6944. @throws FileNotFoundException If <code>f</code> does not exist
  6945. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6946. not supported
  6947. @throws IOException If an I/O error occurred
  6948. Exceptions applicable to file systems accessed over RPC:
  6949. @throws RpcClientException If an exception occurred in the RPC client
  6950. @throws RpcServerException If an exception occurred in the RPC server
  6951. @throws UnexpectedServerException If server implementation throws
  6952. undeclared exception to RPC server]]>
  6953. </doc>
  6954. </method>
  6955. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  6956. abstract="false" native="false" synchronized="false"
  6957. static="false" final="false" visibility="public"
  6958. deprecated="not deprecated">
  6959. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6960. <exception name="IOException" type="java.io.IOException"/>
  6961. <doc>
  6962. <![CDATA[@return an iterator over the corrupt files under the given path
  6963. (may contain duplicates if a file has more than one corrupt block)
  6964. @throws IOException]]>
  6965. </doc>
  6966. </method>
  6967. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  6968. abstract="false" native="false" synchronized="false"
  6969. static="false" final="false" visibility="public"
  6970. deprecated="not deprecated">
  6971. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6972. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6973. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6974. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6975. <exception name="IOException" type="java.io.IOException"/>
  6976. <doc>
  6977. <![CDATA[List the statuses of the files/directories in the given path if the path is
  6978. a directory.
  6979. Return the file's status and block locations If the path is a file.
  6980. If a returned status is a file, it contains the file's block locations.
  6981. @param f is the path
  6982. @return an iterator that traverses statuses of the files/directories
  6983. in the given path
  6984. If any IO exception (for example the input directory gets deleted while
  6985. listing is being executed), next() or hasNext() of the returned iterator
  6986. may throw a RuntimeException with the io exception as the cause.
  6987. @throws AccessControlException If access is denied
  6988. @throws FileNotFoundException If <code>f</code> does not exist
  6989. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6990. not supported
  6991. @throws IOException If an I/O error occurred
  6992. Exceptions applicable to file systems accessed over RPC:
  6993. @throws RpcClientException If an exception occurred in the RPC client
  6994. @throws RpcServerException If an exception occurred in the RPC server
  6995. @throws UnexpectedServerException If server implementation throws
  6996. undeclared exception to RPC server]]>
  6997. </doc>
  6998. </method>
  6999. <method name="deleteOnExit" return="boolean"
  7000. abstract="false" native="false" synchronized="false"
  7001. static="false" final="false" visibility="public"
  7002. deprecated="not deprecated">
  7003. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7004. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7005. <exception name="IOException" type="java.io.IOException"/>
  7006. <doc>
  7007. <![CDATA[Mark a path to be deleted on JVM shutdown.
  7008. @param f the existing path to delete.
  7009. @return true if deleteOnExit is successful, otherwise false.
  7010. @throws AccessControlException If access is denied
  7011. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7012. not supported
  7013. @throws IOException If an I/O error occurred
  7014. Exceptions applicable to file systems accessed over RPC:
  7015. @throws RpcClientException If an exception occurred in the RPC client
  7016. @throws RpcServerException If an exception occurred in the RPC server
  7017. @throws UnexpectedServerException If server implementation throws
  7018. undeclared exception to RPC server]]>
  7019. </doc>
  7020. </method>
  7021. <method name="util" return="org.apache.hadoop.fs.FileContext.Util"
  7022. abstract="false" native="false" synchronized="false"
  7023. static="false" final="false" visibility="public"
  7024. deprecated="not deprecated">
  7025. </method>
  7026. <method name="resolve" return="org.apache.hadoop.fs.Path"
  7027. abstract="false" native="false" synchronized="false"
  7028. static="false" final="false" visibility="protected"
  7029. deprecated="not deprecated">
  7030. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7031. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7032. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  7033. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7034. <exception name="IOException" type="java.io.IOException"/>
  7035. <doc>
  7036. <![CDATA[Resolves all symbolic links in the specified path.
  7037. Returns the new path object.]]>
  7038. </doc>
  7039. </method>
  7040. <method name="resolveIntermediate" return="org.apache.hadoop.fs.Path"
  7041. abstract="false" native="false" synchronized="false"
  7042. static="false" final="false" visibility="protected"
  7043. deprecated="not deprecated">
  7044. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7045. <exception name="IOException" type="java.io.IOException"/>
  7046. <doc>
  7047. <![CDATA[Resolves all symbolic links in the specified path leading up
  7048. to, but not including the final path component.
  7049. @param f path to resolve
  7050. @return the new path object.]]>
  7051. </doc>
  7052. </method>
  7053. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  7054. abstract="false" native="false" synchronized="false"
  7055. static="true" final="false" visibility="public"
  7056. deprecated="not deprecated">
  7057. <param name="uri" type="java.net.URI"/>
  7058. <doc>
  7059. <![CDATA[Get the statistics for a particular file system
  7060. @param uri
  7061. the uri to lookup the statistics. Only scheme and authority part
  7062. of the uri are used as the key to store and lookup.
  7063. @return a statistics object]]>
  7064. </doc>
  7065. </method>
  7066. <method name="clearStatistics"
  7067. abstract="false" native="false" synchronized="false"
  7068. static="true" final="false" visibility="public"
  7069. deprecated="not deprecated">
  7070. <doc>
  7071. <![CDATA[Clears all the statistics stored in AbstractFileSystem, for all the file
  7072. systems.]]>
  7073. </doc>
  7074. </method>
  7075. <method name="printStatistics"
  7076. abstract="false" native="false" synchronized="false"
  7077. static="true" final="false" visibility="public"
  7078. deprecated="not deprecated">
  7079. <doc>
  7080. <![CDATA[Prints the statistics to standard output. File System is identified by the
  7081. scheme and authority.]]>
  7082. </doc>
  7083. </method>
  7084. <method name="getAllStatistics" return="java.util.Map"
  7085. abstract="false" native="false" synchronized="false"
  7086. static="true" final="false" visibility="public"
  7087. deprecated="not deprecated">
  7088. <doc>
  7089. <![CDATA[@return Map of uri and statistics for each filesystem instantiated. The uri
  7090. consists of scheme and authority for the filesystem.]]>
  7091. </doc>
  7092. </method>
  7093. <method name="modifyAclEntries"
  7094. abstract="false" native="false" synchronized="false"
  7095. static="false" final="false" visibility="public"
  7096. deprecated="not deprecated">
  7097. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7098. <param name="aclSpec" type="java.util.List"/>
  7099. <exception name="IOException" type="java.io.IOException"/>
  7100. <doc>
  7101. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  7102. entries or modify the permissions on existing ACL entries. All existing
  7103. ACL entries that are not specified in this call are retained without
  7104. changes. (Modifications are merged into the current ACL.)
  7105. @param path Path to modify
  7106. @param aclSpec List<AclEntry> describing modifications
  7107. @throws IOException if an ACL could not be modified]]>
  7108. </doc>
  7109. </method>
  7110. <method name="removeAclEntries"
  7111. abstract="false" native="false" synchronized="false"
  7112. static="false" final="false" visibility="public"
  7113. deprecated="not deprecated">
  7114. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7115. <param name="aclSpec" type="java.util.List"/>
  7116. <exception name="IOException" type="java.io.IOException"/>
  7117. <doc>
  7118. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  7119. retained.
  7120. @param path Path to modify
  7121. @param aclSpec List<AclEntry> describing entries to remove
  7122. @throws IOException if an ACL could not be modified]]>
  7123. </doc>
  7124. </method>
  7125. <method name="removeDefaultAcl"
  7126. abstract="false" native="false" synchronized="false"
  7127. static="false" final="false" visibility="public"
  7128. deprecated="not deprecated">
  7129. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7130. <exception name="IOException" type="java.io.IOException"/>
  7131. <doc>
  7132. <![CDATA[Removes all default ACL entries from files and directories.
  7133. @param path Path to modify
  7134. @throws IOException if an ACL could not be modified]]>
  7135. </doc>
  7136. </method>
  7137. <method name="removeAcl"
  7138. abstract="false" native="false" synchronized="false"
  7139. static="false" final="false" visibility="public"
  7140. deprecated="not deprecated">
  7141. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7142. <exception name="IOException" type="java.io.IOException"/>
  7143. <doc>
  7144. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  7145. for user, group, and others are retained for compatibility with permission
  7146. bits.
  7147. @param path Path to modify
  7148. @throws IOException if an ACL could not be removed]]>
  7149. </doc>
  7150. </method>
  7151. <method name="setAcl"
  7152. abstract="false" native="false" synchronized="false"
  7153. static="false" final="false" visibility="public"
  7154. deprecated="not deprecated">
  7155. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7156. <param name="aclSpec" type="java.util.List"/>
  7157. <exception name="IOException" type="java.io.IOException"/>
  7158. <doc>
  7159. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  7160. entries.
  7161. @param path Path to modify
  7162. @param aclSpec List<AclEntry> describing modifications, must include entries
  7163. for user, group, and others for compatibility with permission bits.
  7164. @throws IOException if an ACL could not be modified]]>
  7165. </doc>
  7166. </method>
  7167. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  7168. abstract="false" native="false" synchronized="false"
  7169. static="false" final="false" visibility="public"
  7170. deprecated="not deprecated">
  7171. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7172. <exception name="IOException" type="java.io.IOException"/>
  7173. <doc>
  7174. <![CDATA[Gets the ACLs of files and directories.
  7175. @param path Path to get
  7176. @return RemoteIterator<AclStatus> which returns each AclStatus
  7177. @throws IOException if an ACL could not be read]]>
  7178. </doc>
  7179. </method>
  7180. <method name="setXAttr"
  7181. abstract="false" native="false" synchronized="false"
  7182. static="false" final="false" visibility="public"
  7183. deprecated="not deprecated">
  7184. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7185. <param name="name" type="java.lang.String"/>
  7186. <param name="value" type="byte[]"/>
  7187. <exception name="IOException" type="java.io.IOException"/>
  7188. <doc>
  7189. <![CDATA[Set an xattr of a file or directory.
  7190. The name must be prefixed with the namespace followed by ".". For example,
  7191. "user.attr".
  7192. <p/>
  7193. Refer to the HDFS extended attributes user documentation for details.
  7194. @param path Path to modify
  7195. @param name xattr name.
  7196. @param value xattr value.
  7197. @throws IOException]]>
  7198. </doc>
  7199. </method>
  7200. <method name="setXAttr"
  7201. abstract="false" native="false" synchronized="false"
  7202. static="false" final="false" visibility="public"
  7203. deprecated="not deprecated">
  7204. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7205. <param name="name" type="java.lang.String"/>
  7206. <param name="value" type="byte[]"/>
  7207. <param name="flag" type="java.util.EnumSet"/>
  7208. <exception name="IOException" type="java.io.IOException"/>
  7209. <doc>
  7210. <![CDATA[Set an xattr of a file or directory.
  7211. The name must be prefixed with the namespace followed by ".". For example,
  7212. "user.attr".
  7213. <p/>
  7214. Refer to the HDFS extended attributes user documentation for details.
  7215. @param path Path to modify
  7216. @param name xattr name.
  7217. @param value xattr value.
  7218. @param flag xattr set flag
  7219. @throws IOException]]>
  7220. </doc>
  7221. </method>
  7222. <method name="getXAttr" return="byte[]"
  7223. abstract="false" native="false" synchronized="false"
  7224. static="false" final="false" visibility="public"
  7225. deprecated="not deprecated">
  7226. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7227. <param name="name" type="java.lang.String"/>
  7228. <exception name="IOException" type="java.io.IOException"/>
  7229. <doc>
  7230. <![CDATA[Get an xattr for a file or directory.
  7231. The name must be prefixed with the namespace followed by ".". For example,
  7232. "user.attr".
  7233. <p/>
  7234. Refer to the HDFS extended attributes user documentation for details.
  7235. @param path Path to get extended attribute
  7236. @param name xattr name.
  7237. @return byte[] xattr value.
  7238. @throws IOException]]>
  7239. </doc>
  7240. </method>
  7241. <method name="getXAttrs" return="java.util.Map"
  7242. abstract="false" native="false" synchronized="false"
  7243. static="false" final="false" visibility="public"
  7244. deprecated="not deprecated">
  7245. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7246. <exception name="IOException" type="java.io.IOException"/>
  7247. <doc>
  7248. <![CDATA[Get all of the xattrs for a file or directory.
  7249. Only those xattrs for which the logged-in user has permissions to view
  7250. are returned.
  7251. <p/>
  7252. Refer to the HDFS extended attributes user documentation for details.
  7253. @param path Path to get extended attributes
  7254. @return Map<String, byte[]> describing the XAttrs of the file or directory
  7255. @throws IOException]]>
  7256. </doc>
  7257. </method>
  7258. <method name="getXAttrs" return="java.util.Map"
  7259. abstract="false" native="false" synchronized="false"
  7260. static="false" final="false" visibility="public"
  7261. deprecated="not deprecated">
  7262. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7263. <param name="names" type="java.util.List"/>
  7264. <exception name="IOException" type="java.io.IOException"/>
  7265. <doc>
  7266. <![CDATA[Get all of the xattrs for a file or directory.
  7267. Only those xattrs for which the logged-in user has permissions to view
  7268. are returned.
  7269. <p/>
  7270. Refer to the HDFS extended attributes user documentation for details.
  7271. @param path Path to get extended attributes
  7272. @param names XAttr names.
  7273. @return Map<String, byte[]> describing the XAttrs of the file or directory
  7274. @throws IOException]]>
  7275. </doc>
  7276. </method>
  7277. <method name="removeXAttr"
  7278. abstract="false" native="false" synchronized="false"
  7279. static="false" final="false" visibility="public"
  7280. deprecated="not deprecated">
  7281. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7282. <param name="name" type="java.lang.String"/>
  7283. <exception name="IOException" type="java.io.IOException"/>
  7284. <doc>
  7285. <![CDATA[Remove an xattr of a file or directory.
  7286. The name must be prefixed with the namespace followed by ".". For example,
  7287. "user.attr".
  7288. <p/>
  7289. Refer to the HDFS extended attributes user documentation for details.
  7290. @param path Path to remove extended attribute
  7291. @param name xattr name
  7292. @throws IOException]]>
  7293. </doc>
  7294. </method>
  7295. <method name="listXAttrs" return="java.util.List"
  7296. abstract="false" native="false" synchronized="false"
  7297. static="false" final="false" visibility="public"
  7298. deprecated="not deprecated">
  7299. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7300. <exception name="IOException" type="java.io.IOException"/>
  7301. <doc>
  7302. <![CDATA[Get all of the xattr names for a file or directory.
  7303. Only those xattr names which the logged-in user has permissions to view
  7304. are returned.
  7305. <p/>
  7306. Refer to the HDFS extended attributes user documentation for details.
  7307. @param path Path to get extended attributes
  7308. @return List<String> of the XAttr names of the file or directory
  7309. @throws IOException]]>
  7310. </doc>
  7311. </method>
  7312. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  7313. abstract="false" native="false" synchronized="false"
  7314. static="false" final="true" visibility="public"
  7315. deprecated="not deprecated">
  7316. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7317. <exception name="IOException" type="java.io.IOException"/>
  7318. <doc>
  7319. <![CDATA[Create a snapshot with a default name.
  7320. @param path The directory where snapshots will be taken.
  7321. @return the snapshot path.
  7322. @throws IOException If an I/O error occurred
  7323. <p>Exceptions applicable to file systems accessed over RPC:
  7324. @throws RpcClientException If an exception occurred in the RPC client
  7325. @throws RpcServerException If an exception occurred in the RPC server
  7326. @throws UnexpectedServerException If server implementation throws
  7327. undeclared exception to RPC server]]>
  7328. </doc>
  7329. </method>
  7330. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  7331. abstract="false" native="false" synchronized="false"
  7332. static="false" final="false" visibility="public"
  7333. deprecated="not deprecated">
  7334. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7335. <param name="snapshotName" type="java.lang.String"/>
  7336. <exception name="IOException" type="java.io.IOException"/>
  7337. <doc>
  7338. <![CDATA[Create a snapshot.
  7339. @param path The directory where snapshots will be taken.
  7340. @param snapshotName The name of the snapshot
  7341. @return the snapshot path.
  7342. @throws IOException If an I/O error occurred
  7343. <p>Exceptions applicable to file systems accessed over RPC:
  7344. @throws RpcClientException If an exception occurred in the RPC client
  7345. @throws RpcServerException If an exception occurred in the RPC server
  7346. @throws UnexpectedServerException If server implementation throws
  7347. undeclared exception to RPC server]]>
  7348. </doc>
  7349. </method>
  7350. <method name="renameSnapshot"
  7351. abstract="false" native="false" synchronized="false"
  7352. static="false" final="false" visibility="public"
  7353. deprecated="not deprecated">
  7354. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7355. <param name="snapshotOldName" type="java.lang.String"/>
  7356. <param name="snapshotNewName" type="java.lang.String"/>
  7357. <exception name="IOException" type="java.io.IOException"/>
  7358. <doc>
  7359. <![CDATA[Rename a snapshot.
  7360. @param path The directory path where the snapshot was taken
  7361. @param snapshotOldName Old name of the snapshot
  7362. @param snapshotNewName New name of the snapshot
  7363. @throws IOException If an I/O error occurred
  7364. <p>Exceptions applicable to file systems accessed over RPC:
  7365. @throws RpcClientException If an exception occurred in the RPC client
  7366. @throws RpcServerException If an exception occurred in the RPC server
  7367. @throws UnexpectedServerException If server implementation throws
  7368. undeclared exception to RPC server]]>
  7369. </doc>
  7370. </method>
  7371. <method name="deleteSnapshot"
  7372. abstract="false" native="false" synchronized="false"
  7373. static="false" final="false" visibility="public"
  7374. deprecated="not deprecated">
  7375. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7376. <param name="snapshotName" type="java.lang.String"/>
  7377. <exception name="IOException" type="java.io.IOException"/>
  7378. <doc>
  7379. <![CDATA[Delete a snapshot of a directory.
  7380. @param path The directory that the to-be-deleted snapshot belongs to
  7381. @param snapshotName The name of the snapshot
  7382. @throws IOException If an I/O error occurred
  7383. <p>Exceptions applicable to file systems accessed over RPC:
  7384. @throws RpcClientException If an exception occurred in the RPC client
  7385. @throws RpcServerException If an exception occurred in the RPC server
  7386. @throws UnexpectedServerException If server implementation throws
  7387. undeclared exception to RPC server]]>
  7388. </doc>
  7389. </method>
  7390. <method name="setStoragePolicy"
  7391. abstract="false" native="false" synchronized="false"
  7392. static="false" final="false" visibility="public"
  7393. deprecated="not deprecated">
  7394. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7395. <param name="policyName" type="java.lang.String"/>
  7396. <exception name="IOException" type="java.io.IOException"/>
  7397. <doc>
  7398. <![CDATA[Set the storage policy for a given file or directory.
  7399. @param path file or directory path.
  7400. @param policyName the name of the target storage policy. The list
  7401. of supported Storage policies can be retrieved
  7402. via {@link #getAllStoragePolicies}.]]>
  7403. </doc>
  7404. </method>
  7405. <method name="unsetStoragePolicy"
  7406. abstract="false" native="false" synchronized="false"
  7407. static="false" final="false" visibility="public"
  7408. deprecated="not deprecated">
  7409. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7410. <exception name="IOException" type="java.io.IOException"/>
  7411. <doc>
  7412. <![CDATA[Unset the storage policy set for a given file or directory.
  7413. @param src file or directory path.
  7414. @throws IOException]]>
  7415. </doc>
  7416. </method>
  7417. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  7418. abstract="false" native="false" synchronized="false"
  7419. static="false" final="false" visibility="public"
  7420. deprecated="not deprecated">
  7421. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7422. <exception name="IOException" type="java.io.IOException"/>
  7423. <doc>
  7424. <![CDATA[Query the effective storage policy ID for the given file or directory.
  7425. @param path file or directory path.
  7426. @return storage policy for give file.
  7427. @throws IOException]]>
  7428. </doc>
  7429. </method>
  7430. <method name="getAllStoragePolicies" return="java.util.Collection"
  7431. abstract="false" native="false" synchronized="false"
  7432. static="false" final="false" visibility="public"
  7433. deprecated="not deprecated">
  7434. <exception name="IOException" type="java.io.IOException"/>
  7435. <doc>
  7436. <![CDATA[Retrieve all the storage policies supported by this file system.
  7437. @return all storage policies supported by this filesystem.
  7438. @throws IOException]]>
  7439. </doc>
  7440. </method>
  7441. <field name="LOG" type="org.slf4j.Logger"
  7442. transient="false" volatile="false"
  7443. static="true" final="true" visibility="public"
  7444. deprecated="not deprecated">
  7445. </field>
  7446. <field name="DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7447. transient="false" volatile="false"
  7448. static="true" final="true" visibility="public"
  7449. deprecated="not deprecated">
  7450. <doc>
  7451. <![CDATA[Default permission for directory and symlink
  7452. In previous versions, this default permission was also used to
  7453. create files, so files created end up with ugo+x permission.
  7454. See HADOOP-9155 for detail.
  7455. Two new constants are added to solve this, please use
  7456. {@link FileContext#DIR_DEFAULT_PERM} for directory, and use
  7457. {@link FileContext#FILE_DEFAULT_PERM} for file.
  7458. This constant is kept for compatibility.]]>
  7459. </doc>
  7460. </field>
  7461. <field name="DIR_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7462. transient="false" volatile="false"
  7463. static="true" final="true" visibility="public"
  7464. deprecated="not deprecated">
  7465. <doc>
  7466. <![CDATA[Default permission for directory]]>
  7467. </doc>
  7468. </field>
  7469. <field name="FILE_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7470. transient="false" volatile="false"
  7471. static="true" final="true" visibility="public"
  7472. deprecated="not deprecated">
  7473. <doc>
  7474. <![CDATA[Default permission for file]]>
  7475. </doc>
  7476. </field>
  7477. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  7478. transient="false" volatile="false"
  7479. static="true" final="true" visibility="public"
  7480. deprecated="not deprecated">
  7481. <doc>
  7482. <![CDATA[Priority of the FileContext shutdown hook.]]>
  7483. </doc>
  7484. </field>
  7485. <doc>
  7486. <![CDATA[The FileContext class provides an interface for users of the Hadoop
  7487. file system. It exposes a number of file system operations, e.g. create,
  7488. open, list.
  7489. <h2>Path Names</h2>
  7490. The Hadoop file system supports a URI namespace and URI names. This enables
  7491. multiple types of file systems to be referenced using fully-qualified URIs.
  7492. Two common Hadoop file system implementations are
  7493. <ul>
  7494. <li>the local file system: file:///path
  7495. <li>the HDFS file system: hdfs://nnAddress:nnPort/path
  7496. </ul>
  7497. The Hadoop file system also supports additional naming schemes besides URIs.
  7498. Hadoop has the concept of a <i>default file system</i>, which implies a
  7499. default URI scheme and authority. This enables <i>slash-relative names</i>
  7500. relative to the default FS, which are more convenient for users and
  7501. application writers. The default FS is typically set by the user's
  7502. environment, though it can also be manually specified.
  7503. <p>
  7504. Hadoop also supports <i>working-directory-relative</i> names, which are paths
  7505. relative to the current working directory (similar to Unix). The working
  7506. directory can be in a different file system than the default FS.
  7507. <p>
  7508. Thus, Hadoop path names can be specified as one of the following:
  7509. <ul>
  7510. <li>a fully-qualified URI: scheme://authority/path (e.g.
  7511. hdfs://nnAddress:nnPort/foo/bar)
  7512. <li>a slash-relative name: path relative to the default file system (e.g.
  7513. /foo/bar)
  7514. <li>a working-directory-relative name: path relative to the working dir (e.g.
  7515. foo/bar)
  7516. </ul>
  7517. Relative paths with scheme (scheme:foo/bar) are illegal.
  7518. <h2>Role of FileContext and Configuration Defaults</h2>
  7519. The FileContext is the analogue of per-process file-related state in Unix. It
  7520. contains two properties:
  7521. <ul>
  7522. <li>the default file system (for resolving slash-relative names)
  7523. <li>the umask (for file permissions)
  7524. </ul>
  7525. In general, these properties are obtained from the default configuration file
  7526. in the user's environment (see {@link Configuration}).
  7527. Further file system properties are specified on the server-side. File system
  7528. operations default to using these server-side defaults unless otherwise
  7529. specified.
  7530. <p>
  7531. The file system related server-side defaults are:
  7532. <ul>
  7533. <li> the home directory (default is "/user/userName")
  7534. <li> the initial wd (only for local fs)
  7535. <li> replication factor
  7536. <li> block size
  7537. <li> buffer size
  7538. <li> encryptDataTransfer
  7539. <li> checksum option. (checksumType and bytesPerChecksum)
  7540. </ul>
  7541. <h2>Example Usage</h2>
  7542. Example 1: use the default config read from the $HADOOP_CONFIG/core.xml.
  7543. Unspecified values come from core-defaults.xml in the release jar.
  7544. <ul>
  7545. <li> myFContext = FileContext.getFileContext(); // uses the default config
  7546. // which has your default FS
  7547. <li> myFContext.create(path, ...);
  7548. <li> myFContext.setWorkingDir(path);
  7549. <li> myFContext.open (path, ...);
  7550. <li>...
  7551. </ul>
  7552. Example 2: Get a FileContext with a specific URI as the default FS
  7553. <ul>
  7554. <li> myFContext = FileContext.getFileContext(URI);
  7555. <li> myFContext.create(path, ...);
  7556. <li>...
  7557. </ul>
  7558. Example 3: FileContext with local file system as the default
  7559. <ul>
  7560. <li> myFContext = FileContext.getLocalFSFileContext();
  7561. <li> myFContext.create(path, ...);
  7562. <li> ...
  7563. </ul>
  7564. Example 4: Use a specific config, ignoring $HADOOP_CONFIG
  7565. Generally you should not need use a config unless you are doing
  7566. <ul>
  7567. <li> configX = someConfigSomeOnePassedToYou;
  7568. <li> myFContext = getFileContext(configX); // configX is not changed,
  7569. // is passed down
  7570. <li> myFContext.create(path, ...);
  7571. <li>...
  7572. </ul>]]>
  7573. </doc>
  7574. </class>
  7575. <!-- end class org.apache.hadoop.fs.FileContext -->
  7576. <!-- start class org.apache.hadoop.fs.FileStatus -->
  7577. <class name="FileStatus" extends="java.lang.Object"
  7578. abstract="false"
  7579. static="false" final="false" visibility="public"
  7580. deprecated="not deprecated">
  7581. <implements name="org.apache.hadoop.io.Writable"/>
  7582. <implements name="java.lang.Comparable"/>
  7583. <implements name="java.io.Serializable"/>
  7584. <implements name="java.io.ObjectInputValidation"/>
  7585. <constructor name="FileStatus"
  7586. static="false" final="false" visibility="public"
  7587. deprecated="not deprecated">
  7588. </constructor>
  7589. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  7590. static="false" final="false" visibility="public"
  7591. deprecated="not deprecated">
  7592. </constructor>
  7593. <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"
  7594. static="false" final="false" visibility="public"
  7595. deprecated="not deprecated">
  7596. <doc>
  7597. <![CDATA[Constructor for file systems on which symbolic links are not supported]]>
  7598. </doc>
  7599. </constructor>
  7600. <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"
  7601. static="false" final="false" visibility="public"
  7602. deprecated="not deprecated">
  7603. </constructor>
  7604. <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, boolean, boolean, boolean"
  7605. static="false" final="false" visibility="public"
  7606. deprecated="not deprecated">
  7607. </constructor>
  7608. <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, java.util.Set"
  7609. static="false" final="false" visibility="public"
  7610. deprecated="not deprecated">
  7611. </constructor>
  7612. <constructor name="FileStatus" type="org.apache.hadoop.fs.FileStatus"
  7613. static="false" final="false" visibility="public"
  7614. deprecated="not deprecated">
  7615. <exception name="IOException" type="java.io.IOException"/>
  7616. <doc>
  7617. <![CDATA[Copy constructor.
  7618. @param other FileStatus to copy]]>
  7619. </doc>
  7620. </constructor>
  7621. <method name="attributes" return="java.util.Set"
  7622. abstract="false" native="false" synchronized="false"
  7623. static="true" final="false" visibility="public"
  7624. deprecated="not deprecated">
  7625. <param name="acl" type="boolean"/>
  7626. <param name="crypt" type="boolean"/>
  7627. <param name="ec" type="boolean"/>
  7628. <param name="sn" type="boolean"/>
  7629. <doc>
  7630. <![CDATA[Convert boolean attributes to a set of flags.
  7631. @param acl See {@link AttrFlags#HAS_ACL}.
  7632. @param crypt See {@link AttrFlags#HAS_CRYPT}.
  7633. @param ec See {@link AttrFlags#HAS_EC}.
  7634. @param sn See {@link AttrFlags#SNAPSHOT_ENABLED}.
  7635. @return converted set of flags.]]>
  7636. </doc>
  7637. </method>
  7638. <method name="getLen" return="long"
  7639. abstract="false" native="false" synchronized="false"
  7640. static="false" final="false" visibility="public"
  7641. deprecated="not deprecated">
  7642. <doc>
  7643. <![CDATA[Get the length of this file, in bytes.
  7644. @return the length of this file, in bytes.]]>
  7645. </doc>
  7646. </method>
  7647. <method name="isFile" return="boolean"
  7648. abstract="false" native="false" synchronized="false"
  7649. static="false" final="false" visibility="public"
  7650. deprecated="not deprecated">
  7651. <doc>
  7652. <![CDATA[Is this a file?
  7653. @return true if this is a file]]>
  7654. </doc>
  7655. </method>
  7656. <method name="isDirectory" return="boolean"
  7657. abstract="false" native="false" synchronized="false"
  7658. static="false" final="false" visibility="public"
  7659. deprecated="not deprecated">
  7660. <doc>
  7661. <![CDATA[Is this a directory?
  7662. @return true if this is a directory]]>
  7663. </doc>
  7664. </method>
  7665. <method name="isDir" return="boolean"
  7666. abstract="false" native="false" synchronized="false"
  7667. static="false" final="true" visibility="public"
  7668. deprecated="Use {@link FileStatus#isFile()},
  7669. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7670. instead.">
  7671. <doc>
  7672. <![CDATA[Old interface, instead use the explicit {@link FileStatus#isFile()},
  7673. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7674. @return true if this is a directory.
  7675. @deprecated Use {@link FileStatus#isFile()},
  7676. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7677. instead.]]>
  7678. </doc>
  7679. </method>
  7680. <method name="isSymlink" return="boolean"
  7681. abstract="false" native="false" synchronized="false"
  7682. static="false" final="false" visibility="public"
  7683. deprecated="not deprecated">
  7684. <doc>
  7685. <![CDATA[Is this a symbolic link?
  7686. @return true if this is a symbolic link]]>
  7687. </doc>
  7688. </method>
  7689. <method name="getBlockSize" return="long"
  7690. abstract="false" native="false" synchronized="false"
  7691. static="false" final="false" visibility="public"
  7692. deprecated="not deprecated">
  7693. <doc>
  7694. <![CDATA[Get the block size of the file.
  7695. @return the number of bytes]]>
  7696. </doc>
  7697. </method>
  7698. <method name="getReplication" return="short"
  7699. abstract="false" native="false" synchronized="false"
  7700. static="false" final="false" visibility="public"
  7701. deprecated="not deprecated">
  7702. <doc>
  7703. <![CDATA[Get the replication factor of a file.
  7704. @return the replication factor of a file.]]>
  7705. </doc>
  7706. </method>
  7707. <method name="getModificationTime" return="long"
  7708. abstract="false" native="false" synchronized="false"
  7709. static="false" final="false" visibility="public"
  7710. deprecated="not deprecated">
  7711. <doc>
  7712. <![CDATA[Get the modification time of the file.
  7713. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  7714. </doc>
  7715. </method>
  7716. <method name="getAccessTime" return="long"
  7717. abstract="false" native="false" synchronized="false"
  7718. static="false" final="false" visibility="public"
  7719. deprecated="not deprecated">
  7720. <doc>
  7721. <![CDATA[Get the access time of the file.
  7722. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  7723. </doc>
  7724. </method>
  7725. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7726. abstract="false" native="false" synchronized="false"
  7727. static="false" final="false" visibility="public"
  7728. deprecated="not deprecated">
  7729. <doc>
  7730. <![CDATA[Get FsPermission associated with the file.
  7731. @return permission. If a filesystem does not have a notion of permissions
  7732. or if permissions could not be determined, then default
  7733. permissions equivalent of "rwxrwxrwx" is returned.]]>
  7734. </doc>
  7735. </method>
  7736. <method name="hasAcl" return="boolean"
  7737. abstract="false" native="false" synchronized="false"
  7738. static="false" final="false" visibility="public"
  7739. deprecated="not deprecated">
  7740. <doc>
  7741. <![CDATA[Tell whether the underlying file or directory has ACLs set.
  7742. @return true if the underlying file or directory has ACLs set.]]>
  7743. </doc>
  7744. </method>
  7745. <method name="isEncrypted" return="boolean"
  7746. abstract="false" native="false" synchronized="false"
  7747. static="false" final="false" visibility="public"
  7748. deprecated="not deprecated">
  7749. <doc>
  7750. <![CDATA[Tell whether the underlying file or directory is encrypted or not.
  7751. @return true if the underlying file is encrypted.]]>
  7752. </doc>
  7753. </method>
  7754. <method name="isErasureCoded" return="boolean"
  7755. abstract="false" native="false" synchronized="false"
  7756. static="false" final="false" visibility="public"
  7757. deprecated="not deprecated">
  7758. <doc>
  7759. <![CDATA[Tell whether the underlying file or directory is erasure coded or not.
  7760. @return true if the underlying file or directory is erasure coded.]]>
  7761. </doc>
  7762. </method>
  7763. <method name="isSnapshotEnabled" return="boolean"
  7764. abstract="false" native="false" synchronized="false"
  7765. static="false" final="false" visibility="public"
  7766. deprecated="not deprecated">
  7767. <doc>
  7768. <![CDATA[Check if directory is Snapshot enabled or not.
  7769. @return true if directory is snapshot enabled]]>
  7770. </doc>
  7771. </method>
  7772. <method name="getOwner" return="java.lang.String"
  7773. abstract="false" native="false" synchronized="false"
  7774. static="false" final="false" visibility="public"
  7775. deprecated="not deprecated">
  7776. <doc>
  7777. <![CDATA[Get the owner of the file.
  7778. @return owner of the file. The string could be empty if there is no
  7779. notion of owner of a file in a filesystem or if it could not
  7780. be determined (rare).]]>
  7781. </doc>
  7782. </method>
  7783. <method name="getGroup" return="java.lang.String"
  7784. abstract="false" native="false" synchronized="false"
  7785. static="false" final="false" visibility="public"
  7786. deprecated="not deprecated">
  7787. <doc>
  7788. <![CDATA[Get the group associated with the file.
  7789. @return group for the file. The string could be empty if there is no
  7790. notion of group of a file in a filesystem or if it could not
  7791. be determined (rare).]]>
  7792. </doc>
  7793. </method>
  7794. <method name="getPath" return="org.apache.hadoop.fs.Path"
  7795. abstract="false" native="false" synchronized="false"
  7796. static="false" final="false" visibility="public"
  7797. deprecated="not deprecated">
  7798. </method>
  7799. <method name="setPath"
  7800. abstract="false" native="false" synchronized="false"
  7801. static="false" final="false" visibility="public"
  7802. deprecated="not deprecated">
  7803. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7804. </method>
  7805. <method name="setPermission"
  7806. abstract="false" native="false" synchronized="false"
  7807. static="false" final="false" visibility="protected"
  7808. deprecated="not deprecated">
  7809. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7810. <doc>
  7811. <![CDATA[Sets permission.
  7812. @param permission if permission is null, default value is set]]>
  7813. </doc>
  7814. </method>
  7815. <method name="setOwner"
  7816. abstract="false" native="false" synchronized="false"
  7817. static="false" final="false" visibility="protected"
  7818. deprecated="not deprecated">
  7819. <param name="owner" type="java.lang.String"/>
  7820. <doc>
  7821. <![CDATA[Sets owner.
  7822. @param owner if it is null, default value is set]]>
  7823. </doc>
  7824. </method>
  7825. <method name="setGroup"
  7826. abstract="false" native="false" synchronized="false"
  7827. static="false" final="false" visibility="protected"
  7828. deprecated="not deprecated">
  7829. <param name="group" type="java.lang.String"/>
  7830. <doc>
  7831. <![CDATA[Sets group.
  7832. @param group if it is null, default value is set]]>
  7833. </doc>
  7834. </method>
  7835. <method name="getSymlink" return="org.apache.hadoop.fs.Path"
  7836. abstract="false" native="false" synchronized="false"
  7837. static="false" final="false" visibility="public"
  7838. deprecated="not deprecated">
  7839. <exception name="IOException" type="java.io.IOException"/>
  7840. <doc>
  7841. <![CDATA[@return The contents of the symbolic link.]]>
  7842. </doc>
  7843. </method>
  7844. <method name="setSymlink"
  7845. abstract="false" native="false" synchronized="false"
  7846. static="false" final="false" visibility="public"
  7847. deprecated="not deprecated">
  7848. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7849. </method>
  7850. <method name="compareTo" return="int"
  7851. abstract="false" native="false" synchronized="false"
  7852. static="false" final="false" visibility="public"
  7853. deprecated="not deprecated">
  7854. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  7855. <doc>
  7856. <![CDATA[Compare this FileStatus to another FileStatus
  7857. @param o the FileStatus to be compared.
  7858. @return a negative integer, zero, or a positive integer as this object
  7859. is less than, equal to, or greater than the specified object.]]>
  7860. </doc>
  7861. </method>
  7862. <method name="compareTo" return="int"
  7863. abstract="false" native="false" synchronized="false"
  7864. static="false" final="false" visibility="public"
  7865. deprecated="not deprecated">
  7866. <param name="o" type="java.lang.Object"/>
  7867. <doc>
  7868. <![CDATA[Compare this FileStatus to another FileStatus.
  7869. This method was added back by HADOOP-14683 to keep binary compatibility.
  7870. @param o the FileStatus to be compared.
  7871. @return a negative integer, zero, or a positive integer as this object
  7872. is less than, equal to, or greater than the specified object.
  7873. @throws ClassCastException if the specified object is not FileStatus]]>
  7874. </doc>
  7875. </method>
  7876. <method name="equals" return="boolean"
  7877. abstract="false" native="false" synchronized="false"
  7878. static="false" final="false" visibility="public"
  7879. deprecated="not deprecated">
  7880. <param name="o" type="java.lang.Object"/>
  7881. <doc>
  7882. <![CDATA[Compare if this object is equal to another object
  7883. @param o the object to be compared.
  7884. @return true if two file status has the same path name; false if not.]]>
  7885. </doc>
  7886. </method>
  7887. <method name="hashCode" return="int"
  7888. abstract="false" native="false" synchronized="false"
  7889. static="false" final="false" visibility="public"
  7890. deprecated="not deprecated">
  7891. <doc>
  7892. <![CDATA[Returns a hash code value for the object, which is defined as
  7893. the hash code of the path name.
  7894. @return a hash code value for the path name.]]>
  7895. </doc>
  7896. </method>
  7897. <method name="toString" return="java.lang.String"
  7898. abstract="false" native="false" synchronized="false"
  7899. static="false" final="false" visibility="public"
  7900. deprecated="not deprecated">
  7901. </method>
  7902. <method name="readFields"
  7903. abstract="false" native="false" synchronized="false"
  7904. static="false" final="false" visibility="public"
  7905. deprecated="Use the {@link PBHelper} and protobuf serialization directly.">
  7906. <param name="in" type="java.io.DataInput"/>
  7907. <exception name="IOException" type="java.io.IOException"/>
  7908. <doc>
  7909. <![CDATA[Read instance encoded as protobuf from stream.
  7910. @param in Input stream
  7911. @see PBHelper#convert(FileStatus)
  7912. @deprecated Use the {@link PBHelper} and protobuf serialization directly.]]>
  7913. </doc>
  7914. </method>
  7915. <method name="write"
  7916. abstract="false" native="false" synchronized="false"
  7917. static="false" final="false" visibility="public"
  7918. deprecated="Use the {@link PBHelper} and protobuf serialization directly.">
  7919. <param name="out" type="java.io.DataOutput"/>
  7920. <exception name="IOException" type="java.io.IOException"/>
  7921. <doc>
  7922. <![CDATA[Write instance encoded as protobuf to stream.
  7923. @param out Output stream
  7924. @see PBHelper#convert(FileStatus)
  7925. @deprecated Use the {@link PBHelper} and protobuf serialization directly.]]>
  7926. </doc>
  7927. </method>
  7928. <method name="validateObject"
  7929. abstract="false" native="false" synchronized="false"
  7930. static="false" final="false" visibility="public"
  7931. deprecated="not deprecated">
  7932. <exception name="InvalidObjectException" type="java.io.InvalidObjectException"/>
  7933. </method>
  7934. <field name="NONE" type="java.util.Set"
  7935. transient="false" volatile="false"
  7936. static="true" final="true" visibility="public"
  7937. deprecated="not deprecated">
  7938. <doc>
  7939. <![CDATA[Shared, empty set of attributes (a common case for FileStatus).]]>
  7940. </doc>
  7941. </field>
  7942. <doc>
  7943. <![CDATA[Interface that represents the client side information for a file.]]>
  7944. </doc>
  7945. </class>
  7946. <!-- end class org.apache.hadoop.fs.FileStatus -->
  7947. <!-- start class org.apache.hadoop.fs.FileSystem -->
  7948. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  7949. abstract="true"
  7950. static="false" final="false" visibility="public"
  7951. deprecated="not deprecated">
  7952. <implements name="java.io.Closeable"/>
  7953. <implements name="org.apache.hadoop.security.token.DelegationTokenIssuer"/>
  7954. <constructor name="FileSystem"
  7955. static="false" final="false" visibility="protected"
  7956. deprecated="not deprecated">
  7957. </constructor>
  7958. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  7959. abstract="false" native="false" synchronized="false"
  7960. static="true" final="false" visibility="public"
  7961. deprecated="not deprecated">
  7962. <param name="uri" type="java.net.URI"/>
  7963. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7964. <param name="user" type="java.lang.String"/>
  7965. <exception name="IOException" type="java.io.IOException"/>
  7966. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  7967. <doc>
  7968. <![CDATA[Get a FileSystem instance based on the uri, the passed in
  7969. configuration and the user.
  7970. @param uri of the filesystem
  7971. @param conf the configuration to use
  7972. @param user to perform the get as
  7973. @return the filesystem instance
  7974. @throws IOException failure to load
  7975. @throws InterruptedException If the {@code UGI.doAs()} call was
  7976. somehow interrupted.]]>
  7977. </doc>
  7978. </method>
  7979. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  7980. abstract="false" native="false" synchronized="false"
  7981. static="true" final="false" visibility="public"
  7982. deprecated="not deprecated">
  7983. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7984. <exception name="IOException" type="java.io.IOException"/>
  7985. <doc>
  7986. <![CDATA[Returns the configured FileSystem implementation.
  7987. @param conf the configuration to use]]>
  7988. </doc>
  7989. </method>
  7990. <method name="getDefaultUri" return="java.net.URI"
  7991. abstract="false" native="false" synchronized="false"
  7992. static="true" final="false" visibility="public"
  7993. deprecated="not deprecated">
  7994. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7995. <doc>
  7996. <![CDATA[Get the default FileSystem URI from a configuration.
  7997. @param conf the configuration to use
  7998. @return the uri of the default filesystem]]>
  7999. </doc>
  8000. </method>
  8001. <method name="setDefaultUri"
  8002. abstract="false" native="false" synchronized="false"
  8003. static="true" final="false" visibility="public"
  8004. deprecated="not deprecated">
  8005. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8006. <param name="uri" type="java.net.URI"/>
  8007. <doc>
  8008. <![CDATA[Set the default FileSystem URI in a configuration.
  8009. @param conf the configuration to alter
  8010. @param uri the new default filesystem uri]]>
  8011. </doc>
  8012. </method>
  8013. <method name="setDefaultUri"
  8014. abstract="false" native="false" synchronized="false"
  8015. static="true" final="false" visibility="public"
  8016. deprecated="not deprecated">
  8017. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8018. <param name="uri" type="java.lang.String"/>
  8019. <doc>
  8020. <![CDATA[Set the default FileSystem URI in a configuration.
  8021. @param conf the configuration to alter
  8022. @param uri the new default filesystem uri]]>
  8023. </doc>
  8024. </method>
  8025. <method name="initialize"
  8026. abstract="false" native="false" synchronized="false"
  8027. static="false" final="false" visibility="public"
  8028. deprecated="not deprecated">
  8029. <param name="name" type="java.net.URI"/>
  8030. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8031. <exception name="IOException" type="java.io.IOException"/>
  8032. <doc>
  8033. <![CDATA[Initialize a FileSystem.
  8034. Called after the new FileSystem instance is constructed, and before it
  8035. is ready for use.
  8036. FileSystem implementations overriding this method MUST forward it to
  8037. their superclass, though the order in which it is done, and whether
  8038. to alter the configuration before the invocation are options of the
  8039. subclass.
  8040. @param name a URI whose authority section names the host, port, etc.
  8041. for this FileSystem
  8042. @param conf the configuration
  8043. @throws IOException on any failure to initialize this instance.
  8044. @throws IllegalArgumentException if the URI is considered invalid.]]>
  8045. </doc>
  8046. </method>
  8047. <method name="getScheme" return="java.lang.String"
  8048. abstract="false" native="false" synchronized="false"
  8049. static="false" final="false" visibility="public"
  8050. deprecated="not deprecated">
  8051. <doc>
  8052. <![CDATA[Return the protocol scheme for this FileSystem.
  8053. <p>
  8054. This implementation throws an <code>UnsupportedOperationException</code>.
  8055. @return the protocol scheme for this FileSystem.
  8056. @throws UnsupportedOperationException if the operation is unsupported
  8057. (default).]]>
  8058. </doc>
  8059. </method>
  8060. <method name="getUri" return="java.net.URI"
  8061. abstract="true" native="false" synchronized="false"
  8062. static="false" final="false" visibility="public"
  8063. deprecated="not deprecated">
  8064. <doc>
  8065. <![CDATA[Returns a URI which identifies this FileSystem.
  8066. @return the URI of this filesystem.]]>
  8067. </doc>
  8068. </method>
  8069. <method name="getCanonicalUri" return="java.net.URI"
  8070. abstract="false" native="false" synchronized="false"
  8071. static="false" final="false" visibility="protected"
  8072. deprecated="not deprecated">
  8073. <doc>
  8074. <![CDATA[Return a canonicalized form of this FileSystem's URI.
  8075. The default implementation simply calls {@link #canonicalizeUri(URI)}
  8076. on the filesystem's own URI, so subclasses typically only need to
  8077. implement that method.
  8078. @see #canonicalizeUri(URI)]]>
  8079. </doc>
  8080. </method>
  8081. <method name="canonicalizeUri" return="java.net.URI"
  8082. abstract="false" native="false" synchronized="false"
  8083. static="false" final="false" visibility="protected"
  8084. deprecated="not deprecated">
  8085. <param name="uri" type="java.net.URI"/>
  8086. <doc>
  8087. <![CDATA[Canonicalize the given URI.
  8088. This is implementation-dependent, and may for example consist of
  8089. canonicalizing the hostname using DNS and adding the default
  8090. port if not specified.
  8091. The default implementation simply fills in the default port if
  8092. not specified and if {@link #getDefaultPort()} returns a
  8093. default port.
  8094. @return URI
  8095. @see NetUtils#getCanonicalUri(URI, int)]]>
  8096. </doc>
  8097. </method>
  8098. <method name="getDefaultPort" return="int"
  8099. abstract="false" native="false" synchronized="false"
  8100. static="false" final="false" visibility="protected"
  8101. deprecated="not deprecated">
  8102. <doc>
  8103. <![CDATA[Get the default port for this FileSystem.
  8104. @return the default port or 0 if there isn't one]]>
  8105. </doc>
  8106. </method>
  8107. <method name="getFSofPath" return="org.apache.hadoop.fs.FileSystem"
  8108. abstract="false" native="false" synchronized="false"
  8109. static="true" final="false" visibility="protected"
  8110. deprecated="not deprecated">
  8111. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  8112. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8113. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8114. <exception name="IOException" type="java.io.IOException"/>
  8115. </method>
  8116. <method name="getCanonicalServiceName" return="java.lang.String"
  8117. abstract="false" native="false" synchronized="false"
  8118. static="false" final="false" visibility="public"
  8119. deprecated="not deprecated">
  8120. <doc>
  8121. <![CDATA[Get a canonical service name for this FileSystem.
  8122. The token cache is the only user of the canonical service name,
  8123. and uses it to lookup this FileSystem's service tokens.
  8124. If the file system provides a token of its own then it must have a
  8125. canonical name, otherwise the canonical name can be null.
  8126. Default implementation: If the FileSystem has child file systems
  8127. (such as an embedded file system) then it is assumed that the FS has no
  8128. tokens of its own and hence returns a null name; otherwise a service
  8129. name is built using Uri and port.
  8130. @return a service string that uniquely identifies this file system, null
  8131. if the filesystem does not implement tokens
  8132. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  8133. </doc>
  8134. </method>
  8135. <method name="getName" return="java.lang.String"
  8136. abstract="false" native="false" synchronized="false"
  8137. static="false" final="false" visibility="public"
  8138. deprecated="call {@link #getUri()} instead.">
  8139. <doc>
  8140. <![CDATA[@deprecated call {@link #getUri()} instead.]]>
  8141. </doc>
  8142. </method>
  8143. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  8144. abstract="false" native="false" synchronized="false"
  8145. static="true" final="false" visibility="public"
  8146. deprecated="call {@link #get(URI, Configuration)} instead.">
  8147. <param name="name" type="java.lang.String"/>
  8148. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8149. <exception name="IOException" type="java.io.IOException"/>
  8150. <doc>
  8151. <![CDATA[@deprecated call {@link #get(URI, Configuration)} instead.]]>
  8152. </doc>
  8153. </method>
  8154. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8155. abstract="false" native="false" synchronized="false"
  8156. static="true" final="false" visibility="public"
  8157. deprecated="not deprecated">
  8158. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8159. <exception name="IOException" type="java.io.IOException"/>
  8160. <doc>
  8161. <![CDATA[Get the local FileSystem.
  8162. @param conf the configuration to configure the FileSystem with
  8163. if it is newly instantiated.
  8164. @return a LocalFileSystem
  8165. @throws IOException if somehow the local FS cannot be instantiated.]]>
  8166. </doc>
  8167. </method>
  8168. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8169. abstract="false" native="false" synchronized="false"
  8170. static="true" final="false" visibility="public"
  8171. deprecated="not deprecated">
  8172. <param name="uri" type="java.net.URI"/>
  8173. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8174. <exception name="IOException" type="java.io.IOException"/>
  8175. <doc>
  8176. <![CDATA[Get a FileSystem for this URI's scheme and authority.
  8177. <ol>
  8178. <li>
  8179. If the configuration has the property
  8180. {@code "fs.$SCHEME.impl.disable.cache"} set to true,
  8181. a new instance will be created, initialized with the supplied URI and
  8182. configuration, then returned without being cached.
  8183. </li>
  8184. <li>
  8185. If the there is a cached FS instance matching the same URI, it will
  8186. be returned.
  8187. </li>
  8188. <li>
  8189. Otherwise: a new FS instance will be created, initialized with the
  8190. configuration and URI, cached and returned to the caller.
  8191. </li>
  8192. </ol>
  8193. @throws IOException if the FileSystem cannot be instantiated.]]>
  8194. </doc>
  8195. </method>
  8196. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8197. abstract="false" native="false" synchronized="false"
  8198. static="true" final="false" visibility="public"
  8199. deprecated="not deprecated">
  8200. <param name="uri" type="java.net.URI"/>
  8201. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8202. <param name="user" type="java.lang.String"/>
  8203. <exception name="IOException" type="java.io.IOException"/>
  8204. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8205. <doc>
  8206. <![CDATA[Returns the FileSystem for this URI's scheme and authority and the
  8207. given user. Internally invokes {@link #newInstance(URI, Configuration)}
  8208. @param uri of the filesystem
  8209. @param conf the configuration to use
  8210. @param user to perform the get as
  8211. @return filesystem instance
  8212. @throws IOException if the FileSystem cannot be instantiated.
  8213. @throws InterruptedException If the {@code UGI.doAs()} call was
  8214. somehow interrupted.]]>
  8215. </doc>
  8216. </method>
  8217. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8218. abstract="false" native="false" synchronized="false"
  8219. static="true" final="false" visibility="public"
  8220. deprecated="not deprecated">
  8221. <param name="uri" type="java.net.URI"/>
  8222. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  8223. <exception name="IOException" type="java.io.IOException"/>
  8224. <doc>
  8225. <![CDATA[Returns the FileSystem for this URI's scheme and authority.
  8226. The entire URI is passed to the FileSystem instance's initialize method.
  8227. This always returns a new FileSystem object.
  8228. @param uri FS URI
  8229. @param config configuration to use
  8230. @return the new FS instance
  8231. @throws IOException FS creation or initialization failure.]]>
  8232. </doc>
  8233. </method>
  8234. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8235. abstract="false" native="false" synchronized="false"
  8236. static="true" final="false" visibility="public"
  8237. deprecated="not deprecated">
  8238. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8239. <exception name="IOException" type="java.io.IOException"/>
  8240. <doc>
  8241. <![CDATA[Returns a unique configured FileSystem implementation for the default
  8242. filesystem of the supplied configuration.
  8243. This always returns a new FileSystem object.
  8244. @param conf the configuration to use
  8245. @return the new FS instance
  8246. @throws IOException FS creation or initialization failure.]]>
  8247. </doc>
  8248. </method>
  8249. <method name="newInstanceLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8250. abstract="false" native="false" synchronized="false"
  8251. static="true" final="false" visibility="public"
  8252. deprecated="not deprecated">
  8253. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8254. <exception name="IOException" type="java.io.IOException"/>
  8255. <doc>
  8256. <![CDATA[Get a unique local FileSystem object.
  8257. @param conf the configuration to configure the FileSystem with
  8258. @return a new LocalFileSystem object.
  8259. @throws IOException FS creation or initialization failure.]]>
  8260. </doc>
  8261. </method>
  8262. <method name="closeAll"
  8263. abstract="false" native="false" synchronized="false"
  8264. static="true" final="false" visibility="public"
  8265. deprecated="not deprecated">
  8266. <exception name="IOException" type="java.io.IOException"/>
  8267. <doc>
  8268. <![CDATA[Close all cached FileSystem instances. After this operation, they
  8269. may not be used in any operations.
  8270. @throws IOException a problem arose closing one or more filesystem.]]>
  8271. </doc>
  8272. </method>
  8273. <method name="closeAllForUGI"
  8274. abstract="false" native="false" synchronized="false"
  8275. static="true" final="false" visibility="public"
  8276. deprecated="not deprecated">
  8277. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  8278. <exception name="IOException" type="java.io.IOException"/>
  8279. <doc>
  8280. <![CDATA[Close all cached FileSystem instances for a given UGI.
  8281. Be sure those filesystems are not used anymore.
  8282. @param ugi user group info to close
  8283. @throws IOException a problem arose closing one or more filesystem.]]>
  8284. </doc>
  8285. </method>
  8286. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  8287. abstract="false" native="false" synchronized="false"
  8288. static="false" final="false" visibility="public"
  8289. deprecated="not deprecated">
  8290. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8291. <doc>
  8292. <![CDATA[Qualify a path to one which uses this FileSystem and, if relative,
  8293. made absolute.
  8294. @param path to qualify.
  8295. @return this path if it contains a scheme and authority and is absolute, or
  8296. a new path that includes a path and authority and is fully qualified
  8297. @see Path#makeQualified(URI, Path)
  8298. @throws IllegalArgumentException if the path has a schema/URI different
  8299. from this FileSystem.]]>
  8300. </doc>
  8301. </method>
  8302. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8303. abstract="false" native="false" synchronized="false"
  8304. static="true" final="false" visibility="public"
  8305. deprecated="not deprecated">
  8306. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8307. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8308. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8309. <exception name="IOException" type="java.io.IOException"/>
  8310. <doc>
  8311. <![CDATA[Create a file with the provided permission.
  8312. The permission of the file is set to be the provided permission as in
  8313. setPermission, not permission&~umask
  8314. The HDFS implementation is implemented using two RPCs.
  8315. It is understood that it is inefficient,
  8316. but the implementation is thread-safe. The other option is to change the
  8317. value of umask in configuration to be 0, but it is not thread-safe.
  8318. @param fs FileSystem
  8319. @param file the name of the file to be created
  8320. @param permission the permission of the file
  8321. @return an output stream
  8322. @throws IOException IO failure]]>
  8323. </doc>
  8324. </method>
  8325. <method name="mkdirs" return="boolean"
  8326. abstract="false" native="false" synchronized="false"
  8327. static="true" final="false" visibility="public"
  8328. deprecated="not deprecated">
  8329. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8330. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8331. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8332. <exception name="IOException" type="java.io.IOException"/>
  8333. <doc>
  8334. <![CDATA[Create a directory with the provided permission.
  8335. The permission of the directory is set to be the provided permission as in
  8336. setPermission, not permission&~umask
  8337. @see #create(FileSystem, Path, FsPermission)
  8338. @param fs FileSystem handle
  8339. @param dir the name of the directory to be created
  8340. @param permission the permission of the directory
  8341. @return true if the directory creation succeeds; false otherwise
  8342. @throws IOException A problem creating the directories.]]>
  8343. </doc>
  8344. </method>
  8345. <method name="checkPath"
  8346. abstract="false" native="false" synchronized="false"
  8347. static="false" final="false" visibility="protected"
  8348. deprecated="not deprecated">
  8349. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8350. <doc>
  8351. <![CDATA[Check that a Path belongs to this FileSystem.
  8352. The base implementation performs case insensitive equality checks
  8353. of the URIs' schemes and authorities. Subclasses may implement slightly
  8354. different checks.
  8355. @param path to check
  8356. @throws IllegalArgumentException if the path is not considered to be
  8357. part of this FileSystem.]]>
  8358. </doc>
  8359. </method>
  8360. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8361. abstract="false" native="false" synchronized="false"
  8362. static="false" final="false" visibility="public"
  8363. deprecated="not deprecated">
  8364. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  8365. <param name="start" type="long"/>
  8366. <param name="len" type="long"/>
  8367. <exception name="IOException" type="java.io.IOException"/>
  8368. <doc>
  8369. <![CDATA[Return an array containing hostnames, offset and size of
  8370. portions of the given file. For nonexistent
  8371. file or regions, {@code null} is returned.
  8372. <pre>
  8373. if f == null :
  8374. result = null
  8375. elif f.getLen() <= start:
  8376. result = []
  8377. else result = [ locations(FS, b) for b in blocks(FS, p, s, s+l)]
  8378. </pre>
  8379. This call is most helpful with and distributed filesystem
  8380. where the hostnames of machines that contain blocks of the given file
  8381. can be determined.
  8382. The default implementation returns an array containing one element:
  8383. <pre>
  8384. BlockLocation( { "localhost:9866" }, { "localhost" }, 0, file.getLen())
  8385. </pre>
  8386. In HDFS, if file is three-replicated, the returned array contains
  8387. elements like:
  8388. <pre>
  8389. BlockLocation(offset: 0, length: BLOCK_SIZE,
  8390. hosts: {"host1:9866", "host2:9866, host3:9866"})
  8391. BlockLocation(offset: BLOCK_SIZE, length: BLOCK_SIZE,
  8392. hosts: {"host2:9866", "host3:9866, host4:9866"})
  8393. </pre>
  8394. And if a file is erasure-coded, the returned BlockLocation are logical
  8395. block groups.
  8396. Suppose we have a RS_3_2 coded file (3 data units and 2 parity units).
  8397. 1. If the file size is less than one stripe size, say 2 * CELL_SIZE, then
  8398. there will be one BlockLocation returned, with 0 offset, actual file size
  8399. and 4 hosts (2 data blocks and 2 parity blocks) hosting the actual blocks.
  8400. 3. If the file size is less than one group size but greater than one
  8401. stripe size, then there will be one BlockLocation returned, with 0 offset,
  8402. actual file size with 5 hosts (3 data blocks and 2 parity blocks) hosting
  8403. the actual blocks.
  8404. 4. If the file size is greater than one group size, 3 * BLOCK_SIZE + 123
  8405. for example, then the result will be like:
  8406. <pre>
  8407. BlockLocation(offset: 0, length: 3 * BLOCK_SIZE, hosts: {"host1:9866",
  8408. "host2:9866","host3:9866","host4:9866","host5:9866"})
  8409. BlockLocation(offset: 3 * BLOCK_SIZE, length: 123, hosts: {"host1:9866",
  8410. "host4:9866", "host5:9866"})
  8411. </pre>
  8412. @param file FilesStatus to get data from
  8413. @param start offset into the given file
  8414. @param len length for which to get locations for
  8415. @throws IOException IO failure]]>
  8416. </doc>
  8417. </method>
  8418. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8419. abstract="false" native="false" synchronized="false"
  8420. static="false" final="false" visibility="public"
  8421. deprecated="not deprecated">
  8422. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8423. <param name="start" type="long"/>
  8424. <param name="len" type="long"/>
  8425. <exception name="IOException" type="java.io.IOException"/>
  8426. <doc>
  8427. <![CDATA[Return an array containing hostnames, offset and size of
  8428. portions of the given file. For a nonexistent
  8429. file or regions, {@code null} is returned.
  8430. This call is most helpful with location-aware distributed
  8431. filesystems, where it returns hostnames of machines that
  8432. contain the given file.
  8433. A FileSystem will normally return the equivalent result
  8434. of passing the {@code FileStatus} of the path to
  8435. {@link #getFileBlockLocations(FileStatus, long, long)}
  8436. @param p path is used to identify an FS since an FS could have
  8437. another FS that it could be delegating the call to
  8438. @param start offset into the given file
  8439. @param len length for which to get locations for
  8440. @throws FileNotFoundException when the path does not exist
  8441. @throws IOException IO failure]]>
  8442. </doc>
  8443. </method>
  8444. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8445. abstract="false" native="false" synchronized="false"
  8446. static="false" final="false" visibility="public"
  8447. deprecated="use {@link #getServerDefaults(Path)} instead">
  8448. <exception name="IOException" type="java.io.IOException"/>
  8449. <doc>
  8450. <![CDATA[Return a set of server default configuration values.
  8451. @return server default configuration values
  8452. @throws IOException IO failure
  8453. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  8454. </doc>
  8455. </method>
  8456. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8457. abstract="false" native="false" synchronized="false"
  8458. static="false" final="false" visibility="public"
  8459. deprecated="not deprecated">
  8460. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8461. <exception name="IOException" type="java.io.IOException"/>
  8462. <doc>
  8463. <![CDATA[Return a set of server default configuration values.
  8464. @param p path is used to identify an FS since an FS could have
  8465. another FS that it could be delegating the call to
  8466. @return server default configuration values
  8467. @throws IOException IO failure]]>
  8468. </doc>
  8469. </method>
  8470. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  8471. abstract="false" native="false" synchronized="false"
  8472. static="false" final="false" visibility="public"
  8473. deprecated="not deprecated">
  8474. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8475. <exception name="IOException" type="java.io.IOException"/>
  8476. <doc>
  8477. <![CDATA[Return the fully-qualified path of path, resolving the path
  8478. through any symlinks or mount point.
  8479. @param p path to be resolved
  8480. @return fully qualified path
  8481. @throws FileNotFoundException if the path is not present
  8482. @throws IOException for any other error]]>
  8483. </doc>
  8484. </method>
  8485. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8486. abstract="true" native="false" synchronized="false"
  8487. static="false" final="false" visibility="public"
  8488. deprecated="not deprecated">
  8489. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8490. <param name="bufferSize" type="int"/>
  8491. <exception name="IOException" type="java.io.IOException"/>
  8492. <doc>
  8493. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8494. @param f the file name to open
  8495. @param bufferSize the size of the buffer to be used.
  8496. @throws IOException IO failure]]>
  8497. </doc>
  8498. </method>
  8499. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8500. abstract="false" native="false" synchronized="false"
  8501. static="false" final="false" visibility="public"
  8502. deprecated="not deprecated">
  8503. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8504. <exception name="IOException" type="java.io.IOException"/>
  8505. <doc>
  8506. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8507. @param f the file to open
  8508. @throws IOException IO failure]]>
  8509. </doc>
  8510. </method>
  8511. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8512. abstract="false" native="false" synchronized="false"
  8513. static="false" final="false" visibility="public"
  8514. deprecated="not deprecated">
  8515. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  8516. <exception name="IOException" type="java.io.IOException"/>
  8517. <doc>
  8518. <![CDATA[Open an FSDataInputStream matching the PathHandle instance. The
  8519. implementation may encode metadata in PathHandle to address the
  8520. resource directly and verify that the resource referenced
  8521. satisfies constraints specified at its construciton.
  8522. @param fd PathHandle object returned by the FS authority.
  8523. @throws InvalidPathHandleException If {@link PathHandle} constraints are
  8524. not satisfied
  8525. @throws IOException IO failure
  8526. @throws UnsupportedOperationException If {@link #open(PathHandle, int)}
  8527. not overridden by subclass]]>
  8528. </doc>
  8529. </method>
  8530. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8531. abstract="false" native="false" synchronized="false"
  8532. static="false" final="false" visibility="public"
  8533. deprecated="not deprecated">
  8534. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  8535. <param name="bufferSize" type="int"/>
  8536. <exception name="IOException" type="java.io.IOException"/>
  8537. <doc>
  8538. <![CDATA[Open an FSDataInputStream matching the PathHandle instance. The
  8539. implementation may encode metadata in PathHandle to address the
  8540. resource directly and verify that the resource referenced
  8541. satisfies constraints specified at its construciton.
  8542. @param fd PathHandle object returned by the FS authority.
  8543. @param bufferSize the size of the buffer to use
  8544. @throws InvalidPathHandleException If {@link PathHandle} constraints are
  8545. not satisfied
  8546. @throws IOException IO failure
  8547. @throws UnsupportedOperationException If not overridden by subclass]]>
  8548. </doc>
  8549. </method>
  8550. <method name="getPathHandle" return="org.apache.hadoop.fs.PathHandle"
  8551. abstract="false" native="false" synchronized="false"
  8552. static="false" final="true" visibility="public"
  8553. deprecated="not deprecated">
  8554. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  8555. <param name="opt" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  8556. <doc>
  8557. <![CDATA[Create a durable, serializable handle to the referent of the given
  8558. entity.
  8559. @param stat Referent in the target FileSystem
  8560. @param opt If absent, assume {@link HandleOpt#path()}.
  8561. @throws IllegalArgumentException If the FileStatus does not belong to
  8562. this FileSystem
  8563. @throws UnsupportedOperationException If {@link #createPathHandle}
  8564. not overridden by subclass.
  8565. @throws UnsupportedOperationException If this FileSystem cannot enforce
  8566. the specified constraints.]]>
  8567. </doc>
  8568. </method>
  8569. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  8570. abstract="false" native="false" synchronized="false"
  8571. static="false" final="false" visibility="protected"
  8572. deprecated="not deprecated">
  8573. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  8574. <param name="opt" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  8575. <doc>
  8576. <![CDATA[Hook to implement support for {@link PathHandle} operations.
  8577. @param stat Referent in the target FileSystem
  8578. @param opt Constraints that determine the validity of the
  8579. {@link PathHandle} reference.]]>
  8580. </doc>
  8581. </method>
  8582. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8583. abstract="false" native="false" synchronized="false"
  8584. static="false" final="false" visibility="public"
  8585. deprecated="not deprecated">
  8586. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8587. <exception name="IOException" type="java.io.IOException"/>
  8588. <doc>
  8589. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8590. Files are overwritten by default.
  8591. @param f the file to create
  8592. @throws IOException IO failure]]>
  8593. </doc>
  8594. </method>
  8595. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8596. abstract="false" native="false" synchronized="false"
  8597. static="false" final="false" visibility="public"
  8598. deprecated="not deprecated">
  8599. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8600. <param name="overwrite" type="boolean"/>
  8601. <exception name="IOException" type="java.io.IOException"/>
  8602. <doc>
  8603. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8604. @param f the file to create
  8605. @param overwrite if a file with this name already exists, then if true,
  8606. the file will be overwritten, and if false an exception will be thrown.
  8607. @throws IOException IO failure]]>
  8608. </doc>
  8609. </method>
  8610. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8611. abstract="false" native="false" synchronized="false"
  8612. static="false" final="false" visibility="public"
  8613. deprecated="not deprecated">
  8614. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8615. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8616. <exception name="IOException" type="java.io.IOException"/>
  8617. <doc>
  8618. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8619. reporting.
  8620. Files are overwritten by default.
  8621. @param f the file to create
  8622. @param progress to report progress
  8623. @throws IOException IO failure]]>
  8624. </doc>
  8625. </method>
  8626. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8627. abstract="false" native="false" synchronized="false"
  8628. static="false" final="false" visibility="public"
  8629. deprecated="not deprecated">
  8630. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8631. <param name="replication" type="short"/>
  8632. <exception name="IOException" type="java.io.IOException"/>
  8633. <doc>
  8634. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8635. Files are overwritten by default.
  8636. @param f the file to create
  8637. @param replication the replication factor
  8638. @throws IOException IO failure]]>
  8639. </doc>
  8640. </method>
  8641. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8642. abstract="false" native="false" synchronized="false"
  8643. static="false" final="false" visibility="public"
  8644. deprecated="not deprecated">
  8645. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8646. <param name="replication" type="short"/>
  8647. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8648. <exception name="IOException" type="java.io.IOException"/>
  8649. <doc>
  8650. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8651. reporting.
  8652. Files are overwritten by default.
  8653. @param f the file to create
  8654. @param replication the replication factor
  8655. @param progress to report progress
  8656. @throws IOException IO failure]]>
  8657. </doc>
  8658. </method>
  8659. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8660. abstract="false" native="false" synchronized="false"
  8661. static="false" final="false" visibility="public"
  8662. deprecated="not deprecated">
  8663. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8664. <param name="overwrite" type="boolean"/>
  8665. <param name="bufferSize" type="int"/>
  8666. <exception name="IOException" type="java.io.IOException"/>
  8667. <doc>
  8668. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8669. @param f the file to create
  8670. @param overwrite if a path with this name already exists, then if true,
  8671. the file will be overwritten, and if false an error will be thrown.
  8672. @param bufferSize the size of the buffer to be used.
  8673. @throws IOException IO failure]]>
  8674. </doc>
  8675. </method>
  8676. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8677. abstract="false" native="false" synchronized="false"
  8678. static="false" final="false" visibility="public"
  8679. deprecated="not deprecated">
  8680. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8681. <param name="overwrite" type="boolean"/>
  8682. <param name="bufferSize" type="int"/>
  8683. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8684. <exception name="IOException" type="java.io.IOException"/>
  8685. <doc>
  8686. <![CDATA[Create an {@link FSDataOutputStream} at the indicated Path
  8687. with write-progress reporting.
  8688. The frequency of callbacks is implementation-specific; it may be "none".
  8689. @param f the path of the file to open
  8690. @param overwrite if a file with this name already exists, then if true,
  8691. the file will be overwritten, and if false an error will be thrown.
  8692. @param bufferSize the size of the buffer to be used.
  8693. @throws IOException IO failure]]>
  8694. </doc>
  8695. </method>
  8696. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8697. abstract="false" native="false" synchronized="false"
  8698. static="false" final="false" visibility="public"
  8699. deprecated="not deprecated">
  8700. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8701. <param name="overwrite" type="boolean"/>
  8702. <param name="bufferSize" type="int"/>
  8703. <param name="replication" type="short"/>
  8704. <param name="blockSize" type="long"/>
  8705. <exception name="IOException" type="java.io.IOException"/>
  8706. <doc>
  8707. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8708. @param f the file name to open
  8709. @param overwrite if a file with this name already exists, then if true,
  8710. the file will be overwritten, and if false an error will be thrown.
  8711. @param bufferSize the size of the buffer to be used.
  8712. @param replication required block replication for the file.
  8713. @throws IOException IO failure]]>
  8714. </doc>
  8715. </method>
  8716. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8717. abstract="false" native="false" synchronized="false"
  8718. static="false" final="false" visibility="public"
  8719. deprecated="not deprecated">
  8720. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8721. <param name="overwrite" type="boolean"/>
  8722. <param name="bufferSize" type="int"/>
  8723. <param name="replication" type="short"/>
  8724. <param name="blockSize" type="long"/>
  8725. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8726. <exception name="IOException" type="java.io.IOException"/>
  8727. <doc>
  8728. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8729. reporting.
  8730. @param f the file name to open
  8731. @param overwrite if a file with this name already exists, then if true,
  8732. the file will be overwritten, and if false an error will be thrown.
  8733. @param bufferSize the size of the buffer to be used.
  8734. @param replication required block replication for the file.
  8735. @throws IOException IO failure]]>
  8736. </doc>
  8737. </method>
  8738. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8739. abstract="true" native="false" synchronized="false"
  8740. static="false" final="false" visibility="public"
  8741. deprecated="not deprecated">
  8742. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8743. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8744. <param name="overwrite" type="boolean"/>
  8745. <param name="bufferSize" type="int"/>
  8746. <param name="replication" type="short"/>
  8747. <param name="blockSize" type="long"/>
  8748. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8749. <exception name="IOException" type="java.io.IOException"/>
  8750. <doc>
  8751. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8752. reporting.
  8753. @param f the file name to open
  8754. @param permission file permission
  8755. @param overwrite if a file with this name already exists, then if true,
  8756. the file will be overwritten, and if false an error will be thrown.
  8757. @param bufferSize the size of the buffer to be used.
  8758. @param replication required block replication for the file.
  8759. @param blockSize block size
  8760. @param progress the progress reporter
  8761. @throws IOException IO failure
  8762. @see #setPermission(Path, FsPermission)]]>
  8763. </doc>
  8764. </method>
  8765. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8766. abstract="false" native="false" synchronized="false"
  8767. static="false" final="false" visibility="public"
  8768. deprecated="not deprecated">
  8769. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8770. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8771. <param name="flags" type="java.util.EnumSet"/>
  8772. <param name="bufferSize" type="int"/>
  8773. <param name="replication" type="short"/>
  8774. <param name="blockSize" type="long"/>
  8775. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8776. <exception name="IOException" type="java.io.IOException"/>
  8777. <doc>
  8778. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8779. reporting.
  8780. @param f the file name to open
  8781. @param permission file permission
  8782. @param flags {@link CreateFlag}s to use for this stream.
  8783. @param bufferSize the size of the buffer to be used.
  8784. @param replication required block replication for the file.
  8785. @param blockSize block size
  8786. @param progress the progress reporter
  8787. @throws IOException IO failure
  8788. @see #setPermission(Path, FsPermission)]]>
  8789. </doc>
  8790. </method>
  8791. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8792. abstract="false" native="false" synchronized="false"
  8793. static="false" final="false" visibility="public"
  8794. deprecated="not deprecated">
  8795. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8796. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8797. <param name="flags" type="java.util.EnumSet"/>
  8798. <param name="bufferSize" type="int"/>
  8799. <param name="replication" type="short"/>
  8800. <param name="blockSize" type="long"/>
  8801. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8802. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  8803. <exception name="IOException" type="java.io.IOException"/>
  8804. <doc>
  8805. <![CDATA[Create an FSDataOutputStream at the indicated Path with a custom
  8806. checksum option.
  8807. @param f the file name to open
  8808. @param permission file permission
  8809. @param flags {@link CreateFlag}s to use for this stream.
  8810. @param bufferSize the size of the buffer to be used.
  8811. @param replication required block replication for the file.
  8812. @param blockSize block size
  8813. @param progress the progress reporter
  8814. @param checksumOpt checksum parameter. If null, the values
  8815. found in conf will be used.
  8816. @throws IOException IO failure
  8817. @see #setPermission(Path, FsPermission)]]>
  8818. </doc>
  8819. </method>
  8820. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  8821. abstract="false" native="false" synchronized="false"
  8822. static="false" final="false" visibility="protected"
  8823. deprecated="not deprecated">
  8824. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8825. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8826. <param name="flag" type="java.util.EnumSet"/>
  8827. <param name="bufferSize" type="int"/>
  8828. <param name="replication" type="short"/>
  8829. <param name="blockSize" type="long"/>
  8830. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8831. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  8832. <exception name="IOException" type="java.io.IOException"/>
  8833. <doc>
  8834. <![CDATA[This create has been added to support the FileContext that processes
  8835. the permission with umask before calling this method.
  8836. This a temporary method added to support the transition from FileSystem
  8837. to FileContext for user applications.
  8838. @throws IOException IO failure]]>
  8839. </doc>
  8840. </method>
  8841. <method name="primitiveMkdir" return="boolean"
  8842. abstract="false" native="false" synchronized="false"
  8843. static="false" final="false" visibility="protected"
  8844. deprecated="not deprecated">
  8845. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8846. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8847. <exception name="IOException" type="java.io.IOException"/>
  8848. <doc>
  8849. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  8850. It has been added to support the FileContext that processes the permission
  8851. with umask before calling this method.
  8852. This a temporary method added to support the transition from FileSystem
  8853. to FileContext for user applications.
  8854. @param f path
  8855. @param absolutePermission permissions
  8856. @return true if the directory was actually created.
  8857. @throws IOException IO failure
  8858. @see #mkdirs(Path, FsPermission)]]>
  8859. </doc>
  8860. </method>
  8861. <method name="primitiveMkdir"
  8862. abstract="false" native="false" synchronized="false"
  8863. static="false" final="false" visibility="protected"
  8864. deprecated="not deprecated">
  8865. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8866. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8867. <param name="createParent" type="boolean"/>
  8868. <exception name="IOException" type="java.io.IOException"/>
  8869. <doc>
  8870. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  8871. It has been added to support the FileContext that processes the permission
  8872. with umask before calling this method.
  8873. This a temporary method added to support the transition from FileSystem
  8874. to FileContext for user applications.]]>
  8875. </doc>
  8876. </method>
  8877. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8878. abstract="false" native="false" synchronized="false"
  8879. static="false" final="false" visibility="public"
  8880. deprecated="not deprecated">
  8881. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8882. <param name="overwrite" type="boolean"/>
  8883. <param name="bufferSize" type="int"/>
  8884. <param name="replication" type="short"/>
  8885. <param name="blockSize" type="long"/>
  8886. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8887. <exception name="IOException" type="java.io.IOException"/>
  8888. <doc>
  8889. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8890. reporting. Same as create(), except fails if parent directory doesn't
  8891. already exist.
  8892. @param f the file name to open
  8893. @param overwrite if a file with this name already exists, then if true,
  8894. the file will be overwritten, and if false an error will be thrown.
  8895. @param bufferSize the size of the buffer to be used.
  8896. @param replication required block replication for the file.
  8897. @param blockSize block size
  8898. @param progress the progress reporter
  8899. @throws IOException IO failure
  8900. @see #setPermission(Path, FsPermission)]]>
  8901. </doc>
  8902. </method>
  8903. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8904. abstract="false" native="false" synchronized="false"
  8905. static="false" final="false" visibility="public"
  8906. deprecated="not deprecated">
  8907. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8908. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8909. <param name="overwrite" type="boolean"/>
  8910. <param name="bufferSize" type="int"/>
  8911. <param name="replication" type="short"/>
  8912. <param name="blockSize" type="long"/>
  8913. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8914. <exception name="IOException" type="java.io.IOException"/>
  8915. <doc>
  8916. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8917. reporting. Same as create(), except fails if parent directory doesn't
  8918. already exist.
  8919. @param f the file name to open
  8920. @param permission file permission
  8921. @param overwrite if a file with this name already exists, then if true,
  8922. the file will be overwritten, and if false an error will be thrown.
  8923. @param bufferSize the size of the buffer to be used.
  8924. @param replication required block replication for the file.
  8925. @param blockSize block size
  8926. @param progress the progress reporter
  8927. @throws IOException IO failure
  8928. @see #setPermission(Path, FsPermission)]]>
  8929. </doc>
  8930. </method>
  8931. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8932. abstract="false" native="false" synchronized="false"
  8933. static="false" final="false" visibility="public"
  8934. deprecated="not deprecated">
  8935. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8936. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8937. <param name="flags" type="java.util.EnumSet"/>
  8938. <param name="bufferSize" type="int"/>
  8939. <param name="replication" type="short"/>
  8940. <param name="blockSize" type="long"/>
  8941. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8942. <exception name="IOException" type="java.io.IOException"/>
  8943. <doc>
  8944. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8945. reporting. Same as create(), except fails if parent directory doesn't
  8946. already exist.
  8947. @param f the file name to open
  8948. @param permission file permission
  8949. @param flags {@link CreateFlag}s to use for this stream.
  8950. @param bufferSize the size of the buffer to be used.
  8951. @param replication required block replication for the file.
  8952. @param blockSize block size
  8953. @param progress the progress reporter
  8954. @throws IOException IO failure
  8955. @see #setPermission(Path, FsPermission)]]>
  8956. </doc>
  8957. </method>
  8958. <method name="createNewFile" return="boolean"
  8959. abstract="false" native="false" synchronized="false"
  8960. static="false" final="false" visibility="public"
  8961. deprecated="not deprecated">
  8962. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8963. <exception name="IOException" type="java.io.IOException"/>
  8964. <doc>
  8965. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  8966. create fails, or if it already existed, return false.
  8967. <i>Important: the default implementation is not atomic</i>
  8968. @param f path to use for create
  8969. @throws IOException IO failure]]>
  8970. </doc>
  8971. </method>
  8972. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8973. abstract="false" native="false" synchronized="false"
  8974. static="false" final="false" visibility="public"
  8975. deprecated="not deprecated">
  8976. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8977. <exception name="IOException" type="java.io.IOException"/>
  8978. <doc>
  8979. <![CDATA[Append to an existing file (optional operation).
  8980. Same as
  8981. {@code append(f, getConf().getInt(IO_FILE_BUFFER_SIZE_KEY,
  8982. IO_FILE_BUFFER_SIZE_DEFAULT), null)}
  8983. @param f the existing file to be appended.
  8984. @throws IOException IO failure
  8985. @throws UnsupportedOperationException if the operation is unsupported
  8986. (default).]]>
  8987. </doc>
  8988. </method>
  8989. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8990. abstract="false" native="false" synchronized="false"
  8991. static="false" final="false" visibility="public"
  8992. deprecated="not deprecated">
  8993. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8994. <param name="bufferSize" type="int"/>
  8995. <exception name="IOException" type="java.io.IOException"/>
  8996. <doc>
  8997. <![CDATA[Append to an existing file (optional operation).
  8998. Same as append(f, bufferSize, null).
  8999. @param f the existing file to be appended.
  9000. @param bufferSize the size of the buffer to be used.
  9001. @throws IOException IO failure
  9002. @throws UnsupportedOperationException if the operation is unsupported
  9003. (default).]]>
  9004. </doc>
  9005. </method>
  9006. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9007. abstract="true" native="false" synchronized="false"
  9008. static="false" final="false" visibility="public"
  9009. deprecated="not deprecated">
  9010. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9011. <param name="bufferSize" type="int"/>
  9012. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9013. <exception name="IOException" type="java.io.IOException"/>
  9014. <doc>
  9015. <![CDATA[Append to an existing file (optional operation).
  9016. @param f the existing file to be appended.
  9017. @param bufferSize the size of the buffer to be used.
  9018. @param progress for reporting progress if it is not null.
  9019. @throws IOException IO failure
  9020. @throws UnsupportedOperationException if the operation is unsupported
  9021. (default).]]>
  9022. </doc>
  9023. </method>
  9024. <method name="concat"
  9025. abstract="false" native="false" synchronized="false"
  9026. static="false" final="false" visibility="public"
  9027. deprecated="not deprecated">
  9028. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  9029. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  9030. <exception name="IOException" type="java.io.IOException"/>
  9031. <doc>
  9032. <![CDATA[Concat existing files together.
  9033. @param trg the path to the target destination.
  9034. @param psrcs the paths to the sources to use for the concatenation.
  9035. @throws IOException IO failure
  9036. @throws UnsupportedOperationException if the operation is unsupported
  9037. (default).]]>
  9038. </doc>
  9039. </method>
  9040. <method name="getReplication" return="short"
  9041. abstract="false" native="false" synchronized="false"
  9042. static="false" final="false" visibility="public"
  9043. deprecated="Use {@link #getFileStatus(Path)} instead">
  9044. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9045. <exception name="IOException" type="java.io.IOException"/>
  9046. <doc>
  9047. <![CDATA[Get the replication factor.
  9048. @deprecated Use {@link #getFileStatus(Path)} instead
  9049. @param src file name
  9050. @return file replication
  9051. @throws FileNotFoundException if the path does not resolve.
  9052. @throws IOException an IO failure]]>
  9053. </doc>
  9054. </method>
  9055. <method name="setReplication" return="boolean"
  9056. abstract="false" native="false" synchronized="false"
  9057. static="false" final="false" visibility="public"
  9058. deprecated="not deprecated">
  9059. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9060. <param name="replication" type="short"/>
  9061. <exception name="IOException" type="java.io.IOException"/>
  9062. <doc>
  9063. <![CDATA[Set the replication for an existing file.
  9064. If a filesystem does not support replication, it will always
  9065. return true: the check for a file existing may be bypassed.
  9066. This is the default behavior.
  9067. @param src file name
  9068. @param replication new replication
  9069. @throws IOException
  9070. @return true if successful, or the feature in unsupported;
  9071. false if replication is supported but the file does not exist,
  9072. or is a directory]]>
  9073. </doc>
  9074. </method>
  9075. <method name="rename" return="boolean"
  9076. abstract="true" native="false" synchronized="false"
  9077. static="false" final="false" visibility="public"
  9078. deprecated="not deprecated">
  9079. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9080. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9081. <exception name="IOException" type="java.io.IOException"/>
  9082. <doc>
  9083. <![CDATA[Renames Path src to Path dst.
  9084. @param src path to be renamed
  9085. @param dst new path after rename
  9086. @throws IOException on failure
  9087. @return true if rename is successful]]>
  9088. </doc>
  9089. </method>
  9090. <method name="rename"
  9091. abstract="false" native="false" synchronized="false"
  9092. static="false" final="false" visibility="protected"
  9093. deprecated="not deprecated">
  9094. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9095. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9096. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  9097. <exception name="IOException" type="java.io.IOException"/>
  9098. <doc>
  9099. <![CDATA[Renames Path src to Path dst
  9100. <ul>
  9101. <li>Fails if src is a file and dst is a directory.</li>
  9102. <li>Fails if src is a directory and dst is a file.</li>
  9103. <li>Fails if the parent of dst does not exist or is a file.</li>
  9104. </ul>
  9105. <p>
  9106. If OVERWRITE option is not passed as an argument, rename fails
  9107. if the dst already exists.
  9108. <p>
  9109. If OVERWRITE option is passed as an argument, rename overwrites
  9110. the dst if it is a file or an empty directory. Rename fails if dst is
  9111. a non-empty directory.
  9112. <p>
  9113. Note that atomicity of rename is dependent on the file system
  9114. implementation. Please refer to the file system documentation for
  9115. details. This default implementation is non atomic.
  9116. <p>
  9117. This method is deprecated since it is a temporary method added to
  9118. support the transition from FileSystem to FileContext for user
  9119. applications.
  9120. @param src path to be renamed
  9121. @param dst new path after rename
  9122. @throws FileNotFoundException src path does not exist, or the parent
  9123. path of dst does not exist.
  9124. @throws FileAlreadyExistsException dest path exists and is a file
  9125. @throws ParentNotDirectoryException if the parent path of dest is not
  9126. a directory
  9127. @throws IOException on failure]]>
  9128. </doc>
  9129. </method>
  9130. <method name="truncate" return="boolean"
  9131. abstract="false" native="false" synchronized="false"
  9132. static="false" final="false" visibility="public"
  9133. deprecated="not deprecated">
  9134. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9135. <param name="newLength" type="long"/>
  9136. <exception name="IOException" type="java.io.IOException"/>
  9137. <doc>
  9138. <![CDATA[Truncate the file in the indicated path to the indicated size.
  9139. <ul>
  9140. <li>Fails if path is a directory.</li>
  9141. <li>Fails if path does not exist.</li>
  9142. <li>Fails if path is not closed.</li>
  9143. <li>Fails if new size is greater than current size.</li>
  9144. </ul>
  9145. @param f The path to the file to be truncated
  9146. @param newLength The size the file is to be truncated to
  9147. @return <code>true</code> if the file has been truncated to the desired
  9148. <code>newLength</code> and is immediately available to be reused for
  9149. write operations such as <code>append</code>, or
  9150. <code>false</code> if a background process of adjusting the length of
  9151. the last block has been started, and clients should wait for it to
  9152. complete before proceeding with further file updates.
  9153. @throws IOException IO failure
  9154. @throws UnsupportedOperationException if the operation is unsupported
  9155. (default).]]>
  9156. </doc>
  9157. </method>
  9158. <method name="delete" return="boolean"
  9159. abstract="false" native="false" synchronized="false"
  9160. static="false" final="false" visibility="public"
  9161. deprecated="Use {@link #delete(Path, boolean)} instead.">
  9162. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9163. <exception name="IOException" type="java.io.IOException"/>
  9164. <doc>
  9165. <![CDATA[Delete a file/directory.
  9166. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  9167. </doc>
  9168. </method>
  9169. <method name="delete" return="boolean"
  9170. abstract="true" native="false" synchronized="false"
  9171. static="false" final="false" visibility="public"
  9172. deprecated="not deprecated">
  9173. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9174. <param name="recursive" type="boolean"/>
  9175. <exception name="IOException" type="java.io.IOException"/>
  9176. <doc>
  9177. <![CDATA[Delete a file.
  9178. @param f the path to delete.
  9179. @param recursive if path is a directory and set to
  9180. true, the directory is deleted else throws an exception. In
  9181. case of a file the recursive can be set to either true or false.
  9182. @return true if delete is successful else false.
  9183. @throws IOException IO failure]]>
  9184. </doc>
  9185. </method>
  9186. <method name="deleteOnExit" return="boolean"
  9187. abstract="false" native="false" synchronized="false"
  9188. static="false" final="false" visibility="public"
  9189. deprecated="not deprecated">
  9190. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9191. <exception name="IOException" type="java.io.IOException"/>
  9192. <doc>
  9193. <![CDATA[Mark a path to be deleted when its FileSystem is closed.
  9194. When the JVM shuts down cleanly, all cached FileSystem objects will be
  9195. closed automatically. These the marked paths will be deleted as a result.
  9196. If a FileSystem instance is not cached, i.e. has been created with
  9197. {@link #createFileSystem(URI, Configuration)}, then the paths will
  9198. be deleted in when {@link #close()} is called on that instance.
  9199. The path must exist in the filesystem at the time of the method call;
  9200. it does not have to exist at the time of JVM shutdown.
  9201. Notes
  9202. <ol>
  9203. <li>Clean shutdown of the JVM cannot be guaranteed.</li>
  9204. <li>The time to shut down a FileSystem will depends on the number of
  9205. files to delete. For filesystems where the cost of checking
  9206. for the existence of a file/directory and the actual delete operation
  9207. (for example: object stores) is high, the time to shutdown the JVM can be
  9208. significantly extended by over-use of this feature.</li>
  9209. <li>Connectivity problems with a remote filesystem may delay shutdown
  9210. further, and may cause the files to not be deleted.</li>
  9211. </ol>
  9212. @param f the path to delete.
  9213. @return true if deleteOnExit is successful, otherwise false.
  9214. @throws IOException IO failure]]>
  9215. </doc>
  9216. </method>
  9217. <method name="cancelDeleteOnExit" return="boolean"
  9218. abstract="false" native="false" synchronized="false"
  9219. static="false" final="false" visibility="public"
  9220. deprecated="not deprecated">
  9221. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9222. <doc>
  9223. <![CDATA[Cancel the scheduled deletion of the path when the FileSystem is closed.
  9224. @param f the path to cancel deletion
  9225. @return true if the path was found in the delete-on-exit list.]]>
  9226. </doc>
  9227. </method>
  9228. <method name="processDeleteOnExit"
  9229. abstract="false" native="false" synchronized="false"
  9230. static="false" final="false" visibility="protected"
  9231. deprecated="not deprecated">
  9232. <doc>
  9233. <![CDATA[Delete all paths that were marked as delete-on-exit. This recursively
  9234. deletes all files and directories in the specified paths.
  9235. The time to process this operation is {@code O(paths)}, with the actual
  9236. time dependent on the time for existence and deletion operations to
  9237. complete, successfully or not.]]>
  9238. </doc>
  9239. </method>
  9240. <method name="exists" return="boolean"
  9241. abstract="false" native="false" synchronized="false"
  9242. static="false" final="false" visibility="public"
  9243. deprecated="not deprecated">
  9244. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9245. <exception name="IOException" type="java.io.IOException"/>
  9246. <doc>
  9247. <![CDATA[Check if a path exists.
  9248. It is highly discouraged to call this method back to back with other
  9249. {@link #getFileStatus(Path)} calls, as this will involve multiple redundant
  9250. RPC calls in HDFS.
  9251. @param f source path
  9252. @return true if the path exists
  9253. @throws IOException IO failure]]>
  9254. </doc>
  9255. </method>
  9256. <method name="isDirectory" return="boolean"
  9257. abstract="false" native="false" synchronized="false"
  9258. static="false" final="false" visibility="public"
  9259. deprecated="Use {@link #getFileStatus(Path)} instead">
  9260. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9261. <exception name="IOException" type="java.io.IOException"/>
  9262. <doc>
  9263. <![CDATA[True iff the named path is a directory.
  9264. Note: Avoid using this method. Instead reuse the FileStatus
  9265. returned by getFileStatus() or listStatus() methods.
  9266. @param f path to check
  9267. @throws IOException IO failure
  9268. @deprecated Use {@link #getFileStatus(Path)} instead]]>
  9269. </doc>
  9270. </method>
  9271. <method name="isFile" return="boolean"
  9272. abstract="false" native="false" synchronized="false"
  9273. static="false" final="false" visibility="public"
  9274. deprecated="Use {@link #getFileStatus(Path)} instead">
  9275. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9276. <exception name="IOException" type="java.io.IOException"/>
  9277. <doc>
  9278. <![CDATA[True iff the named path is a regular file.
  9279. Note: Avoid using this method. Instead reuse the FileStatus
  9280. returned by {@link #getFileStatus(Path)} or listStatus() methods.
  9281. @param f path to check
  9282. @throws IOException IO failure
  9283. @deprecated Use {@link #getFileStatus(Path)} instead]]>
  9284. </doc>
  9285. </method>
  9286. <method name="getLength" return="long"
  9287. abstract="false" native="false" synchronized="false"
  9288. static="false" final="false" visibility="public"
  9289. deprecated="Use {@link #getFileStatus(Path)} instead.">
  9290. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9291. <exception name="IOException" type="java.io.IOException"/>
  9292. <doc>
  9293. <![CDATA[The number of bytes in a file.
  9294. @return the number of bytes; 0 for a directory
  9295. @deprecated Use {@link #getFileStatus(Path)} instead.
  9296. @throws FileNotFoundException if the path does not resolve
  9297. @throws IOException IO failure]]>
  9298. </doc>
  9299. </method>
  9300. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  9301. abstract="false" native="false" synchronized="false"
  9302. static="false" final="false" visibility="public"
  9303. deprecated="not deprecated">
  9304. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9305. <exception name="IOException" type="java.io.IOException"/>
  9306. <doc>
  9307. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.
  9308. @param f path to use
  9309. @throws FileNotFoundException if the path does not resolve
  9310. @throws IOException IO failure]]>
  9311. </doc>
  9312. </method>
  9313. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  9314. abstract="false" native="false" synchronized="false"
  9315. static="false" final="false" visibility="public"
  9316. deprecated="not deprecated">
  9317. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9318. <exception name="IOException" type="java.io.IOException"/>
  9319. <doc>
  9320. <![CDATA[Return the {@link QuotaUsage} of a given {@link Path}.
  9321. @param f path to use
  9322. @return the quota usage
  9323. @throws IOException IO failure]]>
  9324. </doc>
  9325. </method>
  9326. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9327. abstract="true" native="false" synchronized="false"
  9328. static="false" final="false" visibility="public"
  9329. deprecated="not deprecated">
  9330. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9331. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9332. <exception name="IOException" type="java.io.IOException"/>
  9333. <doc>
  9334. <![CDATA[List the statuses of the files/directories in the given path if the path is
  9335. a directory.
  9336. <p>
  9337. Does not guarantee to return the List of files/directories status in a
  9338. sorted order.
  9339. <p>
  9340. Will not return null. Expect IOException upon access error.
  9341. @param f given path
  9342. @return the statuses of the files/directories in the given patch
  9343. @throws FileNotFoundException when the path does not exist
  9344. @throws IOException see specific implementation]]>
  9345. </doc>
  9346. </method>
  9347. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  9348. abstract="false" native="false" synchronized="false"
  9349. static="false" final="false" visibility="public"
  9350. deprecated="not deprecated">
  9351. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9352. <exception name="IOException" type="java.io.IOException"/>
  9353. <doc>
  9354. <![CDATA[List corrupted file blocks.
  9355. @return an iterator over the corrupt files under the given path
  9356. (may contain duplicates if a file has more than one corrupt block)
  9357. @throws UnsupportedOperationException if the operation is unsupported
  9358. (default).
  9359. @throws IOException IO failure]]>
  9360. </doc>
  9361. </method>
  9362. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9363. abstract="false" native="false" synchronized="false"
  9364. static="false" final="false" visibility="public"
  9365. deprecated="not deprecated">
  9366. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9367. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9368. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9369. <exception name="IOException" type="java.io.IOException"/>
  9370. <doc>
  9371. <![CDATA[Filter files/directories in the given path using the user-supplied path
  9372. filter.
  9373. <p>
  9374. Does not guarantee to return the List of files/directories status in a
  9375. sorted order.
  9376. @param f
  9377. a path name
  9378. @param filter
  9379. the user-supplied path filter
  9380. @return an array of FileStatus objects for the files under the given path
  9381. after applying the filter
  9382. @throws FileNotFoundException when the path does not exist
  9383. @throws IOException see specific implementation]]>
  9384. </doc>
  9385. </method>
  9386. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9387. abstract="false" native="false" synchronized="false"
  9388. static="false" final="false" visibility="public"
  9389. deprecated="not deprecated">
  9390. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  9391. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9392. <exception name="IOException" type="java.io.IOException"/>
  9393. <doc>
  9394. <![CDATA[Filter files/directories in the given list of paths using default
  9395. path filter.
  9396. <p>
  9397. Does not guarantee to return the List of files/directories status in a
  9398. sorted order.
  9399. @param files
  9400. a list of paths
  9401. @return a list of statuses for the files under the given paths after
  9402. applying the filter default Path filter
  9403. @throws FileNotFoundException when the path does not exist
  9404. @throws IOException see specific implementation]]>
  9405. </doc>
  9406. </method>
  9407. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9408. abstract="false" native="false" synchronized="false"
  9409. static="false" final="false" visibility="public"
  9410. deprecated="not deprecated">
  9411. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  9412. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9413. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9414. <exception name="IOException" type="java.io.IOException"/>
  9415. <doc>
  9416. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  9417. path filter.
  9418. <p>
  9419. Does not guarantee to return the List of files/directories status in a
  9420. sorted order.
  9421. @param files
  9422. a list of paths
  9423. @param filter
  9424. the user-supplied path filter
  9425. @return a list of statuses for the files under the given paths after
  9426. applying the filter
  9427. @throws FileNotFoundException when the path does not exist
  9428. @throws IOException see specific implementation]]>
  9429. </doc>
  9430. </method>
  9431. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9432. abstract="false" native="false" synchronized="false"
  9433. static="false" final="false" visibility="public"
  9434. deprecated="not deprecated">
  9435. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  9436. <exception name="IOException" type="java.io.IOException"/>
  9437. <doc>
  9438. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  9439. files. Results are sorted by their names.
  9440. <p>
  9441. A filename pattern is composed of <i>regular</i> characters and
  9442. <i>special pattern matching</i> characters, which are:
  9443. <dl>
  9444. <dd>
  9445. <dl>
  9446. <p>
  9447. <dt> <tt> ? </tt>
  9448. <dd> Matches any single character.
  9449. <p>
  9450. <dt> <tt> * </tt>
  9451. <dd> Matches zero or more characters.
  9452. <p>
  9453. <dt> <tt> [<i>abc</i>] </tt>
  9454. <dd> Matches a single character from character set
  9455. <tt>{<i>a,b,c</i>}</tt>.
  9456. <p>
  9457. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  9458. <dd> Matches a single character from the character range
  9459. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  9460. lexicographically less than or equal to character <tt><i>b</i></tt>.
  9461. <p>
  9462. <dt> <tt> [^<i>a</i>] </tt>
  9463. <dd> Matches a single character that is not from character set or range
  9464. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  9465. immediately to the right of the opening bracket.
  9466. <p>
  9467. <dt> <tt> \<i>c</i> </tt>
  9468. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  9469. <p>
  9470. <dt> <tt> {ab,cd} </tt>
  9471. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  9472. <p>
  9473. <dt> <tt> {ab,c{de,fh}} </tt>
  9474. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  9475. </dl>
  9476. </dd>
  9477. </dl>
  9478. @param pathPattern a glob specifying a path pattern
  9479. @return an array of paths that match the path pattern
  9480. @throws IOException IO failure]]>
  9481. </doc>
  9482. </method>
  9483. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9484. abstract="false" native="false" synchronized="false"
  9485. static="false" final="false" visibility="public"
  9486. deprecated="not deprecated">
  9487. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  9488. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9489. <exception name="IOException" type="java.io.IOException"/>
  9490. <doc>
  9491. <![CDATA[Return an array of {@link FileStatus} objects whose path names match
  9492. {@code pathPattern} and is accepted by the user-supplied path filter.
  9493. Results are sorted by their path names.
  9494. @param pathPattern a glob specifying the path pattern
  9495. @param filter a user-supplied path filter
  9496. @return null if {@code pathPattern} has no glob and the path does not exist
  9497. an empty array if {@code pathPattern} has a glob and no path
  9498. matches it else an array of {@link FileStatus} objects matching the
  9499. pattern
  9500. @throws IOException if any I/O error occurs when fetching file status]]>
  9501. </doc>
  9502. </method>
  9503. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9504. abstract="false" native="false" synchronized="false"
  9505. static="false" final="false" visibility="public"
  9506. deprecated="not deprecated">
  9507. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9508. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9509. <exception name="IOException" type="java.io.IOException"/>
  9510. <doc>
  9511. <![CDATA[List the statuses of the files/directories in the given path if the path is
  9512. a directory.
  9513. Return the file's status and block locations If the path is a file.
  9514. If a returned status is a file, it contains the file's block locations.
  9515. @param f is the path
  9516. @return an iterator that traverses statuses of the files/directories
  9517. in the given path
  9518. @throws FileNotFoundException If <code>f</code> does not exist
  9519. @throws IOException If an I/O error occurred]]>
  9520. </doc>
  9521. </method>
  9522. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9523. abstract="false" native="false" synchronized="false"
  9524. static="false" final="false" visibility="protected"
  9525. deprecated="not deprecated">
  9526. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9527. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9528. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9529. <exception name="IOException" type="java.io.IOException"/>
  9530. <doc>
  9531. <![CDATA[List a directory.
  9532. The returned results include its block location if it is a file
  9533. The results are filtered by the given path filter
  9534. @param f a path
  9535. @param filter a path filter
  9536. @return an iterator that traverses statuses of the files/directories
  9537. in the given path
  9538. @throws FileNotFoundException if <code>f</code> does not exist
  9539. @throws IOException if any I/O error occurred]]>
  9540. </doc>
  9541. </method>
  9542. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  9543. abstract="false" native="false" synchronized="false"
  9544. static="false" final="false" visibility="public"
  9545. deprecated="not deprecated">
  9546. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9547. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9548. <exception name="IOException" type="java.io.IOException"/>
  9549. <doc>
  9550. <![CDATA[Returns a remote iterator so that followup calls are made on demand
  9551. while consuming the entries. Each FileSystem implementation should
  9552. override this method and provide a more efficient implementation, if
  9553. possible.
  9554. Does not guarantee to return the iterator that traverses statuses
  9555. of the files in a sorted order.
  9556. @param p target path
  9557. @return remote iterator
  9558. @throws FileNotFoundException if <code>p</code> does not exist
  9559. @throws IOException if any I/O error occurred]]>
  9560. </doc>
  9561. </method>
  9562. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  9563. abstract="false" native="false" synchronized="false"
  9564. static="false" final="false" visibility="public"
  9565. deprecated="not deprecated">
  9566. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9567. <param name="recursive" type="boolean"/>
  9568. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9569. <exception name="IOException" type="java.io.IOException"/>
  9570. <doc>
  9571. <![CDATA[List the statuses and block locations of the files in the given path.
  9572. Does not guarantee to return the iterator that traverses statuses
  9573. of the files in a sorted order.
  9574. <pre>
  9575. If the path is a directory,
  9576. if recursive is false, returns files in the directory;
  9577. if recursive is true, return files in the subtree rooted at the path.
  9578. If the path is a file, return the file's status and block locations.
  9579. </pre>
  9580. @param f is the path
  9581. @param recursive if the subdirectories need to be traversed recursively
  9582. @return an iterator that traverses statuses of the files
  9583. @throws FileNotFoundException when the path does not exist;
  9584. @throws IOException see specific implementation]]>
  9585. </doc>
  9586. </method>
  9587. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  9588. abstract="false" native="false" synchronized="false"
  9589. static="false" final="false" visibility="public"
  9590. deprecated="not deprecated">
  9591. <doc>
  9592. <![CDATA[Return the current user's home directory in this FileSystem.
  9593. The default implementation returns {@code "/user/$USER/"}.]]>
  9594. </doc>
  9595. </method>
  9596. <method name="setWorkingDirectory"
  9597. abstract="true" native="false" synchronized="false"
  9598. static="false" final="false" visibility="public"
  9599. deprecated="not deprecated">
  9600. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  9601. <doc>
  9602. <![CDATA[Set the current working directory for the given FileSystem. All relative
  9603. paths will be resolved relative to it.
  9604. @param new_dir Path of new working directory]]>
  9605. </doc>
  9606. </method>
  9607. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9608. abstract="true" native="false" synchronized="false"
  9609. static="false" final="false" visibility="public"
  9610. deprecated="not deprecated">
  9611. <doc>
  9612. <![CDATA[Get the current working directory for the given FileSystem
  9613. @return the directory pathname]]>
  9614. </doc>
  9615. </method>
  9616. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9617. abstract="false" native="false" synchronized="false"
  9618. static="false" final="false" visibility="protected"
  9619. deprecated="not deprecated">
  9620. <doc>
  9621. <![CDATA[Note: with the new FileContext class, getWorkingDirectory()
  9622. will be removed.
  9623. The working directory is implemented in FileContext.
  9624. Some FileSystems like LocalFileSystem have an initial workingDir
  9625. that we use as the starting workingDir. For other file systems
  9626. like HDFS there is no built in notion of an initial workingDir.
  9627. @return if there is built in notion of workingDir then it
  9628. is returned; else a null is returned.]]>
  9629. </doc>
  9630. </method>
  9631. <method name="mkdirs" return="boolean"
  9632. abstract="false" native="false" synchronized="false"
  9633. static="false" final="false" visibility="public"
  9634. deprecated="not deprecated">
  9635. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9636. <exception name="IOException" type="java.io.IOException"/>
  9637. <doc>
  9638. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.
  9639. @param f path
  9640. @return true if the directory was created
  9641. @throws IOException IO failure]]>
  9642. </doc>
  9643. </method>
  9644. <method name="mkdirs" return="boolean"
  9645. abstract="true" native="false" synchronized="false"
  9646. static="false" final="false" visibility="public"
  9647. deprecated="not deprecated">
  9648. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9649. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9650. <exception name="IOException" type="java.io.IOException"/>
  9651. <doc>
  9652. <![CDATA[Make the given file and all non-existent parents into
  9653. directories. Has roughly the semantics of Unix @{code mkdir -p}.
  9654. Existence of the directory hierarchy is not an error.
  9655. @param f path to create
  9656. @param permission to apply to f
  9657. @throws IOException IO failure]]>
  9658. </doc>
  9659. </method>
  9660. <method name="copyFromLocalFile"
  9661. abstract="false" native="false" synchronized="false"
  9662. static="false" final="false" visibility="public"
  9663. deprecated="not deprecated">
  9664. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9665. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9666. <exception name="IOException" type="java.io.IOException"/>
  9667. <doc>
  9668. <![CDATA[The src file is on the local disk. Add it to filesystem at
  9669. the given dst name and the source is kept intact afterwards
  9670. @param src path
  9671. @param dst path
  9672. @throws IOException IO failure]]>
  9673. </doc>
  9674. </method>
  9675. <method name="moveFromLocalFile"
  9676. abstract="false" native="false" synchronized="false"
  9677. static="false" final="false" visibility="public"
  9678. deprecated="not deprecated">
  9679. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9680. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9681. <exception name="IOException" type="java.io.IOException"/>
  9682. <doc>
  9683. <![CDATA[The src files is on the local disk. Add it to filesystem at
  9684. the given dst name, removing the source afterwards.
  9685. @param srcs source paths
  9686. @param dst path
  9687. @throws IOException IO failure]]>
  9688. </doc>
  9689. </method>
  9690. <method name="moveFromLocalFile"
  9691. abstract="false" native="false" synchronized="false"
  9692. static="false" final="false" visibility="public"
  9693. deprecated="not deprecated">
  9694. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9695. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9696. <exception name="IOException" type="java.io.IOException"/>
  9697. <doc>
  9698. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  9699. the given dst name, removing the source afterwards.
  9700. @param src local path
  9701. @param dst path
  9702. @throws IOException IO failure]]>
  9703. </doc>
  9704. </method>
  9705. <method name="copyFromLocalFile"
  9706. abstract="false" native="false" synchronized="false"
  9707. static="false" final="false" visibility="public"
  9708. deprecated="not deprecated">
  9709. <param name="delSrc" type="boolean"/>
  9710. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9711. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9712. <exception name="IOException" type="java.io.IOException"/>
  9713. <doc>
  9714. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  9715. the given dst name.
  9716. delSrc indicates if the source should be removed
  9717. @param delSrc whether to delete the src
  9718. @param src path
  9719. @param dst path]]>
  9720. </doc>
  9721. </method>
  9722. <method name="copyFromLocalFile"
  9723. abstract="false" native="false" synchronized="false"
  9724. static="false" final="false" visibility="public"
  9725. deprecated="not deprecated">
  9726. <param name="delSrc" type="boolean"/>
  9727. <param name="overwrite" type="boolean"/>
  9728. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9729. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9730. <exception name="IOException" type="java.io.IOException"/>
  9731. <doc>
  9732. <![CDATA[The src files are on the local disk. Add it to the filesystem at
  9733. the given dst name.
  9734. delSrc indicates if the source should be removed
  9735. @param delSrc whether to delete the src
  9736. @param overwrite whether to overwrite an existing file
  9737. @param srcs array of paths which are source
  9738. @param dst path
  9739. @throws IOException IO failure]]>
  9740. </doc>
  9741. </method>
  9742. <method name="copyFromLocalFile"
  9743. abstract="false" native="false" synchronized="false"
  9744. static="false" final="false" visibility="public"
  9745. deprecated="not deprecated">
  9746. <param name="delSrc" type="boolean"/>
  9747. <param name="overwrite" type="boolean"/>
  9748. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9749. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9750. <exception name="IOException" type="java.io.IOException"/>
  9751. <doc>
  9752. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  9753. the given dst name.
  9754. delSrc indicates if the source should be removed
  9755. @param delSrc whether to delete the src
  9756. @param overwrite whether to overwrite an existing file
  9757. @param src path
  9758. @param dst path
  9759. @throws IOException IO failure]]>
  9760. </doc>
  9761. </method>
  9762. <method name="copyToLocalFile"
  9763. abstract="false" native="false" synchronized="false"
  9764. static="false" final="false" visibility="public"
  9765. deprecated="not deprecated">
  9766. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9767. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9768. <exception name="IOException" type="java.io.IOException"/>
  9769. <doc>
  9770. <![CDATA[Copy it a file from the remote filesystem to the local one.
  9771. @param src path src file in the remote filesystem
  9772. @param dst path local destination
  9773. @throws IOException IO failure]]>
  9774. </doc>
  9775. </method>
  9776. <method name="moveToLocalFile"
  9777. abstract="false" native="false" synchronized="false"
  9778. static="false" final="false" visibility="public"
  9779. deprecated="not deprecated">
  9780. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9781. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9782. <exception name="IOException" type="java.io.IOException"/>
  9783. <doc>
  9784. <![CDATA[Copy a file to the local filesystem, then delete it from the
  9785. remote filesystem (if successfully copied).
  9786. @param src path src file in the remote filesystem
  9787. @param dst path local destination
  9788. @throws IOException IO failure]]>
  9789. </doc>
  9790. </method>
  9791. <method name="copyToLocalFile"
  9792. abstract="false" native="false" synchronized="false"
  9793. static="false" final="false" visibility="public"
  9794. deprecated="not deprecated">
  9795. <param name="delSrc" type="boolean"/>
  9796. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9797. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9798. <exception name="IOException" type="java.io.IOException"/>
  9799. <doc>
  9800. <![CDATA[Copy it a file from a remote filesystem to the local one.
  9801. delSrc indicates if the src will be removed or not.
  9802. @param delSrc whether to delete the src
  9803. @param src path src file in the remote filesystem
  9804. @param dst path local destination
  9805. @throws IOException IO failure]]>
  9806. </doc>
  9807. </method>
  9808. <method name="copyToLocalFile"
  9809. abstract="false" native="false" synchronized="false"
  9810. static="false" final="false" visibility="public"
  9811. deprecated="not deprecated">
  9812. <param name="delSrc" type="boolean"/>
  9813. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9814. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9815. <param name="useRawLocalFileSystem" type="boolean"/>
  9816. <exception name="IOException" type="java.io.IOException"/>
  9817. <doc>
  9818. <![CDATA[The src file is under this filesystem, and the dst is on the local disk.
  9819. Copy it from the remote filesystem to the local dst name.
  9820. delSrc indicates if the src will be removed
  9821. or not. useRawLocalFileSystem indicates whether to use RawLocalFileSystem
  9822. as the local file system or not. RawLocalFileSystem is non checksumming,
  9823. So, It will not create any crc files at local.
  9824. @param delSrc
  9825. whether to delete the src
  9826. @param src
  9827. path
  9828. @param dst
  9829. path
  9830. @param useRawLocalFileSystem
  9831. whether to use RawLocalFileSystem as local file system or not.
  9832. @throws IOException for any IO error]]>
  9833. </doc>
  9834. </method>
  9835. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  9836. abstract="false" native="false" synchronized="false"
  9837. static="false" final="false" visibility="public"
  9838. deprecated="not deprecated">
  9839. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9840. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9841. <exception name="IOException" type="java.io.IOException"/>
  9842. <doc>
  9843. <![CDATA[Returns a local file that the user can write output to. The caller
  9844. provides both the eventual target name in this FileSystem
  9845. and the local working file path.
  9846. If this FileSystem is local, we write directly into the target. If
  9847. the FileSystem is not local, we write into the tmp local area.
  9848. @param fsOutputFile path of output file
  9849. @param tmpLocalFile path of local tmp file
  9850. @throws IOException IO failure]]>
  9851. </doc>
  9852. </method>
  9853. <method name="completeLocalOutput"
  9854. abstract="false" native="false" synchronized="false"
  9855. static="false" final="false" visibility="public"
  9856. deprecated="not deprecated">
  9857. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9858. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9859. <exception name="IOException" type="java.io.IOException"/>
  9860. <doc>
  9861. <![CDATA[Called when we're all done writing to the target.
  9862. A local FS will do nothing, because we've written to exactly the
  9863. right place.
  9864. A remote FS will copy the contents of tmpLocalFile to the correct target at
  9865. fsOutputFile.
  9866. @param fsOutputFile path of output file
  9867. @param tmpLocalFile path to local tmp file
  9868. @throws IOException IO failure]]>
  9869. </doc>
  9870. </method>
  9871. <method name="close"
  9872. abstract="false" native="false" synchronized="false"
  9873. static="false" final="false" visibility="public"
  9874. deprecated="not deprecated">
  9875. <exception name="IOException" type="java.io.IOException"/>
  9876. <doc>
  9877. <![CDATA[Close this FileSystem instance.
  9878. Will release any held locks, delete all files queued for deletion
  9879. through calls to {@link #deleteOnExit(Path)}, and remove this FS instance
  9880. from the cache, if cached.
  9881. After this operation, the outcome of any method call on this FileSystem
  9882. instance, or any input/output stream created by it is <i>undefined</i>.
  9883. @throws IOException IO failure]]>
  9884. </doc>
  9885. </method>
  9886. <method name="getUsed" return="long"
  9887. abstract="false" native="false" synchronized="false"
  9888. static="false" final="false" visibility="public"
  9889. deprecated="not deprecated">
  9890. <exception name="IOException" type="java.io.IOException"/>
  9891. <doc>
  9892. <![CDATA[Return the total size of all files in the filesystem.
  9893. @throws IOException IO failure]]>
  9894. </doc>
  9895. </method>
  9896. <method name="getUsed" return="long"
  9897. abstract="false" native="false" synchronized="false"
  9898. static="false" final="false" visibility="public"
  9899. deprecated="not deprecated">
  9900. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9901. <exception name="IOException" type="java.io.IOException"/>
  9902. <doc>
  9903. <![CDATA[Return the total size of all files from a specified path.
  9904. @throws IOException IO failure]]>
  9905. </doc>
  9906. </method>
  9907. <method name="getBlockSize" return="long"
  9908. abstract="false" native="false" synchronized="false"
  9909. static="false" final="false" visibility="public"
  9910. deprecated="Use {@link #getFileStatus(Path)} instead">
  9911. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9912. <exception name="IOException" type="java.io.IOException"/>
  9913. <doc>
  9914. <![CDATA[Get the block size for a particular file.
  9915. @param f the filename
  9916. @return the number of bytes in a block
  9917. @deprecated Use {@link #getFileStatus(Path)} instead
  9918. @throws FileNotFoundException if the path is not present
  9919. @throws IOException IO failure]]>
  9920. </doc>
  9921. </method>
  9922. <method name="getDefaultBlockSize" return="long"
  9923. abstract="false" native="false" synchronized="false"
  9924. static="false" final="false" visibility="public"
  9925. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  9926. <doc>
  9927. <![CDATA[Return the number of bytes that large input files should be optimally
  9928. be split into to minimize I/O time.
  9929. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  9930. </doc>
  9931. </method>
  9932. <method name="getDefaultBlockSize" return="long"
  9933. abstract="false" native="false" synchronized="false"
  9934. static="false" final="false" visibility="public"
  9935. deprecated="not deprecated">
  9936. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9937. <doc>
  9938. <![CDATA[Return the number of bytes that large input files should be optimally
  9939. be split into to minimize I/O time. The given path will be used to
  9940. locate the actual filesystem. The full path does not have to exist.
  9941. @param f path of file
  9942. @return the default block size for the path's filesystem]]>
  9943. </doc>
  9944. </method>
  9945. <method name="getDefaultReplication" return="short"
  9946. abstract="false" native="false" synchronized="false"
  9947. static="false" final="false" visibility="public"
  9948. deprecated="use {@link #getDefaultReplication(Path)} instead">
  9949. <doc>
  9950. <![CDATA[Get the default replication.
  9951. @return the replication; the default value is "1".
  9952. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  9953. </doc>
  9954. </method>
  9955. <method name="getDefaultReplication" return="short"
  9956. abstract="false" native="false" synchronized="false"
  9957. static="false" final="false" visibility="public"
  9958. deprecated="not deprecated">
  9959. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9960. <doc>
  9961. <![CDATA[Get the default replication for a path.
  9962. The given path will be used to locate the actual FileSystem to query.
  9963. The full path does not have to exist.
  9964. @param path of the file
  9965. @return default replication for the path's filesystem]]>
  9966. </doc>
  9967. </method>
  9968. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  9969. abstract="true" native="false" synchronized="false"
  9970. static="false" final="false" visibility="public"
  9971. deprecated="not deprecated">
  9972. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9973. <exception name="IOException" type="java.io.IOException"/>
  9974. <doc>
  9975. <![CDATA[Return a file status object that represents the path.
  9976. @param f The path we want information from
  9977. @return a FileStatus object
  9978. @throws FileNotFoundException when the path does not exist
  9979. @throws IOException see specific implementation]]>
  9980. </doc>
  9981. </method>
  9982. <method name="fixRelativePart" return="org.apache.hadoop.fs.Path"
  9983. abstract="false" native="false" synchronized="false"
  9984. static="false" final="false" visibility="protected"
  9985. deprecated="not deprecated">
  9986. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9987. <doc>
  9988. <![CDATA[See {@link FileContext#fixRelativePart}.]]>
  9989. </doc>
  9990. </method>
  9991. <method name="createSymlink"
  9992. abstract="false" native="false" synchronized="false"
  9993. static="false" final="false" visibility="public"
  9994. deprecated="not deprecated">
  9995. <param name="target" type="org.apache.hadoop.fs.Path"/>
  9996. <param name="link" type="org.apache.hadoop.fs.Path"/>
  9997. <param name="createParent" type="boolean"/>
  9998. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  9999. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  10000. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10001. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  10002. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10003. <exception name="IOException" type="java.io.IOException"/>
  10004. <doc>
  10005. <![CDATA[See {@link FileContext#createSymlink(Path, Path, boolean)}.]]>
  10006. </doc>
  10007. </method>
  10008. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  10009. abstract="false" native="false" synchronized="false"
  10010. static="false" final="false" visibility="public"
  10011. deprecated="not deprecated">
  10012. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10013. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10014. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10015. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10016. <exception name="IOException" type="java.io.IOException"/>
  10017. <doc>
  10018. <![CDATA[See {@link FileContext#getFileLinkStatus(Path)}.
  10019. @throws FileNotFoundException when the path does not exist
  10020. @throws IOException see specific implementation]]>
  10021. </doc>
  10022. </method>
  10023. <method name="supportsSymlinks" return="boolean"
  10024. abstract="false" native="false" synchronized="false"
  10025. static="false" final="false" visibility="public"
  10026. deprecated="not deprecated">
  10027. <doc>
  10028. <![CDATA[See {@link AbstractFileSystem#supportsSymlinks()}.]]>
  10029. </doc>
  10030. </method>
  10031. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  10032. abstract="false" native="false" synchronized="false"
  10033. static="false" final="false" visibility="public"
  10034. deprecated="not deprecated">
  10035. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10036. <exception name="IOException" type="java.io.IOException"/>
  10037. <doc>
  10038. <![CDATA[See {@link FileContext#getLinkTarget(Path)}.
  10039. @throws UnsupportedOperationException if the operation is unsupported
  10040. (default outcome).]]>
  10041. </doc>
  10042. </method>
  10043. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  10044. abstract="false" native="false" synchronized="false"
  10045. static="false" final="false" visibility="protected"
  10046. deprecated="not deprecated">
  10047. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10048. <exception name="IOException" type="java.io.IOException"/>
  10049. <doc>
  10050. <![CDATA[See {@link AbstractFileSystem#getLinkTarget(Path)}.
  10051. @throws UnsupportedOperationException if the operation is unsupported
  10052. (default outcome).]]>
  10053. </doc>
  10054. </method>
  10055. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10056. abstract="false" native="false" synchronized="false"
  10057. static="false" final="false" visibility="public"
  10058. deprecated="not deprecated">
  10059. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10060. <exception name="IOException" type="java.io.IOException"/>
  10061. <doc>
  10062. <![CDATA[Get the checksum of a file, if the FS supports checksums.
  10063. @param f The file path
  10064. @return The file checksum. The default return value is null,
  10065. which indicates that no checksum algorithm is implemented
  10066. in the corresponding FileSystem.
  10067. @throws IOException IO failure]]>
  10068. </doc>
  10069. </method>
  10070. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10071. abstract="false" native="false" synchronized="false"
  10072. static="false" final="false" visibility="public"
  10073. deprecated="not deprecated">
  10074. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10075. <param name="length" type="long"/>
  10076. <exception name="IOException" type="java.io.IOException"/>
  10077. <doc>
  10078. <![CDATA[Get the checksum of a file, from the beginning of the file till the
  10079. specific length.
  10080. @param f The file path
  10081. @param length The length of the file range for checksum calculation
  10082. @return The file checksum or null if checksums are not supported.
  10083. @throws IOException IO failure]]>
  10084. </doc>
  10085. </method>
  10086. <method name="setVerifyChecksum"
  10087. abstract="false" native="false" synchronized="false"
  10088. static="false" final="false" visibility="public"
  10089. deprecated="not deprecated">
  10090. <param name="verifyChecksum" type="boolean"/>
  10091. <doc>
  10092. <![CDATA[Set the verify checksum flag. This is only applicable if the
  10093. corresponding filesystem supports checksums.
  10094. By default doesn't do anything.
  10095. @param verifyChecksum Verify checksum flag]]>
  10096. </doc>
  10097. </method>
  10098. <method name="setWriteChecksum"
  10099. abstract="false" native="false" synchronized="false"
  10100. static="false" final="false" visibility="public"
  10101. deprecated="not deprecated">
  10102. <param name="writeChecksum" type="boolean"/>
  10103. <doc>
  10104. <![CDATA[Set the write checksum flag. This is only applicable if the
  10105. corresponding filesystem supports checksums.
  10106. By default doesn't do anything.
  10107. @param writeChecksum Write checksum flag]]>
  10108. </doc>
  10109. </method>
  10110. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  10111. abstract="false" native="false" synchronized="false"
  10112. static="false" final="false" visibility="public"
  10113. deprecated="not deprecated">
  10114. <exception name="IOException" type="java.io.IOException"/>
  10115. <doc>
  10116. <![CDATA[Returns a status object describing the use and capacity of the
  10117. filesystem. If the filesystem has multiple partitions, the
  10118. use and capacity of the root partition is reflected.
  10119. @return a FsStatus object
  10120. @throws IOException
  10121. see specific implementation]]>
  10122. </doc>
  10123. </method>
  10124. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  10125. abstract="false" native="false" synchronized="false"
  10126. static="false" final="false" visibility="public"
  10127. deprecated="not deprecated">
  10128. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10129. <exception name="IOException" type="java.io.IOException"/>
  10130. <doc>
  10131. <![CDATA[Returns a status object describing the use and capacity of the
  10132. filesystem. If the filesystem has multiple partitions, the
  10133. use and capacity of the partition pointed to by the specified
  10134. path is reflected.
  10135. @param p Path for which status should be obtained. null means
  10136. the default partition.
  10137. @return a FsStatus object
  10138. @throws IOException
  10139. see specific implementation]]>
  10140. </doc>
  10141. </method>
  10142. <method name="setPermission"
  10143. abstract="false" native="false" synchronized="false"
  10144. static="false" final="false" visibility="public"
  10145. deprecated="not deprecated">
  10146. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10147. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10148. <exception name="IOException" type="java.io.IOException"/>
  10149. <doc>
  10150. <![CDATA[Set permission of a path.
  10151. @param p The path
  10152. @param permission permission
  10153. @throws IOException IO failure]]>
  10154. </doc>
  10155. </method>
  10156. <method name="setOwner"
  10157. abstract="false" native="false" synchronized="false"
  10158. static="false" final="false" visibility="public"
  10159. deprecated="not deprecated">
  10160. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10161. <param name="username" type="java.lang.String"/>
  10162. <param name="groupname" type="java.lang.String"/>
  10163. <exception name="IOException" type="java.io.IOException"/>
  10164. <doc>
  10165. <![CDATA[Set owner of a path (i.e. a file or a directory).
  10166. The parameters username and groupname cannot both be null.
  10167. @param p The path
  10168. @param username If it is null, the original username remains unchanged.
  10169. @param groupname If it is null, the original groupname remains unchanged.
  10170. @throws IOException IO failure]]>
  10171. </doc>
  10172. </method>
  10173. <method name="setTimes"
  10174. abstract="false" native="false" synchronized="false"
  10175. static="false" final="false" visibility="public"
  10176. deprecated="not deprecated">
  10177. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10178. <param name="mtime" type="long"/>
  10179. <param name="atime" type="long"/>
  10180. <exception name="IOException" type="java.io.IOException"/>
  10181. <doc>
  10182. <![CDATA[Set access time of a file.
  10183. @param p The path
  10184. @param mtime Set the modification time of this file.
  10185. The number of milliseconds since Jan 1, 1970.
  10186. A value of -1 means that this call should not set modification time.
  10187. @param atime Set the access time of this file.
  10188. The number of milliseconds since Jan 1, 1970.
  10189. A value of -1 means that this call should not set access time.
  10190. @throws IOException IO failure]]>
  10191. </doc>
  10192. </method>
  10193. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10194. abstract="false" native="false" synchronized="false"
  10195. static="false" final="true" visibility="public"
  10196. deprecated="not deprecated">
  10197. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10198. <exception name="IOException" type="java.io.IOException"/>
  10199. <doc>
  10200. <![CDATA[Create a snapshot with a default name.
  10201. @param path The directory where snapshots will be taken.
  10202. @return the snapshot path.
  10203. @throws IOException IO failure
  10204. @throws UnsupportedOperationException if the operation is unsupported]]>
  10205. </doc>
  10206. </method>
  10207. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10208. abstract="false" native="false" synchronized="false"
  10209. static="false" final="false" visibility="public"
  10210. deprecated="not deprecated">
  10211. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10212. <param name="snapshotName" type="java.lang.String"/>
  10213. <exception name="IOException" type="java.io.IOException"/>
  10214. <doc>
  10215. <![CDATA[Create a snapshot.
  10216. @param path The directory where snapshots will be taken.
  10217. @param snapshotName The name of the snapshot
  10218. @return the snapshot path.
  10219. @throws IOException IO failure
  10220. @throws UnsupportedOperationException if the operation is unsupported]]>
  10221. </doc>
  10222. </method>
  10223. <method name="renameSnapshot"
  10224. abstract="false" native="false" synchronized="false"
  10225. static="false" final="false" visibility="public"
  10226. deprecated="not deprecated">
  10227. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10228. <param name="snapshotOldName" type="java.lang.String"/>
  10229. <param name="snapshotNewName" type="java.lang.String"/>
  10230. <exception name="IOException" type="java.io.IOException"/>
  10231. <doc>
  10232. <![CDATA[Rename a snapshot.
  10233. @param path The directory path where the snapshot was taken
  10234. @param snapshotOldName Old name of the snapshot
  10235. @param snapshotNewName New name of the snapshot
  10236. @throws IOException IO failure
  10237. @throws UnsupportedOperationException if the operation is unsupported
  10238. (default outcome).]]>
  10239. </doc>
  10240. </method>
  10241. <method name="deleteSnapshot"
  10242. abstract="false" native="false" synchronized="false"
  10243. static="false" final="false" visibility="public"
  10244. deprecated="not deprecated">
  10245. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10246. <param name="snapshotName" type="java.lang.String"/>
  10247. <exception name="IOException" type="java.io.IOException"/>
  10248. <doc>
  10249. <![CDATA[Delete a snapshot of a directory.
  10250. @param path The directory that the to-be-deleted snapshot belongs to
  10251. @param snapshotName The name of the snapshot
  10252. @throws IOException IO failure
  10253. @throws UnsupportedOperationException if the operation is unsupported
  10254. (default outcome).]]>
  10255. </doc>
  10256. </method>
  10257. <method name="modifyAclEntries"
  10258. abstract="false" native="false" synchronized="false"
  10259. static="false" final="false" visibility="public"
  10260. deprecated="not deprecated">
  10261. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10262. <param name="aclSpec" type="java.util.List"/>
  10263. <exception name="IOException" type="java.io.IOException"/>
  10264. <doc>
  10265. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  10266. entries or modify the permissions on existing ACL entries. All existing
  10267. ACL entries that are not specified in this call are retained without
  10268. changes. (Modifications are merged into the current ACL.)
  10269. @param path Path to modify
  10270. @param aclSpec List<AclEntry> describing modifications
  10271. @throws IOException if an ACL could not be modified
  10272. @throws UnsupportedOperationException if the operation is unsupported
  10273. (default outcome).]]>
  10274. </doc>
  10275. </method>
  10276. <method name="removeAclEntries"
  10277. abstract="false" native="false" synchronized="false"
  10278. static="false" final="false" visibility="public"
  10279. deprecated="not deprecated">
  10280. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10281. <param name="aclSpec" type="java.util.List"/>
  10282. <exception name="IOException" type="java.io.IOException"/>
  10283. <doc>
  10284. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  10285. retained.
  10286. @param path Path to modify
  10287. @param aclSpec List describing entries to remove
  10288. @throws IOException if an ACL could not be modified
  10289. @throws UnsupportedOperationException if the operation is unsupported
  10290. (default outcome).]]>
  10291. </doc>
  10292. </method>
  10293. <method name="removeDefaultAcl"
  10294. abstract="false" native="false" synchronized="false"
  10295. static="false" final="false" visibility="public"
  10296. deprecated="not deprecated">
  10297. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10298. <exception name="IOException" type="java.io.IOException"/>
  10299. <doc>
  10300. <![CDATA[Removes all default ACL entries from files and directories.
  10301. @param path Path to modify
  10302. @throws IOException if an ACL could not be modified
  10303. @throws UnsupportedOperationException if the operation is unsupported
  10304. (default outcome).]]>
  10305. </doc>
  10306. </method>
  10307. <method name="removeAcl"
  10308. abstract="false" native="false" synchronized="false"
  10309. static="false" final="false" visibility="public"
  10310. deprecated="not deprecated">
  10311. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10312. <exception name="IOException" type="java.io.IOException"/>
  10313. <doc>
  10314. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  10315. for user, group, and others are retained for compatibility with permission
  10316. bits.
  10317. @param path Path to modify
  10318. @throws IOException if an ACL could not be removed
  10319. @throws UnsupportedOperationException if the operation is unsupported
  10320. (default outcome).]]>
  10321. </doc>
  10322. </method>
  10323. <method name="setAcl"
  10324. abstract="false" native="false" synchronized="false"
  10325. static="false" final="false" visibility="public"
  10326. deprecated="not deprecated">
  10327. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10328. <param name="aclSpec" type="java.util.List"/>
  10329. <exception name="IOException" type="java.io.IOException"/>
  10330. <doc>
  10331. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  10332. entries.
  10333. @param path Path to modify
  10334. @param aclSpec List describing modifications, which must include entries
  10335. for user, group, and others for compatibility with permission bits.
  10336. @throws IOException if an ACL could not be modified
  10337. @throws UnsupportedOperationException if the operation is unsupported
  10338. (default outcome).]]>
  10339. </doc>
  10340. </method>
  10341. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  10342. abstract="false" native="false" synchronized="false"
  10343. static="false" final="false" visibility="public"
  10344. deprecated="not deprecated">
  10345. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10346. <exception name="IOException" type="java.io.IOException"/>
  10347. <doc>
  10348. <![CDATA[Gets the ACL of a file or directory.
  10349. @param path Path to get
  10350. @return AclStatus describing the ACL of the file or directory
  10351. @throws IOException if an ACL could not be read
  10352. @throws UnsupportedOperationException if the operation is unsupported
  10353. (default outcome).]]>
  10354. </doc>
  10355. </method>
  10356. <method name="setXAttr"
  10357. abstract="false" native="false" synchronized="false"
  10358. static="false" final="false" visibility="public"
  10359. deprecated="not deprecated">
  10360. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10361. <param name="name" type="java.lang.String"/>
  10362. <param name="value" type="byte[]"/>
  10363. <exception name="IOException" type="java.io.IOException"/>
  10364. <doc>
  10365. <![CDATA[Set an xattr of a file or directory.
  10366. The name must be prefixed with the namespace followed by ".". For example,
  10367. "user.attr".
  10368. <p>
  10369. Refer to the HDFS extended attributes user documentation for details.
  10370. @param path Path to modify
  10371. @param name xattr name.
  10372. @param value xattr value.
  10373. @throws IOException IO failure
  10374. @throws UnsupportedOperationException if the operation is unsupported
  10375. (default outcome).]]>
  10376. </doc>
  10377. </method>
  10378. <method name="setXAttr"
  10379. abstract="false" native="false" synchronized="false"
  10380. static="false" final="false" visibility="public"
  10381. deprecated="not deprecated">
  10382. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10383. <param name="name" type="java.lang.String"/>
  10384. <param name="value" type="byte[]"/>
  10385. <param name="flag" type="java.util.EnumSet"/>
  10386. <exception name="IOException" type="java.io.IOException"/>
  10387. <doc>
  10388. <![CDATA[Set an xattr of a file or directory.
  10389. The name must be prefixed with the namespace followed by ".". For example,
  10390. "user.attr".
  10391. <p>
  10392. Refer to the HDFS extended attributes user documentation for details.
  10393. @param path Path to modify
  10394. @param name xattr name.
  10395. @param value xattr value.
  10396. @param flag xattr set flag
  10397. @throws IOException IO failure
  10398. @throws UnsupportedOperationException if the operation is unsupported
  10399. (default outcome).]]>
  10400. </doc>
  10401. </method>
  10402. <method name="getXAttr" return="byte[]"
  10403. abstract="false" native="false" synchronized="false"
  10404. static="false" final="false" visibility="public"
  10405. deprecated="not deprecated">
  10406. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10407. <param name="name" type="java.lang.String"/>
  10408. <exception name="IOException" type="java.io.IOException"/>
  10409. <doc>
  10410. <![CDATA[Get an xattr name and value for a file or directory.
  10411. The name must be prefixed with the namespace followed by ".". For example,
  10412. "user.attr".
  10413. <p>
  10414. Refer to the HDFS extended attributes user documentation for details.
  10415. @param path Path to get extended attribute
  10416. @param name xattr name.
  10417. @return byte[] xattr value.
  10418. @throws IOException IO failure
  10419. @throws UnsupportedOperationException if the operation is unsupported
  10420. (default outcome).]]>
  10421. </doc>
  10422. </method>
  10423. <method name="getXAttrs" return="java.util.Map"
  10424. abstract="false" native="false" synchronized="false"
  10425. static="false" final="false" visibility="public"
  10426. deprecated="not deprecated">
  10427. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10428. <exception name="IOException" type="java.io.IOException"/>
  10429. <doc>
  10430. <![CDATA[Get all of the xattr name/value pairs for a file or directory.
  10431. Only those xattrs which the logged-in user has permissions to view
  10432. are returned.
  10433. <p>
  10434. Refer to the HDFS extended attributes user documentation for details.
  10435. @param path Path to get extended attributes
  10436. @return Map describing the XAttrs of the file or directory
  10437. @throws IOException IO failure
  10438. @throws UnsupportedOperationException if the operation is unsupported
  10439. (default outcome).]]>
  10440. </doc>
  10441. </method>
  10442. <method name="getXAttrs" return="java.util.Map"
  10443. abstract="false" native="false" synchronized="false"
  10444. static="false" final="false" visibility="public"
  10445. deprecated="not deprecated">
  10446. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10447. <param name="names" type="java.util.List"/>
  10448. <exception name="IOException" type="java.io.IOException"/>
  10449. <doc>
  10450. <![CDATA[Get all of the xattrs name/value pairs for a file or directory.
  10451. Only those xattrs which the logged-in user has permissions to view
  10452. are returned.
  10453. <p>
  10454. Refer to the HDFS extended attributes user documentation for details.
  10455. @param path Path to get extended attributes
  10456. @param names XAttr names.
  10457. @return Map describing the XAttrs of the file or directory
  10458. @throws IOException IO failure
  10459. @throws UnsupportedOperationException if the operation is unsupported
  10460. (default outcome).]]>
  10461. </doc>
  10462. </method>
  10463. <method name="listXAttrs" return="java.util.List"
  10464. abstract="false" native="false" synchronized="false"
  10465. static="false" final="false" visibility="public"
  10466. deprecated="not deprecated">
  10467. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10468. <exception name="IOException" type="java.io.IOException"/>
  10469. <doc>
  10470. <![CDATA[Get all of the xattr names for a file or directory.
  10471. Only those xattr names which the logged-in user has permissions to view
  10472. are returned.
  10473. <p>
  10474. Refer to the HDFS extended attributes user documentation for details.
  10475. @param path Path to get extended attributes
  10476. @return List<String> of the XAttr names of the file or directory
  10477. @throws IOException IO failure
  10478. @throws UnsupportedOperationException if the operation is unsupported
  10479. (default outcome).]]>
  10480. </doc>
  10481. </method>
  10482. <method name="removeXAttr"
  10483. abstract="false" native="false" synchronized="false"
  10484. static="false" final="false" visibility="public"
  10485. deprecated="not deprecated">
  10486. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10487. <param name="name" type="java.lang.String"/>
  10488. <exception name="IOException" type="java.io.IOException"/>
  10489. <doc>
  10490. <![CDATA[Remove an xattr of a file or directory.
  10491. The name must be prefixed with the namespace followed by ".". For example,
  10492. "user.attr".
  10493. <p>
  10494. Refer to the HDFS extended attributes user documentation for details.
  10495. @param path Path to remove extended attribute
  10496. @param name xattr name
  10497. @throws IOException IO failure
  10498. @throws UnsupportedOperationException if the operation is unsupported
  10499. (default outcome).]]>
  10500. </doc>
  10501. </method>
  10502. <method name="setStoragePolicy"
  10503. abstract="false" native="false" synchronized="false"
  10504. static="false" final="false" visibility="public"
  10505. deprecated="not deprecated">
  10506. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10507. <param name="policyName" type="java.lang.String"/>
  10508. <exception name="IOException" type="java.io.IOException"/>
  10509. <doc>
  10510. <![CDATA[Set the storage policy for a given file or directory.
  10511. @param src file or directory path.
  10512. @param policyName the name of the target storage policy. The list
  10513. of supported Storage policies can be retrieved
  10514. via {@link #getAllStoragePolicies}.
  10515. @throws IOException IO failure
  10516. @throws UnsupportedOperationException if the operation is unsupported
  10517. (default outcome).]]>
  10518. </doc>
  10519. </method>
  10520. <method name="unsetStoragePolicy"
  10521. abstract="false" native="false" synchronized="false"
  10522. static="false" final="false" visibility="public"
  10523. deprecated="not deprecated">
  10524. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10525. <exception name="IOException" type="java.io.IOException"/>
  10526. <doc>
  10527. <![CDATA[Unset the storage policy set for a given file or directory.
  10528. @param src file or directory path.
  10529. @throws IOException IO failure
  10530. @throws UnsupportedOperationException if the operation is unsupported
  10531. (default outcome).]]>
  10532. </doc>
  10533. </method>
  10534. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  10535. abstract="false" native="false" synchronized="false"
  10536. static="false" final="false" visibility="public"
  10537. deprecated="not deprecated">
  10538. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10539. <exception name="IOException" type="java.io.IOException"/>
  10540. <doc>
  10541. <![CDATA[Query the effective storage policy ID for the given file or directory.
  10542. @param src file or directory path.
  10543. @return storage policy for give file.
  10544. @throws IOException IO failure
  10545. @throws UnsupportedOperationException if the operation is unsupported
  10546. (default outcome).]]>
  10547. </doc>
  10548. </method>
  10549. <method name="getAllStoragePolicies" return="java.util.Collection"
  10550. abstract="false" native="false" synchronized="false"
  10551. static="false" final="false" visibility="public"
  10552. deprecated="not deprecated">
  10553. <exception name="IOException" type="java.io.IOException"/>
  10554. <doc>
  10555. <![CDATA[Retrieve all the storage policies supported by this file system.
  10556. @return all storage policies supported by this filesystem.
  10557. @throws IOException IO failure
  10558. @throws UnsupportedOperationException if the operation is unsupported
  10559. (default outcome).]]>
  10560. </doc>
  10561. </method>
  10562. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  10563. abstract="false" native="false" synchronized="false"
  10564. static="false" final="false" visibility="public"
  10565. deprecated="not deprecated">
  10566. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10567. <doc>
  10568. <![CDATA[Get the root directory of Trash for current user when the path specified
  10569. is deleted.
  10570. @param path the trash root of the path to be determined.
  10571. @return the default implementation returns {@code /user/$USER/.Trash}]]>
  10572. </doc>
  10573. </method>
  10574. <method name="getTrashRoots" return="java.util.Collection"
  10575. abstract="false" native="false" synchronized="false"
  10576. static="false" final="false" visibility="public"
  10577. deprecated="not deprecated">
  10578. <param name="allUsers" type="boolean"/>
  10579. <doc>
  10580. <![CDATA[Get all the trash roots for current user or all users.
  10581. @param allUsers return trash roots for all users if true.
  10582. @return all the trash root directories.
  10583. Default FileSystem returns .Trash under users' home directories if
  10584. {@code /user/$USER/.Trash} exists.]]>
  10585. </doc>
  10586. </method>
  10587. <method name="getFileSystemClass" return="java.lang.Class"
  10588. abstract="false" native="false" synchronized="false"
  10589. static="true" final="false" visibility="public"
  10590. deprecated="not deprecated">
  10591. <param name="scheme" type="java.lang.String"/>
  10592. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10593. <exception name="IOException" type="java.io.IOException"/>
  10594. <doc>
  10595. <![CDATA[Get the FileSystem implementation class of a filesystem.
  10596. This triggers a scan and load of all FileSystem implementations listed as
  10597. services and discovered via the {@link ServiceLoader}
  10598. @param scheme URL scheme of FS
  10599. @param conf configuration: can be null, in which case the check for
  10600. a filesystem binding declaration in the configuration is skipped.
  10601. @return the filesystem
  10602. @throws UnsupportedFileSystemException if there was no known implementation
  10603. for the scheme.
  10604. @throws IOException if the filesystem could not be loaded]]>
  10605. </doc>
  10606. </method>
  10607. <method name="getStatistics" return="java.util.Map"
  10608. abstract="false" native="false" synchronized="true"
  10609. static="true" final="false" visibility="public"
  10610. deprecated="use {@link #getGlobalStorageStatistics()}">
  10611. <doc>
  10612. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  10613. @return a Map having a key as URI scheme and value as Statistics object
  10614. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10615. </doc>
  10616. </method>
  10617. <method name="getAllStatistics" return="java.util.List"
  10618. abstract="false" native="false" synchronized="true"
  10619. static="true" final="false" visibility="public"
  10620. deprecated="use {@link #getGlobalStorageStatistics()}">
  10621. <doc>
  10622. <![CDATA[Return the FileSystem classes that have Statistics.
  10623. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10624. </doc>
  10625. </method>
  10626. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  10627. abstract="false" native="false" synchronized="true"
  10628. static="true" final="false" visibility="public"
  10629. deprecated="use {@link #getGlobalStorageStatistics()}">
  10630. <param name="scheme" type="java.lang.String"/>
  10631. <param name="cls" type="java.lang.Class"/>
  10632. <doc>
  10633. <![CDATA[Get the statistics for a particular file system.
  10634. @param cls the class to lookup
  10635. @return a statistics object
  10636. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10637. </doc>
  10638. </method>
  10639. <method name="clearStatistics"
  10640. abstract="false" native="false" synchronized="true"
  10641. static="true" final="false" visibility="public"
  10642. deprecated="not deprecated">
  10643. <doc>
  10644. <![CDATA[Reset all statistics for all file systems.]]>
  10645. </doc>
  10646. </method>
  10647. <method name="printStatistics"
  10648. abstract="false" native="false" synchronized="true"
  10649. static="true" final="false" visibility="public"
  10650. deprecated="not deprecated">
  10651. <exception name="IOException" type="java.io.IOException"/>
  10652. <doc>
  10653. <![CDATA[Print all statistics for all file systems to {@code System.out}]]>
  10654. </doc>
  10655. </method>
  10656. <method name="areSymlinksEnabled" return="boolean"
  10657. abstract="false" native="false" synchronized="false"
  10658. static="true" final="false" visibility="public"
  10659. deprecated="not deprecated">
  10660. </method>
  10661. <method name="enableSymlinks"
  10662. abstract="false" native="false" synchronized="false"
  10663. static="true" final="false" visibility="public"
  10664. deprecated="not deprecated">
  10665. </method>
  10666. <method name="getStorageStatistics" return="org.apache.hadoop.fs.StorageStatistics"
  10667. abstract="false" native="false" synchronized="false"
  10668. static="false" final="false" visibility="public"
  10669. deprecated="not deprecated">
  10670. <doc>
  10671. <![CDATA[Get the StorageStatistics for this FileSystem object. These statistics are
  10672. per-instance. They are not shared with any other FileSystem object.
  10673. <p>This is a default method which is intended to be overridden by
  10674. subclasses. The default implementation returns an empty storage statistics
  10675. object.</p>
  10676. @return The StorageStatistics for this FileSystem instance.
  10677. Will never be null.]]>
  10678. </doc>
  10679. </method>
  10680. <method name="getGlobalStorageStatistics" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  10681. abstract="false" native="false" synchronized="false"
  10682. static="true" final="false" visibility="public"
  10683. deprecated="not deprecated">
  10684. <doc>
  10685. <![CDATA[Get the global storage statistics.]]>
  10686. </doc>
  10687. </method>
  10688. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  10689. abstract="false" native="false" synchronized="false"
  10690. static="false" final="false" visibility="public"
  10691. deprecated="not deprecated">
  10692. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10693. <doc>
  10694. <![CDATA[Create a new FSDataOutputStreamBuilder for the file with path.
  10695. Files are overwritten by default.
  10696. @param path file path
  10697. @return a FSDataOutputStreamBuilder object to build the file
  10698. HADOOP-14384. Temporarily reduce the visibility of method before the
  10699. builder interface becomes stable.]]>
  10700. </doc>
  10701. </method>
  10702. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  10703. abstract="false" native="false" synchronized="false"
  10704. static="false" final="false" visibility="public"
  10705. deprecated="not deprecated">
  10706. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10707. <doc>
  10708. <![CDATA[Create a Builder to append a file.
  10709. @param path file path.
  10710. @return a {@link FSDataOutputStreamBuilder} to build file append request.]]>
  10711. </doc>
  10712. </method>
  10713. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  10714. transient="false" volatile="false"
  10715. static="true" final="true" visibility="public"
  10716. deprecated="not deprecated">
  10717. </field>
  10718. <field name="DEFAULT_FS" type="java.lang.String"
  10719. transient="false" volatile="false"
  10720. static="true" final="true" visibility="public"
  10721. deprecated="not deprecated">
  10722. </field>
  10723. <field name="LOG" type="org.apache.commons.logging.Log"
  10724. transient="false" volatile="false"
  10725. static="true" final="true" visibility="public"
  10726. deprecated="not deprecated">
  10727. <doc>
  10728. <![CDATA[This log is widely used in the org.apache.hadoop.fs code and tests,
  10729. so must be considered something to only be changed with care.]]>
  10730. </doc>
  10731. </field>
  10732. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  10733. transient="false" volatile="false"
  10734. static="true" final="true" visibility="public"
  10735. deprecated="not deprecated">
  10736. <doc>
  10737. <![CDATA[Priority of the FileSystem shutdown hook: {@value}.]]>
  10738. </doc>
  10739. </field>
  10740. <field name="TRASH_PREFIX" type="java.lang.String"
  10741. transient="false" volatile="false"
  10742. static="true" final="true" visibility="public"
  10743. deprecated="not deprecated">
  10744. <doc>
  10745. <![CDATA[Prefix for trash directory: {@value}.]]>
  10746. </doc>
  10747. </field>
  10748. <field name="USER_HOME_PREFIX" type="java.lang.String"
  10749. transient="false" volatile="false"
  10750. static="true" final="true" visibility="public"
  10751. deprecated="not deprecated">
  10752. </field>
  10753. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  10754. transient="false" volatile="false"
  10755. static="false" final="false" visibility="protected"
  10756. deprecated="not deprecated">
  10757. <doc>
  10758. <![CDATA[The statistics for this file system.]]>
  10759. </doc>
  10760. </field>
  10761. <doc>
  10762. <![CDATA[An abstract base class for a fairly generic filesystem. It
  10763. may be implemented as a distributed filesystem, or as a "local"
  10764. one that reflects the locally-connected disk. The local version
  10765. exists for small Hadoop instances and for testing.
  10766. <p>
  10767. All user code that may potentially use the Hadoop Distributed
  10768. File System should be written to use a FileSystem object or its
  10769. successor, {@link FileContext}.
  10770. <p>
  10771. The local implementation is {@link LocalFileSystem} and distributed
  10772. implementation is DistributedFileSystem. There are other implementations
  10773. for object stores and (outside the Apache Hadoop codebase),
  10774. third party filesystems.
  10775. <p>
  10776. Notes
  10777. <ol>
  10778. <li>The behaviour of the filesystem is
  10779. <a href="https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/filesystem/filesystem.html">
  10780. specified in the Hadoop documentation. </a>
  10781. However, the normative specification of the behavior of this class is
  10782. actually HDFS: if HDFS does not behave the way these Javadocs or
  10783. the specification in the Hadoop documentations define, assume that
  10784. the documentation is incorrect.
  10785. </li>
  10786. <li>The term {@code FileSystem} refers to an instance of this class.</li>
  10787. <li>The acronym "FS" is used as an abbreviation of FileSystem.</li>
  10788. <li>The term {@code filesystem} refers to the distributed/local filesystem
  10789. itself, rather than the class used to interact with it.</li>
  10790. <li>The term "file" refers to a file in the remote filesystem,
  10791. rather than instances of {@code java.io.File}.</li>
  10792. </ol>]]>
  10793. </doc>
  10794. </class>
  10795. <!-- end class org.apache.hadoop.fs.FileSystem -->
  10796. <!-- start class org.apache.hadoop.fs.FileUtil -->
  10797. <class name="FileUtil" extends="java.lang.Object"
  10798. abstract="false"
  10799. static="false" final="false" visibility="public"
  10800. deprecated="not deprecated">
  10801. <constructor name="FileUtil"
  10802. static="false" final="false" visibility="public"
  10803. deprecated="not deprecated">
  10804. </constructor>
  10805. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  10806. abstract="false" native="false" synchronized="false"
  10807. static="true" final="false" visibility="public"
  10808. deprecated="not deprecated">
  10809. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  10810. <doc>
  10811. <![CDATA[convert an array of FileStatus to an array of Path
  10812. @param stats
  10813. an array of FileStatus objects
  10814. @return an array of paths corresponding to the input]]>
  10815. </doc>
  10816. </method>
  10817. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  10818. abstract="false" native="false" synchronized="false"
  10819. static="true" final="false" visibility="public"
  10820. deprecated="not deprecated">
  10821. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  10822. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10823. <doc>
  10824. <![CDATA[convert an array of FileStatus to an array of Path.
  10825. If stats if null, return path
  10826. @param stats
  10827. an array of FileStatus objects
  10828. @param path
  10829. default path to return in stats is null
  10830. @return an array of paths corresponding to the input]]>
  10831. </doc>
  10832. </method>
  10833. <method name="fullyDeleteOnExit"
  10834. abstract="false" native="false" synchronized="false"
  10835. static="true" final="false" visibility="public"
  10836. deprecated="not deprecated">
  10837. <param name="file" type="java.io.File"/>
  10838. <doc>
  10839. <![CDATA[Register all files recursively to be deleted on exit.
  10840. @param file File/directory to be deleted]]>
  10841. </doc>
  10842. </method>
  10843. <method name="fullyDelete" return="boolean"
  10844. abstract="false" native="false" synchronized="false"
  10845. static="true" final="false" visibility="public"
  10846. deprecated="not deprecated">
  10847. <param name="dir" type="java.io.File"/>
  10848. <doc>
  10849. <![CDATA[Delete a directory and all its contents. If
  10850. we return false, the directory may be partially-deleted.
  10851. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  10852. to by the symlink is not deleted.
  10853. (2) If dir is symlink to a directory, symlink is deleted. The directory
  10854. pointed to by symlink is not deleted.
  10855. (3) If dir is a normal file, it is deleted.
  10856. (4) If dir is a normal directory, then dir and all its contents recursively
  10857. are deleted.]]>
  10858. </doc>
  10859. </method>
  10860. <method name="fullyDelete" return="boolean"
  10861. abstract="false" native="false" synchronized="false"
  10862. static="true" final="false" visibility="public"
  10863. deprecated="not deprecated">
  10864. <param name="dir" type="java.io.File"/>
  10865. <param name="tryGrantPermissions" type="boolean"/>
  10866. <doc>
  10867. <![CDATA[Delete a directory and all its contents. If
  10868. we return false, the directory may be partially-deleted.
  10869. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  10870. to by the symlink is not deleted.
  10871. (2) If dir is symlink to a directory, symlink is deleted. The directory
  10872. pointed to by symlink is not deleted.
  10873. (3) If dir is a normal file, it is deleted.
  10874. (4) If dir is a normal directory, then dir and all its contents recursively
  10875. are deleted.
  10876. @param dir the file or directory to be deleted
  10877. @param tryGrantPermissions true if permissions should be modified to delete a file.
  10878. @return true on success false on failure.]]>
  10879. </doc>
  10880. </method>
  10881. <method name="readLink" return="java.lang.String"
  10882. abstract="false" native="false" synchronized="false"
  10883. static="true" final="false" visibility="public"
  10884. deprecated="not deprecated">
  10885. <param name="f" type="java.io.File"/>
  10886. <doc>
  10887. <![CDATA[Returns the target of the given symlink. Returns the empty string if
  10888. the given path does not refer to a symlink or there is an error
  10889. accessing the symlink.
  10890. @param f File representing the symbolic link.
  10891. @return The target of the symbolic link, empty string on error or if not
  10892. a symlink.]]>
  10893. </doc>
  10894. </method>
  10895. <method name="fullyDeleteContents" return="boolean"
  10896. abstract="false" native="false" synchronized="false"
  10897. static="true" final="false" visibility="public"
  10898. deprecated="not deprecated">
  10899. <param name="dir" type="java.io.File"/>
  10900. <doc>
  10901. <![CDATA[Delete the contents of a directory, not the directory itself. If
  10902. we return false, the directory may be partially-deleted.
  10903. If dir is a symlink to a directory, all the contents of the actual
  10904. directory pointed to by dir will be deleted.]]>
  10905. </doc>
  10906. </method>
  10907. <method name="fullyDeleteContents" return="boolean"
  10908. abstract="false" native="false" synchronized="false"
  10909. static="true" final="false" visibility="public"
  10910. deprecated="not deprecated">
  10911. <param name="dir" type="java.io.File"/>
  10912. <param name="tryGrantPermissions" type="boolean"/>
  10913. <doc>
  10914. <![CDATA[Delete the contents of a directory, not the directory itself. If
  10915. we return false, the directory may be partially-deleted.
  10916. If dir is a symlink to a directory, all the contents of the actual
  10917. directory pointed to by dir will be deleted.
  10918. @param tryGrantPermissions if 'true', try grant +rwx permissions to this
  10919. and all the underlying directories before trying to delete their contents.]]>
  10920. </doc>
  10921. </method>
  10922. <method name="fullyDelete"
  10923. abstract="false" native="false" synchronized="false"
  10924. static="true" final="false" visibility="public"
  10925. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  10926. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10927. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  10928. <exception name="IOException" type="java.io.IOException"/>
  10929. <doc>
  10930. <![CDATA[Recursively delete a directory.
  10931. @param fs {@link FileSystem} on which the path is present
  10932. @param dir directory to recursively delete
  10933. @throws IOException
  10934. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  10935. </doc>
  10936. </method>
  10937. <method name="copy" return="boolean"
  10938. abstract="false" native="false" synchronized="false"
  10939. static="true" final="false" visibility="public"
  10940. deprecated="not deprecated">
  10941. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10942. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10943. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10944. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10945. <param name="deleteSource" type="boolean"/>
  10946. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10947. <exception name="IOException" type="java.io.IOException"/>
  10948. <doc>
  10949. <![CDATA[Copy files between FileSystems.]]>
  10950. </doc>
  10951. </method>
  10952. <method name="copy" return="boolean"
  10953. abstract="false" native="false" synchronized="false"
  10954. static="true" final="false" visibility="public"
  10955. deprecated="not deprecated">
  10956. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10957. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  10958. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10959. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10960. <param name="deleteSource" type="boolean"/>
  10961. <param name="overwrite" type="boolean"/>
  10962. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10963. <exception name="IOException" type="java.io.IOException"/>
  10964. </method>
  10965. <method name="copy" return="boolean"
  10966. abstract="false" native="false" synchronized="false"
  10967. static="true" final="false" visibility="public"
  10968. deprecated="not deprecated">
  10969. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10970. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10971. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10972. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10973. <param name="deleteSource" type="boolean"/>
  10974. <param name="overwrite" type="boolean"/>
  10975. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10976. <exception name="IOException" type="java.io.IOException"/>
  10977. <doc>
  10978. <![CDATA[Copy files between FileSystems.]]>
  10979. </doc>
  10980. </method>
  10981. <method name="copy" return="boolean"
  10982. abstract="false" native="false" synchronized="false"
  10983. static="true" final="false" visibility="public"
  10984. deprecated="not deprecated">
  10985. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10986. <param name="srcStatus" type="org.apache.hadoop.fs.FileStatus"/>
  10987. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10988. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10989. <param name="deleteSource" type="boolean"/>
  10990. <param name="overwrite" type="boolean"/>
  10991. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10992. <exception name="IOException" type="java.io.IOException"/>
  10993. <doc>
  10994. <![CDATA[Copy files between FileSystems.]]>
  10995. </doc>
  10996. </method>
  10997. <method name="copy" return="boolean"
  10998. abstract="false" native="false" synchronized="false"
  10999. static="true" final="false" visibility="public"
  11000. deprecated="not deprecated">
  11001. <param name="src" type="java.io.File"/>
  11002. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11003. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11004. <param name="deleteSource" type="boolean"/>
  11005. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11006. <exception name="IOException" type="java.io.IOException"/>
  11007. <doc>
  11008. <![CDATA[Copy local files to a FileSystem.]]>
  11009. </doc>
  11010. </method>
  11011. <method name="copy" return="boolean"
  11012. abstract="false" native="false" synchronized="false"
  11013. static="true" final="false" visibility="public"
  11014. deprecated="not deprecated">
  11015. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11016. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11017. <param name="dst" type="java.io.File"/>
  11018. <param name="deleteSource" type="boolean"/>
  11019. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11020. <exception name="IOException" type="java.io.IOException"/>
  11021. <doc>
  11022. <![CDATA[Copy FileSystem files to local files.]]>
  11023. </doc>
  11024. </method>
  11025. <method name="makeShellPath" return="java.lang.String"
  11026. abstract="false" native="false" synchronized="false"
  11027. static="true" final="false" visibility="public"
  11028. deprecated="not deprecated">
  11029. <param name="filename" type="java.lang.String"/>
  11030. <exception name="IOException" type="java.io.IOException"/>
  11031. <doc>
  11032. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11033. @param filename The filename to convert
  11034. @return The unix pathname
  11035. @throws IOException on windows, there can be problems with the subprocess]]>
  11036. </doc>
  11037. </method>
  11038. <method name="makeShellPath" return="java.lang.String"
  11039. abstract="false" native="false" synchronized="false"
  11040. static="true" final="false" visibility="public"
  11041. deprecated="not deprecated">
  11042. <param name="file" type="java.io.File"/>
  11043. <exception name="IOException" type="java.io.IOException"/>
  11044. <doc>
  11045. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11046. @param file The filename to convert
  11047. @return The unix pathname
  11048. @throws IOException on windows, there can be problems with the subprocess]]>
  11049. </doc>
  11050. </method>
  11051. <method name="makeSecureShellPath" return="java.lang.String"
  11052. abstract="false" native="false" synchronized="false"
  11053. static="true" final="false" visibility="public"
  11054. deprecated="not deprecated">
  11055. <param name="file" type="java.io.File"/>
  11056. <exception name="IOException" type="java.io.IOException"/>
  11057. <doc>
  11058. <![CDATA[Convert a os-native filename to a path that works for the shell
  11059. and avoids script injection attacks.
  11060. @param file The filename to convert
  11061. @return The unix pathname
  11062. @throws IOException on windows, there can be problems with the subprocess]]>
  11063. </doc>
  11064. </method>
  11065. <method name="makeShellPath" return="java.lang.String"
  11066. abstract="false" native="false" synchronized="false"
  11067. static="true" final="false" visibility="public"
  11068. deprecated="not deprecated">
  11069. <param name="file" type="java.io.File"/>
  11070. <param name="makeCanonicalPath" type="boolean"/>
  11071. <exception name="IOException" type="java.io.IOException"/>
  11072. <doc>
  11073. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11074. @param file The filename to convert
  11075. @param makeCanonicalPath
  11076. Whether to make canonical path for the file passed
  11077. @return The unix pathname
  11078. @throws IOException on windows, there can be problems with the subprocess]]>
  11079. </doc>
  11080. </method>
  11081. <method name="getDU" return="long"
  11082. abstract="false" native="false" synchronized="false"
  11083. static="true" final="false" visibility="public"
  11084. deprecated="not deprecated">
  11085. <param name="dir" type="java.io.File"/>
  11086. <doc>
  11087. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  11088. implementation.
  11089. @param dir
  11090. The input dir to get the disk space of this local dir
  11091. @return The total disk space of the input local directory]]>
  11092. </doc>
  11093. </method>
  11094. <method name="unZip"
  11095. abstract="false" native="false" synchronized="false"
  11096. static="true" final="false" visibility="public"
  11097. deprecated="not deprecated">
  11098. <param name="inputStream" type="java.io.InputStream"/>
  11099. <param name="toDir" type="java.io.File"/>
  11100. <exception name="IOException" type="java.io.IOException"/>
  11101. <doc>
  11102. <![CDATA[Given a stream input it will unzip the it in the unzip directory.
  11103. passed as the second parameter
  11104. @param inputStream The zip file as input
  11105. @param toDir The unzip directory where to unzip the zip file.
  11106. @throws IOException an exception occurred]]>
  11107. </doc>
  11108. </method>
  11109. <method name="unZip"
  11110. abstract="false" native="false" synchronized="false"
  11111. static="true" final="false" visibility="public"
  11112. deprecated="not deprecated">
  11113. <param name="inFile" type="java.io.File"/>
  11114. <param name="unzipDir" type="java.io.File"/>
  11115. <exception name="IOException" type="java.io.IOException"/>
  11116. <doc>
  11117. <![CDATA[Given a File input it will unzip it in the unzip directory.
  11118. passed as the second parameter
  11119. @param inFile The zip file as input
  11120. @param unzipDir The unzip directory where to unzip the zip file.
  11121. @throws IOException An I/O exception has occurred]]>
  11122. </doc>
  11123. </method>
  11124. <method name="unTar"
  11125. abstract="false" native="false" synchronized="false"
  11126. static="true" final="false" visibility="public"
  11127. deprecated="not deprecated">
  11128. <param name="inputStream" type="java.io.InputStream"/>
  11129. <param name="untarDir" type="java.io.File"/>
  11130. <param name="gzipped" type="boolean"/>
  11131. <exception name="IOException" type="java.io.IOException"/>
  11132. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  11133. <exception name="ExecutionException" type="java.util.concurrent.ExecutionException"/>
  11134. <doc>
  11135. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  11136. passed as the second parameter
  11137. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  11138. @param inputStream The tar file as input.
  11139. @param untarDir The untar directory where to untar the tar file.
  11140. @param gzipped The input stream is gzipped
  11141. TODO Use magic number and PusbackInputStream to identify
  11142. @throws IOException an exception occurred
  11143. @throws InterruptedException command interrupted
  11144. @throws ExecutionException task submit failed]]>
  11145. </doc>
  11146. </method>
  11147. <method name="unTar"
  11148. abstract="false" native="false" synchronized="false"
  11149. static="true" final="false" visibility="public"
  11150. deprecated="not deprecated">
  11151. <param name="inFile" type="java.io.File"/>
  11152. <param name="untarDir" type="java.io.File"/>
  11153. <exception name="IOException" type="java.io.IOException"/>
  11154. <doc>
  11155. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  11156. passed as the second parameter
  11157. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  11158. @param inFile The tar file as input.
  11159. @param untarDir The untar directory where to untar the tar file.
  11160. @throws IOException]]>
  11161. </doc>
  11162. </method>
  11163. <method name="symLink" return="int"
  11164. abstract="false" native="false" synchronized="false"
  11165. static="true" final="false" visibility="public"
  11166. deprecated="not deprecated">
  11167. <param name="target" type="java.lang.String"/>
  11168. <param name="linkname" type="java.lang.String"/>
  11169. <exception name="IOException" type="java.io.IOException"/>
  11170. <doc>
  11171. <![CDATA[Create a soft link between a src and destination
  11172. only on a local disk. HDFS does not support this.
  11173. On Windows, when symlink creation fails due to security
  11174. setting, we will log a warning. The return code in this
  11175. case is 2.
  11176. @param target the target for symlink
  11177. @param linkname the symlink
  11178. @return 0 on success]]>
  11179. </doc>
  11180. </method>
  11181. <method name="chmod" return="int"
  11182. abstract="false" native="false" synchronized="false"
  11183. static="true" final="false" visibility="public"
  11184. deprecated="not deprecated">
  11185. <param name="filename" type="java.lang.String"/>
  11186. <param name="perm" type="java.lang.String"/>
  11187. <exception name="IOException" type="java.io.IOException"/>
  11188. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  11189. <doc>
  11190. <![CDATA[Change the permissions on a filename.
  11191. @param filename the name of the file to change
  11192. @param perm the permission string
  11193. @return the exit code from the command
  11194. @throws IOException
  11195. @throws InterruptedException]]>
  11196. </doc>
  11197. </method>
  11198. <method name="chmod" return="int"
  11199. abstract="false" native="false" synchronized="false"
  11200. static="true" final="false" visibility="public"
  11201. deprecated="not deprecated">
  11202. <param name="filename" type="java.lang.String"/>
  11203. <param name="perm" type="java.lang.String"/>
  11204. <param name="recursive" type="boolean"/>
  11205. <exception name="IOException" type="java.io.IOException"/>
  11206. <doc>
  11207. <![CDATA[Change the permissions on a file / directory, recursively, if
  11208. needed.
  11209. @param filename name of the file whose permissions are to change
  11210. @param perm permission string
  11211. @param recursive true, if permissions should be changed recursively
  11212. @return the exit code from the command.
  11213. @throws IOException]]>
  11214. </doc>
  11215. </method>
  11216. <method name="setOwner"
  11217. abstract="false" native="false" synchronized="false"
  11218. static="true" final="false" visibility="public"
  11219. deprecated="not deprecated">
  11220. <param name="file" type="java.io.File"/>
  11221. <param name="username" type="java.lang.String"/>
  11222. <param name="groupname" type="java.lang.String"/>
  11223. <exception name="IOException" type="java.io.IOException"/>
  11224. <doc>
  11225. <![CDATA[Set the ownership on a file / directory. User name and group name
  11226. cannot both be null.
  11227. @param file the file to change
  11228. @param username the new user owner name
  11229. @param groupname the new group owner name
  11230. @throws IOException]]>
  11231. </doc>
  11232. </method>
  11233. <method name="setReadable" return="boolean"
  11234. abstract="false" native="false" synchronized="false"
  11235. static="true" final="false" visibility="public"
  11236. deprecated="not deprecated">
  11237. <param name="f" type="java.io.File"/>
  11238. <param name="readable" type="boolean"/>
  11239. <doc>
  11240. <![CDATA[Platform independent implementation for {@link File#setReadable(boolean)}
  11241. File#setReadable does not work as expected on Windows.
  11242. @param f input file
  11243. @param readable
  11244. @return true on success, false otherwise]]>
  11245. </doc>
  11246. </method>
  11247. <method name="setWritable" return="boolean"
  11248. abstract="false" native="false" synchronized="false"
  11249. static="true" final="false" visibility="public"
  11250. deprecated="not deprecated">
  11251. <param name="f" type="java.io.File"/>
  11252. <param name="writable" type="boolean"/>
  11253. <doc>
  11254. <![CDATA[Platform independent implementation for {@link File#setWritable(boolean)}
  11255. File#setWritable does not work as expected on Windows.
  11256. @param f input file
  11257. @param writable
  11258. @return true on success, false otherwise]]>
  11259. </doc>
  11260. </method>
  11261. <method name="setExecutable" return="boolean"
  11262. abstract="false" native="false" synchronized="false"
  11263. static="true" final="false" visibility="public"
  11264. deprecated="not deprecated">
  11265. <param name="f" type="java.io.File"/>
  11266. <param name="executable" type="boolean"/>
  11267. <doc>
  11268. <![CDATA[Platform independent implementation for {@link File#setExecutable(boolean)}
  11269. File#setExecutable does not work as expected on Windows.
  11270. Note: revoking execute permission on folders does not have the same
  11271. behavior on Windows as on Unix platforms. Creating, deleting or renaming
  11272. a file within that folder will still succeed on Windows.
  11273. @param f input file
  11274. @param executable
  11275. @return true on success, false otherwise]]>
  11276. </doc>
  11277. </method>
  11278. <method name="canRead" return="boolean"
  11279. abstract="false" native="false" synchronized="false"
  11280. static="true" final="false" visibility="public"
  11281. deprecated="not deprecated">
  11282. <param name="f" type="java.io.File"/>
  11283. <doc>
  11284. <![CDATA[Platform independent implementation for {@link File#canRead()}
  11285. @param f input file
  11286. @return On Unix, same as {@link File#canRead()}
  11287. On Windows, true if process has read access on the path]]>
  11288. </doc>
  11289. </method>
  11290. <method name="canWrite" return="boolean"
  11291. abstract="false" native="false" synchronized="false"
  11292. static="true" final="false" visibility="public"
  11293. deprecated="not deprecated">
  11294. <param name="f" type="java.io.File"/>
  11295. <doc>
  11296. <![CDATA[Platform independent implementation for {@link File#canWrite()}
  11297. @param f input file
  11298. @return On Unix, same as {@link File#canWrite()}
  11299. On Windows, true if process has write access on the path]]>
  11300. </doc>
  11301. </method>
  11302. <method name="canExecute" return="boolean"
  11303. abstract="false" native="false" synchronized="false"
  11304. static="true" final="false" visibility="public"
  11305. deprecated="not deprecated">
  11306. <param name="f" type="java.io.File"/>
  11307. <doc>
  11308. <![CDATA[Platform independent implementation for {@link File#canExecute()}
  11309. @param f input file
  11310. @return On Unix, same as {@link File#canExecute()}
  11311. On Windows, true if process has execute access on the path]]>
  11312. </doc>
  11313. </method>
  11314. <method name="setPermission"
  11315. abstract="false" native="false" synchronized="false"
  11316. static="true" final="false" visibility="public"
  11317. deprecated="not deprecated">
  11318. <param name="f" type="java.io.File"/>
  11319. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11320. <exception name="IOException" type="java.io.IOException"/>
  11321. <doc>
  11322. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  11323. of forking if group == other.
  11324. @param f the file to change
  11325. @param permission the new permissions
  11326. @throws IOException]]>
  11327. </doc>
  11328. </method>
  11329. <method name="createLocalTempFile" return="java.io.File"
  11330. abstract="false" native="false" synchronized="false"
  11331. static="true" final="true" visibility="public"
  11332. deprecated="not deprecated">
  11333. <param name="basefile" type="java.io.File"/>
  11334. <param name="prefix" type="java.lang.String"/>
  11335. <param name="isDeleteOnExit" type="boolean"/>
  11336. <exception name="IOException" type="java.io.IOException"/>
  11337. <doc>
  11338. <![CDATA[Create a tmp file for a base file.
  11339. @param basefile the base file of the tmp
  11340. @param prefix file name prefix of tmp
  11341. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  11342. @return a newly created tmp file
  11343. @exception IOException If a tmp file cannot created
  11344. @see java.io.File#createTempFile(String, String, File)
  11345. @see java.io.File#deleteOnExit()]]>
  11346. </doc>
  11347. </method>
  11348. <method name="replaceFile"
  11349. abstract="false" native="false" synchronized="false"
  11350. static="true" final="false" visibility="public"
  11351. deprecated="not deprecated">
  11352. <param name="src" type="java.io.File"/>
  11353. <param name="target" type="java.io.File"/>
  11354. <exception name="IOException" type="java.io.IOException"/>
  11355. <doc>
  11356. <![CDATA[Move the src file to the name specified by target.
  11357. @param src the source file
  11358. @param target the target file
  11359. @exception IOException If this operation fails]]>
  11360. </doc>
  11361. </method>
  11362. <method name="listFiles" return="java.io.File[]"
  11363. abstract="false" native="false" synchronized="false"
  11364. static="true" final="false" visibility="public"
  11365. deprecated="not deprecated">
  11366. <param name="dir" type="java.io.File"/>
  11367. <exception name="IOException" type="java.io.IOException"/>
  11368. <doc>
  11369. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  11370. when a dir is not a directory or for any I/O error. Instead of having
  11371. null check everywhere File#listFiles() is used, we will add utility API
  11372. to get around this problem. For the majority of cases where we prefer
  11373. an IOException to be thrown.
  11374. @param dir directory for which listing should be performed
  11375. @return list of files or empty list
  11376. @exception IOException for invalid directory or for a bad disk.]]>
  11377. </doc>
  11378. </method>
  11379. <method name="list" return="java.lang.String[]"
  11380. abstract="false" native="false" synchronized="false"
  11381. static="true" final="false" visibility="public"
  11382. deprecated="not deprecated">
  11383. <param name="dir" type="java.io.File"/>
  11384. <exception name="IOException" type="java.io.IOException"/>
  11385. <doc>
  11386. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  11387. when a dir is not a directory or for any I/O error. Instead of having
  11388. null check everywhere File#list() is used, we will add utility API
  11389. to get around this problem. For the majority of cases where we prefer
  11390. an IOException to be thrown.
  11391. @param dir directory for which listing should be performed
  11392. @return list of file names or empty string list
  11393. @exception AccessDeniedException for unreadable directory
  11394. @exception IOException for invalid directory or for bad disk]]>
  11395. </doc>
  11396. </method>
  11397. <method name="createJarWithClassPath" return="java.lang.String[]"
  11398. abstract="false" native="false" synchronized="false"
  11399. static="true" final="false" visibility="public"
  11400. deprecated="not deprecated">
  11401. <param name="inputClassPath" type="java.lang.String"/>
  11402. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  11403. <param name="callerEnv" type="java.util.Map"/>
  11404. <exception name="IOException" type="java.io.IOException"/>
  11405. </method>
  11406. <method name="createJarWithClassPath" return="java.lang.String[]"
  11407. abstract="false" native="false" synchronized="false"
  11408. static="true" final="false" visibility="public"
  11409. deprecated="not deprecated">
  11410. <param name="inputClassPath" type="java.lang.String"/>
  11411. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  11412. <param name="targetDir" type="org.apache.hadoop.fs.Path"/>
  11413. <param name="callerEnv" type="java.util.Map"/>
  11414. <exception name="IOException" type="java.io.IOException"/>
  11415. <doc>
  11416. <![CDATA[Create a jar file at the given path, containing a manifest with a classpath
  11417. that references all specified entries.
  11418. Some platforms may have an upper limit on command line length. For example,
  11419. the maximum command line length on Windows is 8191 characters, but the
  11420. length of the classpath may exceed this. To work around this limitation,
  11421. use this method to create a small intermediate jar with a manifest that
  11422. contains the full classpath. It returns the absolute path to the new jar,
  11423. which the caller may set as the classpath for a new process.
  11424. Environment variable evaluation is not supported within a jar manifest, so
  11425. this method expands environment variables before inserting classpath entries
  11426. to the manifest. The method parses environment variables according to
  11427. platform-specific syntax (%VAR% on Windows, or $VAR otherwise). On Windows,
  11428. environment variables are case-insensitive. For example, %VAR% and %var%
  11429. evaluate to the same value.
  11430. Specifying the classpath in a jar manifest does not support wildcards, so
  11431. this method expands wildcards internally. Any classpath entry that ends
  11432. with * is translated to all files at that path with extension .jar or .JAR.
  11433. @param inputClassPath String input classpath to bundle into the jar manifest
  11434. @param pwd Path to working directory to save jar
  11435. @param targetDir path to where the jar execution will have its working dir
  11436. @param callerEnv Map<String, String> caller's environment variables to use
  11437. for expansion
  11438. @return String[] with absolute path to new jar in position 0 and
  11439. unexpanded wild card entry path in position 1
  11440. @throws IOException if there is an I/O error while writing the jar file]]>
  11441. </doc>
  11442. </method>
  11443. <method name="getJarsInDirectory" return="java.util.List"
  11444. abstract="false" native="false" synchronized="false"
  11445. static="true" final="false" visibility="public"
  11446. deprecated="not deprecated">
  11447. <param name="path" type="java.lang.String"/>
  11448. <doc>
  11449. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  11450. wildcard path to return all jars from the directory to use in a classpath.
  11451. It operates only on local paths.
  11452. @param path the path to the directory. The path may include the wildcard.
  11453. @return the list of jars as URLs, or an empty list if there are no jars, or
  11454. the directory does not exist locally]]>
  11455. </doc>
  11456. </method>
  11457. <method name="getJarsInDirectory" return="java.util.List"
  11458. abstract="false" native="false" synchronized="false"
  11459. static="true" final="false" visibility="public"
  11460. deprecated="not deprecated">
  11461. <param name="path" type="java.lang.String"/>
  11462. <param name="useLocal" type="boolean"/>
  11463. <doc>
  11464. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  11465. wildcard path to return all jars from the directory to use in a classpath.
  11466. @param path the path to the directory. The path may include the wildcard.
  11467. @return the list of jars as URLs, or an empty list if there are no jars, or
  11468. the directory does not exist]]>
  11469. </doc>
  11470. </method>
  11471. <method name="compareFs" return="boolean"
  11472. abstract="false" native="false" synchronized="false"
  11473. static="true" final="false" visibility="public"
  11474. deprecated="not deprecated">
  11475. <param name="srcFs" type="org.apache.hadoop.fs.FileSystem"/>
  11476. <param name="destFs" type="org.apache.hadoop.fs.FileSystem"/>
  11477. </method>
  11478. <field name="SYMLINK_NO_PRIVILEGE" type="int"
  11479. transient="false" volatile="false"
  11480. static="true" final="true" visibility="public"
  11481. deprecated="not deprecated">
  11482. </field>
  11483. <doc>
  11484. <![CDATA[A collection of file-processing util methods]]>
  11485. </doc>
  11486. </class>
  11487. <!-- end class org.apache.hadoop.fs.FileUtil -->
  11488. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  11489. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  11490. abstract="false"
  11491. static="false" final="false" visibility="public"
  11492. deprecated="not deprecated">
  11493. <constructor name="FilterFileSystem"
  11494. static="false" final="false" visibility="public"
  11495. deprecated="not deprecated">
  11496. </constructor>
  11497. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  11498. static="false" final="false" visibility="public"
  11499. deprecated="not deprecated">
  11500. </constructor>
  11501. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  11502. abstract="false" native="false" synchronized="false"
  11503. static="false" final="false" visibility="public"
  11504. deprecated="not deprecated">
  11505. <doc>
  11506. <![CDATA[Get the raw file system
  11507. @return FileSystem being filtered]]>
  11508. </doc>
  11509. </method>
  11510. <method name="initialize"
  11511. abstract="false" native="false" synchronized="false"
  11512. static="false" final="false" visibility="public"
  11513. deprecated="not deprecated">
  11514. <param name="name" type="java.net.URI"/>
  11515. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11516. <exception name="IOException" type="java.io.IOException"/>
  11517. <doc>
  11518. <![CDATA[Called after a new FileSystem instance is constructed.
  11519. @param name a uri whose authority section names the host, port, etc.
  11520. for this FileSystem
  11521. @param conf the configuration]]>
  11522. </doc>
  11523. </method>
  11524. <method name="getUri" return="java.net.URI"
  11525. abstract="false" native="false" synchronized="false"
  11526. static="false" final="false" visibility="public"
  11527. deprecated="not deprecated">
  11528. <doc>
  11529. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  11530. </doc>
  11531. </method>
  11532. <method name="getCanonicalUri" return="java.net.URI"
  11533. abstract="false" native="false" synchronized="false"
  11534. static="false" final="false" visibility="protected"
  11535. deprecated="not deprecated">
  11536. </method>
  11537. <method name="canonicalizeUri" return="java.net.URI"
  11538. abstract="false" native="false" synchronized="false"
  11539. static="false" final="false" visibility="protected"
  11540. deprecated="not deprecated">
  11541. <param name="uri" type="java.net.URI"/>
  11542. </method>
  11543. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  11544. abstract="false" native="false" synchronized="false"
  11545. static="false" final="false" visibility="public"
  11546. deprecated="not deprecated">
  11547. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11548. <doc>
  11549. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  11550. </doc>
  11551. </method>
  11552. <method name="checkPath"
  11553. abstract="false" native="false" synchronized="false"
  11554. static="false" final="false" visibility="protected"
  11555. deprecated="not deprecated">
  11556. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11557. <doc>
  11558. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  11559. </doc>
  11560. </method>
  11561. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  11562. abstract="false" native="false" synchronized="false"
  11563. static="false" final="false" visibility="public"
  11564. deprecated="not deprecated">
  11565. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  11566. <param name="start" type="long"/>
  11567. <param name="len" type="long"/>
  11568. <exception name="IOException" type="java.io.IOException"/>
  11569. </method>
  11570. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  11571. abstract="false" native="false" synchronized="false"
  11572. static="false" final="false" visibility="public"
  11573. deprecated="not deprecated">
  11574. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11575. <exception name="IOException" type="java.io.IOException"/>
  11576. </method>
  11577. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  11578. abstract="false" native="false" synchronized="false"
  11579. static="false" final="false" visibility="public"
  11580. deprecated="not deprecated">
  11581. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11582. <param name="bufferSize" type="int"/>
  11583. <exception name="IOException" type="java.io.IOException"/>
  11584. <doc>
  11585. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  11586. @param f the file name to open
  11587. @param bufferSize the size of the buffer to be used.]]>
  11588. </doc>
  11589. </method>
  11590. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  11591. abstract="false" native="false" synchronized="false"
  11592. static="false" final="false" visibility="public"
  11593. deprecated="not deprecated">
  11594. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  11595. <param name="bufferSize" type="int"/>
  11596. <exception name="IOException" type="java.io.IOException"/>
  11597. </method>
  11598. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  11599. abstract="false" native="false" synchronized="false"
  11600. static="false" final="false" visibility="protected"
  11601. deprecated="not deprecated">
  11602. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  11603. <param name="opts" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  11604. </method>
  11605. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  11606. abstract="false" native="false" synchronized="false"
  11607. static="false" final="false" visibility="public"
  11608. deprecated="not deprecated">
  11609. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11610. <param name="bufferSize" type="int"/>
  11611. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11612. <exception name="IOException" type="java.io.IOException"/>
  11613. </method>
  11614. <method name="concat"
  11615. abstract="false" native="false" synchronized="false"
  11616. static="false" final="false" visibility="public"
  11617. deprecated="not deprecated">
  11618. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11619. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  11620. <exception name="IOException" type="java.io.IOException"/>
  11621. </method>
  11622. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11623. abstract="false" native="false" synchronized="false"
  11624. static="false" final="false" visibility="public"
  11625. deprecated="not deprecated">
  11626. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11627. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11628. <param name="overwrite" type="boolean"/>
  11629. <param name="bufferSize" type="int"/>
  11630. <param name="replication" type="short"/>
  11631. <param name="blockSize" type="long"/>
  11632. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11633. <exception name="IOException" type="java.io.IOException"/>
  11634. </method>
  11635. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11636. abstract="false" native="false" synchronized="false"
  11637. static="false" final="false" visibility="public"
  11638. deprecated="not deprecated">
  11639. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11640. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11641. <param name="flags" type="java.util.EnumSet"/>
  11642. <param name="bufferSize" type="int"/>
  11643. <param name="replication" type="short"/>
  11644. <param name="blockSize" type="long"/>
  11645. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11646. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  11647. <exception name="IOException" type="java.io.IOException"/>
  11648. </method>
  11649. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  11650. abstract="false" native="false" synchronized="false"
  11651. static="false" final="false" visibility="protected"
  11652. deprecated="not deprecated">
  11653. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11654. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  11655. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11656. <exception name="IOException" type="java.io.IOException"/>
  11657. </method>
  11658. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  11659. abstract="false" native="false" synchronized="false"
  11660. static="false" final="false" visibility="public"
  11661. deprecated="not deprecated">
  11662. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11663. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11664. <param name="flags" type="java.util.EnumSet"/>
  11665. <param name="bufferSize" type="int"/>
  11666. <param name="replication" type="short"/>
  11667. <param name="blockSize" type="long"/>
  11668. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11669. <exception name="IOException" type="java.io.IOException"/>
  11670. </method>
  11671. <method name="setReplication" return="boolean"
  11672. abstract="false" native="false" synchronized="false"
  11673. static="false" final="false" visibility="public"
  11674. deprecated="not deprecated">
  11675. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11676. <param name="replication" type="short"/>
  11677. <exception name="IOException" type="java.io.IOException"/>
  11678. <doc>
  11679. <![CDATA[Set replication for an existing file.
  11680. @param src file name
  11681. @param replication new replication
  11682. @throws IOException
  11683. @return true if successful;
  11684. false if file does not exist or is a directory]]>
  11685. </doc>
  11686. </method>
  11687. <method name="rename" return="boolean"
  11688. abstract="false" native="false" synchronized="false"
  11689. static="false" final="false" visibility="public"
  11690. deprecated="not deprecated">
  11691. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11692. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11693. <exception name="IOException" type="java.io.IOException"/>
  11694. <doc>
  11695. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  11696. or remote DFS.]]>
  11697. </doc>
  11698. </method>
  11699. <method name="rename"
  11700. abstract="false" native="false" synchronized="false"
  11701. static="false" final="false" visibility="protected"
  11702. deprecated="not deprecated">
  11703. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11704. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11705. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  11706. <exception name="IOException" type="java.io.IOException"/>
  11707. </method>
  11708. <method name="truncate" return="boolean"
  11709. abstract="false" native="false" synchronized="false"
  11710. static="false" final="false" visibility="public"
  11711. deprecated="not deprecated">
  11712. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11713. <param name="newLength" type="long"/>
  11714. <exception name="IOException" type="java.io.IOException"/>
  11715. </method>
  11716. <method name="delete" return="boolean"
  11717. abstract="false" native="false" synchronized="false"
  11718. static="false" final="false" visibility="public"
  11719. deprecated="not deprecated">
  11720. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11721. <param name="recursive" type="boolean"/>
  11722. <exception name="IOException" type="java.io.IOException"/>
  11723. <doc>
  11724. <![CDATA[Delete a file]]>
  11725. </doc>
  11726. </method>
  11727. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  11728. abstract="false" native="false" synchronized="false"
  11729. static="false" final="false" visibility="public"
  11730. deprecated="not deprecated">
  11731. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11732. <exception name="IOException" type="java.io.IOException"/>
  11733. <doc>
  11734. <![CDATA[List files in a directory.]]>
  11735. </doc>
  11736. </method>
  11737. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  11738. abstract="false" native="false" synchronized="false"
  11739. static="false" final="false" visibility="public"
  11740. deprecated="not deprecated">
  11741. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11742. <exception name="IOException" type="java.io.IOException"/>
  11743. </method>
  11744. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  11745. abstract="false" native="false" synchronized="false"
  11746. static="false" final="false" visibility="public"
  11747. deprecated="not deprecated">
  11748. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11749. <exception name="IOException" type="java.io.IOException"/>
  11750. <doc>
  11751. <![CDATA[List files and its block locations in a directory.]]>
  11752. </doc>
  11753. </method>
  11754. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  11755. abstract="false" native="false" synchronized="false"
  11756. static="false" final="false" visibility="public"
  11757. deprecated="not deprecated">
  11758. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11759. <exception name="IOException" type="java.io.IOException"/>
  11760. <doc>
  11761. <![CDATA[Return a remote iterator for listing in a directory]]>
  11762. </doc>
  11763. </method>
  11764. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  11765. abstract="false" native="false" synchronized="false"
  11766. static="false" final="false" visibility="public"
  11767. deprecated="not deprecated">
  11768. </method>
  11769. <method name="setWorkingDirectory"
  11770. abstract="false" native="false" synchronized="false"
  11771. static="false" final="false" visibility="public"
  11772. deprecated="not deprecated">
  11773. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  11774. <doc>
  11775. <![CDATA[Set the current working directory for the given file system. All relative
  11776. paths will be resolved relative to it.
  11777. @param newDir]]>
  11778. </doc>
  11779. </method>
  11780. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11781. abstract="false" native="false" synchronized="false"
  11782. static="false" final="false" visibility="public"
  11783. deprecated="not deprecated">
  11784. <doc>
  11785. <![CDATA[Get the current working directory for the given file system
  11786. @return the directory pathname]]>
  11787. </doc>
  11788. </method>
  11789. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11790. abstract="false" native="false" synchronized="false"
  11791. static="false" final="false" visibility="protected"
  11792. deprecated="not deprecated">
  11793. </method>
  11794. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  11795. abstract="false" native="false" synchronized="false"
  11796. static="false" final="false" visibility="public"
  11797. deprecated="not deprecated">
  11798. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11799. <exception name="IOException" type="java.io.IOException"/>
  11800. </method>
  11801. <method name="mkdirs" return="boolean"
  11802. abstract="false" native="false" synchronized="false"
  11803. static="false" final="false" visibility="public"
  11804. deprecated="not deprecated">
  11805. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11806. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11807. <exception name="IOException" type="java.io.IOException"/>
  11808. </method>
  11809. <method name="copyFromLocalFile"
  11810. abstract="false" native="false" synchronized="false"
  11811. static="false" final="false" visibility="public"
  11812. deprecated="not deprecated">
  11813. <param name="delSrc" type="boolean"/>
  11814. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11815. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11816. <exception name="IOException" type="java.io.IOException"/>
  11817. <doc>
  11818. <![CDATA[The src file is on the local disk. Add it to FS at
  11819. the given dst name.
  11820. delSrc indicates if the source should be removed]]>
  11821. </doc>
  11822. </method>
  11823. <method name="copyFromLocalFile"
  11824. abstract="false" native="false" synchronized="false"
  11825. static="false" final="false" visibility="public"
  11826. deprecated="not deprecated">
  11827. <param name="delSrc" type="boolean"/>
  11828. <param name="overwrite" type="boolean"/>
  11829. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  11830. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11831. <exception name="IOException" type="java.io.IOException"/>
  11832. <doc>
  11833. <![CDATA[The src files are on the local disk. Add it to FS at
  11834. the given dst name.
  11835. delSrc indicates if the source should be removed]]>
  11836. </doc>
  11837. </method>
  11838. <method name="copyFromLocalFile"
  11839. abstract="false" native="false" synchronized="false"
  11840. static="false" final="false" visibility="public"
  11841. deprecated="not deprecated">
  11842. <param name="delSrc" type="boolean"/>
  11843. <param name="overwrite" type="boolean"/>
  11844. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11845. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11846. <exception name="IOException" type="java.io.IOException"/>
  11847. <doc>
  11848. <![CDATA[The src file is on the local disk. Add it to FS at
  11849. the given dst name.
  11850. delSrc indicates if the source should be removed]]>
  11851. </doc>
  11852. </method>
  11853. <method name="copyToLocalFile"
  11854. abstract="false" native="false" synchronized="false"
  11855. static="false" final="false" visibility="public"
  11856. deprecated="not deprecated">
  11857. <param name="delSrc" type="boolean"/>
  11858. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11859. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11860. <exception name="IOException" type="java.io.IOException"/>
  11861. <doc>
  11862. <![CDATA[The src file is under FS, and the dst is on the local disk.
  11863. Copy it from FS control to the local dst name.
  11864. delSrc indicates if the src will be removed or not.]]>
  11865. </doc>
  11866. </method>
  11867. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  11868. abstract="false" native="false" synchronized="false"
  11869. static="false" final="false" visibility="public"
  11870. deprecated="not deprecated">
  11871. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  11872. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11873. <exception name="IOException" type="java.io.IOException"/>
  11874. <doc>
  11875. <![CDATA[Returns a local File that the user can write output to. The caller
  11876. provides both the eventual FS target name and the local working
  11877. file. If the FS is local, we write directly into the target. If
  11878. the FS is remote, we write into the tmp local area.]]>
  11879. </doc>
  11880. </method>
  11881. <method name="completeLocalOutput"
  11882. abstract="false" native="false" synchronized="false"
  11883. static="false" final="false" visibility="public"
  11884. deprecated="not deprecated">
  11885. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  11886. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11887. <exception name="IOException" type="java.io.IOException"/>
  11888. <doc>
  11889. <![CDATA[Called when we're all done writing to the target. A local FS will
  11890. do nothing, because we've written to exactly the right place. A remote
  11891. FS will copy the contents of tmpLocalFile to the correct target at
  11892. fsOutputFile.]]>
  11893. </doc>
  11894. </method>
  11895. <method name="getUsed" return="long"
  11896. abstract="false" native="false" synchronized="false"
  11897. static="false" final="false" visibility="public"
  11898. deprecated="not deprecated">
  11899. <exception name="IOException" type="java.io.IOException"/>
  11900. <doc>
  11901. <![CDATA[Return the total size of all files in the filesystem.]]>
  11902. </doc>
  11903. </method>
  11904. <method name="getUsed" return="long"
  11905. abstract="false" native="false" synchronized="false"
  11906. static="false" final="false" visibility="public"
  11907. deprecated="not deprecated">
  11908. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11909. <exception name="IOException" type="java.io.IOException"/>
  11910. <doc>
  11911. <![CDATA[Return the total size of all files from a specified path.]]>
  11912. </doc>
  11913. </method>
  11914. <method name="getDefaultBlockSize" return="long"
  11915. abstract="false" native="false" synchronized="false"
  11916. static="false" final="false" visibility="public"
  11917. deprecated="not deprecated">
  11918. </method>
  11919. <method name="getDefaultReplication" return="short"
  11920. abstract="false" native="false" synchronized="false"
  11921. static="false" final="false" visibility="public"
  11922. deprecated="not deprecated">
  11923. </method>
  11924. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  11925. abstract="false" native="false" synchronized="false"
  11926. static="false" final="false" visibility="public"
  11927. deprecated="not deprecated">
  11928. <exception name="IOException" type="java.io.IOException"/>
  11929. </method>
  11930. <method name="getDefaultBlockSize" return="long"
  11931. abstract="false" native="false" synchronized="false"
  11932. static="false" final="false" visibility="public"
  11933. deprecated="not deprecated">
  11934. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11935. </method>
  11936. <method name="getDefaultReplication" return="short"
  11937. abstract="false" native="false" synchronized="false"
  11938. static="false" final="false" visibility="public"
  11939. deprecated="not deprecated">
  11940. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11941. </method>
  11942. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  11943. abstract="false" native="false" synchronized="false"
  11944. static="false" final="false" visibility="public"
  11945. deprecated="not deprecated">
  11946. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11947. <exception name="IOException" type="java.io.IOException"/>
  11948. </method>
  11949. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  11950. abstract="false" native="false" synchronized="false"
  11951. static="false" final="false" visibility="public"
  11952. deprecated="not deprecated">
  11953. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11954. <exception name="IOException" type="java.io.IOException"/>
  11955. <doc>
  11956. <![CDATA[Get file status.]]>
  11957. </doc>
  11958. </method>
  11959. <method name="access"
  11960. abstract="false" native="false" synchronized="false"
  11961. static="false" final="false" visibility="public"
  11962. deprecated="not deprecated">
  11963. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11964. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  11965. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11966. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11967. <exception name="IOException" type="java.io.IOException"/>
  11968. </method>
  11969. <method name="createSymlink"
  11970. abstract="false" native="false" synchronized="false"
  11971. static="false" final="false" visibility="public"
  11972. deprecated="not deprecated">
  11973. <param name="target" type="org.apache.hadoop.fs.Path"/>
  11974. <param name="link" type="org.apache.hadoop.fs.Path"/>
  11975. <param name="createParent" type="boolean"/>
  11976. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11977. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  11978. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11979. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  11980. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  11981. <exception name="IOException" type="java.io.IOException"/>
  11982. </method>
  11983. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  11984. abstract="false" native="false" synchronized="false"
  11985. static="false" final="false" visibility="public"
  11986. deprecated="not deprecated">
  11987. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11988. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11989. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11990. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  11991. <exception name="IOException" type="java.io.IOException"/>
  11992. </method>
  11993. <method name="supportsSymlinks" return="boolean"
  11994. abstract="false" native="false" synchronized="false"
  11995. static="false" final="false" visibility="public"
  11996. deprecated="not deprecated">
  11997. </method>
  11998. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  11999. abstract="false" native="false" synchronized="false"
  12000. static="false" final="false" visibility="public"
  12001. deprecated="not deprecated">
  12002. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12003. <exception name="IOException" type="java.io.IOException"/>
  12004. </method>
  12005. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  12006. abstract="false" native="false" synchronized="false"
  12007. static="false" final="false" visibility="protected"
  12008. deprecated="not deprecated">
  12009. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12010. <exception name="IOException" type="java.io.IOException"/>
  12011. </method>
  12012. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  12013. abstract="false" native="false" synchronized="false"
  12014. static="false" final="false" visibility="public"
  12015. deprecated="not deprecated">
  12016. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12017. <exception name="IOException" type="java.io.IOException"/>
  12018. </method>
  12019. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  12020. abstract="false" native="false" synchronized="false"
  12021. static="false" final="false" visibility="public"
  12022. deprecated="not deprecated">
  12023. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12024. <param name="length" type="long"/>
  12025. <exception name="IOException" type="java.io.IOException"/>
  12026. </method>
  12027. <method name="setVerifyChecksum"
  12028. abstract="false" native="false" synchronized="false"
  12029. static="false" final="false" visibility="public"
  12030. deprecated="not deprecated">
  12031. <param name="verifyChecksum" type="boolean"/>
  12032. </method>
  12033. <method name="setWriteChecksum"
  12034. abstract="false" native="false" synchronized="false"
  12035. static="false" final="false" visibility="public"
  12036. deprecated="not deprecated">
  12037. <param name="writeChecksum" type="boolean"/>
  12038. </method>
  12039. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  12040. abstract="false" native="false" synchronized="false"
  12041. static="false" final="false" visibility="public"
  12042. deprecated="not deprecated">
  12043. </method>
  12044. <method name="close"
  12045. abstract="false" native="false" synchronized="false"
  12046. static="false" final="false" visibility="public"
  12047. deprecated="not deprecated">
  12048. <exception name="IOException" type="java.io.IOException"/>
  12049. </method>
  12050. <method name="setOwner"
  12051. abstract="false" native="false" synchronized="false"
  12052. static="false" final="false" visibility="public"
  12053. deprecated="not deprecated">
  12054. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12055. <param name="username" type="java.lang.String"/>
  12056. <param name="groupname" type="java.lang.String"/>
  12057. <exception name="IOException" type="java.io.IOException"/>
  12058. </method>
  12059. <method name="setTimes"
  12060. abstract="false" native="false" synchronized="false"
  12061. static="false" final="false" visibility="public"
  12062. deprecated="not deprecated">
  12063. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12064. <param name="mtime" type="long"/>
  12065. <param name="atime" type="long"/>
  12066. <exception name="IOException" type="java.io.IOException"/>
  12067. </method>
  12068. <method name="setPermission"
  12069. abstract="false" native="false" synchronized="false"
  12070. static="false" final="false" visibility="public"
  12071. deprecated="not deprecated">
  12072. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12073. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12074. <exception name="IOException" type="java.io.IOException"/>
  12075. </method>
  12076. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  12077. abstract="false" native="false" synchronized="false"
  12078. static="false" final="false" visibility="protected"
  12079. deprecated="not deprecated">
  12080. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12081. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12082. <param name="flag" type="java.util.EnumSet"/>
  12083. <param name="bufferSize" type="int"/>
  12084. <param name="replication" type="short"/>
  12085. <param name="blockSize" type="long"/>
  12086. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12087. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  12088. <exception name="IOException" type="java.io.IOException"/>
  12089. </method>
  12090. <method name="primitiveMkdir" return="boolean"
  12091. abstract="false" native="false" synchronized="false"
  12092. static="false" final="false" visibility="protected"
  12093. deprecated="not deprecated">
  12094. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12095. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12096. <exception name="IOException" type="java.io.IOException"/>
  12097. </method>
  12098. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  12099. abstract="false" native="false" synchronized="false"
  12100. static="false" final="false" visibility="public"
  12101. deprecated="not deprecated">
  12102. </method>
  12103. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  12104. abstract="false" native="false" synchronized="false"
  12105. static="false" final="false" visibility="public"
  12106. deprecated="not deprecated">
  12107. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12108. <param name="snapshotName" type="java.lang.String"/>
  12109. <exception name="IOException" type="java.io.IOException"/>
  12110. </method>
  12111. <method name="renameSnapshot"
  12112. abstract="false" native="false" synchronized="false"
  12113. static="false" final="false" visibility="public"
  12114. deprecated="not deprecated">
  12115. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12116. <param name="snapshotOldName" type="java.lang.String"/>
  12117. <param name="snapshotNewName" type="java.lang.String"/>
  12118. <exception name="IOException" type="java.io.IOException"/>
  12119. </method>
  12120. <method name="deleteSnapshot"
  12121. abstract="false" native="false" synchronized="false"
  12122. static="false" final="false" visibility="public"
  12123. deprecated="not deprecated">
  12124. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12125. <param name="snapshotName" type="java.lang.String"/>
  12126. <exception name="IOException" type="java.io.IOException"/>
  12127. </method>
  12128. <method name="modifyAclEntries"
  12129. abstract="false" native="false" synchronized="false"
  12130. static="false" final="false" visibility="public"
  12131. deprecated="not deprecated">
  12132. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12133. <param name="aclSpec" type="java.util.List"/>
  12134. <exception name="IOException" type="java.io.IOException"/>
  12135. </method>
  12136. <method name="removeAclEntries"
  12137. abstract="false" native="false" synchronized="false"
  12138. static="false" final="false" visibility="public"
  12139. deprecated="not deprecated">
  12140. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12141. <param name="aclSpec" type="java.util.List"/>
  12142. <exception name="IOException" type="java.io.IOException"/>
  12143. </method>
  12144. <method name="removeDefaultAcl"
  12145. abstract="false" native="false" synchronized="false"
  12146. static="false" final="false" visibility="public"
  12147. deprecated="not deprecated">
  12148. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12149. <exception name="IOException" type="java.io.IOException"/>
  12150. </method>
  12151. <method name="removeAcl"
  12152. abstract="false" native="false" synchronized="false"
  12153. static="false" final="false" visibility="public"
  12154. deprecated="not deprecated">
  12155. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12156. <exception name="IOException" type="java.io.IOException"/>
  12157. </method>
  12158. <method name="setAcl"
  12159. abstract="false" native="false" synchronized="false"
  12160. static="false" final="false" visibility="public"
  12161. deprecated="not deprecated">
  12162. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12163. <param name="aclSpec" type="java.util.List"/>
  12164. <exception name="IOException" type="java.io.IOException"/>
  12165. </method>
  12166. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  12167. abstract="false" native="false" synchronized="false"
  12168. static="false" final="false" visibility="public"
  12169. deprecated="not deprecated">
  12170. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12171. <exception name="IOException" type="java.io.IOException"/>
  12172. </method>
  12173. <method name="setXAttr"
  12174. abstract="false" native="false" synchronized="false"
  12175. static="false" final="false" visibility="public"
  12176. deprecated="not deprecated">
  12177. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12178. <param name="name" type="java.lang.String"/>
  12179. <param name="value" type="byte[]"/>
  12180. <exception name="IOException" type="java.io.IOException"/>
  12181. </method>
  12182. <method name="setXAttr"
  12183. abstract="false" native="false" synchronized="false"
  12184. static="false" final="false" visibility="public"
  12185. deprecated="not deprecated">
  12186. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12187. <param name="name" type="java.lang.String"/>
  12188. <param name="value" type="byte[]"/>
  12189. <param name="flag" type="java.util.EnumSet"/>
  12190. <exception name="IOException" type="java.io.IOException"/>
  12191. </method>
  12192. <method name="getXAttr" return="byte[]"
  12193. abstract="false" native="false" synchronized="false"
  12194. static="false" final="false" visibility="public"
  12195. deprecated="not deprecated">
  12196. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12197. <param name="name" type="java.lang.String"/>
  12198. <exception name="IOException" type="java.io.IOException"/>
  12199. </method>
  12200. <method name="getXAttrs" return="java.util.Map"
  12201. abstract="false" native="false" synchronized="false"
  12202. static="false" final="false" visibility="public"
  12203. deprecated="not deprecated">
  12204. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12205. <exception name="IOException" type="java.io.IOException"/>
  12206. </method>
  12207. <method name="getXAttrs" return="java.util.Map"
  12208. abstract="false" native="false" synchronized="false"
  12209. static="false" final="false" visibility="public"
  12210. deprecated="not deprecated">
  12211. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12212. <param name="names" type="java.util.List"/>
  12213. <exception name="IOException" type="java.io.IOException"/>
  12214. </method>
  12215. <method name="listXAttrs" return="java.util.List"
  12216. abstract="false" native="false" synchronized="false"
  12217. static="false" final="false" visibility="public"
  12218. deprecated="not deprecated">
  12219. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12220. <exception name="IOException" type="java.io.IOException"/>
  12221. </method>
  12222. <method name="removeXAttr"
  12223. abstract="false" native="false" synchronized="false"
  12224. static="false" final="false" visibility="public"
  12225. deprecated="not deprecated">
  12226. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12227. <param name="name" type="java.lang.String"/>
  12228. <exception name="IOException" type="java.io.IOException"/>
  12229. </method>
  12230. <method name="setStoragePolicy"
  12231. abstract="false" native="false" synchronized="false"
  12232. static="false" final="false" visibility="public"
  12233. deprecated="not deprecated">
  12234. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12235. <param name="policyName" type="java.lang.String"/>
  12236. <exception name="IOException" type="java.io.IOException"/>
  12237. </method>
  12238. <method name="unsetStoragePolicy"
  12239. abstract="false" native="false" synchronized="false"
  12240. static="false" final="false" visibility="public"
  12241. deprecated="not deprecated">
  12242. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12243. <exception name="IOException" type="java.io.IOException"/>
  12244. </method>
  12245. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  12246. abstract="false" native="false" synchronized="false"
  12247. static="false" final="false" visibility="public"
  12248. deprecated="not deprecated">
  12249. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12250. <exception name="IOException" type="java.io.IOException"/>
  12251. </method>
  12252. <method name="getAllStoragePolicies" return="java.util.Collection"
  12253. abstract="false" native="false" synchronized="false"
  12254. static="false" final="false" visibility="public"
  12255. deprecated="not deprecated">
  12256. <exception name="IOException" type="java.io.IOException"/>
  12257. </method>
  12258. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  12259. abstract="false" native="false" synchronized="false"
  12260. static="false" final="false" visibility="public"
  12261. deprecated="not deprecated">
  12262. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12263. </method>
  12264. <method name="getTrashRoots" return="java.util.Collection"
  12265. abstract="false" native="false" synchronized="false"
  12266. static="false" final="false" visibility="public"
  12267. deprecated="not deprecated">
  12268. <param name="allUsers" type="boolean"/>
  12269. </method>
  12270. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  12271. abstract="false" native="false" synchronized="false"
  12272. static="false" final="false" visibility="public"
  12273. deprecated="not deprecated">
  12274. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12275. </method>
  12276. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  12277. abstract="false" native="false" synchronized="false"
  12278. static="false" final="false" visibility="public"
  12279. deprecated="not deprecated">
  12280. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12281. </method>
  12282. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  12283. transient="false" volatile="false"
  12284. static="false" final="false" visibility="protected"
  12285. deprecated="not deprecated">
  12286. </field>
  12287. <field name="swapScheme" type="java.lang.String"
  12288. transient="false" volatile="false"
  12289. static="false" final="false" visibility="protected"
  12290. deprecated="not deprecated">
  12291. </field>
  12292. <doc>
  12293. <![CDATA[A <code>FilterFileSystem</code> contains
  12294. some other file system, which it uses as
  12295. its basic file system, possibly transforming
  12296. the data along the way or providing additional
  12297. functionality. The class <code>FilterFileSystem</code>
  12298. itself simply overrides all methods of
  12299. <code>FileSystem</code> with versions that
  12300. pass all requests to the contained file
  12301. system. Subclasses of <code>FilterFileSystem</code>
  12302. may further override some of these methods
  12303. and may also provide additional methods
  12304. and fields.]]>
  12305. </doc>
  12306. </class>
  12307. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  12308. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  12309. <interface name="FsConstants" abstract="true"
  12310. static="false" final="false" visibility="public"
  12311. deprecated="not deprecated">
  12312. <field name="LOCAL_FS_URI" type="java.net.URI"
  12313. transient="false" volatile="false"
  12314. static="true" final="true" visibility="public"
  12315. deprecated="not deprecated">
  12316. </field>
  12317. <field name="FTP_SCHEME" type="java.lang.String"
  12318. transient="false" volatile="false"
  12319. static="true" final="true" visibility="public"
  12320. deprecated="not deprecated">
  12321. </field>
  12322. <field name="MAX_PATH_LINKS" type="int"
  12323. transient="false" volatile="false"
  12324. static="true" final="true" visibility="public"
  12325. deprecated="not deprecated">
  12326. </field>
  12327. <field name="VIEWFS_URI" type="java.net.URI"
  12328. transient="false" volatile="false"
  12329. static="true" final="true" visibility="public"
  12330. deprecated="not deprecated">
  12331. <doc>
  12332. <![CDATA[ViewFs: viewFs file system (ie the mount file system on client side)]]>
  12333. </doc>
  12334. </field>
  12335. <field name="VIEWFS_SCHEME" type="java.lang.String"
  12336. transient="false" volatile="false"
  12337. static="true" final="true" visibility="public"
  12338. deprecated="not deprecated">
  12339. </field>
  12340. <doc>
  12341. <![CDATA[FileSystem related constants.]]>
  12342. </doc>
  12343. </interface>
  12344. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  12345. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  12346. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  12347. abstract="false"
  12348. static="false" final="false" visibility="public"
  12349. deprecated="not deprecated">
  12350. <implements name="org.apache.hadoop.fs.Seekable"/>
  12351. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  12352. <implements name="org.apache.hadoop.fs.ByteBufferReadable"/>
  12353. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  12354. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  12355. <implements name="org.apache.hadoop.fs.CanSetReadahead"/>
  12356. <implements name="org.apache.hadoop.fs.HasEnhancedByteBufferAccess"/>
  12357. <implements name="org.apache.hadoop.fs.CanUnbuffer"/>
  12358. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  12359. <constructor name="FSDataInputStream" type="java.io.InputStream"
  12360. static="false" final="false" visibility="public"
  12361. deprecated="not deprecated">
  12362. </constructor>
  12363. <method name="seek"
  12364. abstract="false" native="false" synchronized="false"
  12365. static="false" final="false" visibility="public"
  12366. deprecated="not deprecated">
  12367. <param name="desired" type="long"/>
  12368. <exception name="IOException" type="java.io.IOException"/>
  12369. <doc>
  12370. <![CDATA[Seek to the given offset.
  12371. @param desired offset to seek to]]>
  12372. </doc>
  12373. </method>
  12374. <method name="getPos" return="long"
  12375. abstract="false" native="false" synchronized="false"
  12376. static="false" final="false" visibility="public"
  12377. deprecated="not deprecated">
  12378. <exception name="IOException" type="java.io.IOException"/>
  12379. <doc>
  12380. <![CDATA[Get the current position in the input stream.
  12381. @return current position in the input stream]]>
  12382. </doc>
  12383. </method>
  12384. <method name="read" return="int"
  12385. abstract="false" native="false" synchronized="false"
  12386. static="false" final="false" visibility="public"
  12387. deprecated="not deprecated">
  12388. <param name="position" type="long"/>
  12389. <param name="buffer" type="byte[]"/>
  12390. <param name="offset" type="int"/>
  12391. <param name="length" type="int"/>
  12392. <exception name="IOException" type="java.io.IOException"/>
  12393. <doc>
  12394. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  12395. @param position position in the input stream to seek
  12396. @param buffer buffer into which data is read
  12397. @param offset offset into the buffer in which data is written
  12398. @param length maximum number of bytes to read
  12399. @return total number of bytes read into the buffer, or <code>-1</code>
  12400. if there is no more data because the end of the stream has been
  12401. reached]]>
  12402. </doc>
  12403. </method>
  12404. <method name="readFully"
  12405. abstract="false" native="false" synchronized="false"
  12406. static="false" final="false" visibility="public"
  12407. deprecated="not deprecated">
  12408. <param name="position" type="long"/>
  12409. <param name="buffer" type="byte[]"/>
  12410. <param name="offset" type="int"/>
  12411. <param name="length" type="int"/>
  12412. <exception name="IOException" type="java.io.IOException"/>
  12413. <doc>
  12414. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  12415. Continues to read until <code>length</code> bytes have been read.
  12416. @param position position in the input stream to seek
  12417. @param buffer buffer into which data is read
  12418. @param offset offset into the buffer in which data is written
  12419. @param length the number of bytes to read
  12420. @throws IOException IO problems
  12421. @throws EOFException If the end of stream is reached while reading.
  12422. If an exception is thrown an undetermined number
  12423. of bytes in the buffer may have been written.]]>
  12424. </doc>
  12425. </method>
  12426. <method name="readFully"
  12427. abstract="false" native="false" synchronized="false"
  12428. static="false" final="false" visibility="public"
  12429. deprecated="not deprecated">
  12430. <param name="position" type="long"/>
  12431. <param name="buffer" type="byte[]"/>
  12432. <exception name="IOException" type="java.io.IOException"/>
  12433. <doc>
  12434. <![CDATA[See {@link #readFully(long, byte[], int, int)}.]]>
  12435. </doc>
  12436. </method>
  12437. <method name="seekToNewSource" return="boolean"
  12438. abstract="false" native="false" synchronized="false"
  12439. static="false" final="false" visibility="public"
  12440. deprecated="not deprecated">
  12441. <param name="targetPos" type="long"/>
  12442. <exception name="IOException" type="java.io.IOException"/>
  12443. <doc>
  12444. <![CDATA[Seek to the given position on an alternate copy of the data.
  12445. @param targetPos position to seek to
  12446. @return true if a new source is found, false otherwise]]>
  12447. </doc>
  12448. </method>
  12449. <method name="read" return="int"
  12450. abstract="false" native="false" synchronized="false"
  12451. static="false" final="false" visibility="public"
  12452. deprecated="not deprecated">
  12453. <param name="buf" type="java.nio.ByteBuffer"/>
  12454. <exception name="IOException" type="java.io.IOException"/>
  12455. </method>
  12456. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  12457. abstract="false" native="false" synchronized="false"
  12458. static="false" final="false" visibility="public"
  12459. deprecated="not deprecated">
  12460. <exception name="IOException" type="java.io.IOException"/>
  12461. </method>
  12462. <method name="setReadahead"
  12463. abstract="false" native="false" synchronized="false"
  12464. static="false" final="false" visibility="public"
  12465. deprecated="not deprecated">
  12466. <param name="readahead" type="java.lang.Long"/>
  12467. <exception name="IOException" type="java.io.IOException"/>
  12468. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12469. </method>
  12470. <method name="setDropBehind"
  12471. abstract="false" native="false" synchronized="false"
  12472. static="false" final="false" visibility="public"
  12473. deprecated="not deprecated">
  12474. <param name="dropBehind" type="java.lang.Boolean"/>
  12475. <exception name="IOException" type="java.io.IOException"/>
  12476. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12477. </method>
  12478. <method name="read" return="java.nio.ByteBuffer"
  12479. abstract="false" native="false" synchronized="false"
  12480. static="false" final="false" visibility="public"
  12481. deprecated="not deprecated">
  12482. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  12483. <param name="maxLength" type="int"/>
  12484. <param name="opts" type="java.util.EnumSet"/>
  12485. <exception name="IOException" type="java.io.IOException"/>
  12486. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12487. </method>
  12488. <method name="read" return="java.nio.ByteBuffer"
  12489. abstract="false" native="false" synchronized="false"
  12490. static="false" final="true" visibility="public"
  12491. deprecated="not deprecated">
  12492. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  12493. <param name="maxLength" type="int"/>
  12494. <exception name="IOException" type="java.io.IOException"/>
  12495. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12496. </method>
  12497. <method name="releaseBuffer"
  12498. abstract="false" native="false" synchronized="false"
  12499. static="false" final="false" visibility="public"
  12500. deprecated="not deprecated">
  12501. <param name="buffer" type="java.nio.ByteBuffer"/>
  12502. </method>
  12503. <method name="unbuffer"
  12504. abstract="false" native="false" synchronized="false"
  12505. static="false" final="false" visibility="public"
  12506. deprecated="not deprecated">
  12507. </method>
  12508. <method name="hasCapability" return="boolean"
  12509. abstract="false" native="false" synchronized="false"
  12510. static="false" final="false" visibility="public"
  12511. deprecated="not deprecated">
  12512. <param name="capability" type="java.lang.String"/>
  12513. </method>
  12514. <method name="toString" return="java.lang.String"
  12515. abstract="false" native="false" synchronized="false"
  12516. static="false" final="false" visibility="public"
  12517. deprecated="not deprecated">
  12518. <doc>
  12519. <![CDATA[String value. Includes the string value of the inner stream
  12520. @return the stream]]>
  12521. </doc>
  12522. </method>
  12523. <doc>
  12524. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  12525. and buffers input through a {@link java.io.BufferedInputStream}.]]>
  12526. </doc>
  12527. </class>
  12528. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  12529. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  12530. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  12531. abstract="false"
  12532. static="false" final="false" visibility="public"
  12533. deprecated="not deprecated">
  12534. <implements name="org.apache.hadoop.fs.Syncable"/>
  12535. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  12536. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  12537. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  12538. static="false" final="false" visibility="public"
  12539. deprecated="not deprecated">
  12540. </constructor>
  12541. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  12542. static="false" final="false" visibility="public"
  12543. deprecated="not deprecated">
  12544. </constructor>
  12545. <method name="getPos" return="long"
  12546. abstract="false" native="false" synchronized="false"
  12547. static="false" final="false" visibility="public"
  12548. deprecated="not deprecated">
  12549. <doc>
  12550. <![CDATA[Get the current position in the output stream.
  12551. @return the current position in the output stream]]>
  12552. </doc>
  12553. </method>
  12554. <method name="close"
  12555. abstract="false" native="false" synchronized="false"
  12556. static="false" final="false" visibility="public"
  12557. deprecated="not deprecated">
  12558. <exception name="IOException" type="java.io.IOException"/>
  12559. <doc>
  12560. <![CDATA[Close the underlying output stream.]]>
  12561. </doc>
  12562. </method>
  12563. <method name="toString" return="java.lang.String"
  12564. abstract="false" native="false" synchronized="false"
  12565. static="false" final="false" visibility="public"
  12566. deprecated="not deprecated">
  12567. </method>
  12568. <method name="hasCapability" return="boolean"
  12569. abstract="false" native="false" synchronized="false"
  12570. static="false" final="false" visibility="public"
  12571. deprecated="not deprecated">
  12572. <param name="capability" type="java.lang.String"/>
  12573. </method>
  12574. <method name="hflush"
  12575. abstract="false" native="false" synchronized="false"
  12576. static="false" final="false" visibility="public"
  12577. deprecated="not deprecated">
  12578. <exception name="IOException" type="java.io.IOException"/>
  12579. </method>
  12580. <method name="hsync"
  12581. abstract="false" native="false" synchronized="false"
  12582. static="false" final="false" visibility="public"
  12583. deprecated="not deprecated">
  12584. <exception name="IOException" type="java.io.IOException"/>
  12585. </method>
  12586. <method name="setDropBehind"
  12587. abstract="false" native="false" synchronized="false"
  12588. static="false" final="false" visibility="public"
  12589. deprecated="not deprecated">
  12590. <param name="dropBehind" type="java.lang.Boolean"/>
  12591. <exception name="IOException" type="java.io.IOException"/>
  12592. </method>
  12593. <doc>
  12594. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream}.]]>
  12595. </doc>
  12596. </class>
  12597. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  12598. <!-- start class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  12599. <class name="FSDataOutputStreamBuilder" extends="java.lang.Object"
  12600. abstract="true"
  12601. static="false" final="false" visibility="public"
  12602. deprecated="not deprecated">
  12603. <constructor name="FSDataOutputStreamBuilder" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path"
  12604. static="false" final="false" visibility="protected"
  12605. deprecated="not deprecated">
  12606. <doc>
  12607. <![CDATA[Constructor.]]>
  12608. </doc>
  12609. </constructor>
  12610. <method name="getThisBuilder" return="B"
  12611. abstract="true" native="false" synchronized="false"
  12612. static="false" final="false" visibility="protected"
  12613. deprecated="not deprecated">
  12614. <doc>
  12615. <![CDATA[Return the concrete implementation of the builder instance.]]>
  12616. </doc>
  12617. </method>
  12618. <method name="getFS" return="org.apache.hadoop.fs.FileSystem"
  12619. abstract="false" native="false" synchronized="false"
  12620. static="false" final="false" visibility="protected"
  12621. deprecated="not deprecated">
  12622. </method>
  12623. <method name="getPath" return="org.apache.hadoop.fs.Path"
  12624. abstract="false" native="false" synchronized="false"
  12625. static="false" final="false" visibility="protected"
  12626. deprecated="not deprecated">
  12627. </method>
  12628. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  12629. abstract="false" native="false" synchronized="false"
  12630. static="false" final="false" visibility="protected"
  12631. deprecated="not deprecated">
  12632. </method>
  12633. <method name="permission" return="B"
  12634. abstract="false" native="false" synchronized="false"
  12635. static="false" final="false" visibility="public"
  12636. deprecated="not deprecated">
  12637. <param name="perm" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12638. <doc>
  12639. <![CDATA[Set permission for the file.]]>
  12640. </doc>
  12641. </method>
  12642. <method name="getBufferSize" return="int"
  12643. abstract="false" native="false" synchronized="false"
  12644. static="false" final="false" visibility="protected"
  12645. deprecated="not deprecated">
  12646. </method>
  12647. <method name="bufferSize" return="B"
  12648. abstract="false" native="false" synchronized="false"
  12649. static="false" final="false" visibility="public"
  12650. deprecated="not deprecated">
  12651. <param name="bufSize" type="int"/>
  12652. <doc>
  12653. <![CDATA[Set the size of the buffer to be used.]]>
  12654. </doc>
  12655. </method>
  12656. <method name="getReplication" return="short"
  12657. abstract="false" native="false" synchronized="false"
  12658. static="false" final="false" visibility="protected"
  12659. deprecated="not deprecated">
  12660. </method>
  12661. <method name="replication" return="B"
  12662. abstract="false" native="false" synchronized="false"
  12663. static="false" final="false" visibility="public"
  12664. deprecated="not deprecated">
  12665. <param name="replica" type="short"/>
  12666. <doc>
  12667. <![CDATA[Set replication factor.]]>
  12668. </doc>
  12669. </method>
  12670. <method name="getBlockSize" return="long"
  12671. abstract="false" native="false" synchronized="false"
  12672. static="false" final="false" visibility="protected"
  12673. deprecated="not deprecated">
  12674. </method>
  12675. <method name="blockSize" return="B"
  12676. abstract="false" native="false" synchronized="false"
  12677. static="false" final="false" visibility="public"
  12678. deprecated="not deprecated">
  12679. <param name="blkSize" type="long"/>
  12680. <doc>
  12681. <![CDATA[Set block size.]]>
  12682. </doc>
  12683. </method>
  12684. <method name="isRecursive" return="boolean"
  12685. abstract="false" native="false" synchronized="false"
  12686. static="false" final="false" visibility="protected"
  12687. deprecated="not deprecated">
  12688. <doc>
  12689. <![CDATA[Return true to create the parent directories if they do not exist.]]>
  12690. </doc>
  12691. </method>
  12692. <method name="recursive" return="B"
  12693. abstract="false" native="false" synchronized="false"
  12694. static="false" final="false" visibility="public"
  12695. deprecated="not deprecated">
  12696. <doc>
  12697. <![CDATA[Create the parent directory if they do not exist.]]>
  12698. </doc>
  12699. </method>
  12700. <method name="getProgress" return="org.apache.hadoop.util.Progressable"
  12701. abstract="false" native="false" synchronized="false"
  12702. static="false" final="false" visibility="protected"
  12703. deprecated="not deprecated">
  12704. </method>
  12705. <method name="progress" return="B"
  12706. abstract="false" native="false" synchronized="false"
  12707. static="false" final="false" visibility="public"
  12708. deprecated="not deprecated">
  12709. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  12710. <doc>
  12711. <![CDATA[Set the facility of reporting progress.]]>
  12712. </doc>
  12713. </method>
  12714. <method name="getFlags" return="java.util.EnumSet"
  12715. abstract="false" native="false" synchronized="false"
  12716. static="false" final="false" visibility="protected"
  12717. deprecated="not deprecated">
  12718. </method>
  12719. <method name="create" return="B"
  12720. abstract="false" native="false" synchronized="false"
  12721. static="false" final="false" visibility="public"
  12722. deprecated="not deprecated">
  12723. <doc>
  12724. <![CDATA[Create an FSDataOutputStream at the specified path.]]>
  12725. </doc>
  12726. </method>
  12727. <method name="overwrite" return="B"
  12728. abstract="false" native="false" synchronized="false"
  12729. static="false" final="false" visibility="public"
  12730. deprecated="not deprecated">
  12731. <param name="overwrite" type="boolean"/>
  12732. <doc>
  12733. <![CDATA[Set to true to overwrite the existing file.
  12734. Set it to false, an exception will be thrown when calling {@link #build()}
  12735. if the file exists.]]>
  12736. </doc>
  12737. </method>
  12738. <method name="append" return="B"
  12739. abstract="false" native="false" synchronized="false"
  12740. static="false" final="false" visibility="public"
  12741. deprecated="not deprecated">
  12742. <doc>
  12743. <![CDATA[Append to an existing file (optional operation).]]>
  12744. </doc>
  12745. </method>
  12746. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  12747. abstract="false" native="false" synchronized="false"
  12748. static="false" final="false" visibility="protected"
  12749. deprecated="not deprecated">
  12750. </method>
  12751. <method name="checksumOpt" return="B"
  12752. abstract="false" native="false" synchronized="false"
  12753. static="false" final="false" visibility="public"
  12754. deprecated="not deprecated">
  12755. <param name="chksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  12756. <doc>
  12757. <![CDATA[Set checksum opt.]]>
  12758. </doc>
  12759. </method>
  12760. <method name="opt" return="B"
  12761. abstract="false" native="false" synchronized="false"
  12762. static="false" final="false" visibility="public"
  12763. deprecated="not deprecated">
  12764. <param name="key" type="java.lang.String"/>
  12765. <param name="value" type="java.lang.String"/>
  12766. <doc>
  12767. <![CDATA[Set optional Builder parameter.]]>
  12768. </doc>
  12769. </method>
  12770. <method name="opt" return="B"
  12771. abstract="false" native="false" synchronized="false"
  12772. static="false" final="false" visibility="public"
  12773. deprecated="not deprecated">
  12774. <param name="key" type="java.lang.String"/>
  12775. <param name="value" type="boolean"/>
  12776. <doc>
  12777. <![CDATA[Set optional boolean parameter for the Builder.
  12778. @see #opt(String, String)]]>
  12779. </doc>
  12780. </method>
  12781. <method name="opt" return="B"
  12782. abstract="false" native="false" synchronized="false"
  12783. static="false" final="false" visibility="public"
  12784. deprecated="not deprecated">
  12785. <param name="key" type="java.lang.String"/>
  12786. <param name="value" type="int"/>
  12787. <doc>
  12788. <![CDATA[Set optional int parameter for the Builder.
  12789. @see #opt(String, String)]]>
  12790. </doc>
  12791. </method>
  12792. <method name="opt" return="B"
  12793. abstract="false" native="false" synchronized="false"
  12794. static="false" final="false" visibility="public"
  12795. deprecated="not deprecated">
  12796. <param name="key" type="java.lang.String"/>
  12797. <param name="value" type="float"/>
  12798. <doc>
  12799. <![CDATA[Set optional float parameter for the Builder.
  12800. @see #opt(String, String)]]>
  12801. </doc>
  12802. </method>
  12803. <method name="opt" return="B"
  12804. abstract="false" native="false" synchronized="false"
  12805. static="false" final="false" visibility="public"
  12806. deprecated="not deprecated">
  12807. <param name="key" type="java.lang.String"/>
  12808. <param name="value" type="double"/>
  12809. <doc>
  12810. <![CDATA[Set optional double parameter for the Builder.
  12811. @see #opt(String, String)]]>
  12812. </doc>
  12813. </method>
  12814. <method name="opt" return="B"
  12815. abstract="false" native="false" synchronized="false"
  12816. static="false" final="false" visibility="public"
  12817. deprecated="not deprecated">
  12818. <param name="key" type="java.lang.String"/>
  12819. <param name="values" type="java.lang.String[]"/>
  12820. <doc>
  12821. <![CDATA[Set an array of string values as optional parameter for the Builder.
  12822. @see #opt(String, String)]]>
  12823. </doc>
  12824. </method>
  12825. <method name="must" return="B"
  12826. abstract="false" native="false" synchronized="false"
  12827. static="false" final="false" visibility="public"
  12828. deprecated="not deprecated">
  12829. <param name="key" type="java.lang.String"/>
  12830. <param name="value" type="java.lang.String"/>
  12831. <doc>
  12832. <![CDATA[Set mandatory option to the Builder.
  12833. If the option is not supported or unavailable on the {@link FileSystem},
  12834. the client should expect {@link #build()} throws IllegalArgumentException.]]>
  12835. </doc>
  12836. </method>
  12837. <method name="must" return="B"
  12838. abstract="false" native="false" synchronized="false"
  12839. static="false" final="false" visibility="public"
  12840. deprecated="not deprecated">
  12841. <param name="key" type="java.lang.String"/>
  12842. <param name="value" type="boolean"/>
  12843. <doc>
  12844. <![CDATA[Set mandatory boolean option.
  12845. @see #must(String, String)]]>
  12846. </doc>
  12847. </method>
  12848. <method name="must" return="B"
  12849. abstract="false" native="false" synchronized="false"
  12850. static="false" final="false" visibility="public"
  12851. deprecated="not deprecated">
  12852. <param name="key" type="java.lang.String"/>
  12853. <param name="value" type="int"/>
  12854. <doc>
  12855. <![CDATA[Set mandatory int option.
  12856. @see #must(String, String)]]>
  12857. </doc>
  12858. </method>
  12859. <method name="must" return="B"
  12860. abstract="false" native="false" synchronized="false"
  12861. static="false" final="false" visibility="public"
  12862. deprecated="not deprecated">
  12863. <param name="key" type="java.lang.String"/>
  12864. <param name="value" type="float"/>
  12865. <doc>
  12866. <![CDATA[Set mandatory float option.
  12867. @see #must(String, String)]]>
  12868. </doc>
  12869. </method>
  12870. <method name="must" return="B"
  12871. abstract="false" native="false" synchronized="false"
  12872. static="false" final="false" visibility="public"
  12873. deprecated="not deprecated">
  12874. <param name="key" type="java.lang.String"/>
  12875. <param name="value" type="double"/>
  12876. <doc>
  12877. <![CDATA[Set mandatory double option.
  12878. @see #must(String, String)]]>
  12879. </doc>
  12880. </method>
  12881. <method name="must" return="B"
  12882. abstract="false" native="false" synchronized="false"
  12883. static="false" final="false" visibility="public"
  12884. deprecated="not deprecated">
  12885. <param name="key" type="java.lang.String"/>
  12886. <param name="values" type="java.lang.String[]"/>
  12887. <doc>
  12888. <![CDATA[Set a string array as mandatory option.
  12889. @see #must(String, String)]]>
  12890. </doc>
  12891. </method>
  12892. <method name="getOptions" return="org.apache.hadoop.conf.Configuration"
  12893. abstract="false" native="false" synchronized="false"
  12894. static="false" final="false" visibility="protected"
  12895. deprecated="not deprecated">
  12896. </method>
  12897. <method name="getMandatoryKeys" return="java.util.Set"
  12898. abstract="false" native="false" synchronized="false"
  12899. static="false" final="false" visibility="protected"
  12900. deprecated="not deprecated">
  12901. <doc>
  12902. <![CDATA[Get all the keys that are set as mandatory keys.]]>
  12903. </doc>
  12904. </method>
  12905. <method name="build" return="S"
  12906. abstract="true" native="false" synchronized="false"
  12907. static="false" final="false" visibility="public"
  12908. deprecated="not deprecated">
  12909. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  12910. <exception name="IOException" type="java.io.IOException"/>
  12911. <doc>
  12912. <![CDATA[Create the FSDataOutputStream to write on the file system.
  12913. @throws IllegalArgumentException if the parameters are not valid.
  12914. @throws IOException on errors when file system creates or appends the file.]]>
  12915. </doc>
  12916. </method>
  12917. <doc>
  12918. <![CDATA[Builder for {@link FSDataOutputStream} and its subclasses.
  12919. It is used to create {@link FSDataOutputStream} when creating a new file or
  12920. appending an existing file on {@link FileSystem}.
  12921. By default, it does not create parent directory that do not exist.
  12922. {@link FileSystem#createNonRecursive(Path, boolean, int, short, long,
  12923. Progressable)}.
  12924. To create missing parent directory, use {@link #recursive()}.
  12925. To be more generic, {@link #opt(String, int)} and {@link #must(String, int)}
  12926. variants provide implementation-agnostic way to customize the builder.
  12927. Each FS-specific builder implementation can interpret the FS-specific
  12928. options accordingly, for example:
  12929. <code>
  12930. // Don't
  12931. if (fs instanceof FooFileSystem) {
  12932. FooFileSystem fs = (FooFileSystem) fs;
  12933. OutputStream out = dfs.createFile(path)
  12934. .optionA()
  12935. .optionB("value")
  12936. .cache()
  12937. .build()
  12938. } else if (fs instanceof BarFileSystem) {
  12939. ...
  12940. }
  12941. // Do
  12942. OutputStream out = fs.createFile(path)
  12943. .permission(perm)
  12944. .bufferSize(bufSize)
  12945. .opt("foofs:option.a", true)
  12946. .opt("foofs:option.b", "value")
  12947. .opt("barfs:cache", true)
  12948. .must("foofs:cache", true)
  12949. .must("barfs:cache-size", 256 * 1024 * 1024)
  12950. .build();
  12951. </code>
  12952. If the option is not related to the file system, the option will be ignored.
  12953. If the option is must, but not supported by the file system, a
  12954. {@link IllegalArgumentException} will be thrown.]]>
  12955. </doc>
  12956. </class>
  12957. <!-- end class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  12958. <!-- start class org.apache.hadoop.fs.FSError -->
  12959. <class name="FSError" extends="java.lang.Error"
  12960. abstract="false"
  12961. static="false" final="false" visibility="public"
  12962. deprecated="not deprecated">
  12963. <doc>
  12964. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  12965. in the native filesystem.]]>
  12966. </doc>
  12967. </class>
  12968. <!-- end class org.apache.hadoop.fs.FSError -->
  12969. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  12970. <class name="FSInputStream" extends="java.io.InputStream"
  12971. abstract="true"
  12972. static="false" final="false" visibility="public"
  12973. deprecated="not deprecated">
  12974. <implements name="org.apache.hadoop.fs.Seekable"/>
  12975. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  12976. <constructor name="FSInputStream"
  12977. static="false" final="false" visibility="public"
  12978. deprecated="not deprecated">
  12979. </constructor>
  12980. <method name="seek"
  12981. abstract="true" native="false" synchronized="false"
  12982. static="false" final="false" visibility="public"
  12983. deprecated="not deprecated">
  12984. <param name="pos" type="long"/>
  12985. <exception name="IOException" type="java.io.IOException"/>
  12986. <doc>
  12987. <![CDATA[Seek to the given offset from the start of the file.
  12988. The next read() will be from that location. Can't
  12989. seek past the end of the file.]]>
  12990. </doc>
  12991. </method>
  12992. <method name="getPos" return="long"
  12993. abstract="true" native="false" synchronized="false"
  12994. static="false" final="false" visibility="public"
  12995. deprecated="not deprecated">
  12996. <exception name="IOException" type="java.io.IOException"/>
  12997. <doc>
  12998. <![CDATA[Return the current offset from the start of the file]]>
  12999. </doc>
  13000. </method>
  13001. <method name="seekToNewSource" return="boolean"
  13002. abstract="true" native="false" synchronized="false"
  13003. static="false" final="false" visibility="public"
  13004. deprecated="not deprecated">
  13005. <param name="targetPos" type="long"/>
  13006. <exception name="IOException" type="java.io.IOException"/>
  13007. <doc>
  13008. <![CDATA[Seeks a different copy of the data. Returns true if
  13009. found a new source, false otherwise.]]>
  13010. </doc>
  13011. </method>
  13012. <method name="read" return="int"
  13013. abstract="false" native="false" synchronized="false"
  13014. static="false" final="false" visibility="public"
  13015. deprecated="not deprecated">
  13016. <param name="position" type="long"/>
  13017. <param name="buffer" type="byte[]"/>
  13018. <param name="offset" type="int"/>
  13019. <param name="length" type="int"/>
  13020. <exception name="IOException" type="java.io.IOException"/>
  13021. </method>
  13022. <method name="validatePositionedReadArgs"
  13023. abstract="false" native="false" synchronized="false"
  13024. static="false" final="false" visibility="protected"
  13025. deprecated="not deprecated">
  13026. <param name="position" type="long"/>
  13027. <param name="buffer" type="byte[]"/>
  13028. <param name="offset" type="int"/>
  13029. <param name="length" type="int"/>
  13030. <exception name="EOFException" type="java.io.EOFException"/>
  13031. <doc>
  13032. <![CDATA[Validation code, available for use in subclasses.
  13033. @param position position: if negative an EOF exception is raised
  13034. @param buffer destination buffer
  13035. @param offset offset within the buffer
  13036. @param length length of bytes to read
  13037. @throws EOFException if the position is negative
  13038. @throws IndexOutOfBoundsException if there isn't space for the amount of
  13039. data requested.
  13040. @throws IllegalArgumentException other arguments are invalid.]]>
  13041. </doc>
  13042. </method>
  13043. <method name="readFully"
  13044. abstract="false" native="false" synchronized="false"
  13045. static="false" final="false" visibility="public"
  13046. deprecated="not deprecated">
  13047. <param name="position" type="long"/>
  13048. <param name="buffer" type="byte[]"/>
  13049. <param name="offset" type="int"/>
  13050. <param name="length" type="int"/>
  13051. <exception name="IOException" type="java.io.IOException"/>
  13052. </method>
  13053. <method name="readFully"
  13054. abstract="false" native="false" synchronized="false"
  13055. static="false" final="false" visibility="public"
  13056. deprecated="not deprecated">
  13057. <param name="position" type="long"/>
  13058. <param name="buffer" type="byte[]"/>
  13059. <exception name="IOException" type="java.io.IOException"/>
  13060. </method>
  13061. <doc>
  13062. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  13063. of RAF-style seek ability.]]>
  13064. </doc>
  13065. </class>
  13066. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  13067. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  13068. <class name="FsServerDefaults" extends="java.lang.Object"
  13069. abstract="false"
  13070. static="false" final="false" visibility="public"
  13071. deprecated="not deprecated">
  13072. <implements name="org.apache.hadoop.io.Writable"/>
  13073. <constructor name="FsServerDefaults"
  13074. static="false" final="false" visibility="public"
  13075. deprecated="not deprecated">
  13076. </constructor>
  13077. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type"
  13078. static="false" final="false" visibility="public"
  13079. deprecated="not deprecated">
  13080. </constructor>
  13081. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String"
  13082. static="false" final="false" visibility="public"
  13083. deprecated="not deprecated">
  13084. </constructor>
  13085. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String, byte"
  13086. static="false" final="false" visibility="public"
  13087. deprecated="not deprecated">
  13088. </constructor>
  13089. <method name="getBlockSize" return="long"
  13090. abstract="false" native="false" synchronized="false"
  13091. static="false" final="false" visibility="public"
  13092. deprecated="not deprecated">
  13093. </method>
  13094. <method name="getBytesPerChecksum" return="int"
  13095. abstract="false" native="false" synchronized="false"
  13096. static="false" final="false" visibility="public"
  13097. deprecated="not deprecated">
  13098. </method>
  13099. <method name="getWritePacketSize" return="int"
  13100. abstract="false" native="false" synchronized="false"
  13101. static="false" final="false" visibility="public"
  13102. deprecated="not deprecated">
  13103. </method>
  13104. <method name="getReplication" return="short"
  13105. abstract="false" native="false" synchronized="false"
  13106. static="false" final="false" visibility="public"
  13107. deprecated="not deprecated">
  13108. </method>
  13109. <method name="getFileBufferSize" return="int"
  13110. abstract="false" native="false" synchronized="false"
  13111. static="false" final="false" visibility="public"
  13112. deprecated="not deprecated">
  13113. </method>
  13114. <method name="getEncryptDataTransfer" return="boolean"
  13115. abstract="false" native="false" synchronized="false"
  13116. static="false" final="false" visibility="public"
  13117. deprecated="not deprecated">
  13118. </method>
  13119. <method name="getTrashInterval" return="long"
  13120. abstract="false" native="false" synchronized="false"
  13121. static="false" final="false" visibility="public"
  13122. deprecated="not deprecated">
  13123. </method>
  13124. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  13125. abstract="false" native="false" synchronized="false"
  13126. static="false" final="false" visibility="public"
  13127. deprecated="not deprecated">
  13128. </method>
  13129. <method name="getKeyProviderUri" return="java.lang.String"
  13130. abstract="false" native="false" synchronized="false"
  13131. static="false" final="false" visibility="public"
  13132. deprecated="not deprecated">
  13133. </method>
  13134. <method name="getDefaultStoragePolicyId" return="byte"
  13135. abstract="false" native="false" synchronized="false"
  13136. static="false" final="false" visibility="public"
  13137. deprecated="not deprecated">
  13138. </method>
  13139. <doc>
  13140. <![CDATA[Provides server default configuration values to clients.]]>
  13141. </doc>
  13142. </class>
  13143. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  13144. <!-- start class org.apache.hadoop.fs.FsStatus -->
  13145. <class name="FsStatus" extends="java.lang.Object"
  13146. abstract="false"
  13147. static="false" final="false" visibility="public"
  13148. deprecated="not deprecated">
  13149. <implements name="org.apache.hadoop.io.Writable"/>
  13150. <constructor name="FsStatus" type="long, long, long"
  13151. static="false" final="false" visibility="public"
  13152. deprecated="not deprecated">
  13153. <doc>
  13154. <![CDATA[Construct a FsStatus object, using the specified statistics]]>
  13155. </doc>
  13156. </constructor>
  13157. <method name="getCapacity" return="long"
  13158. abstract="false" native="false" synchronized="false"
  13159. static="false" final="false" visibility="public"
  13160. deprecated="not deprecated">
  13161. <doc>
  13162. <![CDATA[Return the capacity in bytes of the file system]]>
  13163. </doc>
  13164. </method>
  13165. <method name="getUsed" return="long"
  13166. abstract="false" native="false" synchronized="false"
  13167. static="false" final="false" visibility="public"
  13168. deprecated="not deprecated">
  13169. <doc>
  13170. <![CDATA[Return the number of bytes used on the file system]]>
  13171. </doc>
  13172. </method>
  13173. <method name="getRemaining" return="long"
  13174. abstract="false" native="false" synchronized="false"
  13175. static="false" final="false" visibility="public"
  13176. deprecated="not deprecated">
  13177. <doc>
  13178. <![CDATA[Return the number of remaining bytes on the file system]]>
  13179. </doc>
  13180. </method>
  13181. <method name="write"
  13182. abstract="false" native="false" synchronized="false"
  13183. static="false" final="false" visibility="public"
  13184. deprecated="not deprecated">
  13185. <param name="out" type="java.io.DataOutput"/>
  13186. <exception name="IOException" type="java.io.IOException"/>
  13187. </method>
  13188. <method name="readFields"
  13189. abstract="false" native="false" synchronized="false"
  13190. static="false" final="false" visibility="public"
  13191. deprecated="not deprecated">
  13192. <param name="in" type="java.io.DataInput"/>
  13193. <exception name="IOException" type="java.io.IOException"/>
  13194. </method>
  13195. <doc>
  13196. <![CDATA[This class is used to represent the capacity, free and used space on a
  13197. {@link FileSystem}.]]>
  13198. </doc>
  13199. </class>
  13200. <!-- end class org.apache.hadoop.fs.FsStatus -->
  13201. <!-- start class org.apache.hadoop.fs.GlobalStorageStatistics -->
  13202. <class name="GlobalStorageStatistics" extends="java.lang.Enum"
  13203. abstract="false"
  13204. static="false" final="true" visibility="public"
  13205. deprecated="not deprecated">
  13206. <method name="values" return="org.apache.hadoop.fs.GlobalStorageStatistics[]"
  13207. abstract="false" native="false" synchronized="false"
  13208. static="true" final="false" visibility="public"
  13209. deprecated="not deprecated">
  13210. </method>
  13211. <method name="valueOf" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  13212. abstract="false" native="false" synchronized="false"
  13213. static="true" final="false" visibility="public"
  13214. deprecated="not deprecated">
  13215. <param name="name" type="java.lang.String"/>
  13216. </method>
  13217. <method name="get" return="org.apache.hadoop.fs.StorageStatistics"
  13218. abstract="false" native="false" synchronized="true"
  13219. static="false" final="false" visibility="public"
  13220. deprecated="not deprecated">
  13221. <param name="name" type="java.lang.String"/>
  13222. <doc>
  13223. <![CDATA[Get the StorageStatistics object with the given name.
  13224. @param name The storage statistics object name.
  13225. @return The StorageStatistics object with the given name, or
  13226. null if there is none.]]>
  13227. </doc>
  13228. </method>
  13229. <method name="put" return="org.apache.hadoop.fs.StorageStatistics"
  13230. abstract="false" native="false" synchronized="true"
  13231. static="false" final="false" visibility="public"
  13232. deprecated="not deprecated">
  13233. <param name="name" type="java.lang.String"/>
  13234. <param name="provider" type="org.apache.hadoop.fs.GlobalStorageStatistics.StorageStatisticsProvider"/>
  13235. <doc>
  13236. <![CDATA[Create or return the StorageStatistics object with the given name.
  13237. @param name The storage statistics object name.
  13238. @param provider An object which can create a new StorageStatistics
  13239. object if needed.
  13240. @return The StorageStatistics object with the given name.
  13241. @throws RuntimeException If the StorageStatisticsProvider provides a null
  13242. object or a new StorageStatistics object with the
  13243. wrong name.]]>
  13244. </doc>
  13245. </method>
  13246. <method name="reset"
  13247. abstract="false" native="false" synchronized="true"
  13248. static="false" final="false" visibility="public"
  13249. deprecated="not deprecated">
  13250. <doc>
  13251. <![CDATA[Reset all global storage statistics.]]>
  13252. </doc>
  13253. </method>
  13254. <method name="iterator" return="java.util.Iterator"
  13255. abstract="false" native="false" synchronized="true"
  13256. static="false" final="false" visibility="public"
  13257. deprecated="not deprecated">
  13258. <doc>
  13259. <![CDATA[Get an iterator that we can use to iterate throw all the global storage
  13260. statistics objects.]]>
  13261. </doc>
  13262. </method>
  13263. <doc>
  13264. <![CDATA[Stores global storage statistics objects.]]>
  13265. </doc>
  13266. </class>
  13267. <!-- end class org.apache.hadoop.fs.GlobalStorageStatistics -->
  13268. <!-- start class org.apache.hadoop.fs.GlobFilter -->
  13269. <class name="GlobFilter" extends="java.lang.Object"
  13270. abstract="false"
  13271. static="false" final="false" visibility="public"
  13272. deprecated="not deprecated">
  13273. <implements name="org.apache.hadoop.fs.PathFilter"/>
  13274. <constructor name="GlobFilter" type="java.lang.String"
  13275. static="false" final="false" visibility="public"
  13276. deprecated="not deprecated">
  13277. <exception name="IOException" type="java.io.IOException"/>
  13278. <doc>
  13279. <![CDATA[Creates a glob filter with the specified file pattern.
  13280. @param filePattern the file pattern.
  13281. @throws IOException thrown if the file pattern is incorrect.]]>
  13282. </doc>
  13283. </constructor>
  13284. <constructor name="GlobFilter" type="java.lang.String, org.apache.hadoop.fs.PathFilter"
  13285. static="false" final="false" visibility="public"
  13286. deprecated="not deprecated">
  13287. <exception name="IOException" type="java.io.IOException"/>
  13288. <doc>
  13289. <![CDATA[Creates a glob filter with the specified file pattern and an user filter.
  13290. @param filePattern the file pattern.
  13291. @param filter user filter in addition to the glob pattern.
  13292. @throws IOException thrown if the file pattern is incorrect.]]>
  13293. </doc>
  13294. </constructor>
  13295. <method name="hasPattern" return="boolean"
  13296. abstract="false" native="false" synchronized="false"
  13297. static="false" final="false" visibility="public"
  13298. deprecated="not deprecated">
  13299. </method>
  13300. <method name="accept" return="boolean"
  13301. abstract="false" native="false" synchronized="false"
  13302. static="false" final="false" visibility="public"
  13303. deprecated="not deprecated">
  13304. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13305. </method>
  13306. <doc>
  13307. <![CDATA[A filter for POSIX glob pattern with brace expansions.]]>
  13308. </doc>
  13309. </class>
  13310. <!-- end class org.apache.hadoop.fs.GlobFilter -->
  13311. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  13312. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  13313. abstract="false"
  13314. static="false" final="false" visibility="public"
  13315. deprecated="not deprecated">
  13316. <constructor name="InvalidPathException" type="java.lang.String"
  13317. static="false" final="false" visibility="public"
  13318. deprecated="not deprecated">
  13319. <doc>
  13320. <![CDATA[Constructs exception with the specified detail message.
  13321. @param path invalid path.]]>
  13322. </doc>
  13323. </constructor>
  13324. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  13325. static="false" final="false" visibility="public"
  13326. deprecated="not deprecated">
  13327. <doc>
  13328. <![CDATA[Constructs exception with the specified detail message.
  13329. @param path invalid path.
  13330. @param reason Reason <code>path</code> is invalid]]>
  13331. </doc>
  13332. </constructor>
  13333. <doc>
  13334. <![CDATA[Path string is invalid either because it has invalid characters or due to
  13335. other file system specific reasons.]]>
  13336. </doc>
  13337. </class>
  13338. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  13339. <!-- start class org.apache.hadoop.fs.InvalidPathHandleException -->
  13340. <class name="InvalidPathHandleException" extends="java.io.IOException"
  13341. abstract="false"
  13342. static="false" final="false" visibility="public"
  13343. deprecated="not deprecated">
  13344. <constructor name="InvalidPathHandleException" type="java.lang.String"
  13345. static="false" final="false" visibility="public"
  13346. deprecated="not deprecated">
  13347. </constructor>
  13348. <constructor name="InvalidPathHandleException" type="java.lang.String, java.lang.Throwable"
  13349. static="false" final="false" visibility="public"
  13350. deprecated="not deprecated">
  13351. </constructor>
  13352. <doc>
  13353. <![CDATA[Thrown when the constraints enoded in a {@link PathHandle} do not hold.
  13354. For example, if a handle were created with the default
  13355. {@link Options.HandleOpt#path()} constraints, a call to
  13356. {@link FileSystem#open(PathHandle)} would succeed if the file were
  13357. modified, but if a different file was at that location then it would throw
  13358. this exception.]]>
  13359. </doc>
  13360. </class>
  13361. <!-- end class org.apache.hadoop.fs.InvalidPathHandleException -->
  13362. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  13363. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  13364. abstract="false"
  13365. static="false" final="false" visibility="public"
  13366. deprecated="not deprecated">
  13367. <constructor name="LocalFileSystem"
  13368. static="false" final="false" visibility="public"
  13369. deprecated="not deprecated">
  13370. </constructor>
  13371. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  13372. static="false" final="false" visibility="public"
  13373. deprecated="not deprecated">
  13374. </constructor>
  13375. <method name="initialize"
  13376. abstract="false" native="false" synchronized="false"
  13377. static="false" final="false" visibility="public"
  13378. deprecated="not deprecated">
  13379. <param name="name" type="java.net.URI"/>
  13380. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13381. <exception name="IOException" type="java.io.IOException"/>
  13382. </method>
  13383. <method name="getScheme" return="java.lang.String"
  13384. abstract="false" native="false" synchronized="false"
  13385. static="false" final="false" visibility="public"
  13386. deprecated="not deprecated">
  13387. <doc>
  13388. <![CDATA[Return the protocol scheme for the FileSystem.
  13389. <p/>
  13390. @return <code>file</code>]]>
  13391. </doc>
  13392. </method>
  13393. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  13394. abstract="false" native="false" synchronized="false"
  13395. static="false" final="false" visibility="public"
  13396. deprecated="not deprecated">
  13397. </method>
  13398. <method name="pathToFile" return="java.io.File"
  13399. abstract="false" native="false" synchronized="false"
  13400. static="false" final="false" visibility="public"
  13401. deprecated="not deprecated">
  13402. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13403. <doc>
  13404. <![CDATA[Convert a path to a File.]]>
  13405. </doc>
  13406. </method>
  13407. <method name="copyFromLocalFile"
  13408. abstract="false" native="false" synchronized="false"
  13409. static="false" final="false" visibility="public"
  13410. deprecated="not deprecated">
  13411. <param name="delSrc" type="boolean"/>
  13412. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13413. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13414. <exception name="IOException" type="java.io.IOException"/>
  13415. </method>
  13416. <method name="copyToLocalFile"
  13417. abstract="false" native="false" synchronized="false"
  13418. static="false" final="false" visibility="public"
  13419. deprecated="not deprecated">
  13420. <param name="delSrc" type="boolean"/>
  13421. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13422. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13423. <exception name="IOException" type="java.io.IOException"/>
  13424. </method>
  13425. <method name="reportChecksumFailure" return="boolean"
  13426. abstract="false" native="false" synchronized="false"
  13427. static="false" final="false" visibility="public"
  13428. deprecated="not deprecated">
  13429. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13430. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  13431. <param name="inPos" type="long"/>
  13432. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  13433. <param name="sumsPos" type="long"/>
  13434. <doc>
  13435. <![CDATA[Moves files to a bad file directory on the same device, so that their
  13436. storage will not be reused.]]>
  13437. </doc>
  13438. </method>
  13439. <method name="supportsSymlinks" return="boolean"
  13440. abstract="false" native="false" synchronized="false"
  13441. static="false" final="false" visibility="public"
  13442. deprecated="not deprecated">
  13443. </method>
  13444. <method name="createSymlink"
  13445. abstract="false" native="false" synchronized="false"
  13446. static="false" final="false" visibility="public"
  13447. deprecated="not deprecated">
  13448. <param name="target" type="org.apache.hadoop.fs.Path"/>
  13449. <param name="link" type="org.apache.hadoop.fs.Path"/>
  13450. <param name="createParent" type="boolean"/>
  13451. <exception name="IOException" type="java.io.IOException"/>
  13452. </method>
  13453. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  13454. abstract="false" native="false" synchronized="false"
  13455. static="false" final="false" visibility="public"
  13456. deprecated="not deprecated">
  13457. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13458. <exception name="IOException" type="java.io.IOException"/>
  13459. </method>
  13460. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  13461. abstract="false" native="false" synchronized="false"
  13462. static="false" final="false" visibility="public"
  13463. deprecated="not deprecated">
  13464. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13465. <exception name="IOException" type="java.io.IOException"/>
  13466. </method>
  13467. <doc>
  13468. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  13469. </doc>
  13470. </class>
  13471. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  13472. <!-- start class org.apache.hadoop.fs.LocatedFileStatus -->
  13473. <class name="LocatedFileStatus" extends="org.apache.hadoop.fs.FileStatus"
  13474. abstract="false"
  13475. static="false" final="false" visibility="public"
  13476. deprecated="not deprecated">
  13477. <constructor name="LocatedFileStatus"
  13478. static="false" final="false" visibility="public"
  13479. deprecated="not deprecated">
  13480. </constructor>
  13481. <constructor name="LocatedFileStatus" type="org.apache.hadoop.fs.FileStatus, org.apache.hadoop.fs.BlockLocation[]"
  13482. static="false" final="false" visibility="public"
  13483. deprecated="not deprecated">
  13484. <doc>
  13485. <![CDATA[Constructor
  13486. @param stat a file status
  13487. @param locations a file's block locations]]>
  13488. </doc>
  13489. </constructor>
  13490. <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[]"
  13491. static="false" final="false" visibility="public"
  13492. deprecated="not deprecated">
  13493. <doc>
  13494. <![CDATA[Constructor
  13495. @param length a file's length
  13496. @param isdir if the path is a directory
  13497. @param block_replication the file's replication factor
  13498. @param blocksize a file's block size
  13499. @param modification_time a file's modification time
  13500. @param access_time a file's access time
  13501. @param permission a file's permission
  13502. @param owner a file's owner
  13503. @param group a file's group
  13504. @param symlink symlink if the path is a symbolic link
  13505. @param path the path's qualified name
  13506. @param locations a file's block locations]]>
  13507. </doc>
  13508. </constructor>
  13509. <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, boolean, boolean, boolean, org.apache.hadoop.fs.BlockLocation[]"
  13510. static="false" final="false" visibility="public"
  13511. deprecated="not deprecated">
  13512. <doc>
  13513. <![CDATA[Constructor.
  13514. @param length a file's length
  13515. @param isdir if the path is a directory
  13516. @param block_replication the file's replication factor
  13517. @param blocksize a file's block size
  13518. @param modification_time a file's modification time
  13519. @param access_time a file's access time
  13520. @param permission a file's permission
  13521. @param owner a file's owner
  13522. @param group a file's group
  13523. @param symlink symlink if the path is a symbolic link
  13524. @param path the path's qualified name
  13525. @param hasAcl entity has associated ACLs
  13526. @param isEncrypted entity is encrypted
  13527. @param isErasureCoded entity is erasure coded
  13528. @param locations a file's block locations]]>
  13529. </doc>
  13530. </constructor>
  13531. <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, java.util.Set, org.apache.hadoop.fs.BlockLocation[]"
  13532. static="false" final="false" visibility="public"
  13533. deprecated="not deprecated">
  13534. <doc>
  13535. <![CDATA[Constructor.
  13536. @param length a file's length
  13537. @param isdir if the path is a directory
  13538. @param block_replication the file's replication factor
  13539. @param blocksize a file's block size
  13540. @param modification_time a file's modification time
  13541. @param access_time a file's access time
  13542. @param permission a file's permission
  13543. @param owner a file's owner
  13544. @param group a file's group
  13545. @param symlink symlink if the path is a symbolic link
  13546. @param path the path's qualified name
  13547. @param attr Attribute flags (See {@link FileStatus.AttrFlags}).
  13548. @param locations a file's block locations]]>
  13549. </doc>
  13550. </constructor>
  13551. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  13552. abstract="false" native="false" synchronized="false"
  13553. static="false" final="false" visibility="public"
  13554. deprecated="not deprecated">
  13555. <doc>
  13556. <![CDATA[Get the file's block locations
  13557. In HDFS, the returned BlockLocation will have different formats for
  13558. replicated and erasure coded file.
  13559. Please refer to
  13560. {@link FileSystem#getFileBlockLocations(FileStatus, long, long)}
  13561. for more details.
  13562. @return the file's block locations]]>
  13563. </doc>
  13564. </method>
  13565. <method name="setBlockLocations"
  13566. abstract="false" native="false" synchronized="false"
  13567. static="false" final="false" visibility="protected"
  13568. deprecated="not deprecated">
  13569. <param name="locations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  13570. <doc>
  13571. <![CDATA[Hook for subclasses to lazily set block locations. The {@link #locations}
  13572. field should be null before this is called.
  13573. @param locations Block locations for this instance.]]>
  13574. </doc>
  13575. </method>
  13576. <method name="compareTo" return="int"
  13577. abstract="false" native="false" synchronized="false"
  13578. static="false" final="false" visibility="public"
  13579. deprecated="not deprecated">
  13580. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  13581. <doc>
  13582. <![CDATA[Compare this FileStatus to another FileStatus
  13583. @param o the FileStatus to be compared.
  13584. @return a negative integer, zero, or a positive integer as this object
  13585. is less than, equal to, or greater than the specified object.]]>
  13586. </doc>
  13587. </method>
  13588. <method name="equals" return="boolean"
  13589. abstract="false" native="false" synchronized="false"
  13590. static="false" final="false" visibility="public"
  13591. deprecated="not deprecated">
  13592. <param name="o" type="java.lang.Object"/>
  13593. <doc>
  13594. <![CDATA[Compare if this object is equal to another object
  13595. @param o the object to be compared.
  13596. @return true if two file status has the same path name; false if not.]]>
  13597. </doc>
  13598. </method>
  13599. <method name="hashCode" return="int"
  13600. abstract="false" native="false" synchronized="false"
  13601. static="false" final="false" visibility="public"
  13602. deprecated="not deprecated">
  13603. <doc>
  13604. <![CDATA[Returns a hash code value for the object, which is defined as
  13605. the hash code of the path name.
  13606. @return a hash code value for the path name.]]>
  13607. </doc>
  13608. </method>
  13609. <doc>
  13610. <![CDATA[This class defines a FileStatus that includes a file's block locations.]]>
  13611. </doc>
  13612. </class>
  13613. <!-- end class org.apache.hadoop.fs.LocatedFileStatus -->
  13614. <!-- start class org.apache.hadoop.fs.Options -->
  13615. <class name="Options" extends="java.lang.Object"
  13616. abstract="false"
  13617. static="false" final="true" visibility="public"
  13618. deprecated="not deprecated">
  13619. <constructor name="Options"
  13620. static="false" final="false" visibility="public"
  13621. deprecated="not deprecated">
  13622. </constructor>
  13623. <doc>
  13624. <![CDATA[This class contains options related to file system operations.]]>
  13625. </doc>
  13626. </class>
  13627. <!-- end class org.apache.hadoop.fs.Options -->
  13628. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  13629. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  13630. abstract="false"
  13631. static="false" final="false" visibility="public"
  13632. deprecated="not deprecated">
  13633. <constructor name="ParentNotDirectoryException"
  13634. static="false" final="false" visibility="public"
  13635. deprecated="not deprecated">
  13636. </constructor>
  13637. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  13638. static="false" final="false" visibility="public"
  13639. deprecated="not deprecated">
  13640. </constructor>
  13641. <doc>
  13642. <![CDATA[Indicates that the parent of specified Path is not a directory
  13643. as expected.]]>
  13644. </doc>
  13645. </class>
  13646. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  13647. <!-- start class org.apache.hadoop.fs.Path -->
  13648. <class name="Path" extends="java.lang.Object"
  13649. abstract="false"
  13650. static="false" final="false" visibility="public"
  13651. deprecated="not deprecated">
  13652. <implements name="java.lang.Comparable"/>
  13653. <implements name="java.io.Serializable"/>
  13654. <implements name="java.io.ObjectInputValidation"/>
  13655. <constructor name="Path" type="java.lang.String, java.lang.String"
  13656. static="false" final="false" visibility="public"
  13657. deprecated="not deprecated">
  13658. <doc>
  13659. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  13660. @param parent the parent path
  13661. @param child the child path]]>
  13662. </doc>
  13663. </constructor>
  13664. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  13665. static="false" final="false" visibility="public"
  13666. deprecated="not deprecated">
  13667. <doc>
  13668. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  13669. @param parent the parent path
  13670. @param child the child path]]>
  13671. </doc>
  13672. </constructor>
  13673. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  13674. static="false" final="false" visibility="public"
  13675. deprecated="not deprecated">
  13676. <doc>
  13677. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  13678. @param parent the parent path
  13679. @param child the child path]]>
  13680. </doc>
  13681. </constructor>
  13682. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  13683. static="false" final="false" visibility="public"
  13684. deprecated="not deprecated">
  13685. <doc>
  13686. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  13687. @param parent the parent path
  13688. @param child the child path]]>
  13689. </doc>
  13690. </constructor>
  13691. <constructor name="Path" type="java.lang.String"
  13692. static="false" final="false" visibility="public"
  13693. deprecated="not deprecated">
  13694. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  13695. <doc>
  13696. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  13697. unescaped elements and some additional normalization.
  13698. @param pathString the path string]]>
  13699. </doc>
  13700. </constructor>
  13701. <constructor name="Path" type="java.net.URI"
  13702. static="false" final="false" visibility="public"
  13703. deprecated="not deprecated">
  13704. <doc>
  13705. <![CDATA[Construct a path from a URI
  13706. @param aUri the source URI]]>
  13707. </doc>
  13708. </constructor>
  13709. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  13710. static="false" final="false" visibility="public"
  13711. deprecated="not deprecated">
  13712. <doc>
  13713. <![CDATA[Construct a Path from components.
  13714. @param scheme the scheme
  13715. @param authority the authority
  13716. @param path the path]]>
  13717. </doc>
  13718. </constructor>
  13719. <method name="getPathWithoutSchemeAndAuthority" return="org.apache.hadoop.fs.Path"
  13720. abstract="false" native="false" synchronized="false"
  13721. static="true" final="false" visibility="public"
  13722. deprecated="not deprecated">
  13723. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13724. <doc>
  13725. <![CDATA[Return a version of the given Path without the scheme information.
  13726. @param path the source Path
  13727. @return a copy of this Path without the scheme information]]>
  13728. </doc>
  13729. </method>
  13730. <method name="mergePaths" return="org.apache.hadoop.fs.Path"
  13731. abstract="false" native="false" synchronized="false"
  13732. static="true" final="false" visibility="public"
  13733. deprecated="not deprecated">
  13734. <param name="path1" type="org.apache.hadoop.fs.Path"/>
  13735. <param name="path2" type="org.apache.hadoop.fs.Path"/>
  13736. <doc>
  13737. <![CDATA[Merge 2 paths such that the second path is appended relative to the first.
  13738. The returned path has the scheme and authority of the first path. On
  13739. Windows, the drive specification in the second path is discarded.
  13740. @param path1 the first path
  13741. @param path2 the second path, to be appended relative to path1
  13742. @return the merged path]]>
  13743. </doc>
  13744. </method>
  13745. <method name="isWindowsAbsolutePath" return="boolean"
  13746. abstract="false" native="false" synchronized="false"
  13747. static="true" final="false" visibility="public"
  13748. deprecated="not deprecated">
  13749. <param name="pathString" type="java.lang.String"/>
  13750. <param name="slashed" type="boolean"/>
  13751. <doc>
  13752. <![CDATA[Determine whether a given path string represents an absolute path on
  13753. Windows. e.g. "C:/a/b" is an absolute path. "C:a/b" is not.
  13754. @param pathString the path string to evaluate
  13755. @param slashed true if the given path is prefixed with "/"
  13756. @return true if the supplied path looks like an absolute path with a Windows
  13757. drive-specifier]]>
  13758. </doc>
  13759. </method>
  13760. <method name="toUri" return="java.net.URI"
  13761. abstract="false" native="false" synchronized="false"
  13762. static="false" final="false" visibility="public"
  13763. deprecated="not deprecated">
  13764. <doc>
  13765. <![CDATA[Convert this Path to a URI.
  13766. @return this Path as a URI]]>
  13767. </doc>
  13768. </method>
  13769. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  13770. abstract="false" native="false" synchronized="false"
  13771. static="false" final="false" visibility="public"
  13772. deprecated="not deprecated">
  13773. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13774. <exception name="IOException" type="java.io.IOException"/>
  13775. <doc>
  13776. <![CDATA[Return the FileSystem that owns this Path.
  13777. @param conf the configuration to use when resolving the FileSystem
  13778. @return the FileSystem that owns this Path
  13779. @throws java.io.IOException thrown if there's an issue resolving the
  13780. FileSystem]]>
  13781. </doc>
  13782. </method>
  13783. <method name="isAbsoluteAndSchemeAuthorityNull" return="boolean"
  13784. abstract="false" native="false" synchronized="false"
  13785. static="false" final="false" visibility="public"
  13786. deprecated="not deprecated">
  13787. <doc>
  13788. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  13789. absolute <strong>and</strong> the scheme is null, <b>and</b> the authority
  13790. is null.
  13791. @return whether the path is absolute and the URI has no scheme nor
  13792. authority parts]]>
  13793. </doc>
  13794. </method>
  13795. <method name="isUriPathAbsolute" return="boolean"
  13796. abstract="false" native="false" synchronized="false"
  13797. static="false" final="false" visibility="public"
  13798. deprecated="not deprecated">
  13799. <doc>
  13800. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  13801. absolute.
  13802. @return whether this URI's path is absolute]]>
  13803. </doc>
  13804. </method>
  13805. <method name="isAbsolute" return="boolean"
  13806. abstract="false" native="false" synchronized="false"
  13807. static="false" final="false" visibility="public"
  13808. deprecated="not deprecated">
  13809. <doc>
  13810. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  13811. absolute. This method is a wrapper for {@link #isUriPathAbsolute()}.
  13812. @return whether this URI's path is absolute]]>
  13813. </doc>
  13814. </method>
  13815. <method name="isRoot" return="boolean"
  13816. abstract="false" native="false" synchronized="false"
  13817. static="false" final="false" visibility="public"
  13818. deprecated="not deprecated">
  13819. <doc>
  13820. <![CDATA[Returns true if and only if this path represents the root of a file system.
  13821. @return true if and only if this path represents the root of a file system]]>
  13822. </doc>
  13823. </method>
  13824. <method name="getName" return="java.lang.String"
  13825. abstract="false" native="false" synchronized="false"
  13826. static="false" final="false" visibility="public"
  13827. deprecated="not deprecated">
  13828. <doc>
  13829. <![CDATA[Returns the final component of this path.
  13830. @return the final component of this path]]>
  13831. </doc>
  13832. </method>
  13833. <method name="getParent" return="org.apache.hadoop.fs.Path"
  13834. abstract="false" native="false" synchronized="false"
  13835. static="false" final="false" visibility="public"
  13836. deprecated="not deprecated">
  13837. <doc>
  13838. <![CDATA[Returns the parent of a path or null if at root.
  13839. @return the parent of a path or null if at root]]>
  13840. </doc>
  13841. </method>
  13842. <method name="suffix" return="org.apache.hadoop.fs.Path"
  13843. abstract="false" native="false" synchronized="false"
  13844. static="false" final="false" visibility="public"
  13845. deprecated="not deprecated">
  13846. <param name="suffix" type="java.lang.String"/>
  13847. <doc>
  13848. <![CDATA[Adds a suffix to the final name in the path.
  13849. @param suffix the suffix to add
  13850. @return a new path with the suffix added]]>
  13851. </doc>
  13852. </method>
  13853. <method name="toString" return="java.lang.String"
  13854. abstract="false" native="false" synchronized="false"
  13855. static="false" final="false" visibility="public"
  13856. deprecated="not deprecated">
  13857. </method>
  13858. <method name="equals" return="boolean"
  13859. abstract="false" native="false" synchronized="false"
  13860. static="false" final="false" visibility="public"
  13861. deprecated="not deprecated">
  13862. <param name="o" type="java.lang.Object"/>
  13863. </method>
  13864. <method name="hashCode" return="int"
  13865. abstract="false" native="false" synchronized="false"
  13866. static="false" final="false" visibility="public"
  13867. deprecated="not deprecated">
  13868. </method>
  13869. <method name="compareTo" return="int"
  13870. abstract="false" native="false" synchronized="false"
  13871. static="false" final="false" visibility="public"
  13872. deprecated="not deprecated">
  13873. <param name="o" type="java.lang.Object"/>
  13874. </method>
  13875. <method name="depth" return="int"
  13876. abstract="false" native="false" synchronized="false"
  13877. static="false" final="false" visibility="public"
  13878. deprecated="not deprecated">
  13879. <doc>
  13880. <![CDATA[Returns the number of elements in this path.
  13881. @return the number of elements in this path]]>
  13882. </doc>
  13883. </method>
  13884. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  13885. abstract="false" native="false" synchronized="false"
  13886. static="false" final="false" visibility="public"
  13887. deprecated="use {@link #makeQualified(URI, Path)}">
  13888. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13889. <doc>
  13890. <![CDATA[Returns a qualified path object for the {@link FileSystem}'s working
  13891. directory.
  13892. @param fs the target FileSystem
  13893. @return a qualified path object for the FileSystem's working directory
  13894. @deprecated use {@link #makeQualified(URI, Path)}]]>
  13895. </doc>
  13896. </method>
  13897. <method name="validateObject"
  13898. abstract="false" native="false" synchronized="false"
  13899. static="false" final="false" visibility="public"
  13900. deprecated="not deprecated">
  13901. <exception name="InvalidObjectException" type="java.io.InvalidObjectException"/>
  13902. <doc>
  13903. <![CDATA[Validate the contents of a deserialized Path, so as
  13904. to defend against malicious object streams.
  13905. @throws InvalidObjectException if there's no URI]]>
  13906. </doc>
  13907. </method>
  13908. <field name="SEPARATOR" type="java.lang.String"
  13909. transient="false" volatile="false"
  13910. static="true" final="true" visibility="public"
  13911. deprecated="not deprecated">
  13912. <doc>
  13913. <![CDATA[The directory separator, a slash.]]>
  13914. </doc>
  13915. </field>
  13916. <field name="SEPARATOR_CHAR" type="char"
  13917. transient="false" volatile="false"
  13918. static="true" final="true" visibility="public"
  13919. deprecated="not deprecated">
  13920. <doc>
  13921. <![CDATA[The directory separator, a slash, as a character.]]>
  13922. </doc>
  13923. </field>
  13924. <field name="CUR_DIR" type="java.lang.String"
  13925. transient="false" volatile="false"
  13926. static="true" final="true" visibility="public"
  13927. deprecated="not deprecated">
  13928. <doc>
  13929. <![CDATA[The current directory, ".".]]>
  13930. </doc>
  13931. </field>
  13932. <field name="WINDOWS" type="boolean"
  13933. transient="false" volatile="false"
  13934. static="true" final="true" visibility="public"
  13935. deprecated="not deprecated">
  13936. <doc>
  13937. <![CDATA[Whether the current host is a Windows machine.]]>
  13938. </doc>
  13939. </field>
  13940. <doc>
  13941. <![CDATA[Names a file or directory in a {@link FileSystem}.
  13942. Path strings use slash as the directory separator.]]>
  13943. </doc>
  13944. </class>
  13945. <!-- end class org.apache.hadoop.fs.Path -->
  13946. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  13947. <interface name="PathFilter" abstract="true"
  13948. static="false" final="false" visibility="public"
  13949. deprecated="not deprecated">
  13950. <method name="accept" return="boolean"
  13951. abstract="true" native="false" synchronized="false"
  13952. static="false" final="false" visibility="public"
  13953. deprecated="not deprecated">
  13954. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13955. <doc>
  13956. <![CDATA[Tests whether or not the specified abstract pathname should be
  13957. included in a pathname list.
  13958. @param path The abstract pathname to be tested
  13959. @return <code>true</code> if and only if <code>pathname</code>
  13960. should be included]]>
  13961. </doc>
  13962. </method>
  13963. </interface>
  13964. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  13965. <!-- start interface org.apache.hadoop.fs.PathHandle -->
  13966. <interface name="PathHandle" abstract="true"
  13967. static="false" final="false" visibility="public"
  13968. deprecated="not deprecated">
  13969. <implements name="java.io.Serializable"/>
  13970. <method name="toByteArray" return="byte[]"
  13971. abstract="false" native="false" synchronized="false"
  13972. static="false" final="false" visibility="public"
  13973. deprecated="not deprecated">
  13974. <doc>
  13975. <![CDATA[@return Serialized from in bytes.]]>
  13976. </doc>
  13977. </method>
  13978. <method name="bytes" return="java.nio.ByteBuffer"
  13979. abstract="true" native="false" synchronized="false"
  13980. static="false" final="false" visibility="public"
  13981. deprecated="not deprecated">
  13982. </method>
  13983. <method name="equals" return="boolean"
  13984. abstract="true" native="false" synchronized="false"
  13985. static="false" final="false" visibility="public"
  13986. deprecated="not deprecated">
  13987. <param name="other" type="java.lang.Object"/>
  13988. </method>
  13989. <doc>
  13990. <![CDATA[Opaque, serializable reference to an entity in the FileSystem. May contain
  13991. metadata sufficient to resolve or verify subsequent accesses indepedent of
  13992. other modifications to the FileSystem.]]>
  13993. </doc>
  13994. </interface>
  13995. <!-- end interface org.apache.hadoop.fs.PathHandle -->
  13996. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  13997. <interface name="PositionedReadable" abstract="true"
  13998. static="false" final="false" visibility="public"
  13999. deprecated="not deprecated">
  14000. <method name="read" return="int"
  14001. abstract="true" native="false" synchronized="false"
  14002. static="false" final="false" visibility="public"
  14003. deprecated="not deprecated">
  14004. <param name="position" type="long"/>
  14005. <param name="buffer" type="byte[]"/>
  14006. <param name="offset" type="int"/>
  14007. <param name="length" type="int"/>
  14008. <exception name="IOException" type="java.io.IOException"/>
  14009. <doc>
  14010. <![CDATA[Read up to the specified number of bytes, from a given
  14011. position within a file, and return the number of bytes read. This does not
  14012. change the current offset of a file, and is thread-safe.
  14013. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  14014. @param position position within file
  14015. @param buffer destination buffer
  14016. @param offset offset in the buffer
  14017. @param length number of bytes to read
  14018. @return actual number of bytes read; -1 means "none"
  14019. @throws IOException IO problems.]]>
  14020. </doc>
  14021. </method>
  14022. <method name="readFully"
  14023. abstract="true" native="false" synchronized="false"
  14024. static="false" final="false" visibility="public"
  14025. deprecated="not deprecated">
  14026. <param name="position" type="long"/>
  14027. <param name="buffer" type="byte[]"/>
  14028. <param name="offset" type="int"/>
  14029. <param name="length" type="int"/>
  14030. <exception name="IOException" type="java.io.IOException"/>
  14031. <doc>
  14032. <![CDATA[Read the specified number of bytes, from a given
  14033. position within a file. This does not
  14034. change the current offset of a file, and is thread-safe.
  14035. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  14036. @param position position within file
  14037. @param buffer destination buffer
  14038. @param offset offset in the buffer
  14039. @param length number of bytes to read
  14040. @throws IOException IO problems.
  14041. @throws EOFException the end of the data was reached before
  14042. the read operation completed]]>
  14043. </doc>
  14044. </method>
  14045. <method name="readFully"
  14046. abstract="true" native="false" synchronized="false"
  14047. static="false" final="false" visibility="public"
  14048. deprecated="not deprecated">
  14049. <param name="position" type="long"/>
  14050. <param name="buffer" type="byte[]"/>
  14051. <exception name="IOException" type="java.io.IOException"/>
  14052. <doc>
  14053. <![CDATA[Read number of bytes equal to the length of the buffer, from a given
  14054. position within a file. This does not
  14055. change the current offset of a file, and is thread-safe.
  14056. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  14057. @param position position within file
  14058. @param buffer destination buffer
  14059. @throws IOException IO problems.
  14060. @throws EOFException the end of the data was reached before
  14061. the read operation completed]]>
  14062. </doc>
  14063. </method>
  14064. <doc>
  14065. <![CDATA[Stream that permits positional reading.
  14066. Implementations are required to implement thread-safe operations; this may
  14067. be supported by concurrent access to the data, or by using a synchronization
  14068. mechanism to serialize access.
  14069. Not all implementations meet this requirement. Those that do not cannot
  14070. be used as a backing store for some applications, such as Apache HBase.
  14071. Independent of whether or not they are thread safe, some implementations
  14072. may make the intermediate state of the system, specifically the position
  14073. obtained in {@code Seekable.getPos()} visible.]]>
  14074. </doc>
  14075. </interface>
  14076. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  14077. <!-- start class org.apache.hadoop.fs.QuotaUsage -->
  14078. <class name="QuotaUsage" extends="java.lang.Object"
  14079. abstract="false"
  14080. static="false" final="false" visibility="public"
  14081. deprecated="not deprecated">
  14082. <constructor name="QuotaUsage"
  14083. static="false" final="false" visibility="protected"
  14084. deprecated="not deprecated">
  14085. </constructor>
  14086. <constructor name="QuotaUsage" type="org.apache.hadoop.fs.QuotaUsage.Builder"
  14087. static="false" final="false" visibility="protected"
  14088. deprecated="not deprecated">
  14089. <doc>
  14090. <![CDATA[Build the instance based on the builder.]]>
  14091. </doc>
  14092. </constructor>
  14093. <method name="setQuota"
  14094. abstract="false" native="false" synchronized="false"
  14095. static="false" final="false" visibility="protected"
  14096. deprecated="not deprecated">
  14097. <param name="quota" type="long"/>
  14098. </method>
  14099. <method name="setSpaceConsumed"
  14100. abstract="false" native="false" synchronized="false"
  14101. static="false" final="false" visibility="protected"
  14102. deprecated="not deprecated">
  14103. <param name="spaceConsumed" type="long"/>
  14104. </method>
  14105. <method name="setSpaceQuota"
  14106. abstract="false" native="false" synchronized="false"
  14107. static="false" final="false" visibility="protected"
  14108. deprecated="not deprecated">
  14109. <param name="spaceQuota" type="long"/>
  14110. </method>
  14111. <method name="getFileAndDirectoryCount" return="long"
  14112. abstract="false" native="false" synchronized="false"
  14113. static="false" final="false" visibility="public"
  14114. deprecated="not deprecated">
  14115. <doc>
  14116. <![CDATA[Return the directory count.]]>
  14117. </doc>
  14118. </method>
  14119. <method name="getQuota" return="long"
  14120. abstract="false" native="false" synchronized="false"
  14121. static="false" final="false" visibility="public"
  14122. deprecated="not deprecated">
  14123. <doc>
  14124. <![CDATA[Return the directory quota.]]>
  14125. </doc>
  14126. </method>
  14127. <method name="getSpaceConsumed" return="long"
  14128. abstract="false" native="false" synchronized="false"
  14129. static="false" final="false" visibility="public"
  14130. deprecated="not deprecated">
  14131. <doc>
  14132. <![CDATA[Return (disk) space consumed.]]>
  14133. </doc>
  14134. </method>
  14135. <method name="getSpaceQuota" return="long"
  14136. abstract="false" native="false" synchronized="false"
  14137. static="false" final="false" visibility="public"
  14138. deprecated="not deprecated">
  14139. <doc>
  14140. <![CDATA[Return (disk) space quota.]]>
  14141. </doc>
  14142. </method>
  14143. <method name="getTypeQuota" return="long"
  14144. abstract="false" native="false" synchronized="false"
  14145. static="false" final="false" visibility="public"
  14146. deprecated="not deprecated">
  14147. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  14148. <doc>
  14149. <![CDATA[Return storage type quota.]]>
  14150. </doc>
  14151. </method>
  14152. <method name="getTypeConsumed" return="long"
  14153. abstract="false" native="false" synchronized="false"
  14154. static="false" final="false" visibility="public"
  14155. deprecated="not deprecated">
  14156. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  14157. <doc>
  14158. <![CDATA[Return storage type consumed.]]>
  14159. </doc>
  14160. </method>
  14161. <method name="isTypeQuotaSet" return="boolean"
  14162. abstract="false" native="false" synchronized="false"
  14163. static="false" final="false" visibility="public"
  14164. deprecated="not deprecated">
  14165. <doc>
  14166. <![CDATA[Return true if any storage type quota has been set.]]>
  14167. </doc>
  14168. </method>
  14169. <method name="isTypeConsumedAvailable" return="boolean"
  14170. abstract="false" native="false" synchronized="false"
  14171. static="false" final="false" visibility="public"
  14172. deprecated="not deprecated">
  14173. <doc>
  14174. <![CDATA[Return true if any storage type consumption information is available.]]>
  14175. </doc>
  14176. </method>
  14177. <method name="equals" return="boolean"
  14178. abstract="false" native="false" synchronized="false"
  14179. static="false" final="false" visibility="public"
  14180. deprecated="not deprecated">
  14181. <param name="to" type="java.lang.Object"/>
  14182. </method>
  14183. <method name="hashCode" return="int"
  14184. abstract="false" native="false" synchronized="false"
  14185. static="false" final="false" visibility="public"
  14186. deprecated="not deprecated">
  14187. </method>
  14188. <method name="getHeader" return="java.lang.String"
  14189. abstract="false" native="false" synchronized="false"
  14190. static="true" final="false" visibility="public"
  14191. deprecated="not deprecated">
  14192. <doc>
  14193. <![CDATA[Return the header of the output.
  14194. @return the header of the output]]>
  14195. </doc>
  14196. </method>
  14197. <method name="toString" return="java.lang.String"
  14198. abstract="false" native="false" synchronized="false"
  14199. static="false" final="false" visibility="public"
  14200. deprecated="not deprecated">
  14201. </method>
  14202. <method name="toString" return="java.lang.String"
  14203. abstract="false" native="false" synchronized="false"
  14204. static="false" final="false" visibility="public"
  14205. deprecated="not deprecated">
  14206. <param name="hOption" type="boolean"/>
  14207. </method>
  14208. <method name="toString" return="java.lang.String"
  14209. abstract="false" native="false" synchronized="false"
  14210. static="false" final="false" visibility="public"
  14211. deprecated="not deprecated">
  14212. <param name="hOption" type="boolean"/>
  14213. <param name="tOption" type="boolean"/>
  14214. <param name="types" type="java.util.List"/>
  14215. <doc>
  14216. <![CDATA[Return the string representation of the object in the output format.
  14217. if hOption is false file sizes are returned in bytes
  14218. if hOption is true file sizes are returned in human readable
  14219. @param hOption a flag indicating if human readable output if to be used
  14220. @return the string representation of the object]]>
  14221. </doc>
  14222. </method>
  14223. <method name="getQuotaUsage" return="java.lang.String"
  14224. abstract="false" native="false" synchronized="false"
  14225. static="false" final="false" visibility="protected"
  14226. deprecated="not deprecated">
  14227. <param name="hOption" type="boolean"/>
  14228. </method>
  14229. <method name="getTypesQuotaUsage" return="java.lang.String"
  14230. abstract="false" native="false" synchronized="false"
  14231. static="false" final="false" visibility="protected"
  14232. deprecated="not deprecated">
  14233. <param name="hOption" type="boolean"/>
  14234. <param name="types" type="java.util.List"/>
  14235. </method>
  14236. <method name="getStorageTypeHeader" return="java.lang.String"
  14237. abstract="false" native="false" synchronized="false"
  14238. static="true" final="false" visibility="public"
  14239. deprecated="not deprecated">
  14240. <param name="storageTypes" type="java.util.List"/>
  14241. <doc>
  14242. <![CDATA[return the header of with the StorageTypes.
  14243. @param storageTypes
  14244. @return storage header string]]>
  14245. </doc>
  14246. </method>
  14247. <field name="QUOTA_STRING_FORMAT" type="java.lang.String"
  14248. transient="false" volatile="false"
  14249. static="true" final="true" visibility="protected"
  14250. deprecated="not deprecated">
  14251. <doc>
  14252. <![CDATA[Output format:
  14253. <----12----> <----15----> <----15----> <----15----> <-------18------->
  14254. QUOTA REMAINING_QUATA SPACE_QUOTA SPACE_QUOTA_REM FILE_NAME]]>
  14255. </doc>
  14256. </field>
  14257. <field name="SPACE_QUOTA_STRING_FORMAT" type="java.lang.String"
  14258. transient="false" volatile="false"
  14259. static="true" final="true" visibility="protected"
  14260. deprecated="not deprecated">
  14261. </field>
  14262. <field name="QUOTA_HEADER_FIELDS" type="java.lang.String[]"
  14263. transient="false" volatile="false"
  14264. static="true" final="true" visibility="protected"
  14265. deprecated="not deprecated">
  14266. </field>
  14267. <field name="QUOTA_HEADER" type="java.lang.String"
  14268. transient="false" volatile="false"
  14269. static="true" final="true" visibility="protected"
  14270. deprecated="not deprecated">
  14271. </field>
  14272. <doc>
  14273. <![CDATA[Store the quota usage of a directory.]]>
  14274. </doc>
  14275. </class>
  14276. <!-- end class org.apache.hadoop.fs.QuotaUsage -->
  14277. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  14278. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  14279. abstract="false"
  14280. static="false" final="false" visibility="public"
  14281. deprecated="not deprecated">
  14282. <constructor name="RawLocalFileSystem"
  14283. static="false" final="false" visibility="public"
  14284. deprecated="not deprecated">
  14285. </constructor>
  14286. <method name="useStatIfAvailable"
  14287. abstract="false" native="false" synchronized="false"
  14288. static="true" final="false" visibility="public"
  14289. deprecated="not deprecated">
  14290. </method>
  14291. <method name="pathToFile" return="java.io.File"
  14292. abstract="false" native="false" synchronized="false"
  14293. static="false" final="false" visibility="public"
  14294. deprecated="not deprecated">
  14295. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14296. <doc>
  14297. <![CDATA[Convert a path to a File.]]>
  14298. </doc>
  14299. </method>
  14300. <method name="getUri" return="java.net.URI"
  14301. abstract="false" native="false" synchronized="false"
  14302. static="false" final="false" visibility="public"
  14303. deprecated="not deprecated">
  14304. </method>
  14305. <method name="initialize"
  14306. abstract="false" native="false" synchronized="false"
  14307. static="false" final="false" visibility="public"
  14308. deprecated="not deprecated">
  14309. <param name="uri" type="java.net.URI"/>
  14310. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14311. <exception name="IOException" type="java.io.IOException"/>
  14312. </method>
  14313. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  14314. abstract="false" native="false" synchronized="false"
  14315. static="false" final="false" visibility="public"
  14316. deprecated="not deprecated">
  14317. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14318. <param name="bufferSize" type="int"/>
  14319. <exception name="IOException" type="java.io.IOException"/>
  14320. </method>
  14321. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  14322. abstract="false" native="false" synchronized="false"
  14323. static="false" final="false" visibility="public"
  14324. deprecated="not deprecated">
  14325. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14326. <param name="bufferSize" type="int"/>
  14327. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14328. <exception name="IOException" type="java.io.IOException"/>
  14329. </method>
  14330. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  14331. abstract="false" native="false" synchronized="false"
  14332. static="false" final="false" visibility="public"
  14333. deprecated="not deprecated">
  14334. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14335. <param name="overwrite" type="boolean"/>
  14336. <param name="bufferSize" type="int"/>
  14337. <param name="replication" type="short"/>
  14338. <param name="blockSize" type="long"/>
  14339. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14340. <exception name="IOException" type="java.io.IOException"/>
  14341. </method>
  14342. <method name="createOutputStream" return="java.io.OutputStream"
  14343. abstract="false" native="false" synchronized="false"
  14344. static="false" final="false" visibility="protected"
  14345. deprecated="not deprecated">
  14346. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14347. <param name="append" type="boolean"/>
  14348. <exception name="IOException" type="java.io.IOException"/>
  14349. </method>
  14350. <method name="createOutputStreamWithMode" return="java.io.OutputStream"
  14351. abstract="false" native="false" synchronized="false"
  14352. static="false" final="false" visibility="protected"
  14353. deprecated="not deprecated">
  14354. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14355. <param name="append" type="boolean"/>
  14356. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14357. <exception name="IOException" type="java.io.IOException"/>
  14358. </method>
  14359. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  14360. abstract="false" native="false" synchronized="false"
  14361. static="false" final="false" visibility="public"
  14362. deprecated="not deprecated">
  14363. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14364. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14365. <param name="flags" type="java.util.EnumSet"/>
  14366. <param name="bufferSize" type="int"/>
  14367. <param name="replication" type="short"/>
  14368. <param name="blockSize" type="long"/>
  14369. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14370. <exception name="IOException" type="java.io.IOException"/>
  14371. </method>
  14372. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  14373. abstract="false" native="false" synchronized="false"
  14374. static="false" final="false" visibility="public"
  14375. deprecated="not deprecated">
  14376. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14377. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14378. <param name="overwrite" type="boolean"/>
  14379. <param name="bufferSize" type="int"/>
  14380. <param name="replication" type="short"/>
  14381. <param name="blockSize" type="long"/>
  14382. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14383. <exception name="IOException" type="java.io.IOException"/>
  14384. </method>
  14385. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  14386. abstract="false" native="false" synchronized="false"
  14387. static="false" final="false" visibility="public"
  14388. deprecated="not deprecated">
  14389. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14390. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14391. <param name="overwrite" type="boolean"/>
  14392. <param name="bufferSize" type="int"/>
  14393. <param name="replication" type="short"/>
  14394. <param name="blockSize" type="long"/>
  14395. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14396. <exception name="IOException" type="java.io.IOException"/>
  14397. </method>
  14398. <method name="rename" return="boolean"
  14399. abstract="false" native="false" synchronized="false"
  14400. static="false" final="false" visibility="public"
  14401. deprecated="not deprecated">
  14402. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14403. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14404. <exception name="IOException" type="java.io.IOException"/>
  14405. </method>
  14406. <method name="handleEmptyDstDirectoryOnWindows" return="boolean"
  14407. abstract="false" native="false" synchronized="false"
  14408. static="false" final="true" visibility="public"
  14409. deprecated="not deprecated">
  14410. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14411. <param name="srcFile" type="java.io.File"/>
  14412. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14413. <param name="dstFile" type="java.io.File"/>
  14414. <exception name="IOException" type="java.io.IOException"/>
  14415. </method>
  14416. <method name="truncate" return="boolean"
  14417. abstract="false" native="false" synchronized="false"
  14418. static="false" final="false" visibility="public"
  14419. deprecated="not deprecated">
  14420. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14421. <param name="newLength" type="long"/>
  14422. <exception name="IOException" type="java.io.IOException"/>
  14423. </method>
  14424. <method name="delete" return="boolean"
  14425. abstract="false" native="false" synchronized="false"
  14426. static="false" final="false" visibility="public"
  14427. deprecated="not deprecated">
  14428. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14429. <param name="recursive" type="boolean"/>
  14430. <exception name="IOException" type="java.io.IOException"/>
  14431. <doc>
  14432. <![CDATA[Delete the given path to a file or directory.
  14433. @param p the path to delete
  14434. @param recursive to delete sub-directories
  14435. @return true if the file or directory and all its contents were deleted
  14436. @throws IOException if p is non-empty and recursive is false]]>
  14437. </doc>
  14438. </method>
  14439. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  14440. abstract="false" native="false" synchronized="false"
  14441. static="false" final="false" visibility="public"
  14442. deprecated="not deprecated">
  14443. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14444. <exception name="IOException" type="java.io.IOException"/>
  14445. <doc>
  14446. <![CDATA[{@inheritDoc}
  14447. (<b>Note</b>: Returned list is not sorted in any given order,
  14448. due to reliance on Java's {@link File#list()} API.)]]>
  14449. </doc>
  14450. </method>
  14451. <method name="mkOneDir" return="boolean"
  14452. abstract="false" native="false" synchronized="false"
  14453. static="false" final="false" visibility="protected"
  14454. deprecated="not deprecated">
  14455. <param name="p2f" type="java.io.File"/>
  14456. <exception name="IOException" type="java.io.IOException"/>
  14457. </method>
  14458. <method name="mkOneDirWithMode" return="boolean"
  14459. abstract="false" native="false" synchronized="false"
  14460. static="false" final="false" visibility="protected"
  14461. deprecated="not deprecated">
  14462. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14463. <param name="p2f" type="java.io.File"/>
  14464. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14465. <exception name="IOException" type="java.io.IOException"/>
  14466. </method>
  14467. <method name="mkdirs" return="boolean"
  14468. abstract="false" native="false" synchronized="false"
  14469. static="false" final="false" visibility="public"
  14470. deprecated="not deprecated">
  14471. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14472. <exception name="IOException" type="java.io.IOException"/>
  14473. <doc>
  14474. <![CDATA[Creates the specified directory hierarchy. Does not
  14475. treat existence as an error.]]>
  14476. </doc>
  14477. </method>
  14478. <method name="mkdirs" return="boolean"
  14479. abstract="false" native="false" synchronized="false"
  14480. static="false" final="false" visibility="public"
  14481. deprecated="not deprecated">
  14482. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14483. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14484. <exception name="IOException" type="java.io.IOException"/>
  14485. </method>
  14486. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  14487. abstract="false" native="false" synchronized="false"
  14488. static="false" final="false" visibility="public"
  14489. deprecated="not deprecated">
  14490. </method>
  14491. <method name="setWorkingDirectory"
  14492. abstract="false" native="false" synchronized="false"
  14493. static="false" final="false" visibility="public"
  14494. deprecated="not deprecated">
  14495. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  14496. <doc>
  14497. <![CDATA[Set the working directory to the given directory.]]>
  14498. </doc>
  14499. </method>
  14500. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  14501. abstract="false" native="false" synchronized="false"
  14502. static="false" final="false" visibility="public"
  14503. deprecated="not deprecated">
  14504. </method>
  14505. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  14506. abstract="false" native="false" synchronized="false"
  14507. static="false" final="false" visibility="protected"
  14508. deprecated="not deprecated">
  14509. </method>
  14510. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  14511. abstract="false" native="false" synchronized="false"
  14512. static="false" final="false" visibility="public"
  14513. deprecated="not deprecated">
  14514. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14515. <exception name="IOException" type="java.io.IOException"/>
  14516. </method>
  14517. <method name="moveFromLocalFile"
  14518. abstract="false" native="false" synchronized="false"
  14519. static="false" final="false" visibility="public"
  14520. deprecated="not deprecated">
  14521. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14522. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14523. <exception name="IOException" type="java.io.IOException"/>
  14524. </method>
  14525. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  14526. abstract="false" native="false" synchronized="false"
  14527. static="false" final="false" visibility="public"
  14528. deprecated="not deprecated">
  14529. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  14530. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  14531. <exception name="IOException" type="java.io.IOException"/>
  14532. </method>
  14533. <method name="completeLocalOutput"
  14534. abstract="false" native="false" synchronized="false"
  14535. static="false" final="false" visibility="public"
  14536. deprecated="not deprecated">
  14537. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  14538. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  14539. <exception name="IOException" type="java.io.IOException"/>
  14540. </method>
  14541. <method name="close"
  14542. abstract="false" native="false" synchronized="false"
  14543. static="false" final="false" visibility="public"
  14544. deprecated="not deprecated">
  14545. <exception name="IOException" type="java.io.IOException"/>
  14546. </method>
  14547. <method name="toString" return="java.lang.String"
  14548. abstract="false" native="false" synchronized="false"
  14549. static="false" final="false" visibility="public"
  14550. deprecated="not deprecated">
  14551. </method>
  14552. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  14553. abstract="false" native="false" synchronized="false"
  14554. static="false" final="false" visibility="public"
  14555. deprecated="not deprecated">
  14556. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14557. <exception name="IOException" type="java.io.IOException"/>
  14558. </method>
  14559. <method name="setOwner"
  14560. abstract="false" native="false" synchronized="false"
  14561. static="false" final="false" visibility="public"
  14562. deprecated="not deprecated">
  14563. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14564. <param name="username" type="java.lang.String"/>
  14565. <param name="groupname" type="java.lang.String"/>
  14566. <exception name="IOException" type="java.io.IOException"/>
  14567. <doc>
  14568. <![CDATA[Use the command chown to set owner.]]>
  14569. </doc>
  14570. </method>
  14571. <method name="setPermission"
  14572. abstract="false" native="false" synchronized="false"
  14573. static="false" final="false" visibility="public"
  14574. deprecated="not deprecated">
  14575. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14576. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14577. <exception name="IOException" type="java.io.IOException"/>
  14578. <doc>
  14579. <![CDATA[Use the command chmod to set permission.]]>
  14580. </doc>
  14581. </method>
  14582. <method name="setTimes"
  14583. abstract="false" native="false" synchronized="false"
  14584. static="false" final="false" visibility="public"
  14585. deprecated="not deprecated">
  14586. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14587. <param name="mtime" type="long"/>
  14588. <param name="atime" type="long"/>
  14589. <exception name="IOException" type="java.io.IOException"/>
  14590. <doc>
  14591. <![CDATA[Sets the {@link Path}'s last modified time and last access time to
  14592. the given valid times.
  14593. @param mtime the modification time to set (only if no less than zero).
  14594. @param atime the access time to set (only if no less than zero).
  14595. @throws IOException if setting the times fails.]]>
  14596. </doc>
  14597. </method>
  14598. <method name="supportsSymlinks" return="boolean"
  14599. abstract="false" native="false" synchronized="false"
  14600. static="false" final="false" visibility="public"
  14601. deprecated="not deprecated">
  14602. </method>
  14603. <method name="createSymlink"
  14604. abstract="false" native="false" synchronized="false"
  14605. static="false" final="false" visibility="public"
  14606. deprecated="not deprecated">
  14607. <param name="target" type="org.apache.hadoop.fs.Path"/>
  14608. <param name="link" type="org.apache.hadoop.fs.Path"/>
  14609. <param name="createParent" type="boolean"/>
  14610. <exception name="IOException" type="java.io.IOException"/>
  14611. </method>
  14612. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  14613. abstract="false" native="false" synchronized="false"
  14614. static="false" final="false" visibility="public"
  14615. deprecated="not deprecated">
  14616. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14617. <exception name="IOException" type="java.io.IOException"/>
  14618. <doc>
  14619. <![CDATA[Return a FileStatus representing the given path. If the path refers
  14620. to a symlink return a FileStatus representing the link rather than
  14621. the object the link refers to.]]>
  14622. </doc>
  14623. </method>
  14624. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  14625. abstract="false" native="false" synchronized="false"
  14626. static="false" final="false" visibility="public"
  14627. deprecated="not deprecated">
  14628. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14629. <exception name="IOException" type="java.io.IOException"/>
  14630. </method>
  14631. <doc>
  14632. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  14633. </doc>
  14634. </class>
  14635. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  14636. <!-- start class org.apache.hadoop.fs.ReadOption -->
  14637. <class name="ReadOption" extends="java.lang.Enum"
  14638. abstract="false"
  14639. static="false" final="true" visibility="public"
  14640. deprecated="not deprecated">
  14641. <method name="values" return="org.apache.hadoop.fs.ReadOption[]"
  14642. abstract="false" native="false" synchronized="false"
  14643. static="true" final="false" visibility="public"
  14644. deprecated="not deprecated">
  14645. </method>
  14646. <method name="valueOf" return="org.apache.hadoop.fs.ReadOption"
  14647. abstract="false" native="false" synchronized="false"
  14648. static="true" final="false" visibility="public"
  14649. deprecated="not deprecated">
  14650. <param name="name" type="java.lang.String"/>
  14651. </method>
  14652. <doc>
  14653. <![CDATA[Options that can be used when reading from a FileSystem.]]>
  14654. </doc>
  14655. </class>
  14656. <!-- end class org.apache.hadoop.fs.ReadOption -->
  14657. <!-- start interface org.apache.hadoop.fs.Seekable -->
  14658. <interface name="Seekable" abstract="true"
  14659. static="false" final="false" visibility="public"
  14660. deprecated="not deprecated">
  14661. <method name="seek"
  14662. abstract="true" native="false" synchronized="false"
  14663. static="false" final="false" visibility="public"
  14664. deprecated="not deprecated">
  14665. <param name="pos" type="long"/>
  14666. <exception name="IOException" type="java.io.IOException"/>
  14667. <doc>
  14668. <![CDATA[Seek to the given offset from the start of the file.
  14669. The next read() will be from that location. Can't
  14670. seek past the end of the file.]]>
  14671. </doc>
  14672. </method>
  14673. <method name="getPos" return="long"
  14674. abstract="true" native="false" synchronized="false"
  14675. static="false" final="false" visibility="public"
  14676. deprecated="not deprecated">
  14677. <exception name="IOException" type="java.io.IOException"/>
  14678. <doc>
  14679. <![CDATA[Return the current offset from the start of the file]]>
  14680. </doc>
  14681. </method>
  14682. <doc>
  14683. <![CDATA[Stream that permits seeking.]]>
  14684. </doc>
  14685. </interface>
  14686. <!-- end interface org.apache.hadoop.fs.Seekable -->
  14687. <!-- start class org.apache.hadoop.fs.StorageStatistics -->
  14688. <class name="StorageStatistics" extends="java.lang.Object"
  14689. abstract="true"
  14690. static="false" final="false" visibility="public"
  14691. deprecated="not deprecated">
  14692. <constructor name="StorageStatistics" type="java.lang.String"
  14693. static="false" final="false" visibility="public"
  14694. deprecated="not deprecated">
  14695. </constructor>
  14696. <method name="getName" return="java.lang.String"
  14697. abstract="false" native="false" synchronized="false"
  14698. static="false" final="false" visibility="public"
  14699. deprecated="not deprecated">
  14700. <doc>
  14701. <![CDATA[Get the name of this StorageStatistics object.]]>
  14702. </doc>
  14703. </method>
  14704. <method name="getScheme" return="java.lang.String"
  14705. abstract="false" native="false" synchronized="false"
  14706. static="false" final="false" visibility="public"
  14707. deprecated="not deprecated">
  14708. <doc>
  14709. <![CDATA[@return the associated file system scheme if this is scheme specific,
  14710. else return null.]]>
  14711. </doc>
  14712. </method>
  14713. <method name="getLongStatistics" return="java.util.Iterator"
  14714. abstract="true" native="false" synchronized="false"
  14715. static="false" final="false" visibility="public"
  14716. deprecated="not deprecated">
  14717. <doc>
  14718. <![CDATA[Get an iterator over all the currently tracked long statistics.
  14719. The values returned will depend on the type of FileSystem or FileContext
  14720. object. The values do not necessarily reflect a snapshot in time.]]>
  14721. </doc>
  14722. </method>
  14723. <method name="getLong" return="java.lang.Long"
  14724. abstract="true" native="false" synchronized="false"
  14725. static="false" final="false" visibility="public"
  14726. deprecated="not deprecated">
  14727. <param name="key" type="java.lang.String"/>
  14728. <doc>
  14729. <![CDATA[Get the value of a statistic.
  14730. @return null if the statistic is not being tracked or is not a
  14731. long statistic. The value of the statistic, otherwise.]]>
  14732. </doc>
  14733. </method>
  14734. <method name="isTracked" return="boolean"
  14735. abstract="true" native="false" synchronized="false"
  14736. static="false" final="false" visibility="public"
  14737. deprecated="not deprecated">
  14738. <param name="key" type="java.lang.String"/>
  14739. <doc>
  14740. <![CDATA[Return true if a statistic is being tracked.
  14741. @return True only if the statistic is being tracked.]]>
  14742. </doc>
  14743. </method>
  14744. <method name="reset"
  14745. abstract="true" native="false" synchronized="false"
  14746. static="false" final="false" visibility="public"
  14747. deprecated="not deprecated">
  14748. <doc>
  14749. <![CDATA[Reset all the statistic data.]]>
  14750. </doc>
  14751. </method>
  14752. <doc>
  14753. <![CDATA[StorageStatistics contains statistics data for a FileSystem or FileContext
  14754. instance.]]>
  14755. </doc>
  14756. </class>
  14757. <!-- end class org.apache.hadoop.fs.StorageStatistics -->
  14758. <!-- start class org.apache.hadoop.fs.StorageType -->
  14759. <class name="StorageType" extends="java.lang.Enum"
  14760. abstract="false"
  14761. static="false" final="true" visibility="public"
  14762. deprecated="not deprecated">
  14763. <method name="values" return="org.apache.hadoop.fs.StorageType[]"
  14764. abstract="false" native="false" synchronized="false"
  14765. static="true" final="false" visibility="public"
  14766. deprecated="not deprecated">
  14767. </method>
  14768. <method name="valueOf" return="org.apache.hadoop.fs.StorageType"
  14769. abstract="false" native="false" synchronized="false"
  14770. static="true" final="false" visibility="public"
  14771. deprecated="not deprecated">
  14772. <param name="name" type="java.lang.String"/>
  14773. </method>
  14774. <method name="isTransient" return="boolean"
  14775. abstract="false" native="false" synchronized="false"
  14776. static="false" final="false" visibility="public"
  14777. deprecated="not deprecated">
  14778. </method>
  14779. <method name="supportTypeQuota" return="boolean"
  14780. abstract="false" native="false" synchronized="false"
  14781. static="false" final="false" visibility="public"
  14782. deprecated="not deprecated">
  14783. </method>
  14784. <method name="isMovable" return="boolean"
  14785. abstract="false" native="false" synchronized="false"
  14786. static="false" final="false" visibility="public"
  14787. deprecated="not deprecated">
  14788. </method>
  14789. <method name="asList" return="java.util.List"
  14790. abstract="false" native="false" synchronized="false"
  14791. static="true" final="false" visibility="public"
  14792. deprecated="not deprecated">
  14793. </method>
  14794. <method name="getMovableTypes" return="java.util.List"
  14795. abstract="false" native="false" synchronized="false"
  14796. static="true" final="false" visibility="public"
  14797. deprecated="not deprecated">
  14798. </method>
  14799. <method name="getTypesSupportingQuota" return="java.util.List"
  14800. abstract="false" native="false" synchronized="false"
  14801. static="true" final="false" visibility="public"
  14802. deprecated="not deprecated">
  14803. </method>
  14804. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  14805. abstract="false" native="false" synchronized="false"
  14806. static="true" final="false" visibility="public"
  14807. deprecated="not deprecated">
  14808. <param name="i" type="int"/>
  14809. </method>
  14810. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  14811. abstract="false" native="false" synchronized="false"
  14812. static="true" final="false" visibility="public"
  14813. deprecated="not deprecated">
  14814. <param name="s" type="java.lang.String"/>
  14815. </method>
  14816. <field name="DEFAULT" type="org.apache.hadoop.fs.StorageType"
  14817. transient="false" volatile="false"
  14818. static="true" final="true" visibility="public"
  14819. deprecated="not deprecated">
  14820. </field>
  14821. <field name="EMPTY_ARRAY" type="org.apache.hadoop.fs.StorageType[]"
  14822. transient="false" volatile="false"
  14823. static="true" final="true" visibility="public"
  14824. deprecated="not deprecated">
  14825. </field>
  14826. <doc>
  14827. <![CDATA[Defines the types of supported storage media. The default storage
  14828. medium is assumed to be DISK.]]>
  14829. </doc>
  14830. </class>
  14831. <!-- end class org.apache.hadoop.fs.StorageType -->
  14832. <!-- start interface org.apache.hadoop.fs.StreamCapabilities -->
  14833. <interface name="StreamCapabilities" abstract="true"
  14834. static="false" final="false" visibility="public"
  14835. deprecated="not deprecated">
  14836. <method name="hasCapability" return="boolean"
  14837. abstract="true" native="false" synchronized="false"
  14838. static="false" final="false" visibility="public"
  14839. deprecated="not deprecated">
  14840. <param name="capability" type="java.lang.String"/>
  14841. <doc>
  14842. <![CDATA[Query the stream for a specific capability.
  14843. @param capability string to query the stream support for.
  14844. @return True if the stream supports capability.]]>
  14845. </doc>
  14846. </method>
  14847. <field name="HFLUSH" type="java.lang.String"
  14848. transient="false" volatile="false"
  14849. static="true" final="true" visibility="public"
  14850. deprecated="not deprecated">
  14851. <doc>
  14852. <![CDATA[Stream hflush capability implemented by {@link Syncable#hflush()}.]]>
  14853. </doc>
  14854. </field>
  14855. <field name="HSYNC" type="java.lang.String"
  14856. transient="false" volatile="false"
  14857. static="true" final="true" visibility="public"
  14858. deprecated="not deprecated">
  14859. <doc>
  14860. <![CDATA[Stream hsync capability implemented by {@link Syncable#hsync()}.]]>
  14861. </doc>
  14862. </field>
  14863. <field name="READAHEAD" type="java.lang.String"
  14864. transient="false" volatile="false"
  14865. static="true" final="true" visibility="public"
  14866. deprecated="not deprecated">
  14867. <doc>
  14868. <![CDATA[Stream setReadahead capability implemented by
  14869. {@link CanSetReadahead#setReadahead(Long)}.]]>
  14870. </doc>
  14871. </field>
  14872. <field name="DROPBEHIND" type="java.lang.String"
  14873. transient="false" volatile="false"
  14874. static="true" final="true" visibility="public"
  14875. deprecated="not deprecated">
  14876. <doc>
  14877. <![CDATA[Stream setDropBehind capability implemented by
  14878. {@link CanSetDropBehind#setDropBehind(Boolean)}.]]>
  14879. </doc>
  14880. </field>
  14881. <field name="UNBUFFER" type="java.lang.String"
  14882. transient="false" volatile="false"
  14883. static="true" final="true" visibility="public"
  14884. deprecated="not deprecated">
  14885. <doc>
  14886. <![CDATA[Stream unbuffer capability implemented by {@link CanUnbuffer#unbuffer()}.]]>
  14887. </doc>
  14888. </field>
  14889. <doc>
  14890. <![CDATA[Interface to query streams for supported capabilities.
  14891. Capability strings must be in lower case.
  14892. Constant strings are chosen over enums in order to allow other file systems
  14893. to define their own capabilities.]]>
  14894. </doc>
  14895. </interface>
  14896. <!-- end interface org.apache.hadoop.fs.StreamCapabilities -->
  14897. <!-- start class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  14898. <class name="StreamCapabilitiesPolicy" extends="java.lang.Object"
  14899. abstract="false"
  14900. static="false" final="false" visibility="public"
  14901. deprecated="not deprecated">
  14902. <constructor name="StreamCapabilitiesPolicy"
  14903. static="false" final="false" visibility="public"
  14904. deprecated="not deprecated">
  14905. </constructor>
  14906. <method name="unbuffer"
  14907. abstract="false" native="false" synchronized="false"
  14908. static="true" final="false" visibility="public"
  14909. deprecated="not deprecated">
  14910. <param name="in" type="java.io.InputStream"/>
  14911. <doc>
  14912. <![CDATA[Implement the policy for {@link CanUnbuffer#unbuffer()}.
  14913. @param in the input stream]]>
  14914. </doc>
  14915. </method>
  14916. <field name="CAN_UNBUFFER_NOT_IMPLEMENTED_MESSAGE" type="java.lang.String"
  14917. transient="false" volatile="false"
  14918. static="true" final="true" visibility="public"
  14919. deprecated="not deprecated">
  14920. </field>
  14921. <doc>
  14922. <![CDATA[Static methods to implement policies for {@link StreamCapabilities}.]]>
  14923. </doc>
  14924. </class>
  14925. <!-- end class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  14926. <!-- start interface org.apache.hadoop.fs.Syncable -->
  14927. <interface name="Syncable" abstract="true"
  14928. static="false" final="false" visibility="public"
  14929. deprecated="not deprecated">
  14930. <method name="hflush"
  14931. abstract="true" native="false" synchronized="false"
  14932. static="false" final="false" visibility="public"
  14933. deprecated="not deprecated">
  14934. <exception name="IOException" type="java.io.IOException"/>
  14935. <doc>
  14936. <![CDATA[Flush out the data in client's user buffer. After the return of
  14937. this call, new readers will see the data.
  14938. @throws IOException if any error occurs]]>
  14939. </doc>
  14940. </method>
  14941. <method name="hsync"
  14942. abstract="true" native="false" synchronized="false"
  14943. static="false" final="false" visibility="public"
  14944. deprecated="not deprecated">
  14945. <exception name="IOException" type="java.io.IOException"/>
  14946. <doc>
  14947. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  14948. all the way to the disk device (but the disk may have it in its cache).
  14949. @throws IOException if error occurs]]>
  14950. </doc>
  14951. </method>
  14952. <doc>
  14953. <![CDATA[This interface for flush/sync operation.]]>
  14954. </doc>
  14955. </interface>
  14956. <!-- end interface org.apache.hadoop.fs.Syncable -->
  14957. <!-- start class org.apache.hadoop.fs.Trash -->
  14958. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  14959. abstract="false"
  14960. static="false" final="false" visibility="public"
  14961. deprecated="not deprecated">
  14962. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  14963. static="false" final="false" visibility="public"
  14964. deprecated="not deprecated">
  14965. <exception name="IOException" type="java.io.IOException"/>
  14966. <doc>
  14967. <![CDATA[Construct a trash can accessor.
  14968. @param conf a Configuration]]>
  14969. </doc>
  14970. </constructor>
  14971. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  14972. static="false" final="false" visibility="public"
  14973. deprecated="not deprecated">
  14974. <exception name="IOException" type="java.io.IOException"/>
  14975. <doc>
  14976. <![CDATA[Construct a trash can accessor for the FileSystem provided.
  14977. @param fs the FileSystem
  14978. @param conf a Configuration]]>
  14979. </doc>
  14980. </constructor>
  14981. <method name="moveToAppropriateTrash" return="boolean"
  14982. abstract="false" native="false" synchronized="false"
  14983. static="true" final="false" visibility="public"
  14984. deprecated="not deprecated">
  14985. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14986. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14987. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14988. <exception name="IOException" type="java.io.IOException"/>
  14989. <doc>
  14990. <![CDATA[In case of the symlinks or mount points, one has to move the appropriate
  14991. trashbin in the actual volume of the path p being deleted.
  14992. Hence we get the file system of the fully-qualified resolved-path and
  14993. then move the path p to the trashbin in that volume,
  14994. @param fs - the filesystem of path p
  14995. @param p - the path being deleted - to be moved to trasg
  14996. @param conf - configuration
  14997. @return false if the item is already in the trash or trash is disabled
  14998. @throws IOException on error]]>
  14999. </doc>
  15000. </method>
  15001. <method name="isEnabled" return="boolean"
  15002. abstract="false" native="false" synchronized="false"
  15003. static="false" final="false" visibility="public"
  15004. deprecated="not deprecated">
  15005. <doc>
  15006. <![CDATA[Returns whether the trash is enabled for this filesystem]]>
  15007. </doc>
  15008. </method>
  15009. <method name="moveToTrash" return="boolean"
  15010. abstract="false" native="false" synchronized="false"
  15011. static="false" final="false" visibility="public"
  15012. deprecated="not deprecated">
  15013. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15014. <exception name="IOException" type="java.io.IOException"/>
  15015. <doc>
  15016. <![CDATA[Move a file or directory to the current trash directory.
  15017. @return false if the item is already in the trash or trash is disabled]]>
  15018. </doc>
  15019. </method>
  15020. <method name="checkpoint"
  15021. abstract="false" native="false" synchronized="false"
  15022. static="false" final="false" visibility="public"
  15023. deprecated="not deprecated">
  15024. <exception name="IOException" type="java.io.IOException"/>
  15025. <doc>
  15026. <![CDATA[Create a trash checkpoint.]]>
  15027. </doc>
  15028. </method>
  15029. <method name="expunge"
  15030. abstract="false" native="false" synchronized="false"
  15031. static="false" final="false" visibility="public"
  15032. deprecated="not deprecated">
  15033. <exception name="IOException" type="java.io.IOException"/>
  15034. <doc>
  15035. <![CDATA[Delete old checkpoint(s).]]>
  15036. </doc>
  15037. </method>
  15038. <method name="getEmptier" return="java.lang.Runnable"
  15039. abstract="false" native="false" synchronized="false"
  15040. static="false" final="false" visibility="public"
  15041. deprecated="not deprecated">
  15042. <exception name="IOException" type="java.io.IOException"/>
  15043. <doc>
  15044. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  15045. users, intended to be run by the superuser.]]>
  15046. </doc>
  15047. </method>
  15048. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  15049. abstract="false" native="false" synchronized="false"
  15050. static="false" final="false" visibility="public"
  15051. deprecated="not deprecated">
  15052. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15053. <exception name="IOException" type="java.io.IOException"/>
  15054. </method>
  15055. <doc>
  15056. <![CDATA[Provides a trash facility which supports pluggable Trash policies.
  15057. See the implementation of the configured TrashPolicy for more
  15058. details.]]>
  15059. </doc>
  15060. </class>
  15061. <!-- end class org.apache.hadoop.fs.Trash -->
  15062. <!-- start class org.apache.hadoop.fs.TrashPolicy -->
  15063. <class name="TrashPolicy" extends="org.apache.hadoop.conf.Configured"
  15064. abstract="true"
  15065. static="false" final="false" visibility="public"
  15066. deprecated="not deprecated">
  15067. <constructor name="TrashPolicy"
  15068. static="false" final="false" visibility="public"
  15069. deprecated="not deprecated">
  15070. </constructor>
  15071. <method name="initialize"
  15072. abstract="true" native="false" synchronized="false"
  15073. static="false" final="false" visibility="public"
  15074. deprecated="Use {@link #initialize(Configuration, FileSystem)} instead.">
  15075. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15076. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15077. <param name="home" type="org.apache.hadoop.fs.Path"/>
  15078. <doc>
  15079. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  15080. implementations.
  15081. @param conf the configuration to be used
  15082. @param fs the filesystem to be used
  15083. @param home the home directory
  15084. @deprecated Use {@link #initialize(Configuration, FileSystem)} instead.]]>
  15085. </doc>
  15086. </method>
  15087. <method name="initialize"
  15088. abstract="false" native="false" synchronized="false"
  15089. static="false" final="false" visibility="public"
  15090. deprecated="not deprecated">
  15091. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15092. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15093. <doc>
  15094. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  15095. implementations. Different from initialize(conf, fs, home), this one does
  15096. not assume trash always under /user/$USER due to HDFS encryption zone.
  15097. @param conf the configuration to be used
  15098. @param fs the filesystem to be used]]>
  15099. </doc>
  15100. </method>
  15101. <method name="isEnabled" return="boolean"
  15102. abstract="true" native="false" synchronized="false"
  15103. static="false" final="false" visibility="public"
  15104. deprecated="not deprecated">
  15105. <doc>
  15106. <![CDATA[Returns whether the Trash Policy is enabled for this filesystem.]]>
  15107. </doc>
  15108. </method>
  15109. <method name="moveToTrash" return="boolean"
  15110. abstract="true" native="false" synchronized="false"
  15111. static="false" final="false" visibility="public"
  15112. deprecated="not deprecated">
  15113. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15114. <exception name="IOException" type="java.io.IOException"/>
  15115. <doc>
  15116. <![CDATA[Move a file or directory to the current trash directory.
  15117. @return false if the item is already in the trash or trash is disabled]]>
  15118. </doc>
  15119. </method>
  15120. <method name="createCheckpoint"
  15121. abstract="true" native="false" synchronized="false"
  15122. static="false" final="false" visibility="public"
  15123. deprecated="not deprecated">
  15124. <exception name="IOException" type="java.io.IOException"/>
  15125. <doc>
  15126. <![CDATA[Create a trash checkpoint.]]>
  15127. </doc>
  15128. </method>
  15129. <method name="deleteCheckpoint"
  15130. abstract="true" native="false" synchronized="false"
  15131. static="false" final="false" visibility="public"
  15132. deprecated="not deprecated">
  15133. <exception name="IOException" type="java.io.IOException"/>
  15134. <doc>
  15135. <![CDATA[Delete old trash checkpoint(s).]]>
  15136. </doc>
  15137. </method>
  15138. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  15139. abstract="true" native="false" synchronized="false"
  15140. static="false" final="false" visibility="public"
  15141. deprecated="not deprecated">
  15142. <doc>
  15143. <![CDATA[Get the current working directory of the Trash Policy
  15144. This API does not work with files deleted from encryption zone when HDFS
  15145. data encryption at rest feature is enabled as rename file between
  15146. encryption zones or encryption zone and non-encryption zone is not allowed.
  15147. The caller is recommend to use the new API
  15148. TrashPolicy#getCurrentTrashDir(Path path).
  15149. It returns the trash location correctly for the path specified no matter
  15150. the path is in encryption zone or not.]]>
  15151. </doc>
  15152. </method>
  15153. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  15154. abstract="false" native="false" synchronized="false"
  15155. static="false" final="false" visibility="public"
  15156. deprecated="not deprecated">
  15157. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15158. <exception name="IOException" type="java.io.IOException"/>
  15159. <doc>
  15160. <![CDATA[Get the current trash directory for path specified based on the Trash
  15161. Policy
  15162. @param path path to be deleted
  15163. @return current trash directory for the path to be deleted
  15164. @throws IOException]]>
  15165. </doc>
  15166. </method>
  15167. <method name="getEmptier" return="java.lang.Runnable"
  15168. abstract="true" native="false" synchronized="false"
  15169. static="false" final="false" visibility="public"
  15170. deprecated="not deprecated">
  15171. <exception name="IOException" type="java.io.IOException"/>
  15172. <doc>
  15173. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  15174. users, intended to be run by the superuser.]]>
  15175. </doc>
  15176. </method>
  15177. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  15178. abstract="false" native="false" synchronized="false"
  15179. static="true" final="false" visibility="public"
  15180. deprecated="Use {@link #getInstance(Configuration, FileSystem)} instead.">
  15181. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15182. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15183. <param name="home" type="org.apache.hadoop.fs.Path"/>
  15184. <doc>
  15185. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  15186. of the configuration parameter fs.trash.classname.
  15187. @param conf the configuration to be used
  15188. @param fs the file system to be used
  15189. @param home the home directory
  15190. @return an instance of TrashPolicy
  15191. @deprecated Use {@link #getInstance(Configuration, FileSystem)} instead.]]>
  15192. </doc>
  15193. </method>
  15194. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  15195. abstract="false" native="false" synchronized="false"
  15196. static="true" final="false" visibility="public"
  15197. deprecated="not deprecated">
  15198. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15199. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15200. <doc>
  15201. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  15202. of the configuration parameter fs.trash.classname.
  15203. @param conf the configuration to be used
  15204. @param fs the file system to be used
  15205. @return an instance of TrashPolicy]]>
  15206. </doc>
  15207. </method>
  15208. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  15209. transient="false" volatile="false"
  15210. static="false" final="false" visibility="protected"
  15211. deprecated="not deprecated">
  15212. </field>
  15213. <field name="trash" type="org.apache.hadoop.fs.Path"
  15214. transient="false" volatile="false"
  15215. static="false" final="false" visibility="protected"
  15216. deprecated="not deprecated">
  15217. </field>
  15218. <field name="deletionInterval" type="long"
  15219. transient="false" volatile="false"
  15220. static="false" final="false" visibility="protected"
  15221. deprecated="not deprecated">
  15222. </field>
  15223. <doc>
  15224. <![CDATA[This interface is used for implementing different Trash policies.
  15225. Provides factory method to create instances of the configured Trash policy.]]>
  15226. </doc>
  15227. </class>
  15228. <!-- end class org.apache.hadoop.fs.TrashPolicy -->
  15229. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  15230. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  15231. abstract="false"
  15232. static="false" final="false" visibility="public"
  15233. deprecated="not deprecated">
  15234. <constructor name="UnsupportedFileSystemException" type="java.lang.String"
  15235. static="false" final="false" visibility="public"
  15236. deprecated="not deprecated">
  15237. <doc>
  15238. <![CDATA[Constructs exception with the specified detail message.
  15239. @param message exception message.]]>
  15240. </doc>
  15241. </constructor>
  15242. <doc>
  15243. <![CDATA[File system for a given file system name/scheme is not supported]]>
  15244. </doc>
  15245. </class>
  15246. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  15247. <!-- start class org.apache.hadoop.fs.XAttrCodec -->
  15248. <class name="XAttrCodec" extends="java.lang.Enum"
  15249. abstract="false"
  15250. static="false" final="true" visibility="public"
  15251. deprecated="not deprecated">
  15252. <method name="values" return="org.apache.hadoop.fs.XAttrCodec[]"
  15253. abstract="false" native="false" synchronized="false"
  15254. static="true" final="false" visibility="public"
  15255. deprecated="not deprecated">
  15256. </method>
  15257. <method name="valueOf" return="org.apache.hadoop.fs.XAttrCodec"
  15258. abstract="false" native="false" synchronized="false"
  15259. static="true" final="false" visibility="public"
  15260. deprecated="not deprecated">
  15261. <param name="name" type="java.lang.String"/>
  15262. </method>
  15263. <method name="decodeValue" return="byte[]"
  15264. abstract="false" native="false" synchronized="false"
  15265. static="true" final="false" visibility="public"
  15266. deprecated="not deprecated">
  15267. <param name="value" type="java.lang.String"/>
  15268. <exception name="IOException" type="java.io.IOException"/>
  15269. <doc>
  15270. <![CDATA[Decode string representation of a value and check whether it's
  15271. encoded. If the given string begins with 0x or 0X, it expresses
  15272. a hexadecimal number. If the given string begins with 0s or 0S,
  15273. base64 encoding is expected. If the given string is enclosed in
  15274. double quotes, the inner string is treated as text. Otherwise
  15275. the given string is treated as text.
  15276. @param value string representation of the value.
  15277. @return byte[] the value
  15278. @throws IOException]]>
  15279. </doc>
  15280. </method>
  15281. <method name="encodeValue" return="java.lang.String"
  15282. abstract="false" native="false" synchronized="false"
  15283. static="true" final="false" visibility="public"
  15284. deprecated="not deprecated">
  15285. <param name="value" type="byte[]"/>
  15286. <param name="encoding" type="org.apache.hadoop.fs.XAttrCodec"/>
  15287. <exception name="IOException" type="java.io.IOException"/>
  15288. <doc>
  15289. <![CDATA[Encode byte[] value to string representation with encoding.
  15290. Values encoded as text strings are enclosed in double quotes (\"),
  15291. while strings encoded as hexadecimal and base64 are prefixed with
  15292. 0x and 0s, respectively.
  15293. @param value byte[] value
  15294. @param encoding
  15295. @return String string representation of value
  15296. @throws IOException]]>
  15297. </doc>
  15298. </method>
  15299. <doc>
  15300. <![CDATA[The value of <code>XAttr</code> is byte[], this class is to
  15301. covert byte[] to some kind of string representation or convert back.
  15302. String representation is convenient for display and input. For example
  15303. display in screen as shell response and json response, input as http
  15304. or shell parameter.]]>
  15305. </doc>
  15306. </class>
  15307. <!-- end class org.apache.hadoop.fs.XAttrCodec -->
  15308. <!-- start class org.apache.hadoop.fs.XAttrSetFlag -->
  15309. <class name="XAttrSetFlag" extends="java.lang.Enum"
  15310. abstract="false"
  15311. static="false" final="true" visibility="public"
  15312. deprecated="not deprecated">
  15313. <method name="values" return="org.apache.hadoop.fs.XAttrSetFlag[]"
  15314. abstract="false" native="false" synchronized="false"
  15315. static="true" final="false" visibility="public"
  15316. deprecated="not deprecated">
  15317. </method>
  15318. <method name="valueOf" return="org.apache.hadoop.fs.XAttrSetFlag"
  15319. abstract="false" native="false" synchronized="false"
  15320. static="true" final="false" visibility="public"
  15321. deprecated="not deprecated">
  15322. <param name="name" type="java.lang.String"/>
  15323. </method>
  15324. <method name="validate"
  15325. abstract="false" native="false" synchronized="false"
  15326. static="true" final="false" visibility="public"
  15327. deprecated="not deprecated">
  15328. <param name="xAttrName" type="java.lang.String"/>
  15329. <param name="xAttrExists" type="boolean"/>
  15330. <param name="flag" type="java.util.EnumSet"/>
  15331. <exception name="IOException" type="java.io.IOException"/>
  15332. </method>
  15333. </class>
  15334. <!-- end class org.apache.hadoop.fs.XAttrSetFlag -->
  15335. <doc>
  15336. <![CDATA[An abstract file system API.]]>
  15337. </doc>
  15338. </package>
  15339. <package name="org.apache.hadoop.fs.crypto">
  15340. </package>
  15341. <package name="org.apache.hadoop.fs.ftp">
  15342. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  15343. <class name="FTPException" extends="java.lang.RuntimeException"
  15344. abstract="false"
  15345. static="false" final="false" visibility="public"
  15346. deprecated="not deprecated">
  15347. <constructor name="FTPException" type="java.lang.String"
  15348. static="false" final="false" visibility="public"
  15349. deprecated="not deprecated">
  15350. </constructor>
  15351. <constructor name="FTPException" type="java.lang.Throwable"
  15352. static="false" final="false" visibility="public"
  15353. deprecated="not deprecated">
  15354. </constructor>
  15355. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  15356. static="false" final="false" visibility="public"
  15357. deprecated="not deprecated">
  15358. </constructor>
  15359. <doc>
  15360. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  15361. </doc>
  15362. </class>
  15363. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  15364. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  15365. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  15366. abstract="false"
  15367. static="false" final="false" visibility="public"
  15368. deprecated="not deprecated">
  15369. <constructor name="FTPFileSystem"
  15370. static="false" final="false" visibility="public"
  15371. deprecated="not deprecated">
  15372. </constructor>
  15373. <method name="getScheme" return="java.lang.String"
  15374. abstract="false" native="false" synchronized="false"
  15375. static="false" final="false" visibility="public"
  15376. deprecated="not deprecated">
  15377. <doc>
  15378. <![CDATA[Return the protocol scheme for the FileSystem.
  15379. <p/>
  15380. @return <code>ftp</code>]]>
  15381. </doc>
  15382. </method>
  15383. <method name="getDefaultPort" return="int"
  15384. abstract="false" native="false" synchronized="false"
  15385. static="false" final="false" visibility="protected"
  15386. deprecated="not deprecated">
  15387. <doc>
  15388. <![CDATA[Get the default port for this FTPFileSystem.
  15389. @return the default port]]>
  15390. </doc>
  15391. </method>
  15392. <method name="initialize"
  15393. abstract="false" native="false" synchronized="false"
  15394. static="false" final="false" visibility="public"
  15395. deprecated="not deprecated">
  15396. <param name="uri" type="java.net.URI"/>
  15397. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15398. <exception name="IOException" type="java.io.IOException"/>
  15399. </method>
  15400. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  15401. abstract="false" native="false" synchronized="false"
  15402. static="false" final="false" visibility="public"
  15403. deprecated="not deprecated">
  15404. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15405. <param name="bufferSize" type="int"/>
  15406. <exception name="IOException" type="java.io.IOException"/>
  15407. </method>
  15408. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  15409. abstract="false" native="false" synchronized="false"
  15410. static="false" final="false" visibility="public"
  15411. deprecated="not deprecated">
  15412. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15413. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15414. <param name="overwrite" type="boolean"/>
  15415. <param name="bufferSize" type="int"/>
  15416. <param name="replication" type="short"/>
  15417. <param name="blockSize" type="long"/>
  15418. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15419. <exception name="IOException" type="java.io.IOException"/>
  15420. <doc>
  15421. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  15422. this class or else the invocation will block.]]>
  15423. </doc>
  15424. </method>
  15425. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  15426. abstract="false" native="false" synchronized="false"
  15427. static="false" final="false" visibility="public"
  15428. deprecated="not deprecated">
  15429. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15430. <param name="bufferSize" type="int"/>
  15431. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15432. <exception name="IOException" type="java.io.IOException"/>
  15433. <doc>
  15434. <![CDATA[This optional operation is not yet supported.]]>
  15435. </doc>
  15436. </method>
  15437. <method name="delete" return="boolean"
  15438. abstract="false" native="false" synchronized="false"
  15439. static="false" final="false" visibility="public"
  15440. deprecated="not deprecated">
  15441. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15442. <param name="recursive" type="boolean"/>
  15443. <exception name="IOException" type="java.io.IOException"/>
  15444. </method>
  15445. <method name="getUri" return="java.net.URI"
  15446. abstract="false" native="false" synchronized="false"
  15447. static="false" final="false" visibility="public"
  15448. deprecated="not deprecated">
  15449. </method>
  15450. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  15451. abstract="false" native="false" synchronized="false"
  15452. static="false" final="false" visibility="public"
  15453. deprecated="not deprecated">
  15454. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15455. <exception name="IOException" type="java.io.IOException"/>
  15456. </method>
  15457. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  15458. abstract="false" native="false" synchronized="false"
  15459. static="false" final="false" visibility="public"
  15460. deprecated="not deprecated">
  15461. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15462. <exception name="IOException" type="java.io.IOException"/>
  15463. </method>
  15464. <method name="mkdirs" return="boolean"
  15465. abstract="false" native="false" synchronized="false"
  15466. static="false" final="false" visibility="public"
  15467. deprecated="not deprecated">
  15468. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15469. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15470. <exception name="IOException" type="java.io.IOException"/>
  15471. </method>
  15472. <method name="rename" return="boolean"
  15473. abstract="false" native="false" synchronized="false"
  15474. static="false" final="false" visibility="public"
  15475. deprecated="not deprecated">
  15476. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15477. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15478. <exception name="IOException" type="java.io.IOException"/>
  15479. </method>
  15480. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15481. abstract="false" native="false" synchronized="false"
  15482. static="false" final="false" visibility="public"
  15483. deprecated="not deprecated">
  15484. </method>
  15485. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  15486. abstract="false" native="false" synchronized="false"
  15487. static="false" final="false" visibility="public"
  15488. deprecated="not deprecated">
  15489. </method>
  15490. <method name="setWorkingDirectory"
  15491. abstract="false" native="false" synchronized="false"
  15492. static="false" final="false" visibility="public"
  15493. deprecated="not deprecated">
  15494. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  15495. </method>
  15496. <field name="LOG" type="org.slf4j.Logger"
  15497. transient="false" volatile="false"
  15498. static="true" final="true" visibility="public"
  15499. deprecated="not deprecated">
  15500. </field>
  15501. <field name="DEFAULT_BUFFER_SIZE" type="int"
  15502. transient="false" volatile="false"
  15503. static="true" final="true" visibility="public"
  15504. deprecated="not deprecated">
  15505. </field>
  15506. <field name="DEFAULT_BLOCK_SIZE" type="int"
  15507. transient="false" volatile="false"
  15508. static="true" final="true" visibility="public"
  15509. deprecated="not deprecated">
  15510. </field>
  15511. <field name="FS_FTP_USER_PREFIX" type="java.lang.String"
  15512. transient="false" volatile="false"
  15513. static="true" final="true" visibility="public"
  15514. deprecated="not deprecated">
  15515. </field>
  15516. <field name="FS_FTP_HOST" type="java.lang.String"
  15517. transient="false" volatile="false"
  15518. static="true" final="true" visibility="public"
  15519. deprecated="not deprecated">
  15520. </field>
  15521. <field name="FS_FTP_HOST_PORT" type="java.lang.String"
  15522. transient="false" volatile="false"
  15523. static="true" final="true" visibility="public"
  15524. deprecated="not deprecated">
  15525. </field>
  15526. <field name="FS_FTP_PASSWORD_PREFIX" type="java.lang.String"
  15527. transient="false" volatile="false"
  15528. static="true" final="true" visibility="public"
  15529. deprecated="not deprecated">
  15530. </field>
  15531. <field name="FS_FTP_DATA_CONNECTION_MODE" type="java.lang.String"
  15532. transient="false" volatile="false"
  15533. static="true" final="true" visibility="public"
  15534. deprecated="not deprecated">
  15535. </field>
  15536. <field name="FS_FTP_TRANSFER_MODE" type="java.lang.String"
  15537. transient="false" volatile="false"
  15538. static="true" final="true" visibility="public"
  15539. deprecated="not deprecated">
  15540. </field>
  15541. <field name="E_SAME_DIRECTORY_ONLY" type="java.lang.String"
  15542. transient="false" volatile="false"
  15543. static="true" final="true" visibility="public"
  15544. deprecated="not deprecated">
  15545. </field>
  15546. <doc>
  15547. <![CDATA[<p>
  15548. A {@link FileSystem} backed by an FTP client provided by <a
  15549. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  15550. </p>]]>
  15551. </doc>
  15552. </class>
  15553. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  15554. </package>
  15555. <package name="org.apache.hadoop.fs.http">
  15556. </package>
  15557. <package name="org.apache.hadoop.fs.protocolPB">
  15558. </package>
  15559. <package name="org.apache.hadoop.fs.sftp">
  15560. </package>
  15561. <package name="org.apache.hadoop.fs.shell.find">
  15562. </package>
  15563. <package name="org.apache.hadoop.fs.viewfs">
  15564. <!-- start class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  15565. <class name="NotInMountpointException" extends="java.lang.UnsupportedOperationException"
  15566. abstract="false"
  15567. static="false" final="false" visibility="public"
  15568. deprecated="not deprecated">
  15569. <constructor name="NotInMountpointException" type="org.apache.hadoop.fs.Path, java.lang.String"
  15570. static="false" final="false" visibility="public"
  15571. deprecated="not deprecated">
  15572. </constructor>
  15573. <constructor name="NotInMountpointException" type="java.lang.String"
  15574. static="false" final="false" visibility="public"
  15575. deprecated="not deprecated">
  15576. </constructor>
  15577. <method name="getMessage" return="java.lang.String"
  15578. abstract="false" native="false" synchronized="false"
  15579. static="false" final="false" visibility="public"
  15580. deprecated="not deprecated">
  15581. </method>
  15582. <doc>
  15583. <![CDATA[NotInMountpointException extends the UnsupportedOperationException.
  15584. Exception class used in cases where the given path is not mounted
  15585. through viewfs.]]>
  15586. </doc>
  15587. </class>
  15588. <!-- end class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  15589. <!-- start class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  15590. <class name="ViewFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  15591. abstract="false"
  15592. static="false" final="false" visibility="public"
  15593. deprecated="not deprecated">
  15594. <constructor name="ViewFileSystem"
  15595. static="false" final="false" visibility="public"
  15596. deprecated="not deprecated">
  15597. <exception name="IOException" type="java.io.IOException"/>
  15598. <doc>
  15599. <![CDATA[This is the constructor with the signature needed by
  15600. {@link FileSystem#createFileSystem(URI, Configuration)}
  15601. After this constructor is called initialize() is called.
  15602. @throws IOException]]>
  15603. </doc>
  15604. </constructor>
  15605. <constructor name="ViewFileSystem" type="org.apache.hadoop.conf.Configuration"
  15606. static="false" final="false" visibility="public"
  15607. deprecated="not deprecated">
  15608. <exception name="IOException" type="java.io.IOException"/>
  15609. <doc>
  15610. <![CDATA[Convenience Constructor for apps to call directly
  15611. @param conf
  15612. @throws IOException]]>
  15613. </doc>
  15614. </constructor>
  15615. <method name="getScheme" return="java.lang.String"
  15616. abstract="false" native="false" synchronized="false"
  15617. static="false" final="false" visibility="public"
  15618. deprecated="not deprecated">
  15619. <doc>
  15620. <![CDATA[Return the protocol scheme for the FileSystem.
  15621. @return <code>viewfs</code>]]>
  15622. </doc>
  15623. </method>
  15624. <method name="initialize"
  15625. abstract="false" native="false" synchronized="false"
  15626. static="false" final="false" visibility="public"
  15627. deprecated="not deprecated">
  15628. <param name="theUri" type="java.net.URI"/>
  15629. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15630. <exception name="IOException" type="java.io.IOException"/>
  15631. <doc>
  15632. <![CDATA[Called after a new FileSystem instance is constructed.
  15633. @param theUri a uri whose authority section names the host, port, etc. for
  15634. this FileSystem
  15635. @param conf the configuration]]>
  15636. </doc>
  15637. </method>
  15638. <method name="getUri" return="java.net.URI"
  15639. abstract="false" native="false" synchronized="false"
  15640. static="false" final="false" visibility="public"
  15641. deprecated="not deprecated">
  15642. </method>
  15643. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  15644. abstract="false" native="false" synchronized="false"
  15645. static="false" final="false" visibility="public"
  15646. deprecated="not deprecated">
  15647. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15648. <exception name="IOException" type="java.io.IOException"/>
  15649. </method>
  15650. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  15651. abstract="false" native="false" synchronized="false"
  15652. static="false" final="false" visibility="public"
  15653. deprecated="not deprecated">
  15654. </method>
  15655. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15656. abstract="false" native="false" synchronized="false"
  15657. static="false" final="false" visibility="public"
  15658. deprecated="not deprecated">
  15659. </method>
  15660. <method name="setWorkingDirectory"
  15661. abstract="false" native="false" synchronized="false"
  15662. static="false" final="false" visibility="public"
  15663. deprecated="not deprecated">
  15664. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  15665. </method>
  15666. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  15667. abstract="false" native="false" synchronized="false"
  15668. static="false" final="false" visibility="public"
  15669. deprecated="not deprecated">
  15670. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15671. <param name="bufferSize" type="int"/>
  15672. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15673. <exception name="IOException" type="java.io.IOException"/>
  15674. </method>
  15675. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  15676. abstract="false" native="false" synchronized="false"
  15677. static="false" final="false" visibility="public"
  15678. deprecated="not deprecated">
  15679. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15680. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15681. <param name="flags" type="java.util.EnumSet"/>
  15682. <param name="bufferSize" type="int"/>
  15683. <param name="replication" type="short"/>
  15684. <param name="blockSize" type="long"/>
  15685. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15686. <exception name="IOException" type="java.io.IOException"/>
  15687. </method>
  15688. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  15689. abstract="false" native="false" synchronized="false"
  15690. static="false" final="false" visibility="public"
  15691. deprecated="not deprecated">
  15692. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15693. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15694. <param name="overwrite" type="boolean"/>
  15695. <param name="bufferSize" type="int"/>
  15696. <param name="replication" type="short"/>
  15697. <param name="blockSize" type="long"/>
  15698. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15699. <exception name="IOException" type="java.io.IOException"/>
  15700. </method>
  15701. <method name="delete" return="boolean"
  15702. abstract="false" native="false" synchronized="false"
  15703. static="false" final="false" visibility="public"
  15704. deprecated="not deprecated">
  15705. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15706. <param name="recursive" type="boolean"/>
  15707. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15708. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15709. <exception name="IOException" type="java.io.IOException"/>
  15710. </method>
  15711. <method name="delete" return="boolean"
  15712. abstract="false" native="false" synchronized="false"
  15713. static="false" final="false" visibility="public"
  15714. deprecated="not deprecated">
  15715. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15716. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15717. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15718. <exception name="IOException" type="java.io.IOException"/>
  15719. </method>
  15720. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  15721. abstract="false" native="false" synchronized="false"
  15722. static="false" final="false" visibility="public"
  15723. deprecated="not deprecated">
  15724. <param name="fs" type="org.apache.hadoop.fs.FileStatus"/>
  15725. <param name="start" type="long"/>
  15726. <param name="len" type="long"/>
  15727. <exception name="IOException" type="java.io.IOException"/>
  15728. </method>
  15729. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  15730. abstract="false" native="false" synchronized="false"
  15731. static="false" final="false" visibility="public"
  15732. deprecated="not deprecated">
  15733. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15734. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15735. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15736. <exception name="IOException" type="java.io.IOException"/>
  15737. </method>
  15738. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  15739. abstract="false" native="false" synchronized="false"
  15740. static="false" final="false" visibility="public"
  15741. deprecated="not deprecated">
  15742. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15743. <param name="length" type="long"/>
  15744. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15745. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15746. <exception name="IOException" type="java.io.IOException"/>
  15747. </method>
  15748. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  15749. abstract="false" native="false" synchronized="false"
  15750. static="false" final="false" visibility="public"
  15751. deprecated="not deprecated">
  15752. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15753. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15754. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15755. <exception name="IOException" type="java.io.IOException"/>
  15756. </method>
  15757. <method name="access"
  15758. abstract="false" native="false" synchronized="false"
  15759. static="false" final="false" visibility="public"
  15760. deprecated="not deprecated">
  15761. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15762. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  15763. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15764. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15765. <exception name="IOException" type="java.io.IOException"/>
  15766. </method>
  15767. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  15768. abstract="false" native="false" synchronized="false"
  15769. static="false" final="false" visibility="public"
  15770. deprecated="not deprecated">
  15771. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15772. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15773. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15774. <exception name="IOException" type="java.io.IOException"/>
  15775. </method>
  15776. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  15777. abstract="false" native="false" synchronized="false"
  15778. static="false" final="false" visibility="public"
  15779. deprecated="not deprecated">
  15780. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15781. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  15782. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15783. <exception name="IOException" type="java.io.IOException"/>
  15784. </method>
  15785. <method name="mkdirs" return="boolean"
  15786. abstract="false" native="false" synchronized="false"
  15787. static="false" final="false" visibility="public"
  15788. deprecated="not deprecated">
  15789. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  15790. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15791. <exception name="IOException" type="java.io.IOException"/>
  15792. </method>
  15793. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  15794. abstract="false" native="false" synchronized="false"
  15795. static="false" final="false" visibility="public"
  15796. deprecated="not deprecated">
  15797. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15798. <param name="bufferSize" type="int"/>
  15799. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15800. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15801. <exception name="IOException" type="java.io.IOException"/>
  15802. </method>
  15803. <method name="rename" return="boolean"
  15804. abstract="false" native="false" synchronized="false"
  15805. static="false" final="false" visibility="public"
  15806. deprecated="not deprecated">
  15807. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15808. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15809. <exception name="IOException" type="java.io.IOException"/>
  15810. </method>
  15811. <method name="truncate" return="boolean"
  15812. abstract="false" native="false" synchronized="false"
  15813. static="false" final="false" visibility="public"
  15814. deprecated="not deprecated">
  15815. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15816. <param name="newLength" type="long"/>
  15817. <exception name="IOException" type="java.io.IOException"/>
  15818. </method>
  15819. <method name="setOwner"
  15820. abstract="false" native="false" synchronized="false"
  15821. static="false" final="false" visibility="public"
  15822. deprecated="not deprecated">
  15823. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15824. <param name="username" type="java.lang.String"/>
  15825. <param name="groupname" type="java.lang.String"/>
  15826. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15827. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15828. <exception name="IOException" type="java.io.IOException"/>
  15829. </method>
  15830. <method name="setPermission"
  15831. abstract="false" native="false" synchronized="false"
  15832. static="false" final="false" visibility="public"
  15833. deprecated="not deprecated">
  15834. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15835. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15836. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15837. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15838. <exception name="IOException" type="java.io.IOException"/>
  15839. </method>
  15840. <method name="setReplication" return="boolean"
  15841. abstract="false" native="false" synchronized="false"
  15842. static="false" final="false" visibility="public"
  15843. deprecated="not deprecated">
  15844. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15845. <param name="replication" type="short"/>
  15846. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15847. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15848. <exception name="IOException" type="java.io.IOException"/>
  15849. </method>
  15850. <method name="setTimes"
  15851. abstract="false" native="false" synchronized="false"
  15852. static="false" final="false" visibility="public"
  15853. deprecated="not deprecated">
  15854. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15855. <param name="mtime" type="long"/>
  15856. <param name="atime" type="long"/>
  15857. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15858. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15859. <exception name="IOException" type="java.io.IOException"/>
  15860. </method>
  15861. <method name="modifyAclEntries"
  15862. abstract="false" native="false" synchronized="false"
  15863. static="false" final="false" visibility="public"
  15864. deprecated="not deprecated">
  15865. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15866. <param name="aclSpec" type="java.util.List"/>
  15867. <exception name="IOException" type="java.io.IOException"/>
  15868. </method>
  15869. <method name="removeAclEntries"
  15870. abstract="false" native="false" synchronized="false"
  15871. static="false" final="false" visibility="public"
  15872. deprecated="not deprecated">
  15873. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15874. <param name="aclSpec" type="java.util.List"/>
  15875. <exception name="IOException" type="java.io.IOException"/>
  15876. </method>
  15877. <method name="removeDefaultAcl"
  15878. abstract="false" native="false" synchronized="false"
  15879. static="false" final="false" visibility="public"
  15880. deprecated="not deprecated">
  15881. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15882. <exception name="IOException" type="java.io.IOException"/>
  15883. </method>
  15884. <method name="removeAcl"
  15885. abstract="false" native="false" synchronized="false"
  15886. static="false" final="false" visibility="public"
  15887. deprecated="not deprecated">
  15888. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15889. <exception name="IOException" type="java.io.IOException"/>
  15890. </method>
  15891. <method name="setAcl"
  15892. abstract="false" native="false" synchronized="false"
  15893. static="false" final="false" visibility="public"
  15894. deprecated="not deprecated">
  15895. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15896. <param name="aclSpec" type="java.util.List"/>
  15897. <exception name="IOException" type="java.io.IOException"/>
  15898. </method>
  15899. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  15900. abstract="false" native="false" synchronized="false"
  15901. static="false" final="false" visibility="public"
  15902. deprecated="not deprecated">
  15903. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15904. <exception name="IOException" type="java.io.IOException"/>
  15905. </method>
  15906. <method name="setXAttr"
  15907. abstract="false" native="false" synchronized="false"
  15908. static="false" final="false" visibility="public"
  15909. deprecated="not deprecated">
  15910. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15911. <param name="name" type="java.lang.String"/>
  15912. <param name="value" type="byte[]"/>
  15913. <param name="flag" type="java.util.EnumSet"/>
  15914. <exception name="IOException" type="java.io.IOException"/>
  15915. </method>
  15916. <method name="getXAttr" return="byte[]"
  15917. abstract="false" native="false" synchronized="false"
  15918. static="false" final="false" visibility="public"
  15919. deprecated="not deprecated">
  15920. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15921. <param name="name" type="java.lang.String"/>
  15922. <exception name="IOException" type="java.io.IOException"/>
  15923. </method>
  15924. <method name="getXAttrs" return="java.util.Map"
  15925. abstract="false" native="false" synchronized="false"
  15926. static="false" final="false" visibility="public"
  15927. deprecated="not deprecated">
  15928. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15929. <exception name="IOException" type="java.io.IOException"/>
  15930. </method>
  15931. <method name="getXAttrs" return="java.util.Map"
  15932. abstract="false" native="false" synchronized="false"
  15933. static="false" final="false" visibility="public"
  15934. deprecated="not deprecated">
  15935. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15936. <param name="names" type="java.util.List"/>
  15937. <exception name="IOException" type="java.io.IOException"/>
  15938. </method>
  15939. <method name="listXAttrs" return="java.util.List"
  15940. abstract="false" native="false" synchronized="false"
  15941. static="false" final="false" visibility="public"
  15942. deprecated="not deprecated">
  15943. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15944. <exception name="IOException" type="java.io.IOException"/>
  15945. </method>
  15946. <method name="removeXAttr"
  15947. abstract="false" native="false" synchronized="false"
  15948. static="false" final="false" visibility="public"
  15949. deprecated="not deprecated">
  15950. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15951. <param name="name" type="java.lang.String"/>
  15952. <exception name="IOException" type="java.io.IOException"/>
  15953. </method>
  15954. <method name="setVerifyChecksum"
  15955. abstract="false" native="false" synchronized="false"
  15956. static="false" final="false" visibility="public"
  15957. deprecated="not deprecated">
  15958. <param name="verifyChecksum" type="boolean"/>
  15959. </method>
  15960. <method name="getDefaultBlockSize" return="long"
  15961. abstract="false" native="false" synchronized="false"
  15962. static="false" final="false" visibility="public"
  15963. deprecated="not deprecated">
  15964. </method>
  15965. <method name="getDefaultReplication" return="short"
  15966. abstract="false" native="false" synchronized="false"
  15967. static="false" final="false" visibility="public"
  15968. deprecated="not deprecated">
  15969. </method>
  15970. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  15971. abstract="false" native="false" synchronized="false"
  15972. static="false" final="false" visibility="public"
  15973. deprecated="not deprecated">
  15974. <exception name="IOException" type="java.io.IOException"/>
  15975. </method>
  15976. <method name="getDefaultBlockSize" return="long"
  15977. abstract="false" native="false" synchronized="false"
  15978. static="false" final="false" visibility="public"
  15979. deprecated="not deprecated">
  15980. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15981. </method>
  15982. <method name="getDefaultReplication" return="short"
  15983. abstract="false" native="false" synchronized="false"
  15984. static="false" final="false" visibility="public"
  15985. deprecated="not deprecated">
  15986. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15987. </method>
  15988. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  15989. abstract="false" native="false" synchronized="false"
  15990. static="false" final="false" visibility="public"
  15991. deprecated="not deprecated">
  15992. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15993. <exception name="IOException" type="java.io.IOException"/>
  15994. </method>
  15995. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  15996. abstract="false" native="false" synchronized="false"
  15997. static="false" final="false" visibility="public"
  15998. deprecated="not deprecated">
  15999. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16000. <exception name="IOException" type="java.io.IOException"/>
  16001. </method>
  16002. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  16003. abstract="false" native="false" synchronized="false"
  16004. static="false" final="false" visibility="public"
  16005. deprecated="not deprecated">
  16006. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16007. <exception name="IOException" type="java.io.IOException"/>
  16008. </method>
  16009. <method name="setWriteChecksum"
  16010. abstract="false" native="false" synchronized="false"
  16011. static="false" final="false" visibility="public"
  16012. deprecated="not deprecated">
  16013. <param name="writeChecksum" type="boolean"/>
  16014. </method>
  16015. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  16016. abstract="false" native="false" synchronized="false"
  16017. static="false" final="false" visibility="public"
  16018. deprecated="not deprecated">
  16019. </method>
  16020. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFileSystem.MountPoint[]"
  16021. abstract="false" native="false" synchronized="false"
  16022. static="false" final="false" visibility="public"
  16023. deprecated="not deprecated">
  16024. </method>
  16025. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  16026. abstract="false" native="false" synchronized="false"
  16027. static="false" final="false" visibility="public"
  16028. deprecated="not deprecated">
  16029. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16030. <param name="snapshotName" type="java.lang.String"/>
  16031. <exception name="IOException" type="java.io.IOException"/>
  16032. </method>
  16033. <method name="renameSnapshot"
  16034. abstract="false" native="false" synchronized="false"
  16035. static="false" final="false" visibility="public"
  16036. deprecated="not deprecated">
  16037. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16038. <param name="snapshotOldName" type="java.lang.String"/>
  16039. <param name="snapshotNewName" type="java.lang.String"/>
  16040. <exception name="IOException" type="java.io.IOException"/>
  16041. </method>
  16042. <method name="deleteSnapshot"
  16043. abstract="false" native="false" synchronized="false"
  16044. static="false" final="false" visibility="public"
  16045. deprecated="not deprecated">
  16046. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16047. <param name="snapshotName" type="java.lang.String"/>
  16048. <exception name="IOException" type="java.io.IOException"/>
  16049. </method>
  16050. <method name="setStoragePolicy"
  16051. abstract="false" native="false" synchronized="false"
  16052. static="false" final="false" visibility="public"
  16053. deprecated="not deprecated">
  16054. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16055. <param name="policyName" type="java.lang.String"/>
  16056. <exception name="IOException" type="java.io.IOException"/>
  16057. </method>
  16058. <method name="unsetStoragePolicy"
  16059. abstract="false" native="false" synchronized="false"
  16060. static="false" final="false" visibility="public"
  16061. deprecated="not deprecated">
  16062. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16063. <exception name="IOException" type="java.io.IOException"/>
  16064. </method>
  16065. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  16066. abstract="false" native="false" synchronized="false"
  16067. static="false" final="false" visibility="public"
  16068. deprecated="not deprecated">
  16069. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16070. <exception name="IOException" type="java.io.IOException"/>
  16071. </method>
  16072. <method name="getAllStoragePolicies" return="java.util.Collection"
  16073. abstract="false" native="false" synchronized="false"
  16074. static="false" final="false" visibility="public"
  16075. deprecated="not deprecated">
  16076. <exception name="IOException" type="java.io.IOException"/>
  16077. </method>
  16078. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  16079. abstract="false" native="false" synchronized="false"
  16080. static="false" final="false" visibility="public"
  16081. deprecated="not deprecated">
  16082. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16083. <doc>
  16084. <![CDATA[Get the trash root directory for current user when the path
  16085. specified is deleted.
  16086. @param path the trash root of the path to be determined.
  16087. @return the trash root path.]]>
  16088. </doc>
  16089. </method>
  16090. <method name="getTrashRoots" return="java.util.Collection"
  16091. abstract="false" native="false" synchronized="false"
  16092. static="false" final="false" visibility="public"
  16093. deprecated="not deprecated">
  16094. <param name="allUsers" type="boolean"/>
  16095. <doc>
  16096. <![CDATA[Get all the trash roots for current user or all users.
  16097. @param allUsers return trash roots for all users if true.
  16098. @return all Trash root directories.]]>
  16099. </doc>
  16100. </method>
  16101. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  16102. abstract="false" native="false" synchronized="false"
  16103. static="false" final="false" visibility="public"
  16104. deprecated="not deprecated">
  16105. <exception name="IOException" type="java.io.IOException"/>
  16106. </method>
  16107. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  16108. abstract="false" native="false" synchronized="false"
  16109. static="false" final="false" visibility="public"
  16110. deprecated="not deprecated">
  16111. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16112. <exception name="IOException" type="java.io.IOException"/>
  16113. </method>
  16114. <method name="getUsed" return="long"
  16115. abstract="false" native="false" synchronized="false"
  16116. static="false" final="false" visibility="public"
  16117. deprecated="not deprecated">
  16118. <exception name="IOException" type="java.io.IOException"/>
  16119. <doc>
  16120. <![CDATA[Return the total size of all files under "/", if {@link
  16121. Constants#CONFIG_VIEWFS_LINK_MERGE_SLASH} is supported and is a valid
  16122. mount point. Else, throw NotInMountpointException.
  16123. @throws IOException]]>
  16124. </doc>
  16125. </method>
  16126. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  16127. abstract="false" native="false" synchronized="false"
  16128. static="false" final="false" visibility="public"
  16129. deprecated="not deprecated">
  16130. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16131. <exception name="IOException" type="java.io.IOException"/>
  16132. </method>
  16133. <doc>
  16134. <![CDATA[ViewFileSystem (extends the FileSystem interface) implements a client-side
  16135. mount table. Its spec and implementation is identical to {@link ViewFs}.]]>
  16136. </doc>
  16137. </class>
  16138. <!-- end class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  16139. <!-- start class org.apache.hadoop.fs.viewfs.ViewFileSystemUtil -->
  16140. <class name="ViewFileSystemUtil" extends="java.lang.Object"
  16141. abstract="false"
  16142. static="false" final="true" visibility="public"
  16143. deprecated="not deprecated">
  16144. <method name="isViewFileSystem" return="boolean"
  16145. abstract="false" native="false" synchronized="false"
  16146. static="true" final="false" visibility="public"
  16147. deprecated="not deprecated">
  16148. <param name="fileSystem" type="org.apache.hadoop.fs.FileSystem"/>
  16149. <doc>
  16150. <![CDATA[Check if the FileSystem is a ViewFileSystem.
  16151. @param fileSystem
  16152. @return true if the fileSystem is ViewFileSystem]]>
  16153. </doc>
  16154. </method>
  16155. <method name="getStatus" return="java.util.Map"
  16156. abstract="false" native="false" synchronized="false"
  16157. static="true" final="false" visibility="public"
  16158. deprecated="not deprecated">
  16159. <param name="fileSystem" type="org.apache.hadoop.fs.FileSystem"/>
  16160. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16161. <exception name="IOException" type="java.io.IOException"/>
  16162. <doc>
  16163. <![CDATA[Get FsStatus for all ViewFsMountPoints matching path for the given
  16164. ViewFileSystem.
  16165. Say ViewFileSystem has following mount points configured
  16166. (1) hdfs://NN0_host:port/sales mounted on /dept/sales
  16167. (2) hdfs://NN1_host:port/marketing mounted on /dept/marketing
  16168. (3) hdfs://NN2_host:port/eng_usa mounted on /dept/eng/usa
  16169. (4) hdfs://NN3_host:port/eng_asia mounted on /dept/eng/asia
  16170. For the above config, here is a sample list of paths and their matching
  16171. mount points while getting FsStatus
  16172. Path Description Matching MountPoint
  16173. "/" Root ViewFileSystem lists all (1), (2), (3), (4)
  16174. mount points.
  16175. "/dept" Not a mount point, but a valid (1), (2), (3), (4)
  16176. internal dir in the mount tree
  16177. and resolved down to "/" path.
  16178. "/dept/sales" Matches a mount point (1)
  16179. "/dept/sales/india" Path is over a valid mount point (1)
  16180. and resolved down to
  16181. "/dept/sales"
  16182. "/dept/eng" Not a mount point, but a valid (1), (2), (3), (4)
  16183. internal dir in the mount tree
  16184. and resolved down to "/" path.
  16185. "/erp" Doesn't match or leads to or
  16186. over any valid mount points None
  16187. @param fileSystem - ViewFileSystem on which mount point exists
  16188. @param path - URI for which FsStatus is requested
  16189. @return Map of ViewFsMountPoint and FsStatus]]>
  16190. </doc>
  16191. </method>
  16192. <doc>
  16193. <![CDATA[Utility APIs for ViewFileSystem.]]>
  16194. </doc>
  16195. </class>
  16196. <!-- end class org.apache.hadoop.fs.viewfs.ViewFileSystemUtil -->
  16197. <!-- start class org.apache.hadoop.fs.viewfs.ViewFs -->
  16198. <class name="ViewFs" extends="org.apache.hadoop.fs.AbstractFileSystem"
  16199. abstract="false"
  16200. static="false" final="false" visibility="public"
  16201. deprecated="not deprecated">
  16202. <constructor name="ViewFs" type="org.apache.hadoop.conf.Configuration"
  16203. static="false" final="false" visibility="public"
  16204. deprecated="not deprecated">
  16205. <exception name="IOException" type="java.io.IOException"/>
  16206. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  16207. </constructor>
  16208. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  16209. abstract="false" native="false" synchronized="false"
  16210. static="false" final="false" visibility="public"
  16211. deprecated="not deprecated">
  16212. <exception name="IOException" type="java.io.IOException"/>
  16213. </method>
  16214. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  16215. abstract="false" native="false" synchronized="false"
  16216. static="false" final="false" visibility="public"
  16217. deprecated="not deprecated">
  16218. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16219. <exception name="IOException" type="java.io.IOException"/>
  16220. </method>
  16221. <method name="getUriDefaultPort" return="int"
  16222. abstract="false" native="false" synchronized="false"
  16223. static="false" final="false" visibility="public"
  16224. deprecated="not deprecated">
  16225. </method>
  16226. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  16227. abstract="false" native="false" synchronized="false"
  16228. static="false" final="false" visibility="public"
  16229. deprecated="not deprecated">
  16230. </method>
  16231. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  16232. abstract="false" native="false" synchronized="false"
  16233. static="false" final="false" visibility="public"
  16234. deprecated="not deprecated">
  16235. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16236. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16237. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16238. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16239. <exception name="IOException" type="java.io.IOException"/>
  16240. </method>
  16241. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  16242. abstract="false" native="false" synchronized="false"
  16243. static="false" final="false" visibility="public"
  16244. deprecated="not deprecated">
  16245. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16246. <param name="flag" type="java.util.EnumSet"/>
  16247. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16248. <param name="bufferSize" type="int"/>
  16249. <param name="replication" type="short"/>
  16250. <param name="blockSize" type="long"/>
  16251. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16252. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  16253. <param name="createParent" type="boolean"/>
  16254. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16255. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  16256. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16257. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  16258. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  16259. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16260. <exception name="IOException" type="java.io.IOException"/>
  16261. </method>
  16262. <method name="delete" return="boolean"
  16263. abstract="false" native="false" synchronized="false"
  16264. static="false" final="false" visibility="public"
  16265. deprecated="not deprecated">
  16266. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16267. <param name="recursive" type="boolean"/>
  16268. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16269. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16270. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16271. <exception name="IOException" type="java.io.IOException"/>
  16272. </method>
  16273. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  16274. abstract="false" native="false" synchronized="false"
  16275. static="false" final="false" visibility="public"
  16276. deprecated="not deprecated">
  16277. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16278. <param name="start" type="long"/>
  16279. <param name="len" type="long"/>
  16280. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16281. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16282. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16283. <exception name="IOException" type="java.io.IOException"/>
  16284. </method>
  16285. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  16286. abstract="false" native="false" synchronized="false"
  16287. static="false" final="false" visibility="public"
  16288. deprecated="not deprecated">
  16289. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16290. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16291. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16292. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16293. <exception name="IOException" type="java.io.IOException"/>
  16294. </method>
  16295. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  16296. abstract="false" native="false" synchronized="false"
  16297. static="false" final="false" visibility="public"
  16298. deprecated="not deprecated">
  16299. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16300. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16301. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16302. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16303. <exception name="IOException" type="java.io.IOException"/>
  16304. </method>
  16305. <method name="access"
  16306. abstract="false" native="false" synchronized="false"
  16307. static="false" final="false" visibility="public"
  16308. deprecated="not deprecated">
  16309. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16310. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  16311. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16312. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16313. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16314. <exception name="IOException" type="java.io.IOException"/>
  16315. </method>
  16316. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  16317. abstract="false" native="false" synchronized="false"
  16318. static="false" final="false" visibility="public"
  16319. deprecated="not deprecated">
  16320. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16321. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16322. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16323. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  16324. <exception name="IOException" type="java.io.IOException"/>
  16325. </method>
  16326. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  16327. abstract="false" native="false" synchronized="false"
  16328. static="false" final="false" visibility="public"
  16329. deprecated="not deprecated">
  16330. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16331. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16332. <exception name="IOException" type="java.io.IOException"/>
  16333. </method>
  16334. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  16335. abstract="false" native="false" synchronized="false"
  16336. static="false" final="false" visibility="public"
  16337. deprecated="not deprecated">
  16338. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16339. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16340. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16341. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16342. <exception name="IOException" type="java.io.IOException"/>
  16343. </method>
  16344. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  16345. abstract="false" native="false" synchronized="false"
  16346. static="false" final="false" visibility="public"
  16347. deprecated="not deprecated">
  16348. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16349. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16350. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16351. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16352. <exception name="IOException" type="java.io.IOException"/>
  16353. </method>
  16354. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  16355. abstract="false" native="false" synchronized="false"
  16356. static="false" final="false" visibility="public"
  16357. deprecated="not deprecated">
  16358. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16359. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16360. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16361. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16362. <exception name="IOException" type="java.io.IOException"/>
  16363. </method>
  16364. <method name="mkdir"
  16365. abstract="false" native="false" synchronized="false"
  16366. static="false" final="false" visibility="public"
  16367. deprecated="not deprecated">
  16368. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  16369. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16370. <param name="createParent" type="boolean"/>
  16371. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16372. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  16373. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16374. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16375. <exception name="IOException" type="java.io.IOException"/>
  16376. </method>
  16377. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  16378. abstract="false" native="false" synchronized="false"
  16379. static="false" final="false" visibility="public"
  16380. deprecated="not deprecated">
  16381. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16382. <param name="bufferSize" type="int"/>
  16383. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16384. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16385. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16386. <exception name="IOException" type="java.io.IOException"/>
  16387. </method>
  16388. <method name="truncate" return="boolean"
  16389. abstract="false" native="false" synchronized="false"
  16390. static="false" final="false" visibility="public"
  16391. deprecated="not deprecated">
  16392. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16393. <param name="newLength" type="long"/>
  16394. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16395. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16396. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16397. <exception name="IOException" type="java.io.IOException"/>
  16398. </method>
  16399. <method name="renameInternal"
  16400. abstract="false" native="false" synchronized="false"
  16401. static="false" final="false" visibility="public"
  16402. deprecated="not deprecated">
  16403. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16404. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16405. <param name="overwrite" type="boolean"/>
  16406. <exception name="IOException" type="java.io.IOException"/>
  16407. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16408. </method>
  16409. <method name="renameInternal"
  16410. abstract="false" native="false" synchronized="false"
  16411. static="false" final="false" visibility="public"
  16412. deprecated="not deprecated">
  16413. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16414. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16415. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16416. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  16417. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16418. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  16419. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16420. <exception name="IOException" type="java.io.IOException"/>
  16421. </method>
  16422. <method name="supportsSymlinks" return="boolean"
  16423. abstract="false" native="false" synchronized="false"
  16424. static="false" final="false" visibility="public"
  16425. deprecated="not deprecated">
  16426. </method>
  16427. <method name="createSymlink"
  16428. abstract="false" native="false" synchronized="false"
  16429. static="false" final="false" visibility="public"
  16430. deprecated="not deprecated">
  16431. <param name="target" type="org.apache.hadoop.fs.Path"/>
  16432. <param name="link" type="org.apache.hadoop.fs.Path"/>
  16433. <param name="createParent" type="boolean"/>
  16434. <exception name="IOException" type="java.io.IOException"/>
  16435. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16436. </method>
  16437. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  16438. abstract="false" native="false" synchronized="false"
  16439. static="false" final="false" visibility="public"
  16440. deprecated="not deprecated">
  16441. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16442. <exception name="IOException" type="java.io.IOException"/>
  16443. </method>
  16444. <method name="setOwner"
  16445. abstract="false" native="false" synchronized="false"
  16446. static="false" final="false" visibility="public"
  16447. deprecated="not deprecated">
  16448. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16449. <param name="username" type="java.lang.String"/>
  16450. <param name="groupname" type="java.lang.String"/>
  16451. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16452. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16453. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16454. <exception name="IOException" type="java.io.IOException"/>
  16455. </method>
  16456. <method name="setPermission"
  16457. abstract="false" native="false" synchronized="false"
  16458. static="false" final="false" visibility="public"
  16459. deprecated="not deprecated">
  16460. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16461. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16462. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16463. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16464. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16465. <exception name="IOException" type="java.io.IOException"/>
  16466. </method>
  16467. <method name="setReplication" return="boolean"
  16468. abstract="false" native="false" synchronized="false"
  16469. static="false" final="false" visibility="public"
  16470. deprecated="not deprecated">
  16471. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16472. <param name="replication" type="short"/>
  16473. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16474. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16475. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16476. <exception name="IOException" type="java.io.IOException"/>
  16477. </method>
  16478. <method name="setTimes"
  16479. abstract="false" native="false" synchronized="false"
  16480. static="false" final="false" visibility="public"
  16481. deprecated="not deprecated">
  16482. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16483. <param name="mtime" type="long"/>
  16484. <param name="atime" type="long"/>
  16485. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16486. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16487. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16488. <exception name="IOException" type="java.io.IOException"/>
  16489. </method>
  16490. <method name="setVerifyChecksum"
  16491. abstract="false" native="false" synchronized="false"
  16492. static="false" final="false" visibility="public"
  16493. deprecated="not deprecated">
  16494. <param name="verifyChecksum" type="boolean"/>
  16495. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16496. <exception name="IOException" type="java.io.IOException"/>
  16497. </method>
  16498. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFs.MountPoint[]"
  16499. abstract="false" native="false" synchronized="false"
  16500. static="false" final="false" visibility="public"
  16501. deprecated="not deprecated">
  16502. </method>
  16503. <method name="getDelegationTokens" return="java.util.List"
  16504. abstract="false" native="false" synchronized="false"
  16505. static="false" final="false" visibility="public"
  16506. deprecated="not deprecated">
  16507. <param name="renewer" type="java.lang.String"/>
  16508. <exception name="IOException" type="java.io.IOException"/>
  16509. </method>
  16510. <method name="isValidName" return="boolean"
  16511. abstract="false" native="false" synchronized="false"
  16512. static="false" final="false" visibility="public"
  16513. deprecated="not deprecated">
  16514. <param name="src" type="java.lang.String"/>
  16515. </method>
  16516. <method name="modifyAclEntries"
  16517. abstract="false" native="false" synchronized="false"
  16518. static="false" final="false" visibility="public"
  16519. deprecated="not deprecated">
  16520. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16521. <param name="aclSpec" type="java.util.List"/>
  16522. <exception name="IOException" type="java.io.IOException"/>
  16523. </method>
  16524. <method name="removeAclEntries"
  16525. abstract="false" native="false" synchronized="false"
  16526. static="false" final="false" visibility="public"
  16527. deprecated="not deprecated">
  16528. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16529. <param name="aclSpec" type="java.util.List"/>
  16530. <exception name="IOException" type="java.io.IOException"/>
  16531. </method>
  16532. <method name="removeDefaultAcl"
  16533. abstract="false" native="false" synchronized="false"
  16534. static="false" final="false" visibility="public"
  16535. deprecated="not deprecated">
  16536. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16537. <exception name="IOException" type="java.io.IOException"/>
  16538. </method>
  16539. <method name="removeAcl"
  16540. abstract="false" native="false" synchronized="false"
  16541. static="false" final="false" visibility="public"
  16542. deprecated="not deprecated">
  16543. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16544. <exception name="IOException" type="java.io.IOException"/>
  16545. </method>
  16546. <method name="setAcl"
  16547. abstract="false" native="false" synchronized="false"
  16548. static="false" final="false" visibility="public"
  16549. deprecated="not deprecated">
  16550. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16551. <param name="aclSpec" type="java.util.List"/>
  16552. <exception name="IOException" type="java.io.IOException"/>
  16553. </method>
  16554. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  16555. abstract="false" native="false" synchronized="false"
  16556. static="false" final="false" visibility="public"
  16557. deprecated="not deprecated">
  16558. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16559. <exception name="IOException" type="java.io.IOException"/>
  16560. </method>
  16561. <method name="setXAttr"
  16562. abstract="false" native="false" synchronized="false"
  16563. static="false" final="false" visibility="public"
  16564. deprecated="not deprecated">
  16565. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16566. <param name="name" type="java.lang.String"/>
  16567. <param name="value" type="byte[]"/>
  16568. <param name="flag" type="java.util.EnumSet"/>
  16569. <exception name="IOException" type="java.io.IOException"/>
  16570. </method>
  16571. <method name="getXAttr" return="byte[]"
  16572. abstract="false" native="false" synchronized="false"
  16573. static="false" final="false" visibility="public"
  16574. deprecated="not deprecated">
  16575. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16576. <param name="name" type="java.lang.String"/>
  16577. <exception name="IOException" type="java.io.IOException"/>
  16578. </method>
  16579. <method name="getXAttrs" return="java.util.Map"
  16580. abstract="false" native="false" synchronized="false"
  16581. static="false" final="false" visibility="public"
  16582. deprecated="not deprecated">
  16583. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16584. <exception name="IOException" type="java.io.IOException"/>
  16585. </method>
  16586. <method name="getXAttrs" return="java.util.Map"
  16587. abstract="false" native="false" synchronized="false"
  16588. static="false" final="false" visibility="public"
  16589. deprecated="not deprecated">
  16590. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16591. <param name="names" type="java.util.List"/>
  16592. <exception name="IOException" type="java.io.IOException"/>
  16593. </method>
  16594. <method name="listXAttrs" return="java.util.List"
  16595. abstract="false" native="false" synchronized="false"
  16596. static="false" final="false" visibility="public"
  16597. deprecated="not deprecated">
  16598. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16599. <exception name="IOException" type="java.io.IOException"/>
  16600. </method>
  16601. <method name="removeXAttr"
  16602. abstract="false" native="false" synchronized="false"
  16603. static="false" final="false" visibility="public"
  16604. deprecated="not deprecated">
  16605. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16606. <param name="name" type="java.lang.String"/>
  16607. <exception name="IOException" type="java.io.IOException"/>
  16608. </method>
  16609. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  16610. abstract="false" native="false" synchronized="false"
  16611. static="false" final="false" visibility="public"
  16612. deprecated="not deprecated">
  16613. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16614. <param name="snapshotName" type="java.lang.String"/>
  16615. <exception name="IOException" type="java.io.IOException"/>
  16616. </method>
  16617. <method name="renameSnapshot"
  16618. abstract="false" native="false" synchronized="false"
  16619. static="false" final="false" visibility="public"
  16620. deprecated="not deprecated">
  16621. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16622. <param name="snapshotOldName" type="java.lang.String"/>
  16623. <param name="snapshotNewName" type="java.lang.String"/>
  16624. <exception name="IOException" type="java.io.IOException"/>
  16625. </method>
  16626. <method name="deleteSnapshot"
  16627. abstract="false" native="false" synchronized="false"
  16628. static="false" final="false" visibility="public"
  16629. deprecated="not deprecated">
  16630. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16631. <param name="snapshotName" type="java.lang.String"/>
  16632. <exception name="IOException" type="java.io.IOException"/>
  16633. </method>
  16634. <method name="setStoragePolicy"
  16635. abstract="false" native="false" synchronized="false"
  16636. static="false" final="false" visibility="public"
  16637. deprecated="not deprecated">
  16638. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16639. <param name="policyName" type="java.lang.String"/>
  16640. <exception name="IOException" type="java.io.IOException"/>
  16641. </method>
  16642. <method name="unsetStoragePolicy"
  16643. abstract="false" native="false" synchronized="false"
  16644. static="false" final="false" visibility="public"
  16645. deprecated="not deprecated">
  16646. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16647. <exception name="IOException" type="java.io.IOException"/>
  16648. </method>
  16649. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  16650. abstract="false" native="false" synchronized="false"
  16651. static="false" final="false" visibility="public"
  16652. deprecated="not deprecated">
  16653. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16654. <exception name="IOException" type="java.io.IOException"/>
  16655. <doc>
  16656. <![CDATA[Retrieve the storage policy for a given file or directory.
  16657. @param src file or directory path.
  16658. @return storage policy for give file.
  16659. @throws IOException]]>
  16660. </doc>
  16661. </method>
  16662. <doc>
  16663. <![CDATA[ViewFs (extends the AbstractFileSystem interface) implements a client-side
  16664. mount table. The viewFs file system is implemented completely in memory on
  16665. the client side. The client-side mount table allows a client to provide a
  16666. customized view of a file system namespace that is composed from
  16667. one or more individual file systems (a localFs or Hdfs, S3fs, etc).
  16668. For example one could have a mount table that provides links such as
  16669. <ul>
  16670. <li> /user -> hdfs://nnContainingUserDir/user
  16671. <li> /project/foo -> hdfs://nnProject1/projects/foo
  16672. <li> /project/bar -> hdfs://nnProject2/projects/bar
  16673. <li> /tmp -> hdfs://nnTmp/privateTmpForUserXXX
  16674. </ul>
  16675. ViewFs is specified with the following URI: <b>viewfs:///</b>
  16676. <p>
  16677. To use viewfs one would typically set the default file system in the
  16678. config (i.e. fs.defaultFS < = viewfs:///) along with the
  16679. mount table config variables as described below.
  16680. <p>
  16681. <b> ** Config variables to specify the mount table entries ** </b>
  16682. <p>
  16683. The file system is initialized from the standard Hadoop config through
  16684. config variables.
  16685. See {@link FsConstants} for URI and Scheme constants;
  16686. See {@link Constants} for config var constants;
  16687. see {@link ConfigUtil} for convenient lib.
  16688. <p>
  16689. All the mount table config entries for view fs are prefixed by
  16690. <b>fs.viewfs.mounttable.</b>
  16691. For example the above example can be specified with the following
  16692. config variables:
  16693. <ul>
  16694. <li> fs.viewfs.mounttable.default.link./user=
  16695. hdfs://nnContainingUserDir/user
  16696. <li> fs.viewfs.mounttable.default.link./project/foo=
  16697. hdfs://nnProject1/projects/foo
  16698. <li> fs.viewfs.mounttable.default.link./project/bar=
  16699. hdfs://nnProject2/projects/bar
  16700. <li> fs.viewfs.mounttable.default.link./tmp=
  16701. hdfs://nnTmp/privateTmpForUserXXX
  16702. </ul>
  16703. The default mount table (when no authority is specified) is
  16704. from config variables prefixed by <b>fs.viewFs.mounttable.default </b>
  16705. The authority component of a URI can be used to specify a different mount
  16706. table. For example,
  16707. <ul>
  16708. <li> viewfs://sanjayMountable/
  16709. </ul>
  16710. is initialized from fs.viewFs.mounttable.sanjayMountable.* config variables.
  16711. <p>
  16712. <b> **** Merge Mounts **** </b>(NOTE: merge mounts are not implemented yet.)
  16713. <p>
  16714. One can also use "MergeMounts" to merge several directories (this is
  16715. sometimes called union-mounts or junction-mounts in the literature.
  16716. For example of the home directories are stored on say two file systems
  16717. (because they do not fit on one) then one could specify a mount
  16718. entry such as following merges two dirs:
  16719. <ul>
  16720. <li> /user -> hdfs://nnUser1/user,hdfs://nnUser2/user
  16721. </ul>
  16722. Such a mergeLink can be specified with the following config var where ","
  16723. is used as the separator for each of links to be merged:
  16724. <ul>
  16725. <li> fs.viewfs.mounttable.default.linkMerge./user=
  16726. hdfs://nnUser1/user,hdfs://nnUser1/user
  16727. </ul>
  16728. A special case of the merge mount is where mount table's root is merged
  16729. with the root (slash) of another file system:
  16730. <ul>
  16731. <li> fs.viewfs.mounttable.default.linkMergeSlash=hdfs://nn99/
  16732. </ul>
  16733. In this cases the root of the mount table is merged with the root of
  16734. <b>hdfs://nn99/ </b>]]>
  16735. </doc>
  16736. </class>
  16737. <!-- end class org.apache.hadoop.fs.viewfs.ViewFs -->
  16738. </package>
  16739. <package name="org.apache.hadoop.ha">
  16740. <!-- start class org.apache.hadoop.ha.BadFencingConfigurationException -->
  16741. <class name="BadFencingConfigurationException" extends="java.io.IOException"
  16742. abstract="false"
  16743. static="false" final="false" visibility="public"
  16744. deprecated="not deprecated">
  16745. <constructor name="BadFencingConfigurationException" type="java.lang.String"
  16746. static="false" final="false" visibility="public"
  16747. deprecated="not deprecated">
  16748. </constructor>
  16749. <constructor name="BadFencingConfigurationException" type="java.lang.String, java.lang.Throwable"
  16750. static="false" final="false" visibility="public"
  16751. deprecated="not deprecated">
  16752. </constructor>
  16753. <doc>
  16754. <![CDATA[Indicates that the operator has specified an invalid configuration
  16755. for fencing methods.]]>
  16756. </doc>
  16757. </class>
  16758. <!-- end class org.apache.hadoop.ha.BadFencingConfigurationException -->
  16759. <!-- start class org.apache.hadoop.ha.FailoverFailedException -->
  16760. <class name="FailoverFailedException" extends="java.lang.Exception"
  16761. abstract="false"
  16762. static="false" final="false" visibility="public"
  16763. deprecated="not deprecated">
  16764. <constructor name="FailoverFailedException" type="java.lang.String"
  16765. static="false" final="false" visibility="public"
  16766. deprecated="not deprecated">
  16767. </constructor>
  16768. <constructor name="FailoverFailedException" type="java.lang.String, java.lang.Throwable"
  16769. static="false" final="false" visibility="public"
  16770. deprecated="not deprecated">
  16771. </constructor>
  16772. <doc>
  16773. <![CDATA[Exception thrown to indicate service failover has failed.]]>
  16774. </doc>
  16775. </class>
  16776. <!-- end class org.apache.hadoop.ha.FailoverFailedException -->
  16777. <!-- start interface org.apache.hadoop.ha.FenceMethod -->
  16778. <interface name="FenceMethod" abstract="true"
  16779. static="false" final="false" visibility="public"
  16780. deprecated="not deprecated">
  16781. <method name="checkArgs"
  16782. abstract="true" native="false" synchronized="false"
  16783. static="false" final="false" visibility="public"
  16784. deprecated="not deprecated">
  16785. <param name="args" type="java.lang.String"/>
  16786. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  16787. <doc>
  16788. <![CDATA[Verify that the given fencing method's arguments are valid.
  16789. @param args the arguments provided in the configuration. This may
  16790. be null if the operator did not configure any arguments.
  16791. @throws BadFencingConfigurationException if the arguments are invalid]]>
  16792. </doc>
  16793. </method>
  16794. <method name="tryFence" return="boolean"
  16795. abstract="true" native="false" synchronized="false"
  16796. static="false" final="false" visibility="public"
  16797. deprecated="not deprecated">
  16798. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  16799. <param name="args" type="java.lang.String"/>
  16800. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  16801. <doc>
  16802. <![CDATA[Attempt to fence the target node.
  16803. @param target the target of the service to fence
  16804. @param args the configured arguments, which were checked at startup by
  16805. {@link #checkArgs(String)}
  16806. @return true if fencing was successful, false if unsuccessful or
  16807. indeterminate
  16808. @throws BadFencingConfigurationException if the configuration was
  16809. determined to be invalid only at runtime]]>
  16810. </doc>
  16811. </method>
  16812. <doc>
  16813. <![CDATA[A fencing method is a method by which one node can forcibly prevent
  16814. another node from making continued progress. This might be implemented
  16815. by killing a process on the other node, by denying the other node's
  16816. access to shared storage, or by accessing a PDU to cut the other node's
  16817. power.
  16818. <p>
  16819. Since these methods are often vendor- or device-specific, operators
  16820. may implement this interface in order to achieve fencing.
  16821. <p>
  16822. Fencing is configured by the operator as an ordered list of methods to
  16823. attempt. Each method will be tried in turn, and the next in the list
  16824. will only be attempted if the previous one fails. See {@link NodeFencer}
  16825. for more information.
  16826. <p>
  16827. If an implementation also implements {@link Configurable} then its
  16828. <code>setConf</code> method will be called upon instantiation.]]>
  16829. </doc>
  16830. </interface>
  16831. <!-- end interface org.apache.hadoop.ha.FenceMethod -->
  16832. <!-- start interface org.apache.hadoop.ha.HAServiceProtocol -->
  16833. <interface name="HAServiceProtocol" abstract="true"
  16834. static="false" final="false" visibility="public"
  16835. deprecated="not deprecated">
  16836. <method name="monitorHealth"
  16837. abstract="true" native="false" synchronized="false"
  16838. static="false" final="false" visibility="public"
  16839. deprecated="not deprecated">
  16840. <exception name="HealthCheckFailedException" type="org.apache.hadoop.ha.HealthCheckFailedException"/>
  16841. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16842. <exception name="IOException" type="java.io.IOException"/>
  16843. <doc>
  16844. <![CDATA[Monitor the health of service. This periodically called by the HA
  16845. frameworks to monitor the health of the service.
  16846. Service is expected to perform checks to ensure it is functional.
  16847. If the service is not healthy due to failure or partial failure,
  16848. it is expected to throw {@link HealthCheckFailedException}.
  16849. The definition of service not healthy is left to the service.
  16850. Note that when health check of an Active service fails,
  16851. failover to standby may be done.
  16852. @throws HealthCheckFailedException
  16853. if the health check of a service fails.
  16854. @throws AccessControlException
  16855. if access is denied.
  16856. @throws IOException
  16857. if other errors happen]]>
  16858. </doc>
  16859. </method>
  16860. <method name="transitionToActive"
  16861. abstract="true" native="false" synchronized="false"
  16862. static="false" final="false" visibility="public"
  16863. deprecated="not deprecated">
  16864. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16865. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  16866. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16867. <exception name="IOException" type="java.io.IOException"/>
  16868. <doc>
  16869. <![CDATA[Request service to transition to active state. No operation, if the
  16870. service is already in active state.
  16871. @throws ServiceFailedException
  16872. if transition from standby to active fails.
  16873. @throws AccessControlException
  16874. if access is denied.
  16875. @throws IOException
  16876. if other errors happen]]>
  16877. </doc>
  16878. </method>
  16879. <method name="transitionToStandby"
  16880. abstract="true" native="false" synchronized="false"
  16881. static="false" final="false" visibility="public"
  16882. deprecated="not deprecated">
  16883. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16884. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  16885. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16886. <exception name="IOException" type="java.io.IOException"/>
  16887. <doc>
  16888. <![CDATA[Request service to transition to standby state. No operation, if the
  16889. service is already in standby state.
  16890. @throws ServiceFailedException
  16891. if transition from active to standby fails.
  16892. @throws AccessControlException
  16893. if access is denied.
  16894. @throws IOException
  16895. if other errors happen]]>
  16896. </doc>
  16897. </method>
  16898. <method name="getServiceStatus" return="org.apache.hadoop.ha.HAServiceStatus"
  16899. abstract="true" native="false" synchronized="false"
  16900. static="false" final="false" visibility="public"
  16901. deprecated="not deprecated">
  16902. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16903. <exception name="IOException" type="java.io.IOException"/>
  16904. <doc>
  16905. <![CDATA[Return the current status of the service. The status indicates
  16906. the current <em>state</em> (e.g ACTIVE/STANDBY) as well as
  16907. some additional information.
  16908. @throws AccessControlException
  16909. if access is denied.
  16910. @throws IOException
  16911. if other errors happen
  16912. @see HAServiceStatus]]>
  16913. </doc>
  16914. </method>
  16915. <field name="versionID" type="long"
  16916. transient="false" volatile="false"
  16917. static="true" final="true" visibility="public"
  16918. deprecated="not deprecated">
  16919. <doc>
  16920. <![CDATA[Initial version of the protocol]]>
  16921. </doc>
  16922. </field>
  16923. <doc>
  16924. <![CDATA[Protocol interface that provides High Availability related primitives to
  16925. monitor and fail-over the service.
  16926. This interface could be used by HA frameworks to manage the service.]]>
  16927. </doc>
  16928. </interface>
  16929. <!-- end interface org.apache.hadoop.ha.HAServiceProtocol -->
  16930. <!-- start class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  16931. <class name="HAServiceProtocolHelper" extends="java.lang.Object"
  16932. abstract="false"
  16933. static="false" final="false" visibility="public"
  16934. deprecated="not deprecated">
  16935. <constructor name="HAServiceProtocolHelper"
  16936. static="false" final="false" visibility="public"
  16937. deprecated="not deprecated">
  16938. </constructor>
  16939. <method name="monitorHealth"
  16940. abstract="false" native="false" synchronized="false"
  16941. static="true" final="false" visibility="public"
  16942. deprecated="not deprecated">
  16943. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  16944. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16945. <exception name="IOException" type="java.io.IOException"/>
  16946. </method>
  16947. <method name="transitionToActive"
  16948. abstract="false" native="false" synchronized="false"
  16949. static="true" final="false" visibility="public"
  16950. deprecated="not deprecated">
  16951. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  16952. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16953. <exception name="IOException" type="java.io.IOException"/>
  16954. </method>
  16955. <method name="transitionToStandby"
  16956. abstract="false" native="false" synchronized="false"
  16957. static="true" final="false" visibility="public"
  16958. deprecated="not deprecated">
  16959. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  16960. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16961. <exception name="IOException" type="java.io.IOException"/>
  16962. </method>
  16963. <doc>
  16964. <![CDATA[Helper for making {@link HAServiceProtocol} RPC calls. This helper
  16965. unwraps the {@link RemoteException} to specific exceptions.]]>
  16966. </doc>
  16967. </class>
  16968. <!-- end class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  16969. <!-- start class org.apache.hadoop.ha.HAServiceTarget -->
  16970. <class name="HAServiceTarget" extends="java.lang.Object"
  16971. abstract="true"
  16972. static="false" final="false" visibility="public"
  16973. deprecated="not deprecated">
  16974. <constructor name="HAServiceTarget"
  16975. static="false" final="false" visibility="public"
  16976. deprecated="not deprecated">
  16977. </constructor>
  16978. <method name="getAddress" return="java.net.InetSocketAddress"
  16979. abstract="true" native="false" synchronized="false"
  16980. static="false" final="false" visibility="public"
  16981. deprecated="not deprecated">
  16982. <doc>
  16983. <![CDATA[@return the IPC address of the target node.]]>
  16984. </doc>
  16985. </method>
  16986. <method name="getHealthMonitorAddress" return="java.net.InetSocketAddress"
  16987. abstract="false" native="false" synchronized="false"
  16988. static="false" final="false" visibility="public"
  16989. deprecated="not deprecated">
  16990. <doc>
  16991. <![CDATA[Returns an optional separate RPC server address for health checks at the
  16992. target node. If defined, then this address is used by the health monitor
  16993. for the {@link HAServiceProtocol#monitorHealth()} and
  16994. {@link HAServiceProtocol#getServiceStatus()} calls. This can be useful for
  16995. separating out these calls onto separate RPC handlers to protect against
  16996. resource exhaustion in the main RPC handler pool. If null (which is the
  16997. default implementation), then all RPC calls go to the address defined by
  16998. {@link #getAddress()}.
  16999. @return IPC address of the lifeline RPC server on the target node, or null
  17000. if no lifeline RPC server is used]]>
  17001. </doc>
  17002. </method>
  17003. <method name="getZKFCAddress" return="java.net.InetSocketAddress"
  17004. abstract="true" native="false" synchronized="false"
  17005. static="false" final="false" visibility="public"
  17006. deprecated="not deprecated">
  17007. <doc>
  17008. <![CDATA[@return the IPC address of the ZKFC on the target node]]>
  17009. </doc>
  17010. </method>
  17011. <method name="getFencer" return="org.apache.hadoop.ha.NodeFencer"
  17012. abstract="true" native="false" synchronized="false"
  17013. static="false" final="false" visibility="public"
  17014. deprecated="not deprecated">
  17015. <doc>
  17016. <![CDATA[@return a Fencer implementation configured for this target node]]>
  17017. </doc>
  17018. </method>
  17019. <method name="checkFencingConfigured"
  17020. abstract="true" native="false" synchronized="false"
  17021. static="false" final="false" visibility="public"
  17022. deprecated="not deprecated">
  17023. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  17024. <doc>
  17025. <![CDATA[@throws BadFencingConfigurationException if the fencing configuration
  17026. appears to be invalid. This is divorced from the above
  17027. {@link #getFencer()} method so that the configuration can be checked
  17028. during the pre-flight phase of failover.]]>
  17029. </doc>
  17030. </method>
  17031. <method name="getProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  17032. abstract="false" native="false" synchronized="false"
  17033. static="false" final="false" visibility="public"
  17034. deprecated="not deprecated">
  17035. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17036. <param name="timeoutMs" type="int"/>
  17037. <exception name="IOException" type="java.io.IOException"/>
  17038. <doc>
  17039. <![CDATA[@return a proxy to connect to the target HA Service.]]>
  17040. </doc>
  17041. </method>
  17042. <method name="getHealthMonitorProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  17043. abstract="false" native="false" synchronized="false"
  17044. static="false" final="false" visibility="public"
  17045. deprecated="not deprecated">
  17046. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17047. <param name="timeoutMs" type="int"/>
  17048. <exception name="IOException" type="java.io.IOException"/>
  17049. <doc>
  17050. <![CDATA[Returns a proxy to connect to the target HA service for health monitoring.
  17051. If {@link #getHealthMonitorAddress()} is implemented to return a non-null
  17052. address, then this proxy will connect to that address. Otherwise, the
  17053. returned proxy defaults to using {@link #getAddress()}, which means this
  17054. method's behavior is identical to {@link #getProxy(Configuration, int)}.
  17055. @param conf Configuration
  17056. @param timeoutMs timeout in milliseconds
  17057. @return a proxy to connect to the target HA service for health monitoring
  17058. @throws IOException if there is an error]]>
  17059. </doc>
  17060. </method>
  17061. <method name="getZKFCProxy" return="org.apache.hadoop.ha.ZKFCProtocol"
  17062. abstract="false" native="false" synchronized="false"
  17063. static="false" final="false" visibility="public"
  17064. deprecated="not deprecated">
  17065. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17066. <param name="timeoutMs" type="int"/>
  17067. <exception name="IOException" type="java.io.IOException"/>
  17068. <doc>
  17069. <![CDATA[@return a proxy to the ZKFC which is associated with this HA service.]]>
  17070. </doc>
  17071. </method>
  17072. <method name="getFencingParameters" return="java.util.Map"
  17073. abstract="false" native="false" synchronized="false"
  17074. static="false" final="true" visibility="public"
  17075. deprecated="not deprecated">
  17076. </method>
  17077. <method name="addFencingParameters"
  17078. abstract="false" native="false" synchronized="false"
  17079. static="false" final="false" visibility="protected"
  17080. deprecated="not deprecated">
  17081. <param name="ret" type="java.util.Map"/>
  17082. <doc>
  17083. <![CDATA[Hook to allow subclasses to add any parameters they would like to
  17084. expose to fencing implementations/scripts. Fencing methods are free
  17085. to use this map as they see fit -- notably, the shell script
  17086. implementation takes each entry, prepends 'target_', substitutes
  17087. '_' for '.', and adds it to the environment of the script.
  17088. Subclass implementations should be sure to delegate to the superclass
  17089. implementation as well as adding their own keys.
  17090. @param ret map which can be mutated to pass parameters to the fencer]]>
  17091. </doc>
  17092. </method>
  17093. <method name="isAutoFailoverEnabled" return="boolean"
  17094. abstract="false" native="false" synchronized="false"
  17095. static="false" final="false" visibility="public"
  17096. deprecated="not deprecated">
  17097. <doc>
  17098. <![CDATA[@return true if auto failover should be considered enabled]]>
  17099. </doc>
  17100. </method>
  17101. <doc>
  17102. <![CDATA[Represents a target of the client side HA administration commands.]]>
  17103. </doc>
  17104. </class>
  17105. <!-- end class org.apache.hadoop.ha.HAServiceTarget -->
  17106. <!-- start class org.apache.hadoop.ha.HealthCheckFailedException -->
  17107. <class name="HealthCheckFailedException" extends="java.io.IOException"
  17108. abstract="false"
  17109. static="false" final="false" visibility="public"
  17110. deprecated="not deprecated">
  17111. <constructor name="HealthCheckFailedException" type="java.lang.String"
  17112. static="false" final="false" visibility="public"
  17113. deprecated="not deprecated">
  17114. </constructor>
  17115. <constructor name="HealthCheckFailedException" type="java.lang.String, java.lang.Throwable"
  17116. static="false" final="false" visibility="public"
  17117. deprecated="not deprecated">
  17118. </constructor>
  17119. <doc>
  17120. <![CDATA[Exception thrown to indicate that health check of a service failed.]]>
  17121. </doc>
  17122. </class>
  17123. <!-- end class org.apache.hadoop.ha.HealthCheckFailedException -->
  17124. <!-- start class org.apache.hadoop.ha.ServiceFailedException -->
  17125. <class name="ServiceFailedException" extends="java.io.IOException"
  17126. abstract="false"
  17127. static="false" final="false" visibility="public"
  17128. deprecated="not deprecated">
  17129. <constructor name="ServiceFailedException" type="java.lang.String"
  17130. static="false" final="false" visibility="public"
  17131. deprecated="not deprecated">
  17132. </constructor>
  17133. <constructor name="ServiceFailedException" type="java.lang.String, java.lang.Throwable"
  17134. static="false" final="false" visibility="public"
  17135. deprecated="not deprecated">
  17136. </constructor>
  17137. <doc>
  17138. <![CDATA[Exception thrown to indicate that an operation performed
  17139. to modify the state of a service or application failed.]]>
  17140. </doc>
  17141. </class>
  17142. <!-- end class org.apache.hadoop.ha.ServiceFailedException -->
  17143. </package>
  17144. <package name="org.apache.hadoop.ha.protocolPB">
  17145. <!-- start interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  17146. <interface name="HAServiceProtocolPB" abstract="true"
  17147. static="false" final="false" visibility="public"
  17148. deprecated="not deprecated">
  17149. <implements name="org.apache.hadoop.ha.proto.HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface"/>
  17150. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  17151. </interface>
  17152. <!-- end interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  17153. <!-- start interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  17154. <interface name="ZKFCProtocolPB" abstract="true"
  17155. static="false" final="false" visibility="public"
  17156. deprecated="not deprecated">
  17157. <implements name="org.apache.hadoop.ha.proto.ZKFCProtocolProtos.ZKFCProtocolService.BlockingInterface"/>
  17158. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  17159. </interface>
  17160. <!-- end interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  17161. </package>
  17162. <package name="org.apache.hadoop.http.lib">
  17163. <doc>
  17164. <![CDATA[This package provides user-selectable (via configuration) classes that add
  17165. functionality to the web UI. They are configured as a list of classes in the
  17166. configuration parameter <b>hadoop.http.filter.initializers</b>.
  17167. <ul>
  17168. <li> <b>StaticUserWebFilter</b> - An authorization plugin that makes all
  17169. users a static configured user.
  17170. </ul>]]>
  17171. </doc>
  17172. </package>
  17173. <package name="org.apache.hadoop.io">
  17174. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  17175. <class name="AbstractMapWritable" extends="java.lang.Object"
  17176. abstract="true"
  17177. static="false" final="false" visibility="public"
  17178. deprecated="not deprecated">
  17179. <implements name="org.apache.hadoop.io.Writable"/>
  17180. <implements name="org.apache.hadoop.conf.Configurable"/>
  17181. <constructor name="AbstractMapWritable"
  17182. static="false" final="false" visibility="protected"
  17183. deprecated="not deprecated">
  17184. <doc>
  17185. <![CDATA[constructor.]]>
  17186. </doc>
  17187. </constructor>
  17188. <method name="addToMap"
  17189. abstract="false" native="false" synchronized="true"
  17190. static="false" final="false" visibility="protected"
  17191. deprecated="not deprecated">
  17192. <param name="clazz" type="java.lang.Class"/>
  17193. <doc>
  17194. <![CDATA[Add a Class to the maps if it is not already present.]]>
  17195. </doc>
  17196. </method>
  17197. <method name="getClass" return="java.lang.Class"
  17198. abstract="false" native="false" synchronized="false"
  17199. static="false" final="false" visibility="protected"
  17200. deprecated="not deprecated">
  17201. <param name="id" type="byte"/>
  17202. <doc>
  17203. <![CDATA[@return the Class class for the specified id]]>
  17204. </doc>
  17205. </method>
  17206. <method name="getId" return="byte"
  17207. abstract="false" native="false" synchronized="false"
  17208. static="false" final="false" visibility="protected"
  17209. deprecated="not deprecated">
  17210. <param name="clazz" type="java.lang.Class"/>
  17211. <doc>
  17212. <![CDATA[@return the id for the specified Class]]>
  17213. </doc>
  17214. </method>
  17215. <method name="copy"
  17216. abstract="false" native="false" synchronized="true"
  17217. static="false" final="false" visibility="protected"
  17218. deprecated="not deprecated">
  17219. <param name="other" type="org.apache.hadoop.io.Writable"/>
  17220. <doc>
  17221. <![CDATA[Used by child copy constructors.]]>
  17222. </doc>
  17223. </method>
  17224. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17225. abstract="false" native="false" synchronized="false"
  17226. static="false" final="false" visibility="public"
  17227. deprecated="not deprecated">
  17228. <doc>
  17229. <![CDATA[@return the conf]]>
  17230. </doc>
  17231. </method>
  17232. <method name="setConf"
  17233. abstract="false" native="false" synchronized="false"
  17234. static="false" final="false" visibility="public"
  17235. deprecated="not deprecated">
  17236. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17237. <doc>
  17238. <![CDATA[@param conf the conf to set]]>
  17239. </doc>
  17240. </method>
  17241. <method name="write"
  17242. abstract="false" native="false" synchronized="false"
  17243. static="false" final="false" visibility="public"
  17244. deprecated="not deprecated">
  17245. <param name="out" type="java.io.DataOutput"/>
  17246. <exception name="IOException" type="java.io.IOException"/>
  17247. </method>
  17248. <method name="readFields"
  17249. abstract="false" native="false" synchronized="false"
  17250. static="false" final="false" visibility="public"
  17251. deprecated="not deprecated">
  17252. <param name="in" type="java.io.DataInput"/>
  17253. <exception name="IOException" type="java.io.IOException"/>
  17254. </method>
  17255. <doc>
  17256. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  17257. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  17258. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  17259. maps travel with the class instead of being static.
  17260. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  17261. in any specific map instance.]]>
  17262. </doc>
  17263. </class>
  17264. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  17265. <!-- start class org.apache.hadoop.io.ArrayFile -->
  17266. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  17267. abstract="false"
  17268. static="false" final="false" visibility="public"
  17269. deprecated="not deprecated">
  17270. <constructor name="ArrayFile"
  17271. static="false" final="false" visibility="protected"
  17272. deprecated="not deprecated">
  17273. </constructor>
  17274. <doc>
  17275. <![CDATA[A dense file-based mapping from integers to values.]]>
  17276. </doc>
  17277. </class>
  17278. <!-- end class org.apache.hadoop.io.ArrayFile -->
  17279. <!-- start class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  17280. <class name="ArrayPrimitiveWritable" extends="java.lang.Object"
  17281. abstract="false"
  17282. static="false" final="false" visibility="public"
  17283. deprecated="not deprecated">
  17284. <implements name="org.apache.hadoop.io.Writable"/>
  17285. <constructor name="ArrayPrimitiveWritable"
  17286. static="false" final="false" visibility="public"
  17287. deprecated="not deprecated">
  17288. <doc>
  17289. <![CDATA[Construct an empty instance, for use during Writable read]]>
  17290. </doc>
  17291. </constructor>
  17292. <constructor name="ArrayPrimitiveWritable" type="java.lang.Class"
  17293. static="false" final="false" visibility="public"
  17294. deprecated="not deprecated">
  17295. <doc>
  17296. <![CDATA[Construct an instance of known type but no value yet
  17297. for use with type-specific wrapper classes]]>
  17298. </doc>
  17299. </constructor>
  17300. <constructor name="ArrayPrimitiveWritable" type="java.lang.Object"
  17301. static="false" final="false" visibility="public"
  17302. deprecated="not deprecated">
  17303. <doc>
  17304. <![CDATA[Wrap an existing array of primitives
  17305. @param value - array of primitives]]>
  17306. </doc>
  17307. </constructor>
  17308. <method name="get" return="java.lang.Object"
  17309. abstract="false" native="false" synchronized="false"
  17310. static="false" final="false" visibility="public"
  17311. deprecated="not deprecated">
  17312. <doc>
  17313. <![CDATA[Get the original array.
  17314. Client must cast it back to type componentType[]
  17315. (or may use type-specific wrapper classes).
  17316. @return - original array as Object]]>
  17317. </doc>
  17318. </method>
  17319. <method name="getComponentType" return="java.lang.Class"
  17320. abstract="false" native="false" synchronized="false"
  17321. static="false" final="false" visibility="public"
  17322. deprecated="not deprecated">
  17323. </method>
  17324. <method name="getDeclaredComponentType" return="java.lang.Class"
  17325. abstract="false" native="false" synchronized="false"
  17326. static="false" final="false" visibility="public"
  17327. deprecated="not deprecated">
  17328. </method>
  17329. <method name="isDeclaredComponentType" return="boolean"
  17330. abstract="false" native="false" synchronized="false"
  17331. static="false" final="false" visibility="public"
  17332. deprecated="not deprecated">
  17333. <param name="componentType" type="java.lang.Class"/>
  17334. </method>
  17335. <method name="set"
  17336. abstract="false" native="false" synchronized="false"
  17337. static="false" final="false" visibility="public"
  17338. deprecated="not deprecated">
  17339. <param name="value" type="java.lang.Object"/>
  17340. </method>
  17341. <method name="write"
  17342. abstract="false" native="false" synchronized="false"
  17343. static="false" final="false" visibility="public"
  17344. deprecated="not deprecated">
  17345. <param name="out" type="java.io.DataOutput"/>
  17346. <exception name="IOException" type="java.io.IOException"/>
  17347. </method>
  17348. <method name="readFields"
  17349. abstract="false" native="false" synchronized="false"
  17350. static="false" final="false" visibility="public"
  17351. deprecated="not deprecated">
  17352. <param name="in" type="java.io.DataInput"/>
  17353. <exception name="IOException" type="java.io.IOException"/>
  17354. </method>
  17355. <doc>
  17356. <![CDATA[This is a wrapper class. It wraps a Writable implementation around
  17357. an array of primitives (e.g., int[], long[], etc.), with optimized
  17358. wire format, and without creating new objects per element.
  17359. This is a wrapper class only; it does not make a copy of the
  17360. underlying array.]]>
  17361. </doc>
  17362. </class>
  17363. <!-- end class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  17364. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  17365. <class name="ArrayWritable" extends="java.lang.Object"
  17366. abstract="false"
  17367. static="false" final="false" visibility="public"
  17368. deprecated="not deprecated">
  17369. <implements name="org.apache.hadoop.io.Writable"/>
  17370. <constructor name="ArrayWritable" type="java.lang.Class"
  17371. static="false" final="false" visibility="public"
  17372. deprecated="not deprecated">
  17373. </constructor>
  17374. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  17375. static="false" final="false" visibility="public"
  17376. deprecated="not deprecated">
  17377. </constructor>
  17378. <constructor name="ArrayWritable" type="java.lang.String[]"
  17379. static="false" final="false" visibility="public"
  17380. deprecated="not deprecated">
  17381. </constructor>
  17382. <method name="getValueClass" return="java.lang.Class"
  17383. abstract="false" native="false" synchronized="false"
  17384. static="false" final="false" visibility="public"
  17385. deprecated="not deprecated">
  17386. </method>
  17387. <method name="toStrings" return="java.lang.String[]"
  17388. abstract="false" native="false" synchronized="false"
  17389. static="false" final="false" visibility="public"
  17390. deprecated="not deprecated">
  17391. </method>
  17392. <method name="toArray" return="java.lang.Object"
  17393. abstract="false" native="false" synchronized="false"
  17394. static="false" final="false" visibility="public"
  17395. deprecated="not deprecated">
  17396. </method>
  17397. <method name="set"
  17398. abstract="false" native="false" synchronized="false"
  17399. static="false" final="false" visibility="public"
  17400. deprecated="not deprecated">
  17401. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  17402. </method>
  17403. <method name="get" return="org.apache.hadoop.io.Writable[]"
  17404. abstract="false" native="false" synchronized="false"
  17405. static="false" final="false" visibility="public"
  17406. deprecated="not deprecated">
  17407. </method>
  17408. <method name="readFields"
  17409. abstract="false" native="false" synchronized="false"
  17410. static="false" final="false" visibility="public"
  17411. deprecated="not deprecated">
  17412. <param name="in" type="java.io.DataInput"/>
  17413. <exception name="IOException" type="java.io.IOException"/>
  17414. </method>
  17415. <method name="write"
  17416. abstract="false" native="false" synchronized="false"
  17417. static="false" final="false" visibility="public"
  17418. deprecated="not deprecated">
  17419. <param name="out" type="java.io.DataOutput"/>
  17420. <exception name="IOException" type="java.io.IOException"/>
  17421. </method>
  17422. <doc>
  17423. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  17424. writable must all be instances of the same class. If this writable will be
  17425. the input for a Reducer, you will need to create a subclass that sets the
  17426. value to be of the proper type.
  17427. For example:
  17428. <code>
  17429. public class IntArrayWritable extends ArrayWritable {
  17430. public IntArrayWritable() {
  17431. super(IntWritable.class);
  17432. }
  17433. }
  17434. </code>]]>
  17435. </doc>
  17436. </class>
  17437. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  17438. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  17439. <class name="BinaryComparable" extends="java.lang.Object"
  17440. abstract="true"
  17441. static="false" final="false" visibility="public"
  17442. deprecated="not deprecated">
  17443. <implements name="java.lang.Comparable"/>
  17444. <constructor name="BinaryComparable"
  17445. static="false" final="false" visibility="public"
  17446. deprecated="not deprecated">
  17447. </constructor>
  17448. <method name="getLength" return="int"
  17449. abstract="true" native="false" synchronized="false"
  17450. static="false" final="false" visibility="public"
  17451. deprecated="not deprecated">
  17452. <doc>
  17453. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  17454. </doc>
  17455. </method>
  17456. <method name="getBytes" return="byte[]"
  17457. abstract="true" native="false" synchronized="false"
  17458. static="false" final="false" visibility="public"
  17459. deprecated="not deprecated">
  17460. <doc>
  17461. <![CDATA[Return representative byte array for this instance.]]>
  17462. </doc>
  17463. </method>
  17464. <method name="compareTo" return="int"
  17465. abstract="false" native="false" synchronized="false"
  17466. static="false" final="false" visibility="public"
  17467. deprecated="not deprecated">
  17468. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  17469. <doc>
  17470. <![CDATA[Compare bytes from {#getBytes()}.
  17471. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  17472. </doc>
  17473. </method>
  17474. <method name="compareTo" return="int"
  17475. abstract="false" native="false" synchronized="false"
  17476. static="false" final="false" visibility="public"
  17477. deprecated="not deprecated">
  17478. <param name="other" type="byte[]"/>
  17479. <param name="off" type="int"/>
  17480. <param name="len" type="int"/>
  17481. <doc>
  17482. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  17483. </doc>
  17484. </method>
  17485. <method name="equals" return="boolean"
  17486. abstract="false" native="false" synchronized="false"
  17487. static="false" final="false" visibility="public"
  17488. deprecated="not deprecated">
  17489. <param name="other" type="java.lang.Object"/>
  17490. <doc>
  17491. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  17492. </doc>
  17493. </method>
  17494. <method name="hashCode" return="int"
  17495. abstract="false" native="false" synchronized="false"
  17496. static="false" final="false" visibility="public"
  17497. deprecated="not deprecated">
  17498. <doc>
  17499. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  17500. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  17501. </doc>
  17502. </method>
  17503. <doc>
  17504. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  17505. types supporting ordering/permutation by a representative set of bytes.]]>
  17506. </doc>
  17507. </class>
  17508. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  17509. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  17510. <class name="BloomMapFile" extends="java.lang.Object"
  17511. abstract="false"
  17512. static="false" final="false" visibility="public"
  17513. deprecated="not deprecated">
  17514. <constructor name="BloomMapFile"
  17515. static="false" final="false" visibility="public"
  17516. deprecated="not deprecated">
  17517. </constructor>
  17518. <method name="delete"
  17519. abstract="false" native="false" synchronized="false"
  17520. static="true" final="false" visibility="public"
  17521. deprecated="not deprecated">
  17522. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17523. <param name="name" type="java.lang.String"/>
  17524. <exception name="IOException" type="java.io.IOException"/>
  17525. </method>
  17526. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  17527. transient="false" volatile="false"
  17528. static="true" final="true" visibility="public"
  17529. deprecated="not deprecated">
  17530. </field>
  17531. <field name="HASH_COUNT" type="int"
  17532. transient="false" volatile="false"
  17533. static="true" final="true" visibility="public"
  17534. deprecated="not deprecated">
  17535. </field>
  17536. <doc>
  17537. <![CDATA[This class extends {@link MapFile} and provides very much the same
  17538. functionality. However, it uses dynamic Bloom filters to provide
  17539. quick membership test for keys, and it offers a fast version of
  17540. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  17541. case of sparsely populated MapFile-s.]]>
  17542. </doc>
  17543. </class>
  17544. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  17545. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  17546. <class name="BooleanWritable" extends="java.lang.Object"
  17547. abstract="false"
  17548. static="false" final="false" visibility="public"
  17549. deprecated="not deprecated">
  17550. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17551. <constructor name="BooleanWritable"
  17552. static="false" final="false" visibility="public"
  17553. deprecated="not deprecated">
  17554. </constructor>
  17555. <constructor name="BooleanWritable" type="boolean"
  17556. static="false" final="false" visibility="public"
  17557. deprecated="not deprecated">
  17558. </constructor>
  17559. <method name="set"
  17560. abstract="false" native="false" synchronized="false"
  17561. static="false" final="false" visibility="public"
  17562. deprecated="not deprecated">
  17563. <param name="value" type="boolean"/>
  17564. <doc>
  17565. <![CDATA[Set the value of the BooleanWritable]]>
  17566. </doc>
  17567. </method>
  17568. <method name="get" return="boolean"
  17569. abstract="false" native="false" synchronized="false"
  17570. static="false" final="false" visibility="public"
  17571. deprecated="not deprecated">
  17572. <doc>
  17573. <![CDATA[Returns the value of the BooleanWritable]]>
  17574. </doc>
  17575. </method>
  17576. <method name="readFields"
  17577. abstract="false" native="false" synchronized="false"
  17578. static="false" final="false" visibility="public"
  17579. deprecated="not deprecated">
  17580. <param name="in" type="java.io.DataInput"/>
  17581. <exception name="IOException" type="java.io.IOException"/>
  17582. </method>
  17583. <method name="write"
  17584. abstract="false" native="false" synchronized="false"
  17585. static="false" final="false" visibility="public"
  17586. deprecated="not deprecated">
  17587. <param name="out" type="java.io.DataOutput"/>
  17588. <exception name="IOException" type="java.io.IOException"/>
  17589. </method>
  17590. <method name="equals" return="boolean"
  17591. abstract="false" native="false" synchronized="false"
  17592. static="false" final="false" visibility="public"
  17593. deprecated="not deprecated">
  17594. <param name="o" type="java.lang.Object"/>
  17595. </method>
  17596. <method name="hashCode" return="int"
  17597. abstract="false" native="false" synchronized="false"
  17598. static="false" final="false" visibility="public"
  17599. deprecated="not deprecated">
  17600. </method>
  17601. <method name="compareTo" return="int"
  17602. abstract="false" native="false" synchronized="false"
  17603. static="false" final="false" visibility="public"
  17604. deprecated="not deprecated">
  17605. <param name="o" type="org.apache.hadoop.io.BooleanWritable"/>
  17606. </method>
  17607. <method name="toString" return="java.lang.String"
  17608. abstract="false" native="false" synchronized="false"
  17609. static="false" final="false" visibility="public"
  17610. deprecated="not deprecated">
  17611. </method>
  17612. <doc>
  17613. <![CDATA[A WritableComparable for booleans.]]>
  17614. </doc>
  17615. </class>
  17616. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  17617. <!-- start interface org.apache.hadoop.io.ByteBufferPool -->
  17618. <interface name="ByteBufferPool" abstract="true"
  17619. static="false" final="false" visibility="public"
  17620. deprecated="not deprecated">
  17621. <method name="getBuffer" return="java.nio.ByteBuffer"
  17622. abstract="true" native="false" synchronized="false"
  17623. static="false" final="false" visibility="public"
  17624. deprecated="not deprecated">
  17625. <param name="direct" type="boolean"/>
  17626. <param name="length" type="int"/>
  17627. <doc>
  17628. <![CDATA[Get a new direct ByteBuffer. The pool can provide this from
  17629. removing a buffer from its internal cache, or by allocating a
  17630. new buffer.
  17631. @param direct Whether the buffer should be direct.
  17632. @param length The minimum length the buffer will have.
  17633. @return A new ByteBuffer. This ByteBuffer must be direct.
  17634. Its capacity can be less than what was requested, but
  17635. must be at least 1 byte.]]>
  17636. </doc>
  17637. </method>
  17638. <method name="putBuffer"
  17639. abstract="true" native="false" synchronized="false"
  17640. static="false" final="false" visibility="public"
  17641. deprecated="not deprecated">
  17642. <param name="buffer" type="java.nio.ByteBuffer"/>
  17643. <doc>
  17644. <![CDATA[Release a buffer back to the pool.
  17645. The pool may choose to put this buffer into its cache.
  17646. @param buffer a direct bytebuffer]]>
  17647. </doc>
  17648. </method>
  17649. </interface>
  17650. <!-- end interface org.apache.hadoop.io.ByteBufferPool -->
  17651. <!-- start class org.apache.hadoop.io.BytesWritable -->
  17652. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  17653. abstract="false"
  17654. static="false" final="false" visibility="public"
  17655. deprecated="not deprecated">
  17656. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17657. <constructor name="BytesWritable"
  17658. static="false" final="false" visibility="public"
  17659. deprecated="not deprecated">
  17660. <doc>
  17661. <![CDATA[Create a zero-size sequence.]]>
  17662. </doc>
  17663. </constructor>
  17664. <constructor name="BytesWritable" type="byte[]"
  17665. static="false" final="false" visibility="public"
  17666. deprecated="not deprecated">
  17667. <doc>
  17668. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  17669. @param bytes This array becomes the backing storage for the object.]]>
  17670. </doc>
  17671. </constructor>
  17672. <constructor name="BytesWritable" type="byte[], int"
  17673. static="false" final="false" visibility="public"
  17674. deprecated="not deprecated">
  17675. <doc>
  17676. <![CDATA[Create a BytesWritable using the byte array as the initial value
  17677. and length as the length. Use this constructor if the array is larger
  17678. than the value it represents.
  17679. @param bytes This array becomes the backing storage for the object.
  17680. @param length The number of bytes to use from array.]]>
  17681. </doc>
  17682. </constructor>
  17683. <method name="copyBytes" return="byte[]"
  17684. abstract="false" native="false" synchronized="false"
  17685. static="false" final="false" visibility="public"
  17686. deprecated="not deprecated">
  17687. <doc>
  17688. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  17689. See {@link #getBytes()} for faster access to the underlying array.]]>
  17690. </doc>
  17691. </method>
  17692. <method name="getBytes" return="byte[]"
  17693. abstract="false" native="false" synchronized="false"
  17694. static="false" final="false" visibility="public"
  17695. deprecated="not deprecated">
  17696. <doc>
  17697. <![CDATA[Get the data backing the BytesWritable. Please use {@link #copyBytes()}
  17698. if you need the returned array to be precisely the length of the data.
  17699. @return The data is only valid between 0 and getLength() - 1.]]>
  17700. </doc>
  17701. </method>
  17702. <method name="get" return="byte[]"
  17703. abstract="false" native="false" synchronized="false"
  17704. static="false" final="false" visibility="public"
  17705. deprecated="Use {@link #getBytes()} instead.">
  17706. <doc>
  17707. <![CDATA[Get the data from the BytesWritable.
  17708. @deprecated Use {@link #getBytes()} instead.]]>
  17709. </doc>
  17710. </method>
  17711. <method name="getLength" return="int"
  17712. abstract="false" native="false" synchronized="false"
  17713. static="false" final="false" visibility="public"
  17714. deprecated="not deprecated">
  17715. <doc>
  17716. <![CDATA[Get the current size of the buffer.]]>
  17717. </doc>
  17718. </method>
  17719. <method name="getSize" return="int"
  17720. abstract="false" native="false" synchronized="false"
  17721. static="false" final="false" visibility="public"
  17722. deprecated="Use {@link #getLength()} instead.">
  17723. <doc>
  17724. <![CDATA[Get the current size of the buffer.
  17725. @deprecated Use {@link #getLength()} instead.]]>
  17726. </doc>
  17727. </method>
  17728. <method name="setSize"
  17729. abstract="false" native="false" synchronized="false"
  17730. static="false" final="false" visibility="public"
  17731. deprecated="not deprecated">
  17732. <param name="size" type="int"/>
  17733. <doc>
  17734. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  17735. and any new values are undefined. The capacity is changed if it is
  17736. necessary.
  17737. @param size The new number of bytes]]>
  17738. </doc>
  17739. </method>
  17740. <method name="getCapacity" return="int"
  17741. abstract="false" native="false" synchronized="false"
  17742. static="false" final="false" visibility="public"
  17743. deprecated="not deprecated">
  17744. <doc>
  17745. <![CDATA[Get the capacity, which is the maximum size that could handled without
  17746. resizing the backing storage.
  17747. @return The number of bytes]]>
  17748. </doc>
  17749. </method>
  17750. <method name="setCapacity"
  17751. abstract="false" native="false" synchronized="false"
  17752. static="false" final="false" visibility="public"
  17753. deprecated="not deprecated">
  17754. <param name="new_cap" type="int"/>
  17755. <doc>
  17756. <![CDATA[Change the capacity of the backing storage.
  17757. The data is preserved.
  17758. @param new_cap The new capacity in bytes.]]>
  17759. </doc>
  17760. </method>
  17761. <method name="set"
  17762. abstract="false" native="false" synchronized="false"
  17763. static="false" final="false" visibility="public"
  17764. deprecated="not deprecated">
  17765. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  17766. <doc>
  17767. <![CDATA[Set the BytesWritable to the contents of the given newData.
  17768. @param newData the value to set this BytesWritable to.]]>
  17769. </doc>
  17770. </method>
  17771. <method name="set"
  17772. abstract="false" native="false" synchronized="false"
  17773. static="false" final="false" visibility="public"
  17774. deprecated="not deprecated">
  17775. <param name="newData" type="byte[]"/>
  17776. <param name="offset" type="int"/>
  17777. <param name="length" type="int"/>
  17778. <doc>
  17779. <![CDATA[Set the value to a copy of the given byte range
  17780. @param newData the new values to copy in
  17781. @param offset the offset in newData to start at
  17782. @param length the number of bytes to copy]]>
  17783. </doc>
  17784. </method>
  17785. <method name="readFields"
  17786. abstract="false" native="false" synchronized="false"
  17787. static="false" final="false" visibility="public"
  17788. deprecated="not deprecated">
  17789. <param name="in" type="java.io.DataInput"/>
  17790. <exception name="IOException" type="java.io.IOException"/>
  17791. </method>
  17792. <method name="write"
  17793. abstract="false" native="false" synchronized="false"
  17794. static="false" final="false" visibility="public"
  17795. deprecated="not deprecated">
  17796. <param name="out" type="java.io.DataOutput"/>
  17797. <exception name="IOException" type="java.io.IOException"/>
  17798. </method>
  17799. <method name="hashCode" return="int"
  17800. abstract="false" native="false" synchronized="false"
  17801. static="false" final="false" visibility="public"
  17802. deprecated="not deprecated">
  17803. </method>
  17804. <method name="equals" return="boolean"
  17805. abstract="false" native="false" synchronized="false"
  17806. static="false" final="false" visibility="public"
  17807. deprecated="not deprecated">
  17808. <param name="right_obj" type="java.lang.Object"/>
  17809. <doc>
  17810. <![CDATA[Are the two byte sequences equal?]]>
  17811. </doc>
  17812. </method>
  17813. <method name="toString" return="java.lang.String"
  17814. abstract="false" native="false" synchronized="false"
  17815. static="false" final="false" visibility="public"
  17816. deprecated="not deprecated">
  17817. <doc>
  17818. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  17819. </doc>
  17820. </method>
  17821. <doc>
  17822. <![CDATA[A byte sequence that is usable as a key or value.
  17823. It is resizable and distinguishes between the size of the sequence and
  17824. the current capacity. The hash function is the front of the md5 of the
  17825. buffer. The sort order is the same as memcmp.]]>
  17826. </doc>
  17827. </class>
  17828. <!-- end class org.apache.hadoop.io.BytesWritable -->
  17829. <!-- start class org.apache.hadoop.io.ByteWritable -->
  17830. <class name="ByteWritable" extends="java.lang.Object"
  17831. abstract="false"
  17832. static="false" final="false" visibility="public"
  17833. deprecated="not deprecated">
  17834. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17835. <constructor name="ByteWritable"
  17836. static="false" final="false" visibility="public"
  17837. deprecated="not deprecated">
  17838. </constructor>
  17839. <constructor name="ByteWritable" type="byte"
  17840. static="false" final="false" visibility="public"
  17841. deprecated="not deprecated">
  17842. </constructor>
  17843. <method name="set"
  17844. abstract="false" native="false" synchronized="false"
  17845. static="false" final="false" visibility="public"
  17846. deprecated="not deprecated">
  17847. <param name="value" type="byte"/>
  17848. <doc>
  17849. <![CDATA[Set the value of this ByteWritable.]]>
  17850. </doc>
  17851. </method>
  17852. <method name="get" return="byte"
  17853. abstract="false" native="false" synchronized="false"
  17854. static="false" final="false" visibility="public"
  17855. deprecated="not deprecated">
  17856. <doc>
  17857. <![CDATA[Return the value of this ByteWritable.]]>
  17858. </doc>
  17859. </method>
  17860. <method name="readFields"
  17861. abstract="false" native="false" synchronized="false"
  17862. static="false" final="false" visibility="public"
  17863. deprecated="not deprecated">
  17864. <param name="in" type="java.io.DataInput"/>
  17865. <exception name="IOException" type="java.io.IOException"/>
  17866. </method>
  17867. <method name="write"
  17868. abstract="false" native="false" synchronized="false"
  17869. static="false" final="false" visibility="public"
  17870. deprecated="not deprecated">
  17871. <param name="out" type="java.io.DataOutput"/>
  17872. <exception name="IOException" type="java.io.IOException"/>
  17873. </method>
  17874. <method name="equals" return="boolean"
  17875. abstract="false" native="false" synchronized="false"
  17876. static="false" final="false" visibility="public"
  17877. deprecated="not deprecated">
  17878. <param name="o" type="java.lang.Object"/>
  17879. <doc>
  17880. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  17881. </doc>
  17882. </method>
  17883. <method name="hashCode" return="int"
  17884. abstract="false" native="false" synchronized="false"
  17885. static="false" final="false" visibility="public"
  17886. deprecated="not deprecated">
  17887. </method>
  17888. <method name="compareTo" return="int"
  17889. abstract="false" native="false" synchronized="false"
  17890. static="false" final="false" visibility="public"
  17891. deprecated="not deprecated">
  17892. <param name="o" type="org.apache.hadoop.io.ByteWritable"/>
  17893. <doc>
  17894. <![CDATA[Compares two ByteWritables.]]>
  17895. </doc>
  17896. </method>
  17897. <method name="toString" return="java.lang.String"
  17898. abstract="false" native="false" synchronized="false"
  17899. static="false" final="false" visibility="public"
  17900. deprecated="not deprecated">
  17901. </method>
  17902. <doc>
  17903. <![CDATA[A WritableComparable for a single byte.]]>
  17904. </doc>
  17905. </class>
  17906. <!-- end class org.apache.hadoop.io.ByteWritable -->
  17907. <!-- start interface org.apache.hadoop.io.Closeable -->
  17908. <interface name="Closeable" abstract="true"
  17909. static="false" final="false" visibility="public"
  17910. deprecated="use java.io.Closeable">
  17911. <implements name="java.io.Closeable"/>
  17912. <doc>
  17913. <![CDATA[@deprecated use java.io.Closeable]]>
  17914. </doc>
  17915. </interface>
  17916. <!-- end interface org.apache.hadoop.io.Closeable -->
  17917. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  17918. <class name="CompressedWritable" extends="java.lang.Object"
  17919. abstract="true"
  17920. static="false" final="false" visibility="public"
  17921. deprecated="not deprecated">
  17922. <implements name="org.apache.hadoop.io.Writable"/>
  17923. <constructor name="CompressedWritable"
  17924. static="false" final="false" visibility="public"
  17925. deprecated="not deprecated">
  17926. </constructor>
  17927. <method name="readFields"
  17928. abstract="false" native="false" synchronized="false"
  17929. static="false" final="true" visibility="public"
  17930. deprecated="not deprecated">
  17931. <param name="in" type="java.io.DataInput"/>
  17932. <exception name="IOException" type="java.io.IOException"/>
  17933. </method>
  17934. <method name="ensureInflated"
  17935. abstract="false" native="false" synchronized="false"
  17936. static="false" final="false" visibility="protected"
  17937. deprecated="not deprecated">
  17938. <doc>
  17939. <![CDATA[Must be called by all methods which access fields to ensure that the data
  17940. has been uncompressed.]]>
  17941. </doc>
  17942. </method>
  17943. <method name="readFieldsCompressed"
  17944. abstract="true" native="false" synchronized="false"
  17945. static="false" final="false" visibility="protected"
  17946. deprecated="not deprecated">
  17947. <param name="in" type="java.io.DataInput"/>
  17948. <exception name="IOException" type="java.io.IOException"/>
  17949. <doc>
  17950. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  17951. </doc>
  17952. </method>
  17953. <method name="write"
  17954. abstract="false" native="false" synchronized="false"
  17955. static="false" final="true" visibility="public"
  17956. deprecated="not deprecated">
  17957. <param name="out" type="java.io.DataOutput"/>
  17958. <exception name="IOException" type="java.io.IOException"/>
  17959. </method>
  17960. <method name="writeCompressed"
  17961. abstract="true" native="false" synchronized="false"
  17962. static="false" final="false" visibility="protected"
  17963. deprecated="not deprecated">
  17964. <param name="out" type="java.io.DataOutput"/>
  17965. <exception name="IOException" type="java.io.IOException"/>
  17966. <doc>
  17967. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  17968. </doc>
  17969. </method>
  17970. <doc>
  17971. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  17972. inflate on field access. This is useful for large objects whose fields are
  17973. not be altered during a map or reduce operation: leaving the field data
  17974. compressed makes copying the instance from one file to another much
  17975. faster.]]>
  17976. </doc>
  17977. </class>
  17978. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  17979. <!-- start class org.apache.hadoop.io.DataOutputOutputStream -->
  17980. <class name="DataOutputOutputStream" extends="java.io.OutputStream"
  17981. abstract="false"
  17982. static="false" final="false" visibility="public"
  17983. deprecated="not deprecated">
  17984. <method name="constructOutputStream" return="java.io.OutputStream"
  17985. abstract="false" native="false" synchronized="false"
  17986. static="true" final="false" visibility="public"
  17987. deprecated="not deprecated">
  17988. <param name="out" type="java.io.DataOutput"/>
  17989. <doc>
  17990. <![CDATA[Construct an OutputStream from the given DataOutput. If 'out'
  17991. is already an OutputStream, simply returns it. Otherwise, wraps
  17992. it in an OutputStream.
  17993. @param out the DataOutput to wrap
  17994. @return an OutputStream instance that outputs to 'out']]>
  17995. </doc>
  17996. </method>
  17997. <method name="write"
  17998. abstract="false" native="false" synchronized="false"
  17999. static="false" final="false" visibility="public"
  18000. deprecated="not deprecated">
  18001. <param name="b" type="int"/>
  18002. <exception name="IOException" type="java.io.IOException"/>
  18003. </method>
  18004. <method name="write"
  18005. abstract="false" native="false" synchronized="false"
  18006. static="false" final="false" visibility="public"
  18007. deprecated="not deprecated">
  18008. <param name="b" type="byte[]"/>
  18009. <param name="off" type="int"/>
  18010. <param name="len" type="int"/>
  18011. <exception name="IOException" type="java.io.IOException"/>
  18012. </method>
  18013. <method name="write"
  18014. abstract="false" native="false" synchronized="false"
  18015. static="false" final="false" visibility="public"
  18016. deprecated="not deprecated">
  18017. <param name="b" type="byte[]"/>
  18018. <exception name="IOException" type="java.io.IOException"/>
  18019. </method>
  18020. <doc>
  18021. <![CDATA[OutputStream implementation that wraps a DataOutput.]]>
  18022. </doc>
  18023. </class>
  18024. <!-- end class org.apache.hadoop.io.DataOutputOutputStream -->
  18025. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  18026. <class name="DefaultStringifier" extends="java.lang.Object"
  18027. abstract="false"
  18028. static="false" final="false" visibility="public"
  18029. deprecated="not deprecated">
  18030. <implements name="org.apache.hadoop.io.Stringifier"/>
  18031. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  18032. static="false" final="false" visibility="public"
  18033. deprecated="not deprecated">
  18034. </constructor>
  18035. <method name="fromString" return="T"
  18036. abstract="false" native="false" synchronized="false"
  18037. static="false" final="false" visibility="public"
  18038. deprecated="not deprecated">
  18039. <param name="str" type="java.lang.String"/>
  18040. <exception name="IOException" type="java.io.IOException"/>
  18041. </method>
  18042. <method name="toString" return="java.lang.String"
  18043. abstract="false" native="false" synchronized="false"
  18044. static="false" final="false" visibility="public"
  18045. deprecated="not deprecated">
  18046. <param name="obj" type="T"/>
  18047. <exception name="IOException" type="java.io.IOException"/>
  18048. </method>
  18049. <method name="close"
  18050. abstract="false" native="false" synchronized="false"
  18051. static="false" final="false" visibility="public"
  18052. deprecated="not deprecated">
  18053. <exception name="IOException" type="java.io.IOException"/>
  18054. </method>
  18055. <method name="store"
  18056. abstract="false" native="false" synchronized="false"
  18057. static="true" final="false" visibility="public"
  18058. deprecated="not deprecated">
  18059. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18060. <param name="item" type="K"/>
  18061. <param name="keyName" type="java.lang.String"/>
  18062. <exception name="IOException" type="java.io.IOException"/>
  18063. <doc>
  18064. <![CDATA[Stores the item in the configuration with the given keyName.
  18065. @param <K> the class of the item
  18066. @param conf the configuration to store
  18067. @param item the object to be stored
  18068. @param keyName the name of the key to use
  18069. @throws IOException : forwards Exceptions from the underlying
  18070. {@link Serialization} classes.]]>
  18071. </doc>
  18072. </method>
  18073. <method name="load" return="K"
  18074. abstract="false" native="false" synchronized="false"
  18075. static="true" final="false" visibility="public"
  18076. deprecated="not deprecated">
  18077. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18078. <param name="keyName" type="java.lang.String"/>
  18079. <param name="itemClass" type="java.lang.Class"/>
  18080. <exception name="IOException" type="java.io.IOException"/>
  18081. <doc>
  18082. <![CDATA[Restores the object from the configuration.
  18083. @param <K> the class of the item
  18084. @param conf the configuration to use
  18085. @param keyName the name of the key to use
  18086. @param itemClass the class of the item
  18087. @return restored object
  18088. @throws IOException : forwards Exceptions from the underlying
  18089. {@link Serialization} classes.]]>
  18090. </doc>
  18091. </method>
  18092. <method name="storeArray"
  18093. abstract="false" native="false" synchronized="false"
  18094. static="true" final="false" visibility="public"
  18095. deprecated="not deprecated">
  18096. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18097. <param name="items" type="K[]"/>
  18098. <param name="keyName" type="java.lang.String"/>
  18099. <exception name="IOException" type="java.io.IOException"/>
  18100. <doc>
  18101. <![CDATA[Stores the array of items in the configuration with the given keyName.
  18102. @param <K> the class of the item
  18103. @param conf the configuration to use
  18104. @param items the objects to be stored
  18105. @param keyName the name of the key to use
  18106. @throws IndexOutOfBoundsException if the items array is empty
  18107. @throws IOException : forwards Exceptions from the underlying
  18108. {@link Serialization} classes.]]>
  18109. </doc>
  18110. </method>
  18111. <method name="loadArray" return="K[]"
  18112. abstract="false" native="false" synchronized="false"
  18113. static="true" final="false" visibility="public"
  18114. deprecated="not deprecated">
  18115. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18116. <param name="keyName" type="java.lang.String"/>
  18117. <param name="itemClass" type="java.lang.Class"/>
  18118. <exception name="IOException" type="java.io.IOException"/>
  18119. <doc>
  18120. <![CDATA[Restores the array of objects from the configuration.
  18121. @param <K> the class of the item
  18122. @param conf the configuration to use
  18123. @param keyName the name of the key to use
  18124. @param itemClass the class of the item
  18125. @return restored object
  18126. @throws IOException : forwards Exceptions from the underlying
  18127. {@link Serialization} classes.]]>
  18128. </doc>
  18129. </method>
  18130. <doc>
  18131. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  18132. interface which stringifies the objects using base64 encoding of the
  18133. serialized version of the objects. The {@link Serializer} and
  18134. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  18135. <br>
  18136. DefaultStringifier offers convenience methods to store/load objects to/from
  18137. the configuration.
  18138. @param <T> the class of the objects to stringify]]>
  18139. </doc>
  18140. </class>
  18141. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  18142. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  18143. <class name="DoubleWritable" extends="java.lang.Object"
  18144. abstract="false"
  18145. static="false" final="false" visibility="public"
  18146. deprecated="not deprecated">
  18147. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18148. <constructor name="DoubleWritable"
  18149. static="false" final="false" visibility="public"
  18150. deprecated="not deprecated">
  18151. </constructor>
  18152. <constructor name="DoubleWritable" type="double"
  18153. static="false" final="false" visibility="public"
  18154. deprecated="not deprecated">
  18155. </constructor>
  18156. <method name="readFields"
  18157. abstract="false" native="false" synchronized="false"
  18158. static="false" final="false" visibility="public"
  18159. deprecated="not deprecated">
  18160. <param name="in" type="java.io.DataInput"/>
  18161. <exception name="IOException" type="java.io.IOException"/>
  18162. </method>
  18163. <method name="write"
  18164. abstract="false" native="false" synchronized="false"
  18165. static="false" final="false" visibility="public"
  18166. deprecated="not deprecated">
  18167. <param name="out" type="java.io.DataOutput"/>
  18168. <exception name="IOException" type="java.io.IOException"/>
  18169. </method>
  18170. <method name="set"
  18171. abstract="false" native="false" synchronized="false"
  18172. static="false" final="false" visibility="public"
  18173. deprecated="not deprecated">
  18174. <param name="value" type="double"/>
  18175. </method>
  18176. <method name="get" return="double"
  18177. abstract="false" native="false" synchronized="false"
  18178. static="false" final="false" visibility="public"
  18179. deprecated="not deprecated">
  18180. </method>
  18181. <method name="equals" return="boolean"
  18182. abstract="false" native="false" synchronized="false"
  18183. static="false" final="false" visibility="public"
  18184. deprecated="not deprecated">
  18185. <param name="o" type="java.lang.Object"/>
  18186. <doc>
  18187. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  18188. </doc>
  18189. </method>
  18190. <method name="hashCode" return="int"
  18191. abstract="false" native="false" synchronized="false"
  18192. static="false" final="false" visibility="public"
  18193. deprecated="not deprecated">
  18194. </method>
  18195. <method name="compareTo" return="int"
  18196. abstract="false" native="false" synchronized="false"
  18197. static="false" final="false" visibility="public"
  18198. deprecated="not deprecated">
  18199. <param name="o" type="org.apache.hadoop.io.DoubleWritable"/>
  18200. </method>
  18201. <method name="toString" return="java.lang.String"
  18202. abstract="false" native="false" synchronized="false"
  18203. static="false" final="false" visibility="public"
  18204. deprecated="not deprecated">
  18205. </method>
  18206. <doc>
  18207. <![CDATA[Writable for Double values.]]>
  18208. </doc>
  18209. </class>
  18210. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  18211. <!-- start class org.apache.hadoop.io.ElasticByteBufferPool -->
  18212. <class name="ElasticByteBufferPool" extends="java.lang.Object"
  18213. abstract="false"
  18214. static="false" final="true" visibility="public"
  18215. deprecated="not deprecated">
  18216. <implements name="org.apache.hadoop.io.ByteBufferPool"/>
  18217. <constructor name="ElasticByteBufferPool"
  18218. static="false" final="false" visibility="public"
  18219. deprecated="not deprecated">
  18220. </constructor>
  18221. <method name="getBuffer" return="java.nio.ByteBuffer"
  18222. abstract="false" native="false" synchronized="true"
  18223. static="false" final="false" visibility="public"
  18224. deprecated="not deprecated">
  18225. <param name="direct" type="boolean"/>
  18226. <param name="length" type="int"/>
  18227. </method>
  18228. <method name="putBuffer"
  18229. abstract="false" native="false" synchronized="true"
  18230. static="false" final="false" visibility="public"
  18231. deprecated="not deprecated">
  18232. <param name="buffer" type="java.nio.ByteBuffer"/>
  18233. </method>
  18234. <doc>
  18235. <![CDATA[This is a simple ByteBufferPool which just creates ByteBuffers as needed.
  18236. It also caches ByteBuffers after they're released. It will always return
  18237. the smallest cached buffer with at least the capacity you request.
  18238. We don't try to do anything clever here like try to limit the maximum cache
  18239. size.]]>
  18240. </doc>
  18241. </class>
  18242. <!-- end class org.apache.hadoop.io.ElasticByteBufferPool -->
  18243. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  18244. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  18245. abstract="false"
  18246. static="false" final="false" visibility="public"
  18247. deprecated="not deprecated">
  18248. <implements name="org.apache.hadoop.io.Writable"/>
  18249. <implements name="org.apache.hadoop.conf.Configurable"/>
  18250. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  18251. static="false" final="false" visibility="public"
  18252. deprecated="not deprecated">
  18253. <doc>
  18254. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  18255. its size is zero, the <tt>elementType</tt> argument must not be null. If
  18256. the argument <tt>value</tt>'s size is bigger than zero, the argument
  18257. <tt>elementType</tt> is not be used.
  18258. @param value
  18259. @param elementType]]>
  18260. </doc>
  18261. </constructor>
  18262. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  18263. static="false" final="false" visibility="public"
  18264. deprecated="not deprecated">
  18265. <doc>
  18266. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  18267. or empty.
  18268. @param value]]>
  18269. </doc>
  18270. </constructor>
  18271. <method name="iterator" return="java.util.Iterator"
  18272. abstract="false" native="false" synchronized="false"
  18273. static="false" final="false" visibility="public"
  18274. deprecated="not deprecated">
  18275. </method>
  18276. <method name="size" return="int"
  18277. abstract="false" native="false" synchronized="false"
  18278. static="false" final="false" visibility="public"
  18279. deprecated="not deprecated">
  18280. </method>
  18281. <method name="add" return="boolean"
  18282. abstract="false" native="false" synchronized="false"
  18283. static="false" final="false" visibility="public"
  18284. deprecated="not deprecated">
  18285. <param name="e" type="E"/>
  18286. </method>
  18287. <method name="set"
  18288. abstract="false" native="false" synchronized="false"
  18289. static="false" final="false" visibility="public"
  18290. deprecated="not deprecated">
  18291. <param name="value" type="java.util.EnumSet"/>
  18292. <param name="elementType" type="java.lang.Class"/>
  18293. <doc>
  18294. <![CDATA[reset the EnumSetWritable with specified
  18295. <tt>value</value> and <tt>elementType</tt>. If the <tt>value</tt> argument
  18296. is null or its size is zero, the <tt>elementType</tt> argument must not be
  18297. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  18298. argument <tt>elementType</tt> is not be used.
  18299. @param value
  18300. @param elementType]]>
  18301. </doc>
  18302. </method>
  18303. <method name="get" return="java.util.EnumSet"
  18304. abstract="false" native="false" synchronized="false"
  18305. static="false" final="false" visibility="public"
  18306. deprecated="not deprecated">
  18307. <doc>
  18308. <![CDATA[Return the value of this EnumSetWritable.]]>
  18309. </doc>
  18310. </method>
  18311. <method name="readFields"
  18312. abstract="false" native="false" synchronized="false"
  18313. static="false" final="false" visibility="public"
  18314. deprecated="not deprecated">
  18315. <param name="in" type="java.io.DataInput"/>
  18316. <exception name="IOException" type="java.io.IOException"/>
  18317. </method>
  18318. <method name="write"
  18319. abstract="false" native="false" synchronized="false"
  18320. static="false" final="false" visibility="public"
  18321. deprecated="not deprecated">
  18322. <param name="out" type="java.io.DataOutput"/>
  18323. <exception name="IOException" type="java.io.IOException"/>
  18324. </method>
  18325. <method name="equals" return="boolean"
  18326. abstract="false" native="false" synchronized="false"
  18327. static="false" final="false" visibility="public"
  18328. deprecated="not deprecated">
  18329. <param name="o" type="java.lang.Object"/>
  18330. <doc>
  18331. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  18332. or both are null.]]>
  18333. </doc>
  18334. </method>
  18335. <method name="getElementType" return="java.lang.Class"
  18336. abstract="false" native="false" synchronized="false"
  18337. static="false" final="false" visibility="public"
  18338. deprecated="not deprecated">
  18339. <doc>
  18340. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  18341. may return null.
  18342. @return the element class]]>
  18343. </doc>
  18344. </method>
  18345. <method name="hashCode" return="int"
  18346. abstract="false" native="false" synchronized="false"
  18347. static="false" final="false" visibility="public"
  18348. deprecated="not deprecated">
  18349. </method>
  18350. <method name="toString" return="java.lang.String"
  18351. abstract="false" native="false" synchronized="false"
  18352. static="false" final="false" visibility="public"
  18353. deprecated="not deprecated">
  18354. </method>
  18355. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18356. abstract="false" native="false" synchronized="false"
  18357. static="false" final="false" visibility="public"
  18358. deprecated="not deprecated">
  18359. </method>
  18360. <method name="setConf"
  18361. abstract="false" native="false" synchronized="false"
  18362. static="false" final="false" visibility="public"
  18363. deprecated="not deprecated">
  18364. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18365. </method>
  18366. <doc>
  18367. <![CDATA[A Writable wrapper for EnumSet.]]>
  18368. </doc>
  18369. </class>
  18370. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  18371. <!-- start class org.apache.hadoop.io.FloatWritable -->
  18372. <class name="FloatWritable" extends="java.lang.Object"
  18373. abstract="false"
  18374. static="false" final="false" visibility="public"
  18375. deprecated="not deprecated">
  18376. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18377. <constructor name="FloatWritable"
  18378. static="false" final="false" visibility="public"
  18379. deprecated="not deprecated">
  18380. </constructor>
  18381. <constructor name="FloatWritable" type="float"
  18382. static="false" final="false" visibility="public"
  18383. deprecated="not deprecated">
  18384. </constructor>
  18385. <method name="set"
  18386. abstract="false" native="false" synchronized="false"
  18387. static="false" final="false" visibility="public"
  18388. deprecated="not deprecated">
  18389. <param name="value" type="float"/>
  18390. <doc>
  18391. <![CDATA[Set the value of this FloatWritable.]]>
  18392. </doc>
  18393. </method>
  18394. <method name="get" return="float"
  18395. abstract="false" native="false" synchronized="false"
  18396. static="false" final="false" visibility="public"
  18397. deprecated="not deprecated">
  18398. <doc>
  18399. <![CDATA[Return the value of this FloatWritable.]]>
  18400. </doc>
  18401. </method>
  18402. <method name="readFields"
  18403. abstract="false" native="false" synchronized="false"
  18404. static="false" final="false" visibility="public"
  18405. deprecated="not deprecated">
  18406. <param name="in" type="java.io.DataInput"/>
  18407. <exception name="IOException" type="java.io.IOException"/>
  18408. </method>
  18409. <method name="write"
  18410. abstract="false" native="false" synchronized="false"
  18411. static="false" final="false" visibility="public"
  18412. deprecated="not deprecated">
  18413. <param name="out" type="java.io.DataOutput"/>
  18414. <exception name="IOException" type="java.io.IOException"/>
  18415. </method>
  18416. <method name="equals" return="boolean"
  18417. abstract="false" native="false" synchronized="false"
  18418. static="false" final="false" visibility="public"
  18419. deprecated="not deprecated">
  18420. <param name="o" type="java.lang.Object"/>
  18421. <doc>
  18422. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  18423. </doc>
  18424. </method>
  18425. <method name="hashCode" return="int"
  18426. abstract="false" native="false" synchronized="false"
  18427. static="false" final="false" visibility="public"
  18428. deprecated="not deprecated">
  18429. </method>
  18430. <method name="compareTo" return="int"
  18431. abstract="false" native="false" synchronized="false"
  18432. static="false" final="false" visibility="public"
  18433. deprecated="not deprecated">
  18434. <param name="o" type="org.apache.hadoop.io.FloatWritable"/>
  18435. <doc>
  18436. <![CDATA[Compares two FloatWritables.]]>
  18437. </doc>
  18438. </method>
  18439. <method name="toString" return="java.lang.String"
  18440. abstract="false" native="false" synchronized="false"
  18441. static="false" final="false" visibility="public"
  18442. deprecated="not deprecated">
  18443. </method>
  18444. <doc>
  18445. <![CDATA[A WritableComparable for floats.]]>
  18446. </doc>
  18447. </class>
  18448. <!-- end class org.apache.hadoop.io.FloatWritable -->
  18449. <!-- start class org.apache.hadoop.io.GenericWritable -->
  18450. <class name="GenericWritable" extends="java.lang.Object"
  18451. abstract="true"
  18452. static="false" final="false" visibility="public"
  18453. deprecated="not deprecated">
  18454. <implements name="org.apache.hadoop.io.Writable"/>
  18455. <implements name="org.apache.hadoop.conf.Configurable"/>
  18456. <constructor name="GenericWritable"
  18457. static="false" final="false" visibility="public"
  18458. deprecated="not deprecated">
  18459. </constructor>
  18460. <method name="set"
  18461. abstract="false" native="false" synchronized="false"
  18462. static="false" final="false" visibility="public"
  18463. deprecated="not deprecated">
  18464. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  18465. <doc>
  18466. <![CDATA[Set the instance that is wrapped.
  18467. @param obj]]>
  18468. </doc>
  18469. </method>
  18470. <method name="get" return="org.apache.hadoop.io.Writable"
  18471. abstract="false" native="false" synchronized="false"
  18472. static="false" final="false" visibility="public"
  18473. deprecated="not deprecated">
  18474. <doc>
  18475. <![CDATA[Return the wrapped instance.]]>
  18476. </doc>
  18477. </method>
  18478. <method name="toString" return="java.lang.String"
  18479. abstract="false" native="false" synchronized="false"
  18480. static="false" final="false" visibility="public"
  18481. deprecated="not deprecated">
  18482. </method>
  18483. <method name="readFields"
  18484. abstract="false" native="false" synchronized="false"
  18485. static="false" final="false" visibility="public"
  18486. deprecated="not deprecated">
  18487. <param name="in" type="java.io.DataInput"/>
  18488. <exception name="IOException" type="java.io.IOException"/>
  18489. </method>
  18490. <method name="write"
  18491. abstract="false" native="false" synchronized="false"
  18492. static="false" final="false" visibility="public"
  18493. deprecated="not deprecated">
  18494. <param name="out" type="java.io.DataOutput"/>
  18495. <exception name="IOException" type="java.io.IOException"/>
  18496. </method>
  18497. <method name="getTypes" return="java.lang.Class[]"
  18498. abstract="true" native="false" synchronized="false"
  18499. static="false" final="false" visibility="protected"
  18500. deprecated="not deprecated">
  18501. <doc>
  18502. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  18503. to return a constant array of classes.]]>
  18504. </doc>
  18505. </method>
  18506. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18507. abstract="false" native="false" synchronized="false"
  18508. static="false" final="false" visibility="public"
  18509. deprecated="not deprecated">
  18510. </method>
  18511. <method name="setConf"
  18512. abstract="false" native="false" synchronized="false"
  18513. static="false" final="false" visibility="public"
  18514. deprecated="not deprecated">
  18515. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18516. </method>
  18517. <doc>
  18518. <![CDATA[A wrapper for Writable instances.
  18519. <p>
  18520. When two sequence files, which have same Key type but different Value
  18521. types, are mapped out to reduce, multiple Value types is not allowed.
  18522. In this case, this class can help you wrap instances with different types.
  18523. </p>
  18524. <p>
  18525. Compared with <code>ObjectWritable</code>, this class is much more effective,
  18526. because <code>ObjectWritable</code> will append the class declaration as a String
  18527. into the output file in every Key-Value pair.
  18528. </p>
  18529. <p>
  18530. Generic Writable implements {@link Configurable} interface, so that it will be
  18531. configured by the framework. The configuration is passed to the wrapped objects
  18532. implementing {@link Configurable} interface <i>before deserialization</i>.
  18533. </p>
  18534. how to use it: <br>
  18535. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  18536. 2. Implements the abstract method <code>getTypes()</code>, defines
  18537. the classes which will be wrapped in GenericObject in application.
  18538. Attention: this classes defined in <code>getTypes()</code> method, must
  18539. implement <code>Writable</code> interface.
  18540. <br><br>
  18541. The code looks like this:
  18542. <blockquote><pre>
  18543. public class GenericObject extends GenericWritable {
  18544. private static Class[] CLASSES = {
  18545. ClassType1.class,
  18546. ClassType2.class,
  18547. ClassType3.class,
  18548. };
  18549. protected Class[] getTypes() {
  18550. return CLASSES;
  18551. }
  18552. }
  18553. </pre></blockquote>
  18554. @since Nov 8, 2006]]>
  18555. </doc>
  18556. </class>
  18557. <!-- end class org.apache.hadoop.io.GenericWritable -->
  18558. <!-- start class org.apache.hadoop.io.IntWritable -->
  18559. <class name="IntWritable" extends="java.lang.Object"
  18560. abstract="false"
  18561. static="false" final="false" visibility="public"
  18562. deprecated="not deprecated">
  18563. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18564. <constructor name="IntWritable"
  18565. static="false" final="false" visibility="public"
  18566. deprecated="not deprecated">
  18567. </constructor>
  18568. <constructor name="IntWritable" type="int"
  18569. static="false" final="false" visibility="public"
  18570. deprecated="not deprecated">
  18571. </constructor>
  18572. <method name="set"
  18573. abstract="false" native="false" synchronized="false"
  18574. static="false" final="false" visibility="public"
  18575. deprecated="not deprecated">
  18576. <param name="value" type="int"/>
  18577. <doc>
  18578. <![CDATA[Set the value of this IntWritable.]]>
  18579. </doc>
  18580. </method>
  18581. <method name="get" return="int"
  18582. abstract="false" native="false" synchronized="false"
  18583. static="false" final="false" visibility="public"
  18584. deprecated="not deprecated">
  18585. <doc>
  18586. <![CDATA[Return the value of this IntWritable.]]>
  18587. </doc>
  18588. </method>
  18589. <method name="readFields"
  18590. abstract="false" native="false" synchronized="false"
  18591. static="false" final="false" visibility="public"
  18592. deprecated="not deprecated">
  18593. <param name="in" type="java.io.DataInput"/>
  18594. <exception name="IOException" type="java.io.IOException"/>
  18595. </method>
  18596. <method name="write"
  18597. abstract="false" native="false" synchronized="false"
  18598. static="false" final="false" visibility="public"
  18599. deprecated="not deprecated">
  18600. <param name="out" type="java.io.DataOutput"/>
  18601. <exception name="IOException" type="java.io.IOException"/>
  18602. </method>
  18603. <method name="equals" return="boolean"
  18604. abstract="false" native="false" synchronized="false"
  18605. static="false" final="false" visibility="public"
  18606. deprecated="not deprecated">
  18607. <param name="o" type="java.lang.Object"/>
  18608. <doc>
  18609. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  18610. </doc>
  18611. </method>
  18612. <method name="hashCode" return="int"
  18613. abstract="false" native="false" synchronized="false"
  18614. static="false" final="false" visibility="public"
  18615. deprecated="not deprecated">
  18616. </method>
  18617. <method name="compareTo" return="int"
  18618. abstract="false" native="false" synchronized="false"
  18619. static="false" final="false" visibility="public"
  18620. deprecated="not deprecated">
  18621. <param name="o" type="org.apache.hadoop.io.IntWritable"/>
  18622. <doc>
  18623. <![CDATA[Compares two IntWritables.]]>
  18624. </doc>
  18625. </method>
  18626. <method name="toString" return="java.lang.String"
  18627. abstract="false" native="false" synchronized="false"
  18628. static="false" final="false" visibility="public"
  18629. deprecated="not deprecated">
  18630. </method>
  18631. <doc>
  18632. <![CDATA[A WritableComparable for ints.]]>
  18633. </doc>
  18634. </class>
  18635. <!-- end class org.apache.hadoop.io.IntWritable -->
  18636. <!-- start class org.apache.hadoop.io.IOUtils -->
  18637. <class name="IOUtils" extends="java.lang.Object"
  18638. abstract="false"
  18639. static="false" final="false" visibility="public"
  18640. deprecated="not deprecated">
  18641. <constructor name="IOUtils"
  18642. static="false" final="false" visibility="public"
  18643. deprecated="not deprecated">
  18644. </constructor>
  18645. <method name="copyBytes"
  18646. abstract="false" native="false" synchronized="false"
  18647. static="true" final="false" visibility="public"
  18648. deprecated="not deprecated">
  18649. <param name="in" type="java.io.InputStream"/>
  18650. <param name="out" type="java.io.OutputStream"/>
  18651. <param name="buffSize" type="int"/>
  18652. <param name="close" type="boolean"/>
  18653. <exception name="IOException" type="java.io.IOException"/>
  18654. <doc>
  18655. <![CDATA[Copies from one stream to another.
  18656. @param in InputStrem to read from
  18657. @param out OutputStream to write to
  18658. @param buffSize the size of the buffer
  18659. @param close whether or not close the InputStream and
  18660. OutputStream at the end. The streams are closed in the finally clause.]]>
  18661. </doc>
  18662. </method>
  18663. <method name="copyBytes"
  18664. abstract="false" native="false" synchronized="false"
  18665. static="true" final="false" visibility="public"
  18666. deprecated="not deprecated">
  18667. <param name="in" type="java.io.InputStream"/>
  18668. <param name="out" type="java.io.OutputStream"/>
  18669. <param name="buffSize" type="int"/>
  18670. <exception name="IOException" type="java.io.IOException"/>
  18671. <doc>
  18672. <![CDATA[Copies from one stream to another.
  18673. @param in InputStrem to read from
  18674. @param out OutputStream to write to
  18675. @param buffSize the size of the buffer]]>
  18676. </doc>
  18677. </method>
  18678. <method name="copyBytes"
  18679. abstract="false" native="false" synchronized="false"
  18680. static="true" final="false" visibility="public"
  18681. deprecated="not deprecated">
  18682. <param name="in" type="java.io.InputStream"/>
  18683. <param name="out" type="java.io.OutputStream"/>
  18684. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18685. <exception name="IOException" type="java.io.IOException"/>
  18686. <doc>
  18687. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  18688. at the end</strong>.
  18689. @param in InputStrem to read from
  18690. @param out OutputStream to write to
  18691. @param conf the Configuration object]]>
  18692. </doc>
  18693. </method>
  18694. <method name="copyBytes"
  18695. abstract="false" native="false" synchronized="false"
  18696. static="true" final="false" visibility="public"
  18697. deprecated="not deprecated">
  18698. <param name="in" type="java.io.InputStream"/>
  18699. <param name="out" type="java.io.OutputStream"/>
  18700. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18701. <param name="close" type="boolean"/>
  18702. <exception name="IOException" type="java.io.IOException"/>
  18703. <doc>
  18704. <![CDATA[Copies from one stream to another.
  18705. @param in InputStream to read from
  18706. @param out OutputStream to write to
  18707. @param conf the Configuration object
  18708. @param close whether or not close the InputStream and
  18709. OutputStream at the end. The streams are closed in the finally clause.]]>
  18710. </doc>
  18711. </method>
  18712. <method name="copyBytes"
  18713. abstract="false" native="false" synchronized="false"
  18714. static="true" final="false" visibility="public"
  18715. deprecated="not deprecated">
  18716. <param name="in" type="java.io.InputStream"/>
  18717. <param name="out" type="java.io.OutputStream"/>
  18718. <param name="count" type="long"/>
  18719. <param name="close" type="boolean"/>
  18720. <exception name="IOException" type="java.io.IOException"/>
  18721. <doc>
  18722. <![CDATA[Copies count bytes from one stream to another.
  18723. @param in InputStream to read from
  18724. @param out OutputStream to write to
  18725. @param count number of bytes to copy
  18726. @param close whether to close the streams
  18727. @throws IOException if bytes can not be read or written]]>
  18728. </doc>
  18729. </method>
  18730. <method name="wrappedReadForCompressedData" return="int"
  18731. abstract="false" native="false" synchronized="false"
  18732. static="true" final="false" visibility="public"
  18733. deprecated="not deprecated">
  18734. <param name="is" type="java.io.InputStream"/>
  18735. <param name="buf" type="byte[]"/>
  18736. <param name="off" type="int"/>
  18737. <param name="len" type="int"/>
  18738. <exception name="IOException" type="java.io.IOException"/>
  18739. <doc>
  18740. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  18741. thrown by the underlying stream (either IO or decompression-related), and
  18742. re-throws as an IOException.
  18743. @param is - InputStream to be read from
  18744. @param buf - buffer the data is read into
  18745. @param off - offset within buf
  18746. @param len - amount of data to be read
  18747. @return number of bytes read]]>
  18748. </doc>
  18749. </method>
  18750. <method name="readFully"
  18751. abstract="false" native="false" synchronized="false"
  18752. static="true" final="false" visibility="public"
  18753. deprecated="not deprecated">
  18754. <param name="in" type="java.io.InputStream"/>
  18755. <param name="buf" type="byte[]"/>
  18756. <param name="off" type="int"/>
  18757. <param name="len" type="int"/>
  18758. <exception name="IOException" type="java.io.IOException"/>
  18759. <doc>
  18760. <![CDATA[Reads len bytes in a loop.
  18761. @param in InputStream to read from
  18762. @param buf The buffer to fill
  18763. @param off offset from the buffer
  18764. @param len the length of bytes to read
  18765. @throws IOException if it could not read requested number of bytes
  18766. for any reason (including EOF)]]>
  18767. </doc>
  18768. </method>
  18769. <method name="skipFully"
  18770. abstract="false" native="false" synchronized="false"
  18771. static="true" final="false" visibility="public"
  18772. deprecated="not deprecated">
  18773. <param name="in" type="java.io.InputStream"/>
  18774. <param name="len" type="long"/>
  18775. <exception name="IOException" type="java.io.IOException"/>
  18776. <doc>
  18777. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  18778. @param in The InputStream to skip bytes from
  18779. @param len number of bytes to skip.
  18780. @throws IOException if it could not skip requested number of bytes
  18781. for any reason (including EOF)]]>
  18782. </doc>
  18783. </method>
  18784. <method name="cleanup"
  18785. abstract="false" native="false" synchronized="false"
  18786. static="true" final="false" visibility="public"
  18787. deprecated="use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  18788. instead">
  18789. <param name="log" type="org.apache.commons.logging.Log"/>
  18790. <param name="closeables" type="java.io.Closeable[]"/>
  18791. <doc>
  18792. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  18793. null pointers. Must only be used for cleanup in exception handlers.
  18794. @param log the log to record problems to at debug level. Can be null.
  18795. @param closeables the objects to close
  18796. @deprecated use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  18797. instead]]>
  18798. </doc>
  18799. </method>
  18800. <method name="cleanupWithLogger"
  18801. abstract="false" native="false" synchronized="false"
  18802. static="true" final="false" visibility="public"
  18803. deprecated="not deprecated">
  18804. <param name="logger" type="org.slf4j.Logger"/>
  18805. <param name="closeables" type="java.io.Closeable[]"/>
  18806. <doc>
  18807. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  18808. null pointers. Must only be used for cleanup in exception handlers.
  18809. @param logger the log to record problems to at debug level. Can be null.
  18810. @param closeables the objects to close]]>
  18811. </doc>
  18812. </method>
  18813. <method name="closeStream"
  18814. abstract="false" native="false" synchronized="false"
  18815. static="true" final="false" visibility="public"
  18816. deprecated="not deprecated">
  18817. <param name="stream" type="java.io.Closeable"/>
  18818. <doc>
  18819. <![CDATA[Closes the stream ignoring {@link Throwable}.
  18820. Must only be called in cleaning up from exception handlers.
  18821. @param stream the Stream to close]]>
  18822. </doc>
  18823. </method>
  18824. <method name="closeStreams"
  18825. abstract="false" native="false" synchronized="false"
  18826. static="true" final="false" visibility="public"
  18827. deprecated="not deprecated">
  18828. <param name="streams" type="java.io.Closeable[]"/>
  18829. <doc>
  18830. <![CDATA[Closes the streams ignoring {@link Throwable}.
  18831. Must only be called in cleaning up from exception handlers.
  18832. @param streams the Streams to close]]>
  18833. </doc>
  18834. </method>
  18835. <method name="closeSocket"
  18836. abstract="false" native="false" synchronized="false"
  18837. static="true" final="false" visibility="public"
  18838. deprecated="not deprecated">
  18839. <param name="sock" type="java.net.Socket"/>
  18840. <doc>
  18841. <![CDATA[Closes the socket ignoring {@link IOException}
  18842. @param sock the Socket to close]]>
  18843. </doc>
  18844. </method>
  18845. <method name="writeFully"
  18846. abstract="false" native="false" synchronized="false"
  18847. static="true" final="false" visibility="public"
  18848. deprecated="not deprecated">
  18849. <param name="bc" type="java.nio.channels.WritableByteChannel"/>
  18850. <param name="buf" type="java.nio.ByteBuffer"/>
  18851. <exception name="IOException" type="java.io.IOException"/>
  18852. <doc>
  18853. <![CDATA[Write a ByteBuffer to a WritableByteChannel, handling short writes.
  18854. @param bc The WritableByteChannel to write to
  18855. @param buf The input buffer
  18856. @throws IOException On I/O error]]>
  18857. </doc>
  18858. </method>
  18859. <method name="writeFully"
  18860. abstract="false" native="false" synchronized="false"
  18861. static="true" final="false" visibility="public"
  18862. deprecated="not deprecated">
  18863. <param name="fc" type="java.nio.channels.FileChannel"/>
  18864. <param name="buf" type="java.nio.ByteBuffer"/>
  18865. <param name="offset" type="long"/>
  18866. <exception name="IOException" type="java.io.IOException"/>
  18867. <doc>
  18868. <![CDATA[Write a ByteBuffer to a FileChannel at a given offset,
  18869. handling short writes.
  18870. @param fc The FileChannel to write to
  18871. @param buf The input buffer
  18872. @param offset The offset in the file to start writing at
  18873. @throws IOException On I/O error]]>
  18874. </doc>
  18875. </method>
  18876. <method name="listDirectory" return="java.util.List"
  18877. abstract="false" native="false" synchronized="false"
  18878. static="true" final="false" visibility="public"
  18879. deprecated="not deprecated">
  18880. <param name="dir" type="java.io.File"/>
  18881. <param name="filter" type="java.io.FilenameFilter"/>
  18882. <exception name="IOException" type="java.io.IOException"/>
  18883. <doc>
  18884. <![CDATA[Return the complete list of files in a directory as strings.<p/>
  18885. This is better than File#listDir because it does not ignore IOExceptions.
  18886. @param dir The directory to list.
  18887. @param filter If non-null, the filter to use when listing
  18888. this directory.
  18889. @return The list of files in the directory.
  18890. @throws IOException On I/O error]]>
  18891. </doc>
  18892. </method>
  18893. <method name="fsync"
  18894. abstract="false" native="false" synchronized="false"
  18895. static="true" final="false" visibility="public"
  18896. deprecated="not deprecated">
  18897. <param name="fileToSync" type="java.io.File"/>
  18898. <exception name="IOException" type="java.io.IOException"/>
  18899. <doc>
  18900. <![CDATA[Ensure that any writes to the given file is written to the storage device
  18901. that contains it. This method opens channel on given File and closes it
  18902. once the sync is done.<br>
  18903. Borrowed from Uwe Schindler in LUCENE-5588
  18904. @param fileToSync the file to fsync]]>
  18905. </doc>
  18906. </method>
  18907. <method name="fsync"
  18908. abstract="false" native="false" synchronized="false"
  18909. static="true" final="false" visibility="public"
  18910. deprecated="not deprecated">
  18911. <param name="channel" type="java.nio.channels.FileChannel"/>
  18912. <param name="isDir" type="boolean"/>
  18913. <exception name="IOException" type="java.io.IOException"/>
  18914. <doc>
  18915. <![CDATA[Ensure that any writes to the given file is written to the storage device
  18916. that contains it. This method opens channel on given File and closes it
  18917. once the sync is done.
  18918. Borrowed from Uwe Schindler in LUCENE-5588
  18919. @param channel Channel to sync
  18920. @param isDir if true, the given file is a directory (Channel should be
  18921. opened for read and ignore IOExceptions, because not all file
  18922. systems and operating systems allow to fsync on a directory)
  18923. @throws IOException]]>
  18924. </doc>
  18925. </method>
  18926. <method name="wrapException" return="java.io.IOException"
  18927. abstract="false" native="false" synchronized="false"
  18928. static="true" final="false" visibility="public"
  18929. deprecated="not deprecated">
  18930. <param name="path" type="java.lang.String"/>
  18931. <param name="methodName" type="java.lang.String"/>
  18932. <param name="exception" type="java.io.IOException"/>
  18933. <doc>
  18934. <![CDATA[Takes an IOException, file/directory path, and method name and returns an
  18935. IOException with the input exception as the cause and also include the
  18936. file,method details. The new exception provides the stack trace of the
  18937. place where the exception is thrown and some extra diagnostics
  18938. information.
  18939. Return instance of same exception if exception class has a public string
  18940. constructor; Otherwise return an PathIOException.
  18941. InterruptedIOException and PathIOException are returned unwrapped.
  18942. @param path file/directory path
  18943. @param methodName method name
  18944. @param exception the caught exception.
  18945. @return an exception to throw]]>
  18946. </doc>
  18947. </method>
  18948. <method name="readFullyToByteArray" return="byte[]"
  18949. abstract="false" native="false" synchronized="false"
  18950. static="true" final="false" visibility="public"
  18951. deprecated="not deprecated">
  18952. <param name="in" type="java.io.DataInput"/>
  18953. <exception name="IOException" type="java.io.IOException"/>
  18954. <doc>
  18955. <![CDATA[Reads a DataInput until EOF and returns a byte array. Make sure not to
  18956. pass in an infinite DataInput or this will never return.
  18957. @param in A DataInput
  18958. @return a byte array containing the data from the DataInput
  18959. @throws IOException on I/O error, other than EOF]]>
  18960. </doc>
  18961. </method>
  18962. <field name="LOG" type="org.slf4j.Logger"
  18963. transient="false" volatile="false"
  18964. static="true" final="true" visibility="public"
  18965. deprecated="not deprecated">
  18966. </field>
  18967. <doc>
  18968. <![CDATA[An utility class for I/O related functionality.]]>
  18969. </doc>
  18970. </class>
  18971. <!-- end class org.apache.hadoop.io.IOUtils -->
  18972. <!-- start class org.apache.hadoop.io.LongWritable -->
  18973. <class name="LongWritable" extends="java.lang.Object"
  18974. abstract="false"
  18975. static="false" final="false" visibility="public"
  18976. deprecated="not deprecated">
  18977. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18978. <constructor name="LongWritable"
  18979. static="false" final="false" visibility="public"
  18980. deprecated="not deprecated">
  18981. </constructor>
  18982. <constructor name="LongWritable" type="long"
  18983. static="false" final="false" visibility="public"
  18984. deprecated="not deprecated">
  18985. </constructor>
  18986. <method name="set"
  18987. abstract="false" native="false" synchronized="false"
  18988. static="false" final="false" visibility="public"
  18989. deprecated="not deprecated">
  18990. <param name="value" type="long"/>
  18991. <doc>
  18992. <![CDATA[Set the value of this LongWritable.]]>
  18993. </doc>
  18994. </method>
  18995. <method name="get" return="long"
  18996. abstract="false" native="false" synchronized="false"
  18997. static="false" final="false" visibility="public"
  18998. deprecated="not deprecated">
  18999. <doc>
  19000. <![CDATA[Return the value of this LongWritable.]]>
  19001. </doc>
  19002. </method>
  19003. <method name="readFields"
  19004. abstract="false" native="false" synchronized="false"
  19005. static="false" final="false" visibility="public"
  19006. deprecated="not deprecated">
  19007. <param name="in" type="java.io.DataInput"/>
  19008. <exception name="IOException" type="java.io.IOException"/>
  19009. </method>
  19010. <method name="write"
  19011. abstract="false" native="false" synchronized="false"
  19012. static="false" final="false" visibility="public"
  19013. deprecated="not deprecated">
  19014. <param name="out" type="java.io.DataOutput"/>
  19015. <exception name="IOException" type="java.io.IOException"/>
  19016. </method>
  19017. <method name="equals" return="boolean"
  19018. abstract="false" native="false" synchronized="false"
  19019. static="false" final="false" visibility="public"
  19020. deprecated="not deprecated">
  19021. <param name="o" type="java.lang.Object"/>
  19022. <doc>
  19023. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  19024. </doc>
  19025. </method>
  19026. <method name="hashCode" return="int"
  19027. abstract="false" native="false" synchronized="false"
  19028. static="false" final="false" visibility="public"
  19029. deprecated="not deprecated">
  19030. </method>
  19031. <method name="compareTo" return="int"
  19032. abstract="false" native="false" synchronized="false"
  19033. static="false" final="false" visibility="public"
  19034. deprecated="not deprecated">
  19035. <param name="o" type="org.apache.hadoop.io.LongWritable"/>
  19036. <doc>
  19037. <![CDATA[Compares two LongWritables.]]>
  19038. </doc>
  19039. </method>
  19040. <method name="toString" return="java.lang.String"
  19041. abstract="false" native="false" synchronized="false"
  19042. static="false" final="false" visibility="public"
  19043. deprecated="not deprecated">
  19044. </method>
  19045. <doc>
  19046. <![CDATA[A WritableComparable for longs.]]>
  19047. </doc>
  19048. </class>
  19049. <!-- end class org.apache.hadoop.io.LongWritable -->
  19050. <!-- start class org.apache.hadoop.io.MapFile -->
  19051. <class name="MapFile" extends="java.lang.Object"
  19052. abstract="false"
  19053. static="false" final="false" visibility="public"
  19054. deprecated="not deprecated">
  19055. <constructor name="MapFile"
  19056. static="false" final="false" visibility="protected"
  19057. deprecated="not deprecated">
  19058. </constructor>
  19059. <method name="rename"
  19060. abstract="false" native="false" synchronized="false"
  19061. static="true" final="false" visibility="public"
  19062. deprecated="not deprecated">
  19063. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19064. <param name="oldName" type="java.lang.String"/>
  19065. <param name="newName" type="java.lang.String"/>
  19066. <exception name="IOException" type="java.io.IOException"/>
  19067. <doc>
  19068. <![CDATA[Renames an existing map directory.]]>
  19069. </doc>
  19070. </method>
  19071. <method name="delete"
  19072. abstract="false" native="false" synchronized="false"
  19073. static="true" final="false" visibility="public"
  19074. deprecated="not deprecated">
  19075. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19076. <param name="name" type="java.lang.String"/>
  19077. <exception name="IOException" type="java.io.IOException"/>
  19078. <doc>
  19079. <![CDATA[Deletes the named map file.]]>
  19080. </doc>
  19081. </method>
  19082. <method name="fix" return="long"
  19083. abstract="false" native="false" synchronized="false"
  19084. static="true" final="false" visibility="public"
  19085. deprecated="not deprecated">
  19086. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19087. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  19088. <param name="keyClass" type="java.lang.Class"/>
  19089. <param name="valueClass" type="java.lang.Class"/>
  19090. <param name="dryrun" type="boolean"/>
  19091. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19092. <exception name="Exception" type="java.lang.Exception"/>
  19093. <doc>
  19094. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  19095. @param fs filesystem
  19096. @param dir directory containing the MapFile data and index
  19097. @param keyClass key class (has to be a subclass of Writable)
  19098. @param valueClass value class (has to be a subclass of Writable)
  19099. @param dryrun do not perform any changes, just report what needs to be done
  19100. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  19101. @throws Exception]]>
  19102. </doc>
  19103. </method>
  19104. <method name="main"
  19105. abstract="false" native="false" synchronized="false"
  19106. static="true" final="false" visibility="public"
  19107. deprecated="not deprecated">
  19108. <param name="args" type="java.lang.String[]"/>
  19109. <exception name="Exception" type="java.lang.Exception"/>
  19110. </method>
  19111. <field name="INDEX_FILE_NAME" type="java.lang.String"
  19112. transient="false" volatile="false"
  19113. static="true" final="true" visibility="public"
  19114. deprecated="not deprecated">
  19115. <doc>
  19116. <![CDATA[The name of the index file.]]>
  19117. </doc>
  19118. </field>
  19119. <field name="DATA_FILE_NAME" type="java.lang.String"
  19120. transient="false" volatile="false"
  19121. static="true" final="true" visibility="public"
  19122. deprecated="not deprecated">
  19123. <doc>
  19124. <![CDATA[The name of the data file.]]>
  19125. </doc>
  19126. </field>
  19127. <doc>
  19128. <![CDATA[A file-based map from keys to values.
  19129. <p>A map is a directory containing two files, the <code>data</code> file,
  19130. containing all keys and values in the map, and a smaller <code>index</code>
  19131. file, containing a fraction of the keys. The fraction is determined by
  19132. {@link Writer#getIndexInterval()}.
  19133. <p>The index file is read entirely into memory. Thus key implementations
  19134. should try to keep themselves small.
  19135. <p>Map files are created by adding entries in-order. To maintain a large
  19136. database, perform updates by copying the previous version of a database and
  19137. merging in a sorted change list, to create a new version of the database in
  19138. a new file. Sorting large change lists can be done with {@link
  19139. SequenceFile.Sorter}.]]>
  19140. </doc>
  19141. </class>
  19142. <!-- end class org.apache.hadoop.io.MapFile -->
  19143. <!-- start class org.apache.hadoop.io.MapWritable -->
  19144. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  19145. abstract="false"
  19146. static="false" final="false" visibility="public"
  19147. deprecated="not deprecated">
  19148. <implements name="java.util.Map"/>
  19149. <constructor name="MapWritable"
  19150. static="false" final="false" visibility="public"
  19151. deprecated="not deprecated">
  19152. <doc>
  19153. <![CDATA[Default constructor.]]>
  19154. </doc>
  19155. </constructor>
  19156. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  19157. static="false" final="false" visibility="public"
  19158. deprecated="not deprecated">
  19159. <doc>
  19160. <![CDATA[Copy constructor.
  19161. @param other the map to copy from]]>
  19162. </doc>
  19163. </constructor>
  19164. <method name="clear"
  19165. abstract="false" native="false" synchronized="false"
  19166. static="false" final="false" visibility="public"
  19167. deprecated="not deprecated">
  19168. </method>
  19169. <method name="containsKey" return="boolean"
  19170. abstract="false" native="false" synchronized="false"
  19171. static="false" final="false" visibility="public"
  19172. deprecated="not deprecated">
  19173. <param name="key" type="java.lang.Object"/>
  19174. </method>
  19175. <method name="containsValue" return="boolean"
  19176. abstract="false" native="false" synchronized="false"
  19177. static="false" final="false" visibility="public"
  19178. deprecated="not deprecated">
  19179. <param name="value" type="java.lang.Object"/>
  19180. </method>
  19181. <method name="entrySet" return="java.util.Set"
  19182. abstract="false" native="false" synchronized="false"
  19183. static="false" final="false" visibility="public"
  19184. deprecated="not deprecated">
  19185. </method>
  19186. <method name="equals" return="boolean"
  19187. abstract="false" native="false" synchronized="false"
  19188. static="false" final="false" visibility="public"
  19189. deprecated="not deprecated">
  19190. <param name="obj" type="java.lang.Object"/>
  19191. </method>
  19192. <method name="get" return="org.apache.hadoop.io.Writable"
  19193. abstract="false" native="false" synchronized="false"
  19194. static="false" final="false" visibility="public"
  19195. deprecated="not deprecated">
  19196. <param name="key" type="java.lang.Object"/>
  19197. </method>
  19198. <method name="hashCode" return="int"
  19199. abstract="false" native="false" synchronized="false"
  19200. static="false" final="false" visibility="public"
  19201. deprecated="not deprecated">
  19202. </method>
  19203. <method name="isEmpty" return="boolean"
  19204. abstract="false" native="false" synchronized="false"
  19205. static="false" final="false" visibility="public"
  19206. deprecated="not deprecated">
  19207. </method>
  19208. <method name="keySet" return="java.util.Set"
  19209. abstract="false" native="false" synchronized="false"
  19210. static="false" final="false" visibility="public"
  19211. deprecated="not deprecated">
  19212. </method>
  19213. <method name="put" return="org.apache.hadoop.io.Writable"
  19214. abstract="false" native="false" synchronized="false"
  19215. static="false" final="false" visibility="public"
  19216. deprecated="not deprecated">
  19217. <param name="key" type="org.apache.hadoop.io.Writable"/>
  19218. <param name="value" type="org.apache.hadoop.io.Writable"/>
  19219. </method>
  19220. <method name="putAll"
  19221. abstract="false" native="false" synchronized="false"
  19222. static="false" final="false" visibility="public"
  19223. deprecated="not deprecated">
  19224. <param name="t" type="java.util.Map"/>
  19225. </method>
  19226. <method name="remove" return="org.apache.hadoop.io.Writable"
  19227. abstract="false" native="false" synchronized="false"
  19228. static="false" final="false" visibility="public"
  19229. deprecated="not deprecated">
  19230. <param name="key" type="java.lang.Object"/>
  19231. </method>
  19232. <method name="size" return="int"
  19233. abstract="false" native="false" synchronized="false"
  19234. static="false" final="false" visibility="public"
  19235. deprecated="not deprecated">
  19236. </method>
  19237. <method name="values" return="java.util.Collection"
  19238. abstract="false" native="false" synchronized="false"
  19239. static="false" final="false" visibility="public"
  19240. deprecated="not deprecated">
  19241. </method>
  19242. <method name="write"
  19243. abstract="false" native="false" synchronized="false"
  19244. static="false" final="false" visibility="public"
  19245. deprecated="not deprecated">
  19246. <param name="out" type="java.io.DataOutput"/>
  19247. <exception name="IOException" type="java.io.IOException"/>
  19248. </method>
  19249. <method name="readFields"
  19250. abstract="false" native="false" synchronized="false"
  19251. static="false" final="false" visibility="public"
  19252. deprecated="not deprecated">
  19253. <param name="in" type="java.io.DataInput"/>
  19254. <exception name="IOException" type="java.io.IOException"/>
  19255. </method>
  19256. <method name="toString" return="java.lang.String"
  19257. abstract="false" native="false" synchronized="false"
  19258. static="false" final="false" visibility="public"
  19259. deprecated="not deprecated">
  19260. </method>
  19261. <doc>
  19262. <![CDATA[A Writable Map.]]>
  19263. </doc>
  19264. </class>
  19265. <!-- end class org.apache.hadoop.io.MapWritable -->
  19266. <!-- start class org.apache.hadoop.io.MD5Hash -->
  19267. <class name="MD5Hash" extends="java.lang.Object"
  19268. abstract="false"
  19269. static="false" final="false" visibility="public"
  19270. deprecated="not deprecated">
  19271. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19272. <constructor name="MD5Hash"
  19273. static="false" final="false" visibility="public"
  19274. deprecated="not deprecated">
  19275. <doc>
  19276. <![CDATA[Constructs an MD5Hash.]]>
  19277. </doc>
  19278. </constructor>
  19279. <constructor name="MD5Hash" type="java.lang.String"
  19280. static="false" final="false" visibility="public"
  19281. deprecated="not deprecated">
  19282. <doc>
  19283. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  19284. </doc>
  19285. </constructor>
  19286. <constructor name="MD5Hash" type="byte[]"
  19287. static="false" final="false" visibility="public"
  19288. deprecated="not deprecated">
  19289. <doc>
  19290. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  19291. </doc>
  19292. </constructor>
  19293. <method name="readFields"
  19294. abstract="false" native="false" synchronized="false"
  19295. static="false" final="false" visibility="public"
  19296. deprecated="not deprecated">
  19297. <param name="in" type="java.io.DataInput"/>
  19298. <exception name="IOException" type="java.io.IOException"/>
  19299. </method>
  19300. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  19301. abstract="false" native="false" synchronized="false"
  19302. static="true" final="false" visibility="public"
  19303. deprecated="not deprecated">
  19304. <param name="in" type="java.io.DataInput"/>
  19305. <exception name="IOException" type="java.io.IOException"/>
  19306. <doc>
  19307. <![CDATA[Constructs, reads and returns an instance.]]>
  19308. </doc>
  19309. </method>
  19310. <method name="write"
  19311. abstract="false" native="false" synchronized="false"
  19312. static="false" final="false" visibility="public"
  19313. deprecated="not deprecated">
  19314. <param name="out" type="java.io.DataOutput"/>
  19315. <exception name="IOException" type="java.io.IOException"/>
  19316. </method>
  19317. <method name="set"
  19318. abstract="false" native="false" synchronized="false"
  19319. static="false" final="false" visibility="public"
  19320. deprecated="not deprecated">
  19321. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  19322. <doc>
  19323. <![CDATA[Copy the contents of another instance into this instance.]]>
  19324. </doc>
  19325. </method>
  19326. <method name="getDigest" return="byte[]"
  19327. abstract="false" native="false" synchronized="false"
  19328. static="false" final="false" visibility="public"
  19329. deprecated="not deprecated">
  19330. <doc>
  19331. <![CDATA[Returns the digest bytes.]]>
  19332. </doc>
  19333. </method>
  19334. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19335. abstract="false" native="false" synchronized="false"
  19336. static="true" final="false" visibility="public"
  19337. deprecated="not deprecated">
  19338. <param name="data" type="byte[]"/>
  19339. <doc>
  19340. <![CDATA[Construct a hash value for a byte array.]]>
  19341. </doc>
  19342. </method>
  19343. <method name="getDigester" return="java.security.MessageDigest"
  19344. abstract="false" native="false" synchronized="false"
  19345. static="true" final="false" visibility="public"
  19346. deprecated="not deprecated">
  19347. <doc>
  19348. <![CDATA[Create a thread local MD5 digester]]>
  19349. </doc>
  19350. </method>
  19351. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19352. abstract="false" native="false" synchronized="false"
  19353. static="true" final="false" visibility="public"
  19354. deprecated="not deprecated">
  19355. <param name="in" type="java.io.InputStream"/>
  19356. <exception name="IOException" type="java.io.IOException"/>
  19357. <doc>
  19358. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  19359. </doc>
  19360. </method>
  19361. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19362. abstract="false" native="false" synchronized="false"
  19363. static="true" final="false" visibility="public"
  19364. deprecated="not deprecated">
  19365. <param name="data" type="byte[]"/>
  19366. <param name="start" type="int"/>
  19367. <param name="len" type="int"/>
  19368. <doc>
  19369. <![CDATA[Construct a hash value for a byte array.]]>
  19370. </doc>
  19371. </method>
  19372. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19373. abstract="false" native="false" synchronized="false"
  19374. static="true" final="false" visibility="public"
  19375. deprecated="not deprecated">
  19376. <param name="dataArr" type="byte[][]"/>
  19377. <param name="start" type="int"/>
  19378. <param name="len" type="int"/>
  19379. <doc>
  19380. <![CDATA[Construct a hash value for an array of byte array.]]>
  19381. </doc>
  19382. </method>
  19383. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19384. abstract="false" native="false" synchronized="false"
  19385. static="true" final="false" visibility="public"
  19386. deprecated="not deprecated">
  19387. <param name="string" type="java.lang.String"/>
  19388. <doc>
  19389. <![CDATA[Construct a hash value for a String.]]>
  19390. </doc>
  19391. </method>
  19392. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19393. abstract="false" native="false" synchronized="false"
  19394. static="true" final="false" visibility="public"
  19395. deprecated="not deprecated">
  19396. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  19397. <doc>
  19398. <![CDATA[Construct a hash value for a String.]]>
  19399. </doc>
  19400. </method>
  19401. <method name="halfDigest" return="long"
  19402. abstract="false" native="false" synchronized="false"
  19403. static="false" final="false" visibility="public"
  19404. deprecated="not deprecated">
  19405. <doc>
  19406. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  19407. </doc>
  19408. </method>
  19409. <method name="quarterDigest" return="int"
  19410. abstract="false" native="false" synchronized="false"
  19411. static="false" final="false" visibility="public"
  19412. deprecated="not deprecated">
  19413. <doc>
  19414. <![CDATA[Return a 32-bit digest of the MD5.
  19415. @return the first 4 bytes of the md5]]>
  19416. </doc>
  19417. </method>
  19418. <method name="equals" return="boolean"
  19419. abstract="false" native="false" synchronized="false"
  19420. static="false" final="false" visibility="public"
  19421. deprecated="not deprecated">
  19422. <param name="o" type="java.lang.Object"/>
  19423. <doc>
  19424. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  19425. same values.]]>
  19426. </doc>
  19427. </method>
  19428. <method name="hashCode" return="int"
  19429. abstract="false" native="false" synchronized="false"
  19430. static="false" final="false" visibility="public"
  19431. deprecated="not deprecated">
  19432. <doc>
  19433. <![CDATA[Returns a hash code value for this object.
  19434. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  19435. </doc>
  19436. </method>
  19437. <method name="compareTo" return="int"
  19438. abstract="false" native="false" synchronized="false"
  19439. static="false" final="false" visibility="public"
  19440. deprecated="not deprecated">
  19441. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  19442. <doc>
  19443. <![CDATA[Compares this object with the specified object for order.]]>
  19444. </doc>
  19445. </method>
  19446. <method name="toString" return="java.lang.String"
  19447. abstract="false" native="false" synchronized="false"
  19448. static="false" final="false" visibility="public"
  19449. deprecated="not deprecated">
  19450. <doc>
  19451. <![CDATA[Returns a string representation of this object.]]>
  19452. </doc>
  19453. </method>
  19454. <method name="setDigest"
  19455. abstract="false" native="false" synchronized="false"
  19456. static="false" final="false" visibility="public"
  19457. deprecated="not deprecated">
  19458. <param name="hex" type="java.lang.String"/>
  19459. <doc>
  19460. <![CDATA[Sets the digest value from a hex string.]]>
  19461. </doc>
  19462. </method>
  19463. <field name="MD5_LEN" type="int"
  19464. transient="false" volatile="false"
  19465. static="true" final="true" visibility="public"
  19466. deprecated="not deprecated">
  19467. </field>
  19468. <doc>
  19469. <![CDATA[A Writable for MD5 hash values.]]>
  19470. </doc>
  19471. </class>
  19472. <!-- end class org.apache.hadoop.io.MD5Hash -->
  19473. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  19474. <class name="MultipleIOException" extends="java.io.IOException"
  19475. abstract="false"
  19476. static="false" final="false" visibility="public"
  19477. deprecated="not deprecated">
  19478. <method name="getExceptions" return="java.util.List"
  19479. abstract="false" native="false" synchronized="false"
  19480. static="false" final="false" visibility="public"
  19481. deprecated="not deprecated">
  19482. <doc>
  19483. <![CDATA[@return the underlying exceptions]]>
  19484. </doc>
  19485. </method>
  19486. <method name="createIOException" return="java.io.IOException"
  19487. abstract="false" native="false" synchronized="false"
  19488. static="true" final="false" visibility="public"
  19489. deprecated="not deprecated">
  19490. <param name="exceptions" type="java.util.List"/>
  19491. <doc>
  19492. <![CDATA[A convenient method to create an {@link IOException}.]]>
  19493. </doc>
  19494. </method>
  19495. <doc>
  19496. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  19497. </doc>
  19498. </class>
  19499. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  19500. <!-- start class org.apache.hadoop.io.NullWritable -->
  19501. <class name="NullWritable" extends="java.lang.Object"
  19502. abstract="false"
  19503. static="false" final="false" visibility="public"
  19504. deprecated="not deprecated">
  19505. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19506. <method name="get" return="org.apache.hadoop.io.NullWritable"
  19507. abstract="false" native="false" synchronized="false"
  19508. static="true" final="false" visibility="public"
  19509. deprecated="not deprecated">
  19510. <doc>
  19511. <![CDATA[Returns the single instance of this class.]]>
  19512. </doc>
  19513. </method>
  19514. <method name="toString" return="java.lang.String"
  19515. abstract="false" native="false" synchronized="false"
  19516. static="false" final="false" visibility="public"
  19517. deprecated="not deprecated">
  19518. </method>
  19519. <method name="hashCode" return="int"
  19520. abstract="false" native="false" synchronized="false"
  19521. static="false" final="false" visibility="public"
  19522. deprecated="not deprecated">
  19523. </method>
  19524. <method name="compareTo" return="int"
  19525. abstract="false" native="false" synchronized="false"
  19526. static="false" final="false" visibility="public"
  19527. deprecated="not deprecated">
  19528. <param name="other" type="org.apache.hadoop.io.NullWritable"/>
  19529. </method>
  19530. <method name="equals" return="boolean"
  19531. abstract="false" native="false" synchronized="false"
  19532. static="false" final="false" visibility="public"
  19533. deprecated="not deprecated">
  19534. <param name="other" type="java.lang.Object"/>
  19535. </method>
  19536. <method name="readFields"
  19537. abstract="false" native="false" synchronized="false"
  19538. static="false" final="false" visibility="public"
  19539. deprecated="not deprecated">
  19540. <param name="in" type="java.io.DataInput"/>
  19541. <exception name="IOException" type="java.io.IOException"/>
  19542. </method>
  19543. <method name="write"
  19544. abstract="false" native="false" synchronized="false"
  19545. static="false" final="false" visibility="public"
  19546. deprecated="not deprecated">
  19547. <param name="out" type="java.io.DataOutput"/>
  19548. <exception name="IOException" type="java.io.IOException"/>
  19549. </method>
  19550. <doc>
  19551. <![CDATA[Singleton Writable with no data.]]>
  19552. </doc>
  19553. </class>
  19554. <!-- end class org.apache.hadoop.io.NullWritable -->
  19555. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  19556. <class name="ObjectWritable" extends="java.lang.Object"
  19557. abstract="false"
  19558. static="false" final="false" visibility="public"
  19559. deprecated="not deprecated">
  19560. <implements name="org.apache.hadoop.io.Writable"/>
  19561. <implements name="org.apache.hadoop.conf.Configurable"/>
  19562. <constructor name="ObjectWritable"
  19563. static="false" final="false" visibility="public"
  19564. deprecated="not deprecated">
  19565. </constructor>
  19566. <constructor name="ObjectWritable" type="java.lang.Object"
  19567. static="false" final="false" visibility="public"
  19568. deprecated="not deprecated">
  19569. </constructor>
  19570. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  19571. static="false" final="false" visibility="public"
  19572. deprecated="not deprecated">
  19573. </constructor>
  19574. <method name="get" return="java.lang.Object"
  19575. abstract="false" native="false" synchronized="false"
  19576. static="false" final="false" visibility="public"
  19577. deprecated="not deprecated">
  19578. <doc>
  19579. <![CDATA[Return the instance, or null if none.]]>
  19580. </doc>
  19581. </method>
  19582. <method name="getDeclaredClass" return="java.lang.Class"
  19583. abstract="false" native="false" synchronized="false"
  19584. static="false" final="false" visibility="public"
  19585. deprecated="not deprecated">
  19586. <doc>
  19587. <![CDATA[Return the class this is meant to be.]]>
  19588. </doc>
  19589. </method>
  19590. <method name="set"
  19591. abstract="false" native="false" synchronized="false"
  19592. static="false" final="false" visibility="public"
  19593. deprecated="not deprecated">
  19594. <param name="instance" type="java.lang.Object"/>
  19595. <doc>
  19596. <![CDATA[Reset the instance.]]>
  19597. </doc>
  19598. </method>
  19599. <method name="toString" return="java.lang.String"
  19600. abstract="false" native="false" synchronized="false"
  19601. static="false" final="false" visibility="public"
  19602. deprecated="not deprecated">
  19603. </method>
  19604. <method name="readFields"
  19605. abstract="false" native="false" synchronized="false"
  19606. static="false" final="false" visibility="public"
  19607. deprecated="not deprecated">
  19608. <param name="in" type="java.io.DataInput"/>
  19609. <exception name="IOException" type="java.io.IOException"/>
  19610. </method>
  19611. <method name="write"
  19612. abstract="false" native="false" synchronized="false"
  19613. static="false" final="false" visibility="public"
  19614. deprecated="not deprecated">
  19615. <param name="out" type="java.io.DataOutput"/>
  19616. <exception name="IOException" type="java.io.IOException"/>
  19617. </method>
  19618. <method name="writeObject"
  19619. abstract="false" native="false" synchronized="false"
  19620. static="true" final="false" visibility="public"
  19621. deprecated="not deprecated">
  19622. <param name="out" type="java.io.DataOutput"/>
  19623. <param name="instance" type="java.lang.Object"/>
  19624. <param name="declaredClass" type="java.lang.Class"/>
  19625. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19626. <exception name="IOException" type="java.io.IOException"/>
  19627. <doc>
  19628. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  19629. the preceding.]]>
  19630. </doc>
  19631. </method>
  19632. <method name="writeObject"
  19633. abstract="false" native="false" synchronized="false"
  19634. static="true" final="false" visibility="public"
  19635. deprecated="not deprecated">
  19636. <param name="out" type="java.io.DataOutput"/>
  19637. <param name="instance" type="java.lang.Object"/>
  19638. <param name="declaredClass" type="java.lang.Class"/>
  19639. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19640. <param name="allowCompactArrays" type="boolean"/>
  19641. <exception name="IOException" type="java.io.IOException"/>
  19642. <doc>
  19643. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  19644. the preceding.
  19645. @param allowCompactArrays - set true for RPC and internal or intra-cluster
  19646. usages. Set false for inter-cluster, File, and other persisted output
  19647. usages, to preserve the ability to interchange files with other clusters
  19648. that may not be running the same version of software. Sometime in ~2013
  19649. we can consider removing this parameter and always using the compact format.]]>
  19650. </doc>
  19651. </method>
  19652. <method name="readObject" return="java.lang.Object"
  19653. abstract="false" native="false" synchronized="false"
  19654. static="true" final="false" visibility="public"
  19655. deprecated="not deprecated">
  19656. <param name="in" type="java.io.DataInput"/>
  19657. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19658. <exception name="IOException" type="java.io.IOException"/>
  19659. <doc>
  19660. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  19661. the preceding.]]>
  19662. </doc>
  19663. </method>
  19664. <method name="readObject" return="java.lang.Object"
  19665. abstract="false" native="false" synchronized="false"
  19666. static="true" final="false" visibility="public"
  19667. deprecated="not deprecated">
  19668. <param name="in" type="java.io.DataInput"/>
  19669. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  19670. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19671. <exception name="IOException" type="java.io.IOException"/>
  19672. <doc>
  19673. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  19674. the preceding.]]>
  19675. </doc>
  19676. </method>
  19677. <method name="loadClass" return="java.lang.Class"
  19678. abstract="false" native="false" synchronized="false"
  19679. static="true" final="false" visibility="public"
  19680. deprecated="not deprecated">
  19681. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19682. <param name="className" type="java.lang.String"/>
  19683. <doc>
  19684. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  19685. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  19686. try load it directly.]]>
  19687. </doc>
  19688. </method>
  19689. <method name="setConf"
  19690. abstract="false" native="false" synchronized="false"
  19691. static="false" final="false" visibility="public"
  19692. deprecated="not deprecated">
  19693. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19694. </method>
  19695. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  19696. abstract="false" native="false" synchronized="false"
  19697. static="false" final="false" visibility="public"
  19698. deprecated="not deprecated">
  19699. </method>
  19700. <doc>
  19701. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  19702. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  19703. </doc>
  19704. </class>
  19705. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  19706. <!-- start interface org.apache.hadoop.io.RawComparator -->
  19707. <interface name="RawComparator" abstract="true"
  19708. static="false" final="false" visibility="public"
  19709. deprecated="not deprecated">
  19710. <implements name="java.util.Comparator"/>
  19711. <method name="compare" return="int"
  19712. abstract="true" native="false" synchronized="false"
  19713. static="false" final="false" visibility="public"
  19714. deprecated="not deprecated">
  19715. <param name="b1" type="byte[]"/>
  19716. <param name="s1" type="int"/>
  19717. <param name="l1" type="int"/>
  19718. <param name="b2" type="byte[]"/>
  19719. <param name="s2" type="int"/>
  19720. <param name="l2" type="int"/>
  19721. <doc>
  19722. <![CDATA[Compare two objects in binary.
  19723. b1[s1:l1] is the first object, and b2[s2:l2] is the second object.
  19724. @param b1 The first byte array.
  19725. @param s1 The position index in b1. The object under comparison's starting index.
  19726. @param l1 The length of the object in b1.
  19727. @param b2 The second byte array.
  19728. @param s2 The position index in b2. The object under comparison's starting index.
  19729. @param l2 The length of the object under comparison in b2.
  19730. @return An integer result of the comparison.]]>
  19731. </doc>
  19732. </method>
  19733. <doc>
  19734. <![CDATA[<p>
  19735. A {@link Comparator} that operates directly on byte representations of
  19736. objects.
  19737. </p>
  19738. @param <T>
  19739. @see DeserializerComparator]]>
  19740. </doc>
  19741. </interface>
  19742. <!-- end interface org.apache.hadoop.io.RawComparator -->
  19743. <!-- start class org.apache.hadoop.io.SequenceFile -->
  19744. <class name="SequenceFile" extends="java.lang.Object"
  19745. abstract="false"
  19746. static="false" final="false" visibility="public"
  19747. deprecated="not deprecated">
  19748. <method name="getDefaultCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  19749. abstract="false" native="false" synchronized="false"
  19750. static="true" final="false" visibility="public"
  19751. deprecated="not deprecated">
  19752. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  19753. <doc>
  19754. <![CDATA[Get the compression type for the reduce outputs
  19755. @param job the job config to look in
  19756. @return the kind of compression to use]]>
  19757. </doc>
  19758. </method>
  19759. <method name="setDefaultCompressionType"
  19760. abstract="false" native="false" synchronized="false"
  19761. static="true" final="false" visibility="public"
  19762. deprecated="not deprecated">
  19763. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  19764. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19765. <doc>
  19766. <![CDATA[Set the default compression type for sequence files.
  19767. @param job the configuration to modify
  19768. @param val the new compression type (none, block, record)]]>
  19769. </doc>
  19770. </method>
  19771. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19772. abstract="false" native="false" synchronized="false"
  19773. static="true" final="false" visibility="public"
  19774. deprecated="not deprecated">
  19775. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19776. <param name="opts" type="org.apache.hadoop.io.SequenceFile.Writer.Option[]"/>
  19777. <exception name="IOException" type="java.io.IOException"/>
  19778. <doc>
  19779. <![CDATA[Create a new Writer with the given options.
  19780. @param conf the configuration to use
  19781. @param opts the options to create the file with
  19782. @return a new Writer
  19783. @throws IOException]]>
  19784. </doc>
  19785. </method>
  19786. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19787. abstract="false" native="false" synchronized="false"
  19788. static="true" final="false" visibility="public"
  19789. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19790. instead.">
  19791. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19792. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19793. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19794. <param name="keyClass" type="java.lang.Class"/>
  19795. <param name="valClass" type="java.lang.Class"/>
  19796. <exception name="IOException" type="java.io.IOException"/>
  19797. <doc>
  19798. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19799. @param fs The configured filesystem.
  19800. @param conf The configuration.
  19801. @param name The name of the file.
  19802. @param keyClass The 'key' type.
  19803. @param valClass The 'value' type.
  19804. @return Returns the handle to the constructed SequenceFile Writer.
  19805. @throws IOException
  19806. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19807. instead.]]>
  19808. </doc>
  19809. </method>
  19810. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19811. abstract="false" native="false" synchronized="false"
  19812. static="true" final="false" visibility="public"
  19813. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19814. instead.">
  19815. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19816. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19817. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19818. <param name="keyClass" type="java.lang.Class"/>
  19819. <param name="valClass" type="java.lang.Class"/>
  19820. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19821. <exception name="IOException" type="java.io.IOException"/>
  19822. <doc>
  19823. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19824. @param fs The configured filesystem.
  19825. @param conf The configuration.
  19826. @param name The name of the file.
  19827. @param keyClass The 'key' type.
  19828. @param valClass The 'value' type.
  19829. @param compressionType The compression type.
  19830. @return Returns the handle to the constructed SequenceFile Writer.
  19831. @throws IOException
  19832. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19833. instead.]]>
  19834. </doc>
  19835. </method>
  19836. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19837. abstract="false" native="false" synchronized="false"
  19838. static="true" final="false" visibility="public"
  19839. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19840. instead.">
  19841. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19842. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19843. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19844. <param name="keyClass" type="java.lang.Class"/>
  19845. <param name="valClass" type="java.lang.Class"/>
  19846. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19847. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  19848. <exception name="IOException" type="java.io.IOException"/>
  19849. <doc>
  19850. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19851. @param fs The configured filesystem.
  19852. @param conf The configuration.
  19853. @param name The name of the file.
  19854. @param keyClass The 'key' type.
  19855. @param valClass The 'value' type.
  19856. @param compressionType The compression type.
  19857. @param progress The Progressable object to track progress.
  19858. @return Returns the handle to the constructed SequenceFile Writer.
  19859. @throws IOException
  19860. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19861. instead.]]>
  19862. </doc>
  19863. </method>
  19864. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19865. abstract="false" native="false" synchronized="false"
  19866. static="true" final="false" visibility="public"
  19867. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19868. instead.">
  19869. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19870. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19871. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19872. <param name="keyClass" type="java.lang.Class"/>
  19873. <param name="valClass" type="java.lang.Class"/>
  19874. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19875. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19876. <exception name="IOException" type="java.io.IOException"/>
  19877. <doc>
  19878. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19879. @param fs The configured filesystem.
  19880. @param conf The configuration.
  19881. @param name The name of the file.
  19882. @param keyClass The 'key' type.
  19883. @param valClass The 'value' type.
  19884. @param compressionType The compression type.
  19885. @param codec The compression codec.
  19886. @return Returns the handle to the constructed SequenceFile Writer.
  19887. @throws IOException
  19888. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19889. instead.]]>
  19890. </doc>
  19891. </method>
  19892. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19893. abstract="false" native="false" synchronized="false"
  19894. static="true" final="false" visibility="public"
  19895. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19896. instead.">
  19897. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19898. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19899. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19900. <param name="keyClass" type="java.lang.Class"/>
  19901. <param name="valClass" type="java.lang.Class"/>
  19902. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19903. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19904. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  19905. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  19906. <exception name="IOException" type="java.io.IOException"/>
  19907. <doc>
  19908. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19909. @param fs The configured filesystem.
  19910. @param conf The configuration.
  19911. @param name The name of the file.
  19912. @param keyClass The 'key' type.
  19913. @param valClass The 'value' type.
  19914. @param compressionType The compression type.
  19915. @param codec The compression codec.
  19916. @param progress The Progressable object to track progress.
  19917. @param metadata The metadata of the file.
  19918. @return Returns the handle to the constructed SequenceFile Writer.
  19919. @throws IOException
  19920. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19921. instead.]]>
  19922. </doc>
  19923. </method>
  19924. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19925. abstract="false" native="false" synchronized="false"
  19926. static="true" final="false" visibility="public"
  19927. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19928. instead.">
  19929. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19930. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19931. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19932. <param name="keyClass" type="java.lang.Class"/>
  19933. <param name="valClass" type="java.lang.Class"/>
  19934. <param name="bufferSize" type="int"/>
  19935. <param name="replication" type="short"/>
  19936. <param name="blockSize" type="long"/>
  19937. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19938. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19939. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  19940. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  19941. <exception name="IOException" type="java.io.IOException"/>
  19942. <doc>
  19943. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19944. @param fs The configured filesystem.
  19945. @param conf The configuration.
  19946. @param name The name of the file.
  19947. @param keyClass The 'key' type.
  19948. @param valClass The 'value' type.
  19949. @param bufferSize buffer size for the underlaying outputstream.
  19950. @param replication replication factor for the file.
  19951. @param blockSize block size for the file.
  19952. @param compressionType The compression type.
  19953. @param codec The compression codec.
  19954. @param progress The Progressable object to track progress.
  19955. @param metadata The metadata of the file.
  19956. @return Returns the handle to the constructed SequenceFile Writer.
  19957. @throws IOException
  19958. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19959. instead.]]>
  19960. </doc>
  19961. </method>
  19962. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19963. abstract="false" native="false" synchronized="false"
  19964. static="true" final="false" visibility="public"
  19965. deprecated="not deprecated">
  19966. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19967. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19968. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19969. <param name="keyClass" type="java.lang.Class"/>
  19970. <param name="valClass" type="java.lang.Class"/>
  19971. <param name="bufferSize" type="int"/>
  19972. <param name="replication" type="short"/>
  19973. <param name="blockSize" type="long"/>
  19974. <param name="createParent" type="boolean"/>
  19975. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19976. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19977. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  19978. <exception name="IOException" type="java.io.IOException"/>
  19979. <doc>
  19980. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19981. @param fs The configured filesystem.
  19982. @param conf The configuration.
  19983. @param name The name of the file.
  19984. @param keyClass The 'key' type.
  19985. @param valClass The 'value' type.
  19986. @param bufferSize buffer size for the underlaying outputstream.
  19987. @param replication replication factor for the file.
  19988. @param blockSize block size for the file.
  19989. @param createParent create parent directory if non-existent
  19990. @param compressionType The compression type.
  19991. @param codec The compression codec.
  19992. @param metadata The metadata of the file.
  19993. @return Returns the handle to the constructed SequenceFile Writer.
  19994. @throws IOException]]>
  19995. </doc>
  19996. </method>
  19997. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19998. abstract="false" native="false" synchronized="false"
  19999. static="true" final="false" visibility="public"
  20000. deprecated="not deprecated">
  20001. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  20002. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20003. <param name="name" type="org.apache.hadoop.fs.Path"/>
  20004. <param name="keyClass" type="java.lang.Class"/>
  20005. <param name="valClass" type="java.lang.Class"/>
  20006. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20007. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20008. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  20009. <param name="createFlag" type="java.util.EnumSet"/>
  20010. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  20011. <exception name="IOException" type="java.io.IOException"/>
  20012. <doc>
  20013. <![CDATA[Construct the preferred type of SequenceFile Writer.
  20014. @param fc The context for the specified file.
  20015. @param conf The configuration.
  20016. @param name The name of the file.
  20017. @param keyClass The 'key' type.
  20018. @param valClass The 'value' type.
  20019. @param compressionType The compression type.
  20020. @param codec The compression codec.
  20021. @param metadata The metadata of the file.
  20022. @param createFlag gives the semantics of create: overwrite, append etc.
  20023. @param opts file creation options; see {@link CreateOpts}.
  20024. @return Returns the handle to the constructed SequenceFile Writer.
  20025. @throws IOException]]>
  20026. </doc>
  20027. </method>
  20028. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20029. abstract="false" native="false" synchronized="false"
  20030. static="true" final="false" visibility="public"
  20031. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  20032. instead.">
  20033. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  20034. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20035. <param name="name" type="org.apache.hadoop.fs.Path"/>
  20036. <param name="keyClass" type="java.lang.Class"/>
  20037. <param name="valClass" type="java.lang.Class"/>
  20038. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20039. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20040. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  20041. <exception name="IOException" type="java.io.IOException"/>
  20042. <doc>
  20043. <![CDATA[Construct the preferred type of SequenceFile Writer.
  20044. @param fs The configured filesystem.
  20045. @param conf The configuration.
  20046. @param name The name of the file.
  20047. @param keyClass The 'key' type.
  20048. @param valClass The 'value' type.
  20049. @param compressionType The compression type.
  20050. @param codec The compression codec.
  20051. @param progress The Progressable object to track progress.
  20052. @return Returns the handle to the constructed SequenceFile Writer.
  20053. @throws IOException
  20054. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20055. instead.]]>
  20056. </doc>
  20057. </method>
  20058. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20059. abstract="false" native="false" synchronized="false"
  20060. static="true" final="false" visibility="public"
  20061. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  20062. instead.">
  20063. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20064. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  20065. <param name="keyClass" type="java.lang.Class"/>
  20066. <param name="valClass" type="java.lang.Class"/>
  20067. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20068. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20069. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  20070. <exception name="IOException" type="java.io.IOException"/>
  20071. <doc>
  20072. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  20073. @param conf The configuration.
  20074. @param out The stream on top which the writer is to be constructed.
  20075. @param keyClass The 'key' type.
  20076. @param valClass The 'value' type.
  20077. @param compressionType The compression type.
  20078. @param codec The compression codec.
  20079. @param metadata The metadata of the file.
  20080. @return Returns the handle to the constructed SequenceFile Writer.
  20081. @throws IOException
  20082. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20083. instead.]]>
  20084. </doc>
  20085. </method>
  20086. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20087. abstract="false" native="false" synchronized="false"
  20088. static="true" final="false" visibility="public"
  20089. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  20090. instead.">
  20091. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20092. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  20093. <param name="keyClass" type="java.lang.Class"/>
  20094. <param name="valClass" type="java.lang.Class"/>
  20095. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20096. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20097. <exception name="IOException" type="java.io.IOException"/>
  20098. <doc>
  20099. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  20100. @param conf The configuration.
  20101. @param out The stream on top which the writer is to be constructed.
  20102. @param keyClass The 'key' type.
  20103. @param valClass The 'value' type.
  20104. @param compressionType The compression type.
  20105. @param codec The compression codec.
  20106. @return Returns the handle to the constructed SequenceFile Writer.
  20107. @throws IOException
  20108. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20109. instead.]]>
  20110. </doc>
  20111. </method>
  20112. <field name="SYNC_INTERVAL" type="int"
  20113. transient="false" volatile="false"
  20114. static="true" final="true" visibility="public"
  20115. deprecated="not deprecated">
  20116. <doc>
  20117. <![CDATA[The number of bytes between sync points. 100 KB, default.
  20118. Computed as 5 KB * 20 = 100 KB]]>
  20119. </doc>
  20120. </field>
  20121. <doc>
  20122. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  20123. pairs.
  20124. <p><code>SequenceFile</code> provides {@link SequenceFile.Writer},
  20125. {@link SequenceFile.Reader} and {@link Sorter} classes for writing,
  20126. reading and sorting respectively.</p>
  20127. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  20128. {@link CompressionType} used to compress key/value pairs:
  20129. <ol>
  20130. <li>
  20131. <code>Writer</code> : Uncompressed records.
  20132. </li>
  20133. <li>
  20134. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  20135. values.
  20136. </li>
  20137. <li>
  20138. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  20139. values are collected in 'blocks'
  20140. separately and compressed. The size of
  20141. the 'block' is configurable.
  20142. </ol>
  20143. <p>The actual compression algorithm used to compress key and/or values can be
  20144. specified by using the appropriate {@link CompressionCodec}.</p>
  20145. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  20146. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  20147. <p>The {@link SequenceFile.Reader} acts as the bridge and can read any of the
  20148. above <code>SequenceFile</code> formats.</p>
  20149. <h4 id="Formats">SequenceFile Formats</h4>
  20150. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  20151. depending on the <code>CompressionType</code> specified. All of them share a
  20152. <a href="#Header">common header</a> described below.
  20153. <h5 id="Header">SequenceFile Header</h5>
  20154. <ul>
  20155. <li>
  20156. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  20157. version number (e.g. SEQ4 or SEQ6)
  20158. </li>
  20159. <li>
  20160. keyClassName -key class
  20161. </li>
  20162. <li>
  20163. valueClassName - value class
  20164. </li>
  20165. <li>
  20166. compression - A boolean which specifies if compression is turned on for
  20167. keys/values in this file.
  20168. </li>
  20169. <li>
  20170. blockCompression - A boolean which specifies if block-compression is
  20171. turned on for keys/values in this file.
  20172. </li>
  20173. <li>
  20174. compression codec - <code>CompressionCodec</code> class which is used for
  20175. compression of keys and/or values (if compression is
  20176. enabled).
  20177. </li>
  20178. <li>
  20179. metadata - {@link Metadata} for this file.
  20180. </li>
  20181. <li>
  20182. sync - A sync marker to denote end of the header.
  20183. </li>
  20184. </ul>
  20185. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  20186. <ul>
  20187. <li>
  20188. <a href="#Header">Header</a>
  20189. </li>
  20190. <li>
  20191. Record
  20192. <ul>
  20193. <li>Record length</li>
  20194. <li>Key length</li>
  20195. <li>Key</li>
  20196. <li>Value</li>
  20197. </ul>
  20198. </li>
  20199. <li>
  20200. A sync-marker every few <code>100</code> kilobytes or so.
  20201. </li>
  20202. </ul>
  20203. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  20204. <ul>
  20205. <li>
  20206. <a href="#Header">Header</a>
  20207. </li>
  20208. <li>
  20209. Record
  20210. <ul>
  20211. <li>Record length</li>
  20212. <li>Key length</li>
  20213. <li>Key</li>
  20214. <li><i>Compressed</i> Value</li>
  20215. </ul>
  20216. </li>
  20217. <li>
  20218. A sync-marker every few <code>100</code> kilobytes or so.
  20219. </li>
  20220. </ul>
  20221. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  20222. <ul>
  20223. <li>
  20224. <a href="#Header">Header</a>
  20225. </li>
  20226. <li>
  20227. Record <i>Block</i>
  20228. <ul>
  20229. <li>Uncompressed number of records in the block</li>
  20230. <li>Compressed key-lengths block-size</li>
  20231. <li>Compressed key-lengths block</li>
  20232. <li>Compressed keys block-size</li>
  20233. <li>Compressed keys block</li>
  20234. <li>Compressed value-lengths block-size</li>
  20235. <li>Compressed value-lengths block</li>
  20236. <li>Compressed values block-size</li>
  20237. <li>Compressed values block</li>
  20238. </ul>
  20239. </li>
  20240. <li>
  20241. A sync-marker every block.
  20242. </li>
  20243. </ul>
  20244. <p>The compressed blocks of key lengths and value lengths consist of the
  20245. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  20246. format.</p>
  20247. @see CompressionCodec]]>
  20248. </doc>
  20249. </class>
  20250. <!-- end class org.apache.hadoop.io.SequenceFile -->
  20251. <!-- start class org.apache.hadoop.io.SetFile -->
  20252. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  20253. abstract="false"
  20254. static="false" final="false" visibility="public"
  20255. deprecated="not deprecated">
  20256. <constructor name="SetFile"
  20257. static="false" final="false" visibility="protected"
  20258. deprecated="not deprecated">
  20259. </constructor>
  20260. <doc>
  20261. <![CDATA[A file-based set of keys.]]>
  20262. </doc>
  20263. </class>
  20264. <!-- end class org.apache.hadoop.io.SetFile -->
  20265. <!-- start class org.apache.hadoop.io.ShortWritable -->
  20266. <class name="ShortWritable" extends="java.lang.Object"
  20267. abstract="false"
  20268. static="false" final="false" visibility="public"
  20269. deprecated="not deprecated">
  20270. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20271. <constructor name="ShortWritable"
  20272. static="false" final="false" visibility="public"
  20273. deprecated="not deprecated">
  20274. </constructor>
  20275. <constructor name="ShortWritable" type="short"
  20276. static="false" final="false" visibility="public"
  20277. deprecated="not deprecated">
  20278. </constructor>
  20279. <method name="set"
  20280. abstract="false" native="false" synchronized="false"
  20281. static="false" final="false" visibility="public"
  20282. deprecated="not deprecated">
  20283. <param name="value" type="short"/>
  20284. <doc>
  20285. <![CDATA[Set the value of this ShortWritable.]]>
  20286. </doc>
  20287. </method>
  20288. <method name="get" return="short"
  20289. abstract="false" native="false" synchronized="false"
  20290. static="false" final="false" visibility="public"
  20291. deprecated="not deprecated">
  20292. <doc>
  20293. <![CDATA[Return the value of this ShortWritable.]]>
  20294. </doc>
  20295. </method>
  20296. <method name="readFields"
  20297. abstract="false" native="false" synchronized="false"
  20298. static="false" final="false" visibility="public"
  20299. deprecated="not deprecated">
  20300. <param name="in" type="java.io.DataInput"/>
  20301. <exception name="IOException" type="java.io.IOException"/>
  20302. <doc>
  20303. <![CDATA[read the short value]]>
  20304. </doc>
  20305. </method>
  20306. <method name="write"
  20307. abstract="false" native="false" synchronized="false"
  20308. static="false" final="false" visibility="public"
  20309. deprecated="not deprecated">
  20310. <param name="out" type="java.io.DataOutput"/>
  20311. <exception name="IOException" type="java.io.IOException"/>
  20312. <doc>
  20313. <![CDATA[write short value]]>
  20314. </doc>
  20315. </method>
  20316. <method name="equals" return="boolean"
  20317. abstract="false" native="false" synchronized="false"
  20318. static="false" final="false" visibility="public"
  20319. deprecated="not deprecated">
  20320. <param name="o" type="java.lang.Object"/>
  20321. <doc>
  20322. <![CDATA[Returns true iff <code>o</code> is a ShortWritable with the same value.]]>
  20323. </doc>
  20324. </method>
  20325. <method name="hashCode" return="int"
  20326. abstract="false" native="false" synchronized="false"
  20327. static="false" final="false" visibility="public"
  20328. deprecated="not deprecated">
  20329. <doc>
  20330. <![CDATA[hash code]]>
  20331. </doc>
  20332. </method>
  20333. <method name="compareTo" return="int"
  20334. abstract="false" native="false" synchronized="false"
  20335. static="false" final="false" visibility="public"
  20336. deprecated="not deprecated">
  20337. <param name="o" type="org.apache.hadoop.io.ShortWritable"/>
  20338. <doc>
  20339. <![CDATA[Compares two ShortWritable.]]>
  20340. </doc>
  20341. </method>
  20342. <method name="toString" return="java.lang.String"
  20343. abstract="false" native="false" synchronized="false"
  20344. static="false" final="false" visibility="public"
  20345. deprecated="not deprecated">
  20346. <doc>
  20347. <![CDATA[Short values in string format]]>
  20348. </doc>
  20349. </method>
  20350. <doc>
  20351. <![CDATA[A WritableComparable for shorts.]]>
  20352. </doc>
  20353. </class>
  20354. <!-- end class org.apache.hadoop.io.ShortWritable -->
  20355. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  20356. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  20357. abstract="false"
  20358. static="false" final="false" visibility="public"
  20359. deprecated="not deprecated">
  20360. <implements name="java.util.SortedMap"/>
  20361. <constructor name="SortedMapWritable"
  20362. static="false" final="false" visibility="public"
  20363. deprecated="not deprecated">
  20364. <doc>
  20365. <![CDATA[default constructor.]]>
  20366. </doc>
  20367. </constructor>
  20368. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  20369. static="false" final="false" visibility="public"
  20370. deprecated="not deprecated">
  20371. <doc>
  20372. <![CDATA[Copy constructor.
  20373. @param other the map to copy from]]>
  20374. </doc>
  20375. </constructor>
  20376. <method name="comparator" return="java.util.Comparator"
  20377. abstract="false" native="false" synchronized="false"
  20378. static="false" final="false" visibility="public"
  20379. deprecated="not deprecated">
  20380. </method>
  20381. <method name="firstKey" return="K"
  20382. abstract="false" native="false" synchronized="false"
  20383. static="false" final="false" visibility="public"
  20384. deprecated="not deprecated">
  20385. </method>
  20386. <method name="headMap" return="java.util.SortedMap"
  20387. abstract="false" native="false" synchronized="false"
  20388. static="false" final="false" visibility="public"
  20389. deprecated="not deprecated">
  20390. <param name="toKey" type="K"/>
  20391. </method>
  20392. <method name="lastKey" return="K"
  20393. abstract="false" native="false" synchronized="false"
  20394. static="false" final="false" visibility="public"
  20395. deprecated="not deprecated">
  20396. </method>
  20397. <method name="subMap" return="java.util.SortedMap"
  20398. abstract="false" native="false" synchronized="false"
  20399. static="false" final="false" visibility="public"
  20400. deprecated="not deprecated">
  20401. <param name="fromKey" type="K"/>
  20402. <param name="toKey" type="K"/>
  20403. </method>
  20404. <method name="tailMap" return="java.util.SortedMap"
  20405. abstract="false" native="false" synchronized="false"
  20406. static="false" final="false" visibility="public"
  20407. deprecated="not deprecated">
  20408. <param name="fromKey" type="K"/>
  20409. </method>
  20410. <method name="clear"
  20411. abstract="false" native="false" synchronized="false"
  20412. static="false" final="false" visibility="public"
  20413. deprecated="not deprecated">
  20414. </method>
  20415. <method name="containsKey" return="boolean"
  20416. abstract="false" native="false" synchronized="false"
  20417. static="false" final="false" visibility="public"
  20418. deprecated="not deprecated">
  20419. <param name="key" type="java.lang.Object"/>
  20420. </method>
  20421. <method name="containsValue" return="boolean"
  20422. abstract="false" native="false" synchronized="false"
  20423. static="false" final="false" visibility="public"
  20424. deprecated="not deprecated">
  20425. <param name="value" type="java.lang.Object"/>
  20426. </method>
  20427. <method name="entrySet" return="java.util.Set"
  20428. abstract="false" native="false" synchronized="false"
  20429. static="false" final="false" visibility="public"
  20430. deprecated="not deprecated">
  20431. </method>
  20432. <method name="get" return="org.apache.hadoop.io.Writable"
  20433. abstract="false" native="false" synchronized="false"
  20434. static="false" final="false" visibility="public"
  20435. deprecated="not deprecated">
  20436. <param name="key" type="java.lang.Object"/>
  20437. </method>
  20438. <method name="isEmpty" return="boolean"
  20439. abstract="false" native="false" synchronized="false"
  20440. static="false" final="false" visibility="public"
  20441. deprecated="not deprecated">
  20442. </method>
  20443. <method name="keySet" return="java.util.Set"
  20444. abstract="false" native="false" synchronized="false"
  20445. static="false" final="false" visibility="public"
  20446. deprecated="not deprecated">
  20447. </method>
  20448. <method name="put" return="org.apache.hadoop.io.Writable"
  20449. abstract="false" native="false" synchronized="false"
  20450. static="false" final="false" visibility="public"
  20451. deprecated="not deprecated">
  20452. <param name="key" type="K"/>
  20453. <param name="value" type="org.apache.hadoop.io.Writable"/>
  20454. </method>
  20455. <method name="putAll"
  20456. abstract="false" native="false" synchronized="false"
  20457. static="false" final="false" visibility="public"
  20458. deprecated="not deprecated">
  20459. <param name="t" type="java.util.Map"/>
  20460. </method>
  20461. <method name="remove" return="org.apache.hadoop.io.Writable"
  20462. abstract="false" native="false" synchronized="false"
  20463. static="false" final="false" visibility="public"
  20464. deprecated="not deprecated">
  20465. <param name="key" type="java.lang.Object"/>
  20466. </method>
  20467. <method name="size" return="int"
  20468. abstract="false" native="false" synchronized="false"
  20469. static="false" final="false" visibility="public"
  20470. deprecated="not deprecated">
  20471. </method>
  20472. <method name="values" return="java.util.Collection"
  20473. abstract="false" native="false" synchronized="false"
  20474. static="false" final="false" visibility="public"
  20475. deprecated="not deprecated">
  20476. </method>
  20477. <method name="readFields"
  20478. abstract="false" native="false" synchronized="false"
  20479. static="false" final="false" visibility="public"
  20480. deprecated="not deprecated">
  20481. <param name="in" type="java.io.DataInput"/>
  20482. <exception name="IOException" type="java.io.IOException"/>
  20483. </method>
  20484. <method name="write"
  20485. abstract="false" native="false" synchronized="false"
  20486. static="false" final="false" visibility="public"
  20487. deprecated="not deprecated">
  20488. <param name="out" type="java.io.DataOutput"/>
  20489. <exception name="IOException" type="java.io.IOException"/>
  20490. </method>
  20491. <method name="equals" return="boolean"
  20492. abstract="false" native="false" synchronized="false"
  20493. static="false" final="false" visibility="public"
  20494. deprecated="not deprecated">
  20495. <param name="obj" type="java.lang.Object"/>
  20496. </method>
  20497. <method name="hashCode" return="int"
  20498. abstract="false" native="false" synchronized="false"
  20499. static="false" final="false" visibility="public"
  20500. deprecated="not deprecated">
  20501. </method>
  20502. <doc>
  20503. <![CDATA[A Writable SortedMap.]]>
  20504. </doc>
  20505. </class>
  20506. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  20507. <!-- start interface org.apache.hadoop.io.Stringifier -->
  20508. <interface name="Stringifier" abstract="true"
  20509. static="false" final="false" visibility="public"
  20510. deprecated="not deprecated">
  20511. <implements name="java.io.Closeable"/>
  20512. <method name="toString" return="java.lang.String"
  20513. abstract="true" native="false" synchronized="false"
  20514. static="false" final="false" visibility="public"
  20515. deprecated="not deprecated">
  20516. <param name="obj" type="T"/>
  20517. <exception name="IOException" type="java.io.IOException"/>
  20518. <doc>
  20519. <![CDATA[Converts the object to a string representation
  20520. @param obj the object to convert
  20521. @return the string representation of the object
  20522. @throws IOException if the object cannot be converted]]>
  20523. </doc>
  20524. </method>
  20525. <method name="fromString" return="T"
  20526. abstract="true" native="false" synchronized="false"
  20527. static="false" final="false" visibility="public"
  20528. deprecated="not deprecated">
  20529. <param name="str" type="java.lang.String"/>
  20530. <exception name="IOException" type="java.io.IOException"/>
  20531. <doc>
  20532. <![CDATA[Restores the object from its string representation.
  20533. @param str the string representation of the object
  20534. @return restored object
  20535. @throws IOException if the object cannot be restored]]>
  20536. </doc>
  20537. </method>
  20538. <method name="close"
  20539. abstract="true" native="false" synchronized="false"
  20540. static="false" final="false" visibility="public"
  20541. deprecated="not deprecated">
  20542. <exception name="IOException" type="java.io.IOException"/>
  20543. <doc>
  20544. <![CDATA[Closes this object.
  20545. @throws IOException if an I/O error occurs]]>
  20546. </doc>
  20547. </method>
  20548. <doc>
  20549. <![CDATA[Stringifier interface offers two methods to convert an object
  20550. to a string representation and restore the object given its
  20551. string representation.
  20552. @param <T> the class of the objects to stringify]]>
  20553. </doc>
  20554. </interface>
  20555. <!-- end interface org.apache.hadoop.io.Stringifier -->
  20556. <!-- start class org.apache.hadoop.io.Text -->
  20557. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  20558. abstract="false"
  20559. static="false" final="false" visibility="public"
  20560. deprecated="not deprecated">
  20561. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20562. <constructor name="Text"
  20563. static="false" final="false" visibility="public"
  20564. deprecated="not deprecated">
  20565. </constructor>
  20566. <constructor name="Text" type="java.lang.String"
  20567. static="false" final="false" visibility="public"
  20568. deprecated="not deprecated">
  20569. <doc>
  20570. <![CDATA[Construct from a string.]]>
  20571. </doc>
  20572. </constructor>
  20573. <constructor name="Text" type="org.apache.hadoop.io.Text"
  20574. static="false" final="false" visibility="public"
  20575. deprecated="not deprecated">
  20576. <doc>
  20577. <![CDATA[Construct from another text.]]>
  20578. </doc>
  20579. </constructor>
  20580. <constructor name="Text" type="byte[]"
  20581. static="false" final="false" visibility="public"
  20582. deprecated="not deprecated">
  20583. <doc>
  20584. <![CDATA[Construct from a byte array.]]>
  20585. </doc>
  20586. </constructor>
  20587. <method name="copyBytes" return="byte[]"
  20588. abstract="false" native="false" synchronized="false"
  20589. static="false" final="false" visibility="public"
  20590. deprecated="not deprecated">
  20591. <doc>
  20592. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  20593. See {@link #getBytes()} for faster access to the underlying array.]]>
  20594. </doc>
  20595. </method>
  20596. <method name="getBytes" return="byte[]"
  20597. abstract="false" native="false" synchronized="false"
  20598. static="false" final="false" visibility="public"
  20599. deprecated="not deprecated">
  20600. <doc>
  20601. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  20602. valid. Please use {@link #copyBytes()} if you
  20603. need the returned array to be precisely the length of the data.]]>
  20604. </doc>
  20605. </method>
  20606. <method name="getLength" return="int"
  20607. abstract="false" native="false" synchronized="false"
  20608. static="false" final="false" visibility="public"
  20609. deprecated="not deprecated">
  20610. <doc>
  20611. <![CDATA[Returns the number of bytes in the byte array]]>
  20612. </doc>
  20613. </method>
  20614. <method name="charAt" return="int"
  20615. abstract="false" native="false" synchronized="false"
  20616. static="false" final="false" visibility="public"
  20617. deprecated="not deprecated">
  20618. <param name="position" type="int"/>
  20619. <doc>
  20620. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  20621. for the character at <code>position</code>. Note that this
  20622. method avoids using the converter or doing String instantiation
  20623. @return the Unicode scalar value at position or -1
  20624. if the position is invalid or points to a
  20625. trailing byte]]>
  20626. </doc>
  20627. </method>
  20628. <method name="find" return="int"
  20629. abstract="false" native="false" synchronized="false"
  20630. static="false" final="false" visibility="public"
  20631. deprecated="not deprecated">
  20632. <param name="what" type="java.lang.String"/>
  20633. </method>
  20634. <method name="find" return="int"
  20635. abstract="false" native="false" synchronized="false"
  20636. static="false" final="false" visibility="public"
  20637. deprecated="not deprecated">
  20638. <param name="what" type="java.lang.String"/>
  20639. <param name="start" type="int"/>
  20640. <doc>
  20641. <![CDATA[Finds any occurrence of <code>what</code> in the backing
  20642. buffer, starting as position <code>start</code>. The starting
  20643. position is measured in bytes and the return value is in
  20644. terms of byte position in the buffer. The backing buffer is
  20645. not converted to a string for this operation.
  20646. @return byte position of the first occurrence of the search
  20647. string in the UTF-8 buffer or -1 if not found]]>
  20648. </doc>
  20649. </method>
  20650. <method name="set"
  20651. abstract="false" native="false" synchronized="false"
  20652. static="false" final="false" visibility="public"
  20653. deprecated="not deprecated">
  20654. <param name="string" type="java.lang.String"/>
  20655. <doc>
  20656. <![CDATA[Set to contain the contents of a string.]]>
  20657. </doc>
  20658. </method>
  20659. <method name="set"
  20660. abstract="false" native="false" synchronized="false"
  20661. static="false" final="false" visibility="public"
  20662. deprecated="not deprecated">
  20663. <param name="utf8" type="byte[]"/>
  20664. <doc>
  20665. <![CDATA[Set to a utf8 byte array]]>
  20666. </doc>
  20667. </method>
  20668. <method name="set"
  20669. abstract="false" native="false" synchronized="false"
  20670. static="false" final="false" visibility="public"
  20671. deprecated="not deprecated">
  20672. <param name="other" type="org.apache.hadoop.io.Text"/>
  20673. <doc>
  20674. <![CDATA[copy a text.]]>
  20675. </doc>
  20676. </method>
  20677. <method name="set"
  20678. abstract="false" native="false" synchronized="false"
  20679. static="false" final="false" visibility="public"
  20680. deprecated="not deprecated">
  20681. <param name="utf8" type="byte[]"/>
  20682. <param name="start" type="int"/>
  20683. <param name="len" type="int"/>
  20684. <doc>
  20685. <![CDATA[Set the Text to range of bytes
  20686. @param utf8 the data to copy from
  20687. @param start the first position of the new string
  20688. @param len the number of bytes of the new string]]>
  20689. </doc>
  20690. </method>
  20691. <method name="append"
  20692. abstract="false" native="false" synchronized="false"
  20693. static="false" final="false" visibility="public"
  20694. deprecated="not deprecated">
  20695. <param name="utf8" type="byte[]"/>
  20696. <param name="start" type="int"/>
  20697. <param name="len" type="int"/>
  20698. <doc>
  20699. <![CDATA[Append a range of bytes to the end of the given text
  20700. @param utf8 the data to copy from
  20701. @param start the first position to append from utf8
  20702. @param len the number of bytes to append]]>
  20703. </doc>
  20704. </method>
  20705. <method name="clear"
  20706. abstract="false" native="false" synchronized="false"
  20707. static="false" final="false" visibility="public"
  20708. deprecated="not deprecated">
  20709. <doc>
  20710. <![CDATA[Clear the string to empty.
  20711. <em>Note</em>: For performance reasons, this call does not clear the
  20712. underlying byte array that is retrievable via {@link #getBytes()}.
  20713. In order to free the byte-array memory, call {@link #set(byte[])}
  20714. with an empty byte array (For example, <code>new byte[0]</code>).]]>
  20715. </doc>
  20716. </method>
  20717. <method name="toString" return="java.lang.String"
  20718. abstract="false" native="false" synchronized="false"
  20719. static="false" final="false" visibility="public"
  20720. deprecated="not deprecated">
  20721. <doc>
  20722. <![CDATA[Convert text back to string
  20723. @see java.lang.Object#toString()]]>
  20724. </doc>
  20725. </method>
  20726. <method name="readFields"
  20727. abstract="false" native="false" synchronized="false"
  20728. static="false" final="false" visibility="public"
  20729. deprecated="not deprecated">
  20730. <param name="in" type="java.io.DataInput"/>
  20731. <exception name="IOException" type="java.io.IOException"/>
  20732. <doc>
  20733. <![CDATA[deserialize]]>
  20734. </doc>
  20735. </method>
  20736. <method name="readFields"
  20737. abstract="false" native="false" synchronized="false"
  20738. static="false" final="false" visibility="public"
  20739. deprecated="not deprecated">
  20740. <param name="in" type="java.io.DataInput"/>
  20741. <param name="maxLength" type="int"/>
  20742. <exception name="IOException" type="java.io.IOException"/>
  20743. </method>
  20744. <method name="skip"
  20745. abstract="false" native="false" synchronized="false"
  20746. static="true" final="false" visibility="public"
  20747. deprecated="not deprecated">
  20748. <param name="in" type="java.io.DataInput"/>
  20749. <exception name="IOException" type="java.io.IOException"/>
  20750. <doc>
  20751. <![CDATA[Skips over one Text in the input.]]>
  20752. </doc>
  20753. </method>
  20754. <method name="readWithKnownLength"
  20755. abstract="false" native="false" synchronized="false"
  20756. static="false" final="false" visibility="public"
  20757. deprecated="not deprecated">
  20758. <param name="in" type="java.io.DataInput"/>
  20759. <param name="len" type="int"/>
  20760. <exception name="IOException" type="java.io.IOException"/>
  20761. <doc>
  20762. <![CDATA[Read a Text object whose length is already known.
  20763. This allows creating Text from a stream which uses a different serialization
  20764. format.]]>
  20765. </doc>
  20766. </method>
  20767. <method name="write"
  20768. abstract="false" native="false" synchronized="false"
  20769. static="false" final="false" visibility="public"
  20770. deprecated="not deprecated">
  20771. <param name="out" type="java.io.DataOutput"/>
  20772. <exception name="IOException" type="java.io.IOException"/>
  20773. <doc>
  20774. <![CDATA[serialize
  20775. write this object to out
  20776. length uses zero-compressed encoding
  20777. @see Writable#write(DataOutput)]]>
  20778. </doc>
  20779. </method>
  20780. <method name="write"
  20781. abstract="false" native="false" synchronized="false"
  20782. static="false" final="false" visibility="public"
  20783. deprecated="not deprecated">
  20784. <param name="out" type="java.io.DataOutput"/>
  20785. <param name="maxLength" type="int"/>
  20786. <exception name="IOException" type="java.io.IOException"/>
  20787. </method>
  20788. <method name="equals" return="boolean"
  20789. abstract="false" native="false" synchronized="false"
  20790. static="false" final="false" visibility="public"
  20791. deprecated="not deprecated">
  20792. <param name="o" type="java.lang.Object"/>
  20793. <doc>
  20794. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  20795. </doc>
  20796. </method>
  20797. <method name="hashCode" return="int"
  20798. abstract="false" native="false" synchronized="false"
  20799. static="false" final="false" visibility="public"
  20800. deprecated="not deprecated">
  20801. </method>
  20802. <method name="decode" return="java.lang.String"
  20803. abstract="false" native="false" synchronized="false"
  20804. static="true" final="false" visibility="public"
  20805. deprecated="not deprecated">
  20806. <param name="utf8" type="byte[]"/>
  20807. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20808. <doc>
  20809. <![CDATA[Converts the provided byte array to a String using the
  20810. UTF-8 encoding. If the input is malformed,
  20811. replace by a default value.]]>
  20812. </doc>
  20813. </method>
  20814. <method name="decode" return="java.lang.String"
  20815. abstract="false" native="false" synchronized="false"
  20816. static="true" final="false" visibility="public"
  20817. deprecated="not deprecated">
  20818. <param name="utf8" type="byte[]"/>
  20819. <param name="start" type="int"/>
  20820. <param name="length" type="int"/>
  20821. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20822. </method>
  20823. <method name="decode" return="java.lang.String"
  20824. abstract="false" native="false" synchronized="false"
  20825. static="true" final="false" visibility="public"
  20826. deprecated="not deprecated">
  20827. <param name="utf8" type="byte[]"/>
  20828. <param name="start" type="int"/>
  20829. <param name="length" type="int"/>
  20830. <param name="replace" type="boolean"/>
  20831. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20832. <doc>
  20833. <![CDATA[Converts the provided byte array to a String using the
  20834. UTF-8 encoding. If <code>replace</code> is true, then
  20835. malformed input is replaced with the
  20836. substitution character, which is U+FFFD. Otherwise the
  20837. method throws a MalformedInputException.]]>
  20838. </doc>
  20839. </method>
  20840. <method name="encode" return="java.nio.ByteBuffer"
  20841. abstract="false" native="false" synchronized="false"
  20842. static="true" final="false" visibility="public"
  20843. deprecated="not deprecated">
  20844. <param name="string" type="java.lang.String"/>
  20845. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20846. <doc>
  20847. <![CDATA[Converts the provided String to bytes using the
  20848. UTF-8 encoding. If the input is malformed,
  20849. invalid chars are replaced by a default value.
  20850. @return ByteBuffer: bytes stores at ByteBuffer.array()
  20851. and length is ByteBuffer.limit()]]>
  20852. </doc>
  20853. </method>
  20854. <method name="encode" return="java.nio.ByteBuffer"
  20855. abstract="false" native="false" synchronized="false"
  20856. static="true" final="false" visibility="public"
  20857. deprecated="not deprecated">
  20858. <param name="string" type="java.lang.String"/>
  20859. <param name="replace" type="boolean"/>
  20860. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20861. <doc>
  20862. <![CDATA[Converts the provided String to bytes using the
  20863. UTF-8 encoding. If <code>replace</code> is true, then
  20864. malformed input is replaced with the
  20865. substitution character, which is U+FFFD. Otherwise the
  20866. method throws a MalformedInputException.
  20867. @return ByteBuffer: bytes stores at ByteBuffer.array()
  20868. and length is ByteBuffer.limit()]]>
  20869. </doc>
  20870. </method>
  20871. <method name="readString" return="java.lang.String"
  20872. abstract="false" native="false" synchronized="false"
  20873. static="true" final="false" visibility="public"
  20874. deprecated="not deprecated">
  20875. <param name="in" type="java.io.DataInput"/>
  20876. <exception name="IOException" type="java.io.IOException"/>
  20877. <doc>
  20878. <![CDATA[Read a UTF8 encoded string from in]]>
  20879. </doc>
  20880. </method>
  20881. <method name="readString" return="java.lang.String"
  20882. abstract="false" native="false" synchronized="false"
  20883. static="true" final="false" visibility="public"
  20884. deprecated="not deprecated">
  20885. <param name="in" type="java.io.DataInput"/>
  20886. <param name="maxLength" type="int"/>
  20887. <exception name="IOException" type="java.io.IOException"/>
  20888. <doc>
  20889. <![CDATA[Read a UTF8 encoded string with a maximum size]]>
  20890. </doc>
  20891. </method>
  20892. <method name="writeString" return="int"
  20893. abstract="false" native="false" synchronized="false"
  20894. static="true" final="false" visibility="public"
  20895. deprecated="not deprecated">
  20896. <param name="out" type="java.io.DataOutput"/>
  20897. <param name="s" type="java.lang.String"/>
  20898. <exception name="IOException" type="java.io.IOException"/>
  20899. <doc>
  20900. <![CDATA[Write a UTF8 encoded string to out]]>
  20901. </doc>
  20902. </method>
  20903. <method name="writeString" return="int"
  20904. abstract="false" native="false" synchronized="false"
  20905. static="true" final="false" visibility="public"
  20906. deprecated="not deprecated">
  20907. <param name="out" type="java.io.DataOutput"/>
  20908. <param name="s" type="java.lang.String"/>
  20909. <param name="maxLength" type="int"/>
  20910. <exception name="IOException" type="java.io.IOException"/>
  20911. <doc>
  20912. <![CDATA[Write a UTF8 encoded string with a maximum size to out]]>
  20913. </doc>
  20914. </method>
  20915. <method name="validateUTF8"
  20916. abstract="false" native="false" synchronized="false"
  20917. static="true" final="false" visibility="public"
  20918. deprecated="not deprecated">
  20919. <param name="utf8" type="byte[]"/>
  20920. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  20921. <doc>
  20922. <![CDATA[Check if a byte array contains valid utf-8
  20923. @param utf8 byte array
  20924. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  20925. </doc>
  20926. </method>
  20927. <method name="validateUTF8"
  20928. abstract="false" native="false" synchronized="false"
  20929. static="true" final="false" visibility="public"
  20930. deprecated="not deprecated">
  20931. <param name="utf8" type="byte[]"/>
  20932. <param name="start" type="int"/>
  20933. <param name="len" type="int"/>
  20934. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  20935. <doc>
  20936. <![CDATA[Check to see if a byte array is valid utf-8
  20937. @param utf8 the array of bytes
  20938. @param start the offset of the first byte in the array
  20939. @param len the length of the byte sequence
  20940. @throws MalformedInputException if the byte array contains invalid bytes]]>
  20941. </doc>
  20942. </method>
  20943. <method name="bytesToCodePoint" return="int"
  20944. abstract="false" native="false" synchronized="false"
  20945. static="true" final="false" visibility="public"
  20946. deprecated="not deprecated">
  20947. <param name="bytes" type="java.nio.ByteBuffer"/>
  20948. <doc>
  20949. <![CDATA[Returns the next code point at the current position in
  20950. the buffer. The buffer's position will be incremented.
  20951. Any mark set on this buffer will be changed by this method!]]>
  20952. </doc>
  20953. </method>
  20954. <method name="utf8Length" return="int"
  20955. abstract="false" native="false" synchronized="false"
  20956. static="true" final="false" visibility="public"
  20957. deprecated="not deprecated">
  20958. <param name="string" type="java.lang.String"/>
  20959. <doc>
  20960. <![CDATA[For the given string, returns the number of UTF-8 bytes
  20961. required to encode the string.
  20962. @param string text to encode
  20963. @return number of UTF-8 bytes required to encode]]>
  20964. </doc>
  20965. </method>
  20966. <field name="DEFAULT_MAX_LEN" type="int"
  20967. transient="false" volatile="false"
  20968. static="true" final="true" visibility="public"
  20969. deprecated="not deprecated">
  20970. </field>
  20971. <doc>
  20972. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  20973. to serialize, deserialize, and compare texts at byte level. The type of
  20974. length is integer and is serialized using zero-compressed format. <p>In
  20975. addition, it provides methods for string traversal without converting the
  20976. byte array to a string. <p>Also includes utilities for
  20977. serializing/deserialing a string, coding/decoding a string, checking if a
  20978. byte array contains valid UTF8 code, calculating the length of an encoded
  20979. string.]]>
  20980. </doc>
  20981. </class>
  20982. <!-- end class org.apache.hadoop.io.Text -->
  20983. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  20984. <class name="TwoDArrayWritable" extends="java.lang.Object"
  20985. abstract="false"
  20986. static="false" final="false" visibility="public"
  20987. deprecated="not deprecated">
  20988. <implements name="org.apache.hadoop.io.Writable"/>
  20989. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  20990. static="false" final="false" visibility="public"
  20991. deprecated="not deprecated">
  20992. </constructor>
  20993. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  20994. static="false" final="false" visibility="public"
  20995. deprecated="not deprecated">
  20996. </constructor>
  20997. <method name="toArray" return="java.lang.Object"
  20998. abstract="false" native="false" synchronized="false"
  20999. static="false" final="false" visibility="public"
  21000. deprecated="not deprecated">
  21001. </method>
  21002. <method name="set"
  21003. abstract="false" native="false" synchronized="false"
  21004. static="false" final="false" visibility="public"
  21005. deprecated="not deprecated">
  21006. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  21007. </method>
  21008. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  21009. abstract="false" native="false" synchronized="false"
  21010. static="false" final="false" visibility="public"
  21011. deprecated="not deprecated">
  21012. </method>
  21013. <method name="readFields"
  21014. abstract="false" native="false" synchronized="false"
  21015. static="false" final="false" visibility="public"
  21016. deprecated="not deprecated">
  21017. <param name="in" type="java.io.DataInput"/>
  21018. <exception name="IOException" type="java.io.IOException"/>
  21019. </method>
  21020. <method name="write"
  21021. abstract="false" native="false" synchronized="false"
  21022. static="false" final="false" visibility="public"
  21023. deprecated="not deprecated">
  21024. <param name="out" type="java.io.DataOutput"/>
  21025. <exception name="IOException" type="java.io.IOException"/>
  21026. </method>
  21027. <doc>
  21028. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  21029. </doc>
  21030. </class>
  21031. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  21032. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  21033. <class name="VersionedWritable" extends="java.lang.Object"
  21034. abstract="true"
  21035. static="false" final="false" visibility="public"
  21036. deprecated="not deprecated">
  21037. <implements name="org.apache.hadoop.io.Writable"/>
  21038. <constructor name="VersionedWritable"
  21039. static="false" final="false" visibility="public"
  21040. deprecated="not deprecated">
  21041. </constructor>
  21042. <method name="getVersion" return="byte"
  21043. abstract="true" native="false" synchronized="false"
  21044. static="false" final="false" visibility="public"
  21045. deprecated="not deprecated">
  21046. <doc>
  21047. <![CDATA[Return the version number of the current implementation.]]>
  21048. </doc>
  21049. </method>
  21050. <method name="write"
  21051. abstract="false" native="false" synchronized="false"
  21052. static="false" final="false" visibility="public"
  21053. deprecated="not deprecated">
  21054. <param name="out" type="java.io.DataOutput"/>
  21055. <exception name="IOException" type="java.io.IOException"/>
  21056. </method>
  21057. <method name="readFields"
  21058. abstract="false" native="false" synchronized="false"
  21059. static="false" final="false" visibility="public"
  21060. deprecated="not deprecated">
  21061. <param name="in" type="java.io.DataInput"/>
  21062. <exception name="IOException" type="java.io.IOException"/>
  21063. </method>
  21064. <doc>
  21065. <![CDATA[A base class for Writables that provides version checking.
  21066. <p>This is useful when a class may evolve, so that instances written by the
  21067. old version of the class may still be processed by the new version. To
  21068. handle this situation, {@link #readFields(DataInput)}
  21069. implementations should catch {@link VersionMismatchException}.]]>
  21070. </doc>
  21071. </class>
  21072. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  21073. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  21074. <class name="VersionMismatchException" extends="java.io.IOException"
  21075. abstract="false"
  21076. static="false" final="false" visibility="public"
  21077. deprecated="not deprecated">
  21078. <constructor name="VersionMismatchException" type="byte, byte"
  21079. static="false" final="false" visibility="public"
  21080. deprecated="not deprecated">
  21081. </constructor>
  21082. <method name="toString" return="java.lang.String"
  21083. abstract="false" native="false" synchronized="false"
  21084. static="false" final="false" visibility="public"
  21085. deprecated="not deprecated">
  21086. <doc>
  21087. <![CDATA[Returns a string representation of this object.]]>
  21088. </doc>
  21089. </method>
  21090. <doc>
  21091. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  21092. version of an object being read does not match the current implementation
  21093. version as returned by {@link VersionedWritable#getVersion()}.]]>
  21094. </doc>
  21095. </class>
  21096. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  21097. <!-- start class org.apache.hadoop.io.VIntWritable -->
  21098. <class name="VIntWritable" extends="java.lang.Object"
  21099. abstract="false"
  21100. static="false" final="false" visibility="public"
  21101. deprecated="not deprecated">
  21102. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21103. <constructor name="VIntWritable"
  21104. static="false" final="false" visibility="public"
  21105. deprecated="not deprecated">
  21106. </constructor>
  21107. <constructor name="VIntWritable" type="int"
  21108. static="false" final="false" visibility="public"
  21109. deprecated="not deprecated">
  21110. </constructor>
  21111. <method name="set"
  21112. abstract="false" native="false" synchronized="false"
  21113. static="false" final="false" visibility="public"
  21114. deprecated="not deprecated">
  21115. <param name="value" type="int"/>
  21116. <doc>
  21117. <![CDATA[Set the value of this VIntWritable.]]>
  21118. </doc>
  21119. </method>
  21120. <method name="get" return="int"
  21121. abstract="false" native="false" synchronized="false"
  21122. static="false" final="false" visibility="public"
  21123. deprecated="not deprecated">
  21124. <doc>
  21125. <![CDATA[Return the value of this VIntWritable.]]>
  21126. </doc>
  21127. </method>
  21128. <method name="readFields"
  21129. abstract="false" native="false" synchronized="false"
  21130. static="false" final="false" visibility="public"
  21131. deprecated="not deprecated">
  21132. <param name="in" type="java.io.DataInput"/>
  21133. <exception name="IOException" type="java.io.IOException"/>
  21134. </method>
  21135. <method name="write"
  21136. abstract="false" native="false" synchronized="false"
  21137. static="false" final="false" visibility="public"
  21138. deprecated="not deprecated">
  21139. <param name="out" type="java.io.DataOutput"/>
  21140. <exception name="IOException" type="java.io.IOException"/>
  21141. </method>
  21142. <method name="equals" return="boolean"
  21143. abstract="false" native="false" synchronized="false"
  21144. static="false" final="false" visibility="public"
  21145. deprecated="not deprecated">
  21146. <param name="o" type="java.lang.Object"/>
  21147. <doc>
  21148. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  21149. </doc>
  21150. </method>
  21151. <method name="hashCode" return="int"
  21152. abstract="false" native="false" synchronized="false"
  21153. static="false" final="false" visibility="public"
  21154. deprecated="not deprecated">
  21155. </method>
  21156. <method name="compareTo" return="int"
  21157. abstract="false" native="false" synchronized="false"
  21158. static="false" final="false" visibility="public"
  21159. deprecated="not deprecated">
  21160. <param name="o" type="org.apache.hadoop.io.VIntWritable"/>
  21161. <doc>
  21162. <![CDATA[Compares two VIntWritables.]]>
  21163. </doc>
  21164. </method>
  21165. <method name="toString" return="java.lang.String"
  21166. abstract="false" native="false" synchronized="false"
  21167. static="false" final="false" visibility="public"
  21168. deprecated="not deprecated">
  21169. </method>
  21170. <doc>
  21171. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  21172. Such values take between one and five bytes. Smaller values take fewer bytes.
  21173. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  21174. </doc>
  21175. </class>
  21176. <!-- end class org.apache.hadoop.io.VIntWritable -->
  21177. <!-- start class org.apache.hadoop.io.VLongWritable -->
  21178. <class name="VLongWritable" extends="java.lang.Object"
  21179. abstract="false"
  21180. static="false" final="false" visibility="public"
  21181. deprecated="not deprecated">
  21182. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21183. <constructor name="VLongWritable"
  21184. static="false" final="false" visibility="public"
  21185. deprecated="not deprecated">
  21186. </constructor>
  21187. <constructor name="VLongWritable" type="long"
  21188. static="false" final="false" visibility="public"
  21189. deprecated="not deprecated">
  21190. </constructor>
  21191. <method name="set"
  21192. abstract="false" native="false" synchronized="false"
  21193. static="false" final="false" visibility="public"
  21194. deprecated="not deprecated">
  21195. <param name="value" type="long"/>
  21196. <doc>
  21197. <![CDATA[Set the value of this LongWritable.]]>
  21198. </doc>
  21199. </method>
  21200. <method name="get" return="long"
  21201. abstract="false" native="false" synchronized="false"
  21202. static="false" final="false" visibility="public"
  21203. deprecated="not deprecated">
  21204. <doc>
  21205. <![CDATA[Return the value of this LongWritable.]]>
  21206. </doc>
  21207. </method>
  21208. <method name="readFields"
  21209. abstract="false" native="false" synchronized="false"
  21210. static="false" final="false" visibility="public"
  21211. deprecated="not deprecated">
  21212. <param name="in" type="java.io.DataInput"/>
  21213. <exception name="IOException" type="java.io.IOException"/>
  21214. </method>
  21215. <method name="write"
  21216. abstract="false" native="false" synchronized="false"
  21217. static="false" final="false" visibility="public"
  21218. deprecated="not deprecated">
  21219. <param name="out" type="java.io.DataOutput"/>
  21220. <exception name="IOException" type="java.io.IOException"/>
  21221. </method>
  21222. <method name="equals" return="boolean"
  21223. abstract="false" native="false" synchronized="false"
  21224. static="false" final="false" visibility="public"
  21225. deprecated="not deprecated">
  21226. <param name="o" type="java.lang.Object"/>
  21227. <doc>
  21228. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  21229. </doc>
  21230. </method>
  21231. <method name="hashCode" return="int"
  21232. abstract="false" native="false" synchronized="false"
  21233. static="false" final="false" visibility="public"
  21234. deprecated="not deprecated">
  21235. </method>
  21236. <method name="compareTo" return="int"
  21237. abstract="false" native="false" synchronized="false"
  21238. static="false" final="false" visibility="public"
  21239. deprecated="not deprecated">
  21240. <param name="o" type="org.apache.hadoop.io.VLongWritable"/>
  21241. <doc>
  21242. <![CDATA[Compares two VLongWritables.]]>
  21243. </doc>
  21244. </method>
  21245. <method name="toString" return="java.lang.String"
  21246. abstract="false" native="false" synchronized="false"
  21247. static="false" final="false" visibility="public"
  21248. deprecated="not deprecated">
  21249. </method>
  21250. <doc>
  21251. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  21252. between one and five bytes. Smaller values take fewer bytes.
  21253. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  21254. </doc>
  21255. </class>
  21256. <!-- end class org.apache.hadoop.io.VLongWritable -->
  21257. <!-- start interface org.apache.hadoop.io.Writable -->
  21258. <interface name="Writable" abstract="true"
  21259. static="false" final="false" visibility="public"
  21260. deprecated="not deprecated">
  21261. <method name="write"
  21262. abstract="true" native="false" synchronized="false"
  21263. static="false" final="false" visibility="public"
  21264. deprecated="not deprecated">
  21265. <param name="out" type="java.io.DataOutput"/>
  21266. <exception name="IOException" type="java.io.IOException"/>
  21267. <doc>
  21268. <![CDATA[Serialize the fields of this object to <code>out</code>.
  21269. @param out <code>DataOuput</code> to serialize this object into.
  21270. @throws IOException]]>
  21271. </doc>
  21272. </method>
  21273. <method name="readFields"
  21274. abstract="true" native="false" synchronized="false"
  21275. static="false" final="false" visibility="public"
  21276. deprecated="not deprecated">
  21277. <param name="in" type="java.io.DataInput"/>
  21278. <exception name="IOException" type="java.io.IOException"/>
  21279. <doc>
  21280. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  21281. <p>For efficiency, implementations should attempt to re-use storage in the
  21282. existing object where possible.</p>
  21283. @param in <code>DataInput</code> to deseriablize this object from.
  21284. @throws IOException]]>
  21285. </doc>
  21286. </method>
  21287. <doc>
  21288. <![CDATA[A serializable object which implements a simple, efficient, serialization
  21289. protocol, based on {@link DataInput} and {@link DataOutput}.
  21290. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  21291. framework implements this interface.</p>
  21292. <p>Implementations typically implement a static <code>read(DataInput)</code>
  21293. method which constructs a new instance, calls {@link #readFields(DataInput)}
  21294. and returns the instance.</p>
  21295. <p>Example:</p>
  21296. <p><blockquote><pre>
  21297. public class MyWritable implements Writable {
  21298. // Some data
  21299. private int counter;
  21300. private long timestamp;
  21301. // Default constructor to allow (de)serialization
  21302. MyWritable() { }
  21303. public void write(DataOutput out) throws IOException {
  21304. out.writeInt(counter);
  21305. out.writeLong(timestamp);
  21306. }
  21307. public void readFields(DataInput in) throws IOException {
  21308. counter = in.readInt();
  21309. timestamp = in.readLong();
  21310. }
  21311. public static MyWritable read(DataInput in) throws IOException {
  21312. MyWritable w = new MyWritable();
  21313. w.readFields(in);
  21314. return w;
  21315. }
  21316. }
  21317. </pre></blockquote></p>]]>
  21318. </doc>
  21319. </interface>
  21320. <!-- end interface org.apache.hadoop.io.Writable -->
  21321. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  21322. <interface name="WritableComparable" abstract="true"
  21323. static="false" final="false" visibility="public"
  21324. deprecated="not deprecated">
  21325. <implements name="org.apache.hadoop.io.Writable"/>
  21326. <implements name="java.lang.Comparable"/>
  21327. <doc>
  21328. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  21329. <p><code>WritableComparable</code>s can be compared to each other, typically
  21330. via <code>Comparator</code>s. Any type which is to be used as a
  21331. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  21332. interface.</p>
  21333. <p>Note that <code>hashCode()</code> is frequently used in Hadoop to partition
  21334. keys. It's important that your implementation of hashCode() returns the same
  21335. result across different instances of the JVM. Note also that the default
  21336. <code>hashCode()</code> implementation in <code>Object</code> does <b>not</b>
  21337. satisfy this property.</p>
  21338. <p>Example:</p>
  21339. <p><blockquote><pre>
  21340. public class MyWritableComparable implements WritableComparable<MyWritableComparable> {
  21341. // Some data
  21342. private int counter;
  21343. private long timestamp;
  21344. public void write(DataOutput out) throws IOException {
  21345. out.writeInt(counter);
  21346. out.writeLong(timestamp);
  21347. }
  21348. public void readFields(DataInput in) throws IOException {
  21349. counter = in.readInt();
  21350. timestamp = in.readLong();
  21351. }
  21352. public int compareTo(MyWritableComparable o) {
  21353. int thisValue = this.value;
  21354. int thatValue = o.value;
  21355. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  21356. }
  21357. public int hashCode() {
  21358. final int prime = 31;
  21359. int result = 1;
  21360. result = prime * result + counter;
  21361. result = prime * result + (int) (timestamp ^ (timestamp &gt;&gt;&gt; 32));
  21362. return result
  21363. }
  21364. }
  21365. </pre></blockquote></p>]]>
  21366. </doc>
  21367. </interface>
  21368. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  21369. <!-- start class org.apache.hadoop.io.WritableComparator -->
  21370. <class name="WritableComparator" extends="java.lang.Object"
  21371. abstract="false"
  21372. static="false" final="false" visibility="public"
  21373. deprecated="not deprecated">
  21374. <implements name="org.apache.hadoop.io.RawComparator"/>
  21375. <implements name="org.apache.hadoop.conf.Configurable"/>
  21376. <constructor name="WritableComparator"
  21377. static="false" final="false" visibility="protected"
  21378. deprecated="not deprecated">
  21379. </constructor>
  21380. <constructor name="WritableComparator" type="java.lang.Class"
  21381. static="false" final="false" visibility="protected"
  21382. deprecated="not deprecated">
  21383. <doc>
  21384. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  21385. </doc>
  21386. </constructor>
  21387. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  21388. static="false" final="false" visibility="protected"
  21389. deprecated="not deprecated">
  21390. </constructor>
  21391. <constructor name="WritableComparator" type="java.lang.Class, org.apache.hadoop.conf.Configuration, boolean"
  21392. static="false" final="false" visibility="protected"
  21393. deprecated="not deprecated">
  21394. </constructor>
  21395. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  21396. abstract="false" native="false" synchronized="false"
  21397. static="true" final="false" visibility="public"
  21398. deprecated="not deprecated">
  21399. <param name="c" type="java.lang.Class"/>
  21400. <doc>
  21401. <![CDATA[For backwards compatibility.]]>
  21402. </doc>
  21403. </method>
  21404. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  21405. abstract="false" native="false" synchronized="false"
  21406. static="true" final="false" visibility="public"
  21407. deprecated="not deprecated">
  21408. <param name="c" type="java.lang.Class"/>
  21409. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21410. <doc>
  21411. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  21412. </doc>
  21413. </method>
  21414. <method name="setConf"
  21415. abstract="false" native="false" synchronized="false"
  21416. static="false" final="false" visibility="public"
  21417. deprecated="not deprecated">
  21418. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21419. </method>
  21420. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  21421. abstract="false" native="false" synchronized="false"
  21422. static="false" final="false" visibility="public"
  21423. deprecated="not deprecated">
  21424. </method>
  21425. <method name="define"
  21426. abstract="false" native="false" synchronized="false"
  21427. static="true" final="false" visibility="public"
  21428. deprecated="not deprecated">
  21429. <param name="c" type="java.lang.Class"/>
  21430. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  21431. <doc>
  21432. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  21433. implementation. Comparators registered with this method must be
  21434. thread-safe.]]>
  21435. </doc>
  21436. </method>
  21437. <method name="getKeyClass" return="java.lang.Class"
  21438. abstract="false" native="false" synchronized="false"
  21439. static="false" final="false" visibility="public"
  21440. deprecated="not deprecated">
  21441. <doc>
  21442. <![CDATA[Returns the WritableComparable implementation class.]]>
  21443. </doc>
  21444. </method>
  21445. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  21446. abstract="false" native="false" synchronized="false"
  21447. static="false" final="false" visibility="public"
  21448. deprecated="not deprecated">
  21449. <doc>
  21450. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  21451. </doc>
  21452. </method>
  21453. <method name="compare" return="int"
  21454. abstract="false" native="false" synchronized="false"
  21455. static="false" final="false" visibility="public"
  21456. deprecated="not deprecated">
  21457. <param name="b1" type="byte[]"/>
  21458. <param name="s1" type="int"/>
  21459. <param name="l1" type="int"/>
  21460. <param name="b2" type="byte[]"/>
  21461. <param name="s2" type="int"/>
  21462. <param name="l2" type="int"/>
  21463. <doc>
  21464. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  21465. <p>The default implementation reads the data into two {@link
  21466. WritableComparable}s (using {@link
  21467. Writable#readFields(DataInput)}, then calls {@link
  21468. #compare(WritableComparable,WritableComparable)}.]]>
  21469. </doc>
  21470. </method>
  21471. <method name="compare" return="int"
  21472. abstract="false" native="false" synchronized="false"
  21473. static="false" final="false" visibility="public"
  21474. deprecated="not deprecated">
  21475. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  21476. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  21477. <doc>
  21478. <![CDATA[Compare two WritableComparables.
  21479. <p> The default implementation uses the natural ordering, calling {@link
  21480. Comparable#compareTo(Object)}.]]>
  21481. </doc>
  21482. </method>
  21483. <method name="compare" return="int"
  21484. abstract="false" native="false" synchronized="false"
  21485. static="false" final="false" visibility="public"
  21486. deprecated="not deprecated">
  21487. <param name="a" type="java.lang.Object"/>
  21488. <param name="b" type="java.lang.Object"/>
  21489. </method>
  21490. <method name="compareBytes" return="int"
  21491. abstract="false" native="false" synchronized="false"
  21492. static="true" final="false" visibility="public"
  21493. deprecated="not deprecated">
  21494. <param name="b1" type="byte[]"/>
  21495. <param name="s1" type="int"/>
  21496. <param name="l1" type="int"/>
  21497. <param name="b2" type="byte[]"/>
  21498. <param name="s2" type="int"/>
  21499. <param name="l2" type="int"/>
  21500. <doc>
  21501. <![CDATA[Lexicographic order of binary data.]]>
  21502. </doc>
  21503. </method>
  21504. <method name="hashBytes" return="int"
  21505. abstract="false" native="false" synchronized="false"
  21506. static="true" final="false" visibility="public"
  21507. deprecated="not deprecated">
  21508. <param name="bytes" type="byte[]"/>
  21509. <param name="offset" type="int"/>
  21510. <param name="length" type="int"/>
  21511. <doc>
  21512. <![CDATA[Compute hash for binary data.]]>
  21513. </doc>
  21514. </method>
  21515. <method name="hashBytes" return="int"
  21516. abstract="false" native="false" synchronized="false"
  21517. static="true" final="false" visibility="public"
  21518. deprecated="not deprecated">
  21519. <param name="bytes" type="byte[]"/>
  21520. <param name="length" type="int"/>
  21521. <doc>
  21522. <![CDATA[Compute hash for binary data.]]>
  21523. </doc>
  21524. </method>
  21525. <method name="readUnsignedShort" return="int"
  21526. abstract="false" native="false" synchronized="false"
  21527. static="true" final="false" visibility="public"
  21528. deprecated="not deprecated">
  21529. <param name="bytes" type="byte[]"/>
  21530. <param name="start" type="int"/>
  21531. <doc>
  21532. <![CDATA[Parse an unsigned short from a byte array.]]>
  21533. </doc>
  21534. </method>
  21535. <method name="readInt" return="int"
  21536. abstract="false" native="false" synchronized="false"
  21537. static="true" final="false" visibility="public"
  21538. deprecated="not deprecated">
  21539. <param name="bytes" type="byte[]"/>
  21540. <param name="start" type="int"/>
  21541. <doc>
  21542. <![CDATA[Parse an integer from a byte array.]]>
  21543. </doc>
  21544. </method>
  21545. <method name="readFloat" return="float"
  21546. abstract="false" native="false" synchronized="false"
  21547. static="true" final="false" visibility="public"
  21548. deprecated="not deprecated">
  21549. <param name="bytes" type="byte[]"/>
  21550. <param name="start" type="int"/>
  21551. <doc>
  21552. <![CDATA[Parse a float from a byte array.]]>
  21553. </doc>
  21554. </method>
  21555. <method name="readLong" return="long"
  21556. abstract="false" native="false" synchronized="false"
  21557. static="true" final="false" visibility="public"
  21558. deprecated="not deprecated">
  21559. <param name="bytes" type="byte[]"/>
  21560. <param name="start" type="int"/>
  21561. <doc>
  21562. <![CDATA[Parse a long from a byte array.]]>
  21563. </doc>
  21564. </method>
  21565. <method name="readDouble" return="double"
  21566. abstract="false" native="false" synchronized="false"
  21567. static="true" final="false" visibility="public"
  21568. deprecated="not deprecated">
  21569. <param name="bytes" type="byte[]"/>
  21570. <param name="start" type="int"/>
  21571. <doc>
  21572. <![CDATA[Parse a double from a byte array.]]>
  21573. </doc>
  21574. </method>
  21575. <method name="readVLong" return="long"
  21576. abstract="false" native="false" synchronized="false"
  21577. static="true" final="false" visibility="public"
  21578. deprecated="not deprecated">
  21579. <param name="bytes" type="byte[]"/>
  21580. <param name="start" type="int"/>
  21581. <exception name="IOException" type="java.io.IOException"/>
  21582. <doc>
  21583. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  21584. @param bytes byte array with decode long
  21585. @param start starting index
  21586. @throws java.io.IOException
  21587. @return deserialized long]]>
  21588. </doc>
  21589. </method>
  21590. <method name="readVInt" return="int"
  21591. abstract="false" native="false" synchronized="false"
  21592. static="true" final="false" visibility="public"
  21593. deprecated="not deprecated">
  21594. <param name="bytes" type="byte[]"/>
  21595. <param name="start" type="int"/>
  21596. <exception name="IOException" type="java.io.IOException"/>
  21597. <doc>
  21598. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  21599. @param bytes byte array with the encoded integer
  21600. @param start start index
  21601. @throws java.io.IOException
  21602. @return deserialized integer]]>
  21603. </doc>
  21604. </method>
  21605. <doc>
  21606. <![CDATA[A Comparator for {@link WritableComparable}s.
  21607. <p>This base implementation uses the natural ordering. To define alternate
  21608. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  21609. <p>One may optimize compare-intensive operations by overriding
  21610. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  21611. provided to assist in optimized implementations of this method.]]>
  21612. </doc>
  21613. </class>
  21614. <!-- end class org.apache.hadoop.io.WritableComparator -->
  21615. <!-- start class org.apache.hadoop.io.WritableFactories -->
  21616. <class name="WritableFactories" extends="java.lang.Object"
  21617. abstract="false"
  21618. static="false" final="false" visibility="public"
  21619. deprecated="not deprecated">
  21620. <method name="setFactory"
  21621. abstract="false" native="false" synchronized="false"
  21622. static="true" final="false" visibility="public"
  21623. deprecated="not deprecated">
  21624. <param name="c" type="java.lang.Class"/>
  21625. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  21626. <doc>
  21627. <![CDATA[Define a factory for a class.]]>
  21628. </doc>
  21629. </method>
  21630. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  21631. abstract="false" native="false" synchronized="false"
  21632. static="true" final="false" visibility="public"
  21633. deprecated="not deprecated">
  21634. <param name="c" type="java.lang.Class"/>
  21635. <doc>
  21636. <![CDATA[Define a factory for a class.]]>
  21637. </doc>
  21638. </method>
  21639. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  21640. abstract="false" native="false" synchronized="false"
  21641. static="true" final="false" visibility="public"
  21642. deprecated="not deprecated">
  21643. <param name="c" type="java.lang.Class"/>
  21644. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21645. <doc>
  21646. <![CDATA[Create a new instance of a class with a defined factory.]]>
  21647. </doc>
  21648. </method>
  21649. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  21650. abstract="false" native="false" synchronized="false"
  21651. static="true" final="false" visibility="public"
  21652. deprecated="not deprecated">
  21653. <param name="c" type="java.lang.Class"/>
  21654. <doc>
  21655. <![CDATA[Create a new instance of a class with a defined factory.]]>
  21656. </doc>
  21657. </method>
  21658. <doc>
  21659. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  21660. ObjectWritable} to be able to construct instances of non-public classes.]]>
  21661. </doc>
  21662. </class>
  21663. <!-- end class org.apache.hadoop.io.WritableFactories -->
  21664. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  21665. <interface name="WritableFactory" abstract="true"
  21666. static="false" final="false" visibility="public"
  21667. deprecated="not deprecated">
  21668. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  21669. abstract="true" native="false" synchronized="false"
  21670. static="false" final="false" visibility="public"
  21671. deprecated="not deprecated">
  21672. <doc>
  21673. <![CDATA[Return a new instance.]]>
  21674. </doc>
  21675. </method>
  21676. <doc>
  21677. <![CDATA[A factory for a class of Writable.
  21678. @see WritableFactories]]>
  21679. </doc>
  21680. </interface>
  21681. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  21682. <!-- start class org.apache.hadoop.io.WritableUtils -->
  21683. <class name="WritableUtils" extends="java.lang.Object"
  21684. abstract="false"
  21685. static="false" final="true" visibility="public"
  21686. deprecated="not deprecated">
  21687. <constructor name="WritableUtils"
  21688. static="false" final="false" visibility="public"
  21689. deprecated="not deprecated">
  21690. </constructor>
  21691. <method name="readCompressedByteArray" return="byte[]"
  21692. abstract="false" native="false" synchronized="false"
  21693. static="true" final="false" visibility="public"
  21694. deprecated="not deprecated">
  21695. <param name="in" type="java.io.DataInput"/>
  21696. <exception name="IOException" type="java.io.IOException"/>
  21697. </method>
  21698. <method name="skipCompressedByteArray"
  21699. abstract="false" native="false" synchronized="false"
  21700. static="true" final="false" visibility="public"
  21701. deprecated="not deprecated">
  21702. <param name="in" type="java.io.DataInput"/>
  21703. <exception name="IOException" type="java.io.IOException"/>
  21704. </method>
  21705. <method name="writeCompressedByteArray" return="int"
  21706. abstract="false" native="false" synchronized="false"
  21707. static="true" final="false" visibility="public"
  21708. deprecated="not deprecated">
  21709. <param name="out" type="java.io.DataOutput"/>
  21710. <param name="bytes" type="byte[]"/>
  21711. <exception name="IOException" type="java.io.IOException"/>
  21712. </method>
  21713. <method name="readCompressedString" return="java.lang.String"
  21714. abstract="false" native="false" synchronized="false"
  21715. static="true" final="false" visibility="public"
  21716. deprecated="not deprecated">
  21717. <param name="in" type="java.io.DataInput"/>
  21718. <exception name="IOException" type="java.io.IOException"/>
  21719. </method>
  21720. <method name="writeCompressedString" return="int"
  21721. abstract="false" native="false" synchronized="false"
  21722. static="true" final="false" visibility="public"
  21723. deprecated="not deprecated">
  21724. <param name="out" type="java.io.DataOutput"/>
  21725. <param name="s" type="java.lang.String"/>
  21726. <exception name="IOException" type="java.io.IOException"/>
  21727. </method>
  21728. <method name="writeString"
  21729. abstract="false" native="false" synchronized="false"
  21730. static="true" final="false" visibility="public"
  21731. deprecated="not deprecated">
  21732. <param name="out" type="java.io.DataOutput"/>
  21733. <param name="s" type="java.lang.String"/>
  21734. <exception name="IOException" type="java.io.IOException"/>
  21735. </method>
  21736. <method name="readString" return="java.lang.String"
  21737. abstract="false" native="false" synchronized="false"
  21738. static="true" final="false" visibility="public"
  21739. deprecated="not deprecated">
  21740. <param name="in" type="java.io.DataInput"/>
  21741. <exception name="IOException" type="java.io.IOException"/>
  21742. </method>
  21743. <method name="writeStringArray"
  21744. abstract="false" native="false" synchronized="false"
  21745. static="true" final="false" visibility="public"
  21746. deprecated="not deprecated">
  21747. <param name="out" type="java.io.DataOutput"/>
  21748. <param name="s" type="java.lang.String[]"/>
  21749. <exception name="IOException" type="java.io.IOException"/>
  21750. </method>
  21751. <method name="writeCompressedStringArray"
  21752. abstract="false" native="false" synchronized="false"
  21753. static="true" final="false" visibility="public"
  21754. deprecated="not deprecated">
  21755. <param name="out" type="java.io.DataOutput"/>
  21756. <param name="s" type="java.lang.String[]"/>
  21757. <exception name="IOException" type="java.io.IOException"/>
  21758. </method>
  21759. <method name="readStringArray" return="java.lang.String[]"
  21760. abstract="false" native="false" synchronized="false"
  21761. static="true" final="false" visibility="public"
  21762. deprecated="not deprecated">
  21763. <param name="in" type="java.io.DataInput"/>
  21764. <exception name="IOException" type="java.io.IOException"/>
  21765. </method>
  21766. <method name="readCompressedStringArray" return="java.lang.String[]"
  21767. abstract="false" native="false" synchronized="false"
  21768. static="true" final="false" visibility="public"
  21769. deprecated="not deprecated">
  21770. <param name="in" type="java.io.DataInput"/>
  21771. <exception name="IOException" type="java.io.IOException"/>
  21772. </method>
  21773. <method name="displayByteArray"
  21774. abstract="false" native="false" synchronized="false"
  21775. static="true" final="false" visibility="public"
  21776. deprecated="not deprecated">
  21777. <param name="record" type="byte[]"/>
  21778. </method>
  21779. <method name="clone" return="T"
  21780. abstract="false" native="false" synchronized="false"
  21781. static="true" final="false" visibility="public"
  21782. deprecated="not deprecated">
  21783. <param name="orig" type="T"/>
  21784. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21785. <doc>
  21786. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  21787. @param orig The object to copy
  21788. @return The copied object]]>
  21789. </doc>
  21790. </method>
  21791. <method name="cloneInto"
  21792. abstract="false" native="false" synchronized="false"
  21793. static="true" final="false" visibility="public"
  21794. deprecated="use ReflectionUtils.cloneInto instead.">
  21795. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  21796. <param name="src" type="org.apache.hadoop.io.Writable"/>
  21797. <exception name="IOException" type="java.io.IOException"/>
  21798. <doc>
  21799. <![CDATA[Make a copy of the writable object using serialization to a buffer
  21800. @param dst the object to copy from
  21801. @param src the object to copy into, which is destroyed
  21802. @throws IOException
  21803. @deprecated use ReflectionUtils.cloneInto instead.]]>
  21804. </doc>
  21805. </method>
  21806. <method name="writeVInt"
  21807. abstract="false" native="false" synchronized="false"
  21808. static="true" final="false" visibility="public"
  21809. deprecated="not deprecated">
  21810. <param name="stream" type="java.io.DataOutput"/>
  21811. <param name="i" type="int"/>
  21812. <exception name="IOException" type="java.io.IOException"/>
  21813. <doc>
  21814. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  21815. For -112 <= i <= 127, only one byte is used with the actual value.
  21816. For other values of i, the first byte value indicates whether the
  21817. integer is positive or negative, and the number of bytes that follow.
  21818. If the first byte value v is between -113 and -116, the following integer
  21819. is positive, with number of bytes that follow are -(v+112).
  21820. If the first byte value v is between -121 and -124, the following integer
  21821. is negative, with number of bytes that follow are -(v+120). Bytes are
  21822. stored in the high-non-zero-byte-first order.
  21823. @param stream Binary output stream
  21824. @param i Integer to be serialized
  21825. @throws java.io.IOException]]>
  21826. </doc>
  21827. </method>
  21828. <method name="writeVLong"
  21829. abstract="false" native="false" synchronized="false"
  21830. static="true" final="false" visibility="public"
  21831. deprecated="not deprecated">
  21832. <param name="stream" type="java.io.DataOutput"/>
  21833. <param name="i" type="long"/>
  21834. <exception name="IOException" type="java.io.IOException"/>
  21835. <doc>
  21836. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  21837. For -112 <= i <= 127, only one byte is used with the actual value.
  21838. For other values of i, the first byte value indicates whether the
  21839. long is positive or negative, and the number of bytes that follow.
  21840. If the first byte value v is between -113 and -120, the following long
  21841. is positive, with number of bytes that follow are -(v+112).
  21842. If the first byte value v is between -121 and -128, the following long
  21843. is negative, with number of bytes that follow are -(v+120). Bytes are
  21844. stored in the high-non-zero-byte-first order.
  21845. @param stream Binary output stream
  21846. @param i Long to be serialized
  21847. @throws java.io.IOException]]>
  21848. </doc>
  21849. </method>
  21850. <method name="readVLong" return="long"
  21851. abstract="false" native="false" synchronized="false"
  21852. static="true" final="false" visibility="public"
  21853. deprecated="not deprecated">
  21854. <param name="stream" type="java.io.DataInput"/>
  21855. <exception name="IOException" type="java.io.IOException"/>
  21856. <doc>
  21857. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  21858. @param stream Binary input stream
  21859. @throws java.io.IOException
  21860. @return deserialized long from stream.]]>
  21861. </doc>
  21862. </method>
  21863. <method name="readVInt" return="int"
  21864. abstract="false" native="false" synchronized="false"
  21865. static="true" final="false" visibility="public"
  21866. deprecated="not deprecated">
  21867. <param name="stream" type="java.io.DataInput"/>
  21868. <exception name="IOException" type="java.io.IOException"/>
  21869. <doc>
  21870. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  21871. @param stream Binary input stream
  21872. @throws java.io.IOException
  21873. @return deserialized integer from stream.]]>
  21874. </doc>
  21875. </method>
  21876. <method name="readVIntInRange" return="int"
  21877. abstract="false" native="false" synchronized="false"
  21878. static="true" final="false" visibility="public"
  21879. deprecated="not deprecated">
  21880. <param name="stream" type="java.io.DataInput"/>
  21881. <param name="lower" type="int"/>
  21882. <param name="upper" type="int"/>
  21883. <exception name="IOException" type="java.io.IOException"/>
  21884. <doc>
  21885. <![CDATA[Reads an integer from the input stream and returns it.
  21886. This function validates that the integer is between [lower, upper],
  21887. inclusive.
  21888. @param stream Binary input stream
  21889. @throws java.io.IOException
  21890. @return deserialized integer from stream]]>
  21891. </doc>
  21892. </method>
  21893. <method name="isNegativeVInt" return="boolean"
  21894. abstract="false" native="false" synchronized="false"
  21895. static="true" final="false" visibility="public"
  21896. deprecated="not deprecated">
  21897. <param name="value" type="byte"/>
  21898. <doc>
  21899. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  21900. @param value the first byte
  21901. @return is the value negative]]>
  21902. </doc>
  21903. </method>
  21904. <method name="decodeVIntSize" return="int"
  21905. abstract="false" native="false" synchronized="false"
  21906. static="true" final="false" visibility="public"
  21907. deprecated="not deprecated">
  21908. <param name="value" type="byte"/>
  21909. <doc>
  21910. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  21911. @param value the first byte of the vint/vlong
  21912. @return the total number of bytes (1 to 9)]]>
  21913. </doc>
  21914. </method>
  21915. <method name="getVIntSize" return="int"
  21916. abstract="false" native="false" synchronized="false"
  21917. static="true" final="false" visibility="public"
  21918. deprecated="not deprecated">
  21919. <param name="i" type="long"/>
  21920. <doc>
  21921. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  21922. @return the encoded length]]>
  21923. </doc>
  21924. </method>
  21925. <method name="readEnum" return="T"
  21926. abstract="false" native="false" synchronized="false"
  21927. static="true" final="false" visibility="public"
  21928. deprecated="not deprecated">
  21929. <param name="in" type="java.io.DataInput"/>
  21930. <param name="enumType" type="java.lang.Class"/>
  21931. <exception name="IOException" type="java.io.IOException"/>
  21932. <doc>
  21933. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  21934. using String values.
  21935. @param <T> Enum type
  21936. @param in DataInput to read from
  21937. @param enumType Class type of Enum
  21938. @return Enum represented by String read from DataInput
  21939. @throws IOException]]>
  21940. </doc>
  21941. </method>
  21942. <method name="writeEnum"
  21943. abstract="false" native="false" synchronized="false"
  21944. static="true" final="false" visibility="public"
  21945. deprecated="not deprecated">
  21946. <param name="out" type="java.io.DataOutput"/>
  21947. <param name="enumVal" type="java.lang.Enum"/>
  21948. <exception name="IOException" type="java.io.IOException"/>
  21949. <doc>
  21950. <![CDATA[writes String value of enum to DataOutput.
  21951. @param out Dataoutput stream
  21952. @param enumVal enum value
  21953. @throws IOException]]>
  21954. </doc>
  21955. </method>
  21956. <method name="skipFully"
  21957. abstract="false" native="false" synchronized="false"
  21958. static="true" final="false" visibility="public"
  21959. deprecated="not deprecated">
  21960. <param name="in" type="java.io.DataInput"/>
  21961. <param name="len" type="int"/>
  21962. <exception name="IOException" type="java.io.IOException"/>
  21963. <doc>
  21964. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  21965. @param in input stream
  21966. @param len number of bytes to skip
  21967. @throws IOException when skipped less number of bytes]]>
  21968. </doc>
  21969. </method>
  21970. <method name="toByteArray" return="byte[]"
  21971. abstract="false" native="false" synchronized="false"
  21972. static="true" final="false" visibility="public"
  21973. deprecated="not deprecated">
  21974. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  21975. <doc>
  21976. <![CDATA[Convert writables to a byte array]]>
  21977. </doc>
  21978. </method>
  21979. <method name="readStringSafely" return="java.lang.String"
  21980. abstract="false" native="false" synchronized="false"
  21981. static="true" final="false" visibility="public"
  21982. deprecated="not deprecated">
  21983. <param name="in" type="java.io.DataInput"/>
  21984. <param name="maxLength" type="int"/>
  21985. <exception name="IOException" type="java.io.IOException"/>
  21986. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  21987. <doc>
  21988. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  21989. followed by the given number of bytes.
  21990. @param in the stream to read from
  21991. @param maxLength the largest acceptable length of the encoded string
  21992. @return the bytes as a string
  21993. @throws IOException if reading from the DataInput fails
  21994. @throws IllegalArgumentException if the encoded byte size for string
  21995. is negative or larger than maxSize. Only the vint is read.]]>
  21996. </doc>
  21997. </method>
  21998. </class>
  21999. <!-- end class org.apache.hadoop.io.WritableUtils -->
  22000. <doc>
  22001. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  22002. to databases, and to files.]]>
  22003. </doc>
  22004. </package>
  22005. <package name="org.apache.hadoop.io.compress">
  22006. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  22007. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  22008. abstract="false"
  22009. static="false" final="false" visibility="public"
  22010. deprecated="not deprecated">
  22011. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  22012. static="false" final="false" visibility="public"
  22013. deprecated="not deprecated">
  22014. <doc>
  22015. <![CDATA[Create a {@link BlockCompressorStream}.
  22016. @param out stream
  22017. @param compressor compressor to be used
  22018. @param bufferSize size of buffer
  22019. @param compressionOverhead maximum 'overhead' of the compression
  22020. algorithm with given bufferSize]]>
  22021. </doc>
  22022. </constructor>
  22023. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  22024. static="false" final="false" visibility="public"
  22025. deprecated="not deprecated">
  22026. <doc>
  22027. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  22028. compressor.
  22029. Use default of 512 as bufferSize and compressionOverhead of
  22030. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  22031. @param out stream
  22032. @param compressor compressor to be used]]>
  22033. </doc>
  22034. </constructor>
  22035. <method name="write"
  22036. abstract="false" native="false" synchronized="false"
  22037. static="false" final="false" visibility="public"
  22038. deprecated="not deprecated">
  22039. <param name="b" type="byte[]"/>
  22040. <param name="off" type="int"/>
  22041. <param name="len" type="int"/>
  22042. <exception name="IOException" type="java.io.IOException"/>
  22043. <doc>
  22044. <![CDATA[Write the data provided to the compression codec, compressing no more
  22045. than the buffer size less the compression overhead as specified during
  22046. construction for each block.
  22047. Each block contains the uncompressed length for the block, followed by
  22048. one or more length-prefixed blocks of compressed data.]]>
  22049. </doc>
  22050. </method>
  22051. <method name="finish"
  22052. abstract="false" native="false" synchronized="false"
  22053. static="false" final="false" visibility="public"
  22054. deprecated="not deprecated">
  22055. <exception name="IOException" type="java.io.IOException"/>
  22056. </method>
  22057. <method name="compress"
  22058. abstract="false" native="false" synchronized="false"
  22059. static="false" final="false" visibility="protected"
  22060. deprecated="not deprecated">
  22061. <exception name="IOException" type="java.io.IOException"/>
  22062. </method>
  22063. <doc>
  22064. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  22065. with 'block-based' based compression algorithms, as opposed to
  22066. 'stream-based' compression algorithms.
  22067. It should be noted that this wrapper does not guarantee that blocks will
  22068. be sized for the compressor. If the
  22069. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  22070. effect meaningful compression, it is responsible for it.]]>
  22071. </doc>
  22072. </class>
  22073. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  22074. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  22075. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  22076. abstract="false"
  22077. static="false" final="false" visibility="public"
  22078. deprecated="not deprecated">
  22079. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  22080. static="false" final="false" visibility="public"
  22081. deprecated="not deprecated">
  22082. <exception name="IOException" type="java.io.IOException"/>
  22083. <doc>
  22084. <![CDATA[Create a {@link BlockDecompressorStream}.
  22085. @param in input stream
  22086. @param decompressor decompressor to use
  22087. @param bufferSize size of buffer
  22088. @throws IOException]]>
  22089. </doc>
  22090. </constructor>
  22091. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  22092. static="false" final="false" visibility="public"
  22093. deprecated="not deprecated">
  22094. <exception name="IOException" type="java.io.IOException"/>
  22095. <doc>
  22096. <![CDATA[Create a {@link BlockDecompressorStream}.
  22097. @param in input stream
  22098. @param decompressor decompressor to use
  22099. @throws IOException]]>
  22100. </doc>
  22101. </constructor>
  22102. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  22103. static="false" final="false" visibility="protected"
  22104. deprecated="not deprecated">
  22105. <exception name="IOException" type="java.io.IOException"/>
  22106. </constructor>
  22107. <method name="decompress" return="int"
  22108. abstract="false" native="false" synchronized="false"
  22109. static="false" final="false" visibility="protected"
  22110. deprecated="not deprecated">
  22111. <param name="b" type="byte[]"/>
  22112. <param name="off" type="int"/>
  22113. <param name="len" type="int"/>
  22114. <exception name="IOException" type="java.io.IOException"/>
  22115. </method>
  22116. <method name="getCompressedData" return="int"
  22117. abstract="false" native="false" synchronized="false"
  22118. static="false" final="false" visibility="protected"
  22119. deprecated="not deprecated">
  22120. <exception name="IOException" type="java.io.IOException"/>
  22121. </method>
  22122. <method name="resetState"
  22123. abstract="false" native="false" synchronized="false"
  22124. static="false" final="false" visibility="public"
  22125. deprecated="not deprecated">
  22126. <exception name="IOException" type="java.io.IOException"/>
  22127. </method>
  22128. <doc>
  22129. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  22130. with 'block-based' based compression algorithms, as opposed to
  22131. 'stream-based' compression algorithms.]]>
  22132. </doc>
  22133. </class>
  22134. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  22135. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  22136. <class name="BZip2Codec" extends="java.lang.Object"
  22137. abstract="false"
  22138. static="false" final="false" visibility="public"
  22139. deprecated="not deprecated">
  22140. <implements name="org.apache.hadoop.conf.Configurable"/>
  22141. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  22142. <constructor name="BZip2Codec"
  22143. static="false" final="false" visibility="public"
  22144. deprecated="not deprecated">
  22145. <doc>
  22146. <![CDATA[Creates a new instance of BZip2Codec.]]>
  22147. </doc>
  22148. </constructor>
  22149. <method name="setConf"
  22150. abstract="false" native="false" synchronized="false"
  22151. static="false" final="false" visibility="public"
  22152. deprecated="not deprecated">
  22153. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22154. <doc>
  22155. <![CDATA[Set the configuration to be used by this object.
  22156. @param conf the configuration object.]]>
  22157. </doc>
  22158. </method>
  22159. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22160. abstract="false" native="false" synchronized="false"
  22161. static="false" final="false" visibility="public"
  22162. deprecated="not deprecated">
  22163. <doc>
  22164. <![CDATA[Return the configuration used by this object.
  22165. @return the configuration object used by this objec.]]>
  22166. </doc>
  22167. </method>
  22168. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22169. abstract="false" native="false" synchronized="false"
  22170. static="false" final="false" visibility="public"
  22171. deprecated="not deprecated">
  22172. <param name="out" type="java.io.OutputStream"/>
  22173. <exception name="IOException" type="java.io.IOException"/>
  22174. <doc>
  22175. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22176. {@link OutputStream}.
  22177. @param out the location for the final output stream
  22178. @return a stream the user can write uncompressed data to, to have it
  22179. compressed
  22180. @throws IOException]]>
  22181. </doc>
  22182. </method>
  22183. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22184. abstract="false" native="false" synchronized="false"
  22185. static="false" final="false" visibility="public"
  22186. deprecated="not deprecated">
  22187. <param name="out" type="java.io.OutputStream"/>
  22188. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22189. <exception name="IOException" type="java.io.IOException"/>
  22190. <doc>
  22191. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22192. {@link OutputStream} with the given {@link Compressor}.
  22193. @param out the location for the final output stream
  22194. @param compressor compressor to use
  22195. @return a stream the user can write uncompressed data to, to have it
  22196. compressed
  22197. @throws IOException]]>
  22198. </doc>
  22199. </method>
  22200. <method name="getCompressorType" return="java.lang.Class"
  22201. abstract="false" native="false" synchronized="false"
  22202. static="false" final="false" visibility="public"
  22203. deprecated="not deprecated">
  22204. <doc>
  22205. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  22206. @return the type of compressor needed by this codec.]]>
  22207. </doc>
  22208. </method>
  22209. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22210. abstract="false" native="false" synchronized="false"
  22211. static="false" final="false" visibility="public"
  22212. deprecated="not deprecated">
  22213. <doc>
  22214. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  22215. @return a new compressor for use by this codec]]>
  22216. </doc>
  22217. </method>
  22218. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22219. abstract="false" native="false" synchronized="false"
  22220. static="false" final="false" visibility="public"
  22221. deprecated="not deprecated">
  22222. <param name="in" type="java.io.InputStream"/>
  22223. <exception name="IOException" type="java.io.IOException"/>
  22224. <doc>
  22225. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22226. input stream and return a stream for uncompressed data.
  22227. @param in the stream to read compressed bytes from
  22228. @return a stream to read uncompressed bytes from
  22229. @throws IOException]]>
  22230. </doc>
  22231. </method>
  22232. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22233. abstract="false" native="false" synchronized="false"
  22234. static="false" final="false" visibility="public"
  22235. deprecated="not deprecated">
  22236. <param name="in" type="java.io.InputStream"/>
  22237. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22238. <exception name="IOException" type="java.io.IOException"/>
  22239. <doc>
  22240. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22241. {@link InputStream} with the given {@link Decompressor}, and return a
  22242. stream for uncompressed data.
  22243. @param in the stream to read compressed bytes from
  22244. @param decompressor decompressor to use
  22245. @return a stream to read uncompressed bytes from
  22246. @throws IOException]]>
  22247. </doc>
  22248. </method>
  22249. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  22250. abstract="false" native="false" synchronized="false"
  22251. static="false" final="false" visibility="public"
  22252. deprecated="not deprecated">
  22253. <param name="seekableIn" type="java.io.InputStream"/>
  22254. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22255. <param name="start" type="long"/>
  22256. <param name="end" type="long"/>
  22257. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  22258. <exception name="IOException" type="java.io.IOException"/>
  22259. <doc>
  22260. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  22261. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  22262. @param seekableIn The InputStream
  22263. @param start The start offset into the compressed stream
  22264. @param end The end offset into the compressed stream
  22265. @param readMode Controls whether progress is reported continuously or
  22266. only at block boundaries.
  22267. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  22268. </doc>
  22269. </method>
  22270. <method name="getDecompressorType" return="java.lang.Class"
  22271. abstract="false" native="false" synchronized="false"
  22272. static="false" final="false" visibility="public"
  22273. deprecated="not deprecated">
  22274. <doc>
  22275. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  22276. @return the type of decompressor needed by this codec.]]>
  22277. </doc>
  22278. </method>
  22279. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22280. abstract="false" native="false" synchronized="false"
  22281. static="false" final="false" visibility="public"
  22282. deprecated="not deprecated">
  22283. <doc>
  22284. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  22285. @return a new decompressor for use by this codec]]>
  22286. </doc>
  22287. </method>
  22288. <method name="getDefaultExtension" return="java.lang.String"
  22289. abstract="false" native="false" synchronized="false"
  22290. static="false" final="false" visibility="public"
  22291. deprecated="not deprecated">
  22292. <doc>
  22293. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  22294. @return A String telling the default bzip2 file extension]]>
  22295. </doc>
  22296. </method>
  22297. <doc>
  22298. <![CDATA[This class provides output and input streams for bzip2 compression
  22299. and decompression. It uses the native bzip2 library on the system
  22300. if possible, else it uses a pure-Java implementation of the bzip2
  22301. algorithm. The configuration parameter
  22302. io.compression.codec.bzip2.library can be used to control this
  22303. behavior.
  22304. In the pure-Java mode, the Compressor and Decompressor interfaces
  22305. are not implemented. Therefore, in that mode, those methods of
  22306. CompressionCodec which have a Compressor or Decompressor type
  22307. argument, throw UnsupportedOperationException.
  22308. Currently, support for splittability is available only in the
  22309. pure-Java mode; therefore, if a SplitCompressionInputStream is
  22310. requested, the pure-Java implementation is used, regardless of the
  22311. setting of the configuration parameter mentioned above.]]>
  22312. </doc>
  22313. </class>
  22314. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  22315. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  22316. <class name="CodecPool" extends="java.lang.Object"
  22317. abstract="false"
  22318. static="false" final="false" visibility="public"
  22319. deprecated="not deprecated">
  22320. <constructor name="CodecPool"
  22321. static="false" final="false" visibility="public"
  22322. deprecated="not deprecated">
  22323. </constructor>
  22324. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22325. abstract="false" native="false" synchronized="false"
  22326. static="true" final="false" visibility="public"
  22327. deprecated="not deprecated">
  22328. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22329. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22330. <doc>
  22331. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  22332. pool or a new one.
  22333. @param codec the <code>CompressionCodec</code> for which to get the
  22334. <code>Compressor</code>
  22335. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  22336. @return <code>Compressor</code> for the given
  22337. <code>CompressionCodec</code> from the pool or a new one]]>
  22338. </doc>
  22339. </method>
  22340. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22341. abstract="false" native="false" synchronized="false"
  22342. static="true" final="false" visibility="public"
  22343. deprecated="not deprecated">
  22344. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22345. </method>
  22346. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22347. abstract="false" native="false" synchronized="false"
  22348. static="true" final="false" visibility="public"
  22349. deprecated="not deprecated">
  22350. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22351. <doc>
  22352. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  22353. pool or a new one.
  22354. @param codec the <code>CompressionCodec</code> for which to get the
  22355. <code>Decompressor</code>
  22356. @return <code>Decompressor</code> for the given
  22357. <code>CompressionCodec</code> the pool or a new one]]>
  22358. </doc>
  22359. </method>
  22360. <method name="returnCompressor"
  22361. abstract="false" native="false" synchronized="false"
  22362. static="true" final="false" visibility="public"
  22363. deprecated="not deprecated">
  22364. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22365. <doc>
  22366. <![CDATA[Return the {@link Compressor} to the pool.
  22367. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  22368. </doc>
  22369. </method>
  22370. <method name="returnDecompressor"
  22371. abstract="false" native="false" synchronized="false"
  22372. static="true" final="false" visibility="public"
  22373. deprecated="not deprecated">
  22374. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22375. <doc>
  22376. <![CDATA[Return the {@link Decompressor} to the pool.
  22377. @param decompressor the <code>Decompressor</code> to be returned to the
  22378. pool]]>
  22379. </doc>
  22380. </method>
  22381. <method name="getLeasedCompressorsCount" return="int"
  22382. abstract="false" native="false" synchronized="false"
  22383. static="true" final="false" visibility="public"
  22384. deprecated="not deprecated">
  22385. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22386. <doc>
  22387. <![CDATA[Return the number of leased {@link Compressor}s for this
  22388. {@link CompressionCodec}]]>
  22389. </doc>
  22390. </method>
  22391. <method name="getLeasedDecompressorsCount" return="int"
  22392. abstract="false" native="false" synchronized="false"
  22393. static="true" final="false" visibility="public"
  22394. deprecated="not deprecated">
  22395. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22396. <doc>
  22397. <![CDATA[Return the number of leased {@link Decompressor}s for this
  22398. {@link CompressionCodec}]]>
  22399. </doc>
  22400. </method>
  22401. <doc>
  22402. <![CDATA[A global compressor/decompressor pool used to save and reuse
  22403. (possibly native) compression/decompression codecs.]]>
  22404. </doc>
  22405. </class>
  22406. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  22407. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  22408. <interface name="CompressionCodec" abstract="true"
  22409. static="false" final="false" visibility="public"
  22410. deprecated="not deprecated">
  22411. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22412. abstract="true" native="false" synchronized="false"
  22413. static="false" final="false" visibility="public"
  22414. deprecated="not deprecated">
  22415. <param name="out" type="java.io.OutputStream"/>
  22416. <exception name="IOException" type="java.io.IOException"/>
  22417. <doc>
  22418. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22419. {@link OutputStream}.
  22420. @param out the location for the final output stream
  22421. @return a stream the user can write uncompressed data to have it compressed
  22422. @throws IOException]]>
  22423. </doc>
  22424. </method>
  22425. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22426. abstract="true" native="false" synchronized="false"
  22427. static="false" final="false" visibility="public"
  22428. deprecated="not deprecated">
  22429. <param name="out" type="java.io.OutputStream"/>
  22430. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22431. <exception name="IOException" type="java.io.IOException"/>
  22432. <doc>
  22433. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22434. {@link OutputStream} with the given {@link Compressor}.
  22435. @param out the location for the final output stream
  22436. @param compressor compressor to use
  22437. @return a stream the user can write uncompressed data to have it compressed
  22438. @throws IOException]]>
  22439. </doc>
  22440. </method>
  22441. <method name="getCompressorType" return="java.lang.Class"
  22442. abstract="true" native="false" synchronized="false"
  22443. static="false" final="false" visibility="public"
  22444. deprecated="not deprecated">
  22445. <doc>
  22446. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  22447. @return the type of compressor needed by this codec.]]>
  22448. </doc>
  22449. </method>
  22450. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22451. abstract="true" native="false" synchronized="false"
  22452. static="false" final="false" visibility="public"
  22453. deprecated="not deprecated">
  22454. <doc>
  22455. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  22456. @return a new compressor for use by this codec]]>
  22457. </doc>
  22458. </method>
  22459. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22460. abstract="true" native="false" synchronized="false"
  22461. static="false" final="false" visibility="public"
  22462. deprecated="not deprecated">
  22463. <param name="in" type="java.io.InputStream"/>
  22464. <exception name="IOException" type="java.io.IOException"/>
  22465. <doc>
  22466. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22467. input stream.
  22468. @param in the stream to read compressed bytes from
  22469. @return a stream to read uncompressed bytes from
  22470. @throws IOException]]>
  22471. </doc>
  22472. </method>
  22473. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22474. abstract="true" native="false" synchronized="false"
  22475. static="false" final="false" visibility="public"
  22476. deprecated="not deprecated">
  22477. <param name="in" type="java.io.InputStream"/>
  22478. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22479. <exception name="IOException" type="java.io.IOException"/>
  22480. <doc>
  22481. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22482. {@link InputStream} with the given {@link Decompressor}.
  22483. @param in the stream to read compressed bytes from
  22484. @param decompressor decompressor to use
  22485. @return a stream to read uncompressed bytes from
  22486. @throws IOException]]>
  22487. </doc>
  22488. </method>
  22489. <method name="getDecompressorType" return="java.lang.Class"
  22490. abstract="true" native="false" synchronized="false"
  22491. static="false" final="false" visibility="public"
  22492. deprecated="not deprecated">
  22493. <doc>
  22494. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  22495. @return the type of decompressor needed by this codec.]]>
  22496. </doc>
  22497. </method>
  22498. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22499. abstract="true" native="false" synchronized="false"
  22500. static="false" final="false" visibility="public"
  22501. deprecated="not deprecated">
  22502. <doc>
  22503. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  22504. @return a new decompressor for use by this codec]]>
  22505. </doc>
  22506. </method>
  22507. <method name="getDefaultExtension" return="java.lang.String"
  22508. abstract="true" native="false" synchronized="false"
  22509. static="false" final="false" visibility="public"
  22510. deprecated="not deprecated">
  22511. <doc>
  22512. <![CDATA[Get the default filename extension for this kind of compression.
  22513. @return the extension including the '.']]>
  22514. </doc>
  22515. </method>
  22516. <doc>
  22517. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  22518. </doc>
  22519. </interface>
  22520. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  22521. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  22522. <class name="CompressionCodecFactory" extends="java.lang.Object"
  22523. abstract="false"
  22524. static="false" final="false" visibility="public"
  22525. deprecated="not deprecated">
  22526. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  22527. static="false" final="false" visibility="public"
  22528. deprecated="not deprecated">
  22529. <doc>
  22530. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  22531. and register them. Defaults to gzip and deflate.]]>
  22532. </doc>
  22533. </constructor>
  22534. <method name="toString" return="java.lang.String"
  22535. abstract="false" native="false" synchronized="false"
  22536. static="false" final="false" visibility="public"
  22537. deprecated="not deprecated">
  22538. <doc>
  22539. <![CDATA[Print the extension map out as a string.]]>
  22540. </doc>
  22541. </method>
  22542. <method name="getCodecClasses" return="java.util.List"
  22543. abstract="false" native="false" synchronized="false"
  22544. static="true" final="false" visibility="public"
  22545. deprecated="not deprecated">
  22546. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22547. <doc>
  22548. <![CDATA[Get the list of codecs discovered via a Java ServiceLoader, or
  22549. listed in the configuration. Codecs specified in configuration come
  22550. later in the returned list, and are considered to override those
  22551. from the ServiceLoader.
  22552. @param conf the configuration to look in
  22553. @return a list of the {@link CompressionCodec} classes]]>
  22554. </doc>
  22555. </method>
  22556. <method name="setCodecClasses"
  22557. abstract="false" native="false" synchronized="false"
  22558. static="true" final="false" visibility="public"
  22559. deprecated="not deprecated">
  22560. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22561. <param name="classes" type="java.util.List"/>
  22562. <doc>
  22563. <![CDATA[Sets a list of codec classes in the configuration. In addition to any
  22564. classes specified using this method, {@link CompressionCodec} classes on
  22565. the classpath are discovered using a Java ServiceLoader.
  22566. @param conf the configuration to modify
  22567. @param classes the list of classes to set]]>
  22568. </doc>
  22569. </method>
  22570. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  22571. abstract="false" native="false" synchronized="false"
  22572. static="false" final="false" visibility="public"
  22573. deprecated="not deprecated">
  22574. <param name="file" type="org.apache.hadoop.fs.Path"/>
  22575. <doc>
  22576. <![CDATA[Find the relevant compression codec for the given file based on its
  22577. filename suffix.
  22578. @param file the filename to check
  22579. @return the codec object]]>
  22580. </doc>
  22581. </method>
  22582. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  22583. abstract="false" native="false" synchronized="false"
  22584. static="false" final="false" visibility="public"
  22585. deprecated="not deprecated">
  22586. <param name="classname" type="java.lang.String"/>
  22587. <doc>
  22588. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  22589. @param classname the canonical class name of the codec
  22590. @return the codec object]]>
  22591. </doc>
  22592. </method>
  22593. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  22594. abstract="false" native="false" synchronized="false"
  22595. static="false" final="false" visibility="public"
  22596. deprecated="not deprecated">
  22597. <param name="codecName" type="java.lang.String"/>
  22598. <doc>
  22599. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  22600. or by codec alias.
  22601. <p/>
  22602. Codec aliases are case insensitive.
  22603. <p/>
  22604. The code alias is the short class name (without the package name).
  22605. If the short class name ends with 'Codec', then there are two aliases for
  22606. the codec, the complete short class name and the short class name without
  22607. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  22608. alias are 'gzip' and 'gzipcodec'.
  22609. @param codecName the canonical class name of the codec
  22610. @return the codec object]]>
  22611. </doc>
  22612. </method>
  22613. <method name="getCodecClassByName" return="java.lang.Class"
  22614. abstract="false" native="false" synchronized="false"
  22615. static="false" final="false" visibility="public"
  22616. deprecated="not deprecated">
  22617. <param name="codecName" type="java.lang.String"/>
  22618. <doc>
  22619. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  22620. or by codec alias and returns its implemetation class.
  22621. <p/>
  22622. Codec aliases are case insensitive.
  22623. <p/>
  22624. The code alias is the short class name (without the package name).
  22625. If the short class name ends with 'Codec', then there are two aliases for
  22626. the codec, the complete short class name and the short class name without
  22627. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  22628. alias are 'gzip' and 'gzipcodec'.
  22629. @param codecName the canonical class name of the codec
  22630. @return the codec class]]>
  22631. </doc>
  22632. </method>
  22633. <method name="removeSuffix" return="java.lang.String"
  22634. abstract="false" native="false" synchronized="false"
  22635. static="true" final="false" visibility="public"
  22636. deprecated="not deprecated">
  22637. <param name="filename" type="java.lang.String"/>
  22638. <param name="suffix" type="java.lang.String"/>
  22639. <doc>
  22640. <![CDATA[Removes a suffix from a filename, if it has it.
  22641. @param filename the filename to strip
  22642. @param suffix the suffix to remove
  22643. @return the shortened filename]]>
  22644. </doc>
  22645. </method>
  22646. <method name="main"
  22647. abstract="false" native="false" synchronized="false"
  22648. static="true" final="false" visibility="public"
  22649. deprecated="not deprecated">
  22650. <param name="args" type="java.lang.String[]"/>
  22651. <exception name="Exception" type="java.lang.Exception"/>
  22652. <doc>
  22653. <![CDATA[A little test program.
  22654. @param args]]>
  22655. </doc>
  22656. </method>
  22657. <field name="LOG" type="org.slf4j.Logger"
  22658. transient="false" volatile="false"
  22659. static="true" final="true" visibility="public"
  22660. deprecated="not deprecated">
  22661. </field>
  22662. <doc>
  22663. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  22664. </doc>
  22665. </class>
  22666. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  22667. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  22668. <class name="CompressionInputStream" extends="java.io.InputStream"
  22669. abstract="true"
  22670. static="false" final="false" visibility="public"
  22671. deprecated="not deprecated">
  22672. <implements name="org.apache.hadoop.fs.Seekable"/>
  22673. <constructor name="CompressionInputStream" type="java.io.InputStream"
  22674. static="false" final="false" visibility="protected"
  22675. deprecated="not deprecated">
  22676. <exception name="IOException" type="java.io.IOException"/>
  22677. <doc>
  22678. <![CDATA[Create a compression input stream that reads
  22679. the decompressed bytes from the given stream.
  22680. @param in The input stream to be compressed.
  22681. @throws IOException]]>
  22682. </doc>
  22683. </constructor>
  22684. <method name="close"
  22685. abstract="false" native="false" synchronized="false"
  22686. static="false" final="false" visibility="public"
  22687. deprecated="not deprecated">
  22688. <exception name="IOException" type="java.io.IOException"/>
  22689. </method>
  22690. <method name="read" return="int"
  22691. abstract="true" native="false" synchronized="false"
  22692. static="false" final="false" visibility="public"
  22693. deprecated="not deprecated">
  22694. <param name="b" type="byte[]"/>
  22695. <param name="off" type="int"/>
  22696. <param name="len" type="int"/>
  22697. <exception name="IOException" type="java.io.IOException"/>
  22698. <doc>
  22699. <![CDATA[Read bytes from the stream.
  22700. Made abstract to prevent leakage to underlying stream.]]>
  22701. </doc>
  22702. </method>
  22703. <method name="resetState"
  22704. abstract="true" native="false" synchronized="false"
  22705. static="false" final="false" visibility="public"
  22706. deprecated="not deprecated">
  22707. <exception name="IOException" type="java.io.IOException"/>
  22708. <doc>
  22709. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  22710. as the underlying stream may have been repositioned.]]>
  22711. </doc>
  22712. </method>
  22713. <method name="getPos" return="long"
  22714. abstract="false" native="false" synchronized="false"
  22715. static="false" final="false" visibility="public"
  22716. deprecated="not deprecated">
  22717. <exception name="IOException" type="java.io.IOException"/>
  22718. <doc>
  22719. <![CDATA[This method returns the current position in the stream.
  22720. @return Current position in stream as a long]]>
  22721. </doc>
  22722. </method>
  22723. <method name="seek"
  22724. abstract="false" native="false" synchronized="false"
  22725. static="false" final="false" visibility="public"
  22726. deprecated="not deprecated">
  22727. <param name="pos" type="long"/>
  22728. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  22729. <doc>
  22730. <![CDATA[This method is current not supported.
  22731. @throws UnsupportedOperationException]]>
  22732. </doc>
  22733. </method>
  22734. <method name="seekToNewSource" return="boolean"
  22735. abstract="false" native="false" synchronized="false"
  22736. static="false" final="false" visibility="public"
  22737. deprecated="not deprecated">
  22738. <param name="targetPos" type="long"/>
  22739. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  22740. <doc>
  22741. <![CDATA[This method is current not supported.
  22742. @throws UnsupportedOperationException]]>
  22743. </doc>
  22744. </method>
  22745. <field name="in" type="java.io.InputStream"
  22746. transient="false" volatile="false"
  22747. static="false" final="true" visibility="protected"
  22748. deprecated="not deprecated">
  22749. <doc>
  22750. <![CDATA[The input stream to be compressed.]]>
  22751. </doc>
  22752. </field>
  22753. <field name="maxAvailableData" type="long"
  22754. transient="false" volatile="false"
  22755. static="false" final="false" visibility="protected"
  22756. deprecated="not deprecated">
  22757. </field>
  22758. <doc>
  22759. <![CDATA[A compression input stream.
  22760. <p>Implementations are assumed to be buffered. This permits clients to
  22761. reposition the underlying input stream then call {@link #resetState()},
  22762. without having to also synchronize client buffers.]]>
  22763. </doc>
  22764. </class>
  22765. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  22766. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  22767. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  22768. abstract="true"
  22769. static="false" final="false" visibility="public"
  22770. deprecated="not deprecated">
  22771. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  22772. static="false" final="false" visibility="protected"
  22773. deprecated="not deprecated">
  22774. <doc>
  22775. <![CDATA[Create a compression output stream that writes
  22776. the compressed bytes to the given stream.
  22777. @param out]]>
  22778. </doc>
  22779. </constructor>
  22780. <method name="close"
  22781. abstract="false" native="false" synchronized="false"
  22782. static="false" final="false" visibility="public"
  22783. deprecated="not deprecated">
  22784. <exception name="IOException" type="java.io.IOException"/>
  22785. </method>
  22786. <method name="flush"
  22787. abstract="false" native="false" synchronized="false"
  22788. static="false" final="false" visibility="public"
  22789. deprecated="not deprecated">
  22790. <exception name="IOException" type="java.io.IOException"/>
  22791. </method>
  22792. <method name="write"
  22793. abstract="true" native="false" synchronized="false"
  22794. static="false" final="false" visibility="public"
  22795. deprecated="not deprecated">
  22796. <param name="b" type="byte[]"/>
  22797. <param name="off" type="int"/>
  22798. <param name="len" type="int"/>
  22799. <exception name="IOException" type="java.io.IOException"/>
  22800. <doc>
  22801. <![CDATA[Write compressed bytes to the stream.
  22802. Made abstract to prevent leakage to underlying stream.]]>
  22803. </doc>
  22804. </method>
  22805. <method name="finish"
  22806. abstract="true" native="false" synchronized="false"
  22807. static="false" final="false" visibility="public"
  22808. deprecated="not deprecated">
  22809. <exception name="IOException" type="java.io.IOException"/>
  22810. <doc>
  22811. <![CDATA[Finishes writing compressed data to the output stream
  22812. without closing the underlying stream.]]>
  22813. </doc>
  22814. </method>
  22815. <method name="resetState"
  22816. abstract="true" native="false" synchronized="false"
  22817. static="false" final="false" visibility="public"
  22818. deprecated="not deprecated">
  22819. <exception name="IOException" type="java.io.IOException"/>
  22820. <doc>
  22821. <![CDATA[Reset the compression to the initial state.
  22822. Does not reset the underlying stream.]]>
  22823. </doc>
  22824. </method>
  22825. <field name="out" type="java.io.OutputStream"
  22826. transient="false" volatile="false"
  22827. static="false" final="true" visibility="protected"
  22828. deprecated="not deprecated">
  22829. <doc>
  22830. <![CDATA[The output stream to be compressed.]]>
  22831. </doc>
  22832. </field>
  22833. <doc>
  22834. <![CDATA[A compression output stream.]]>
  22835. </doc>
  22836. </class>
  22837. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  22838. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  22839. <interface name="Compressor" abstract="true"
  22840. static="false" final="false" visibility="public"
  22841. deprecated="not deprecated">
  22842. <method name="setInput"
  22843. abstract="true" native="false" synchronized="false"
  22844. static="false" final="false" visibility="public"
  22845. deprecated="not deprecated">
  22846. <param name="b" type="byte[]"/>
  22847. <param name="off" type="int"/>
  22848. <param name="len" type="int"/>
  22849. <doc>
  22850. <![CDATA[Sets input data for compression.
  22851. This should be called whenever #needsInput() returns
  22852. <code>true</code> indicating that more input data is required.
  22853. @param b Input data
  22854. @param off Start offset
  22855. @param len Length]]>
  22856. </doc>
  22857. </method>
  22858. <method name="needsInput" return="boolean"
  22859. abstract="true" native="false" synchronized="false"
  22860. static="false" final="false" visibility="public"
  22861. deprecated="not deprecated">
  22862. <doc>
  22863. <![CDATA[Returns true if the input data buffer is empty and
  22864. #setInput() should be called to provide more input.
  22865. @return <code>true</code> if the input data buffer is empty and
  22866. #setInput() should be called in order to provide more input.]]>
  22867. </doc>
  22868. </method>
  22869. <method name="setDictionary"
  22870. abstract="true" native="false" synchronized="false"
  22871. static="false" final="false" visibility="public"
  22872. deprecated="not deprecated">
  22873. <param name="b" type="byte[]"/>
  22874. <param name="off" type="int"/>
  22875. <param name="len" type="int"/>
  22876. <doc>
  22877. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  22878. is used when the history buffer can be predetermined.
  22879. @param b Dictionary data bytes
  22880. @param off Start offset
  22881. @param len Length]]>
  22882. </doc>
  22883. </method>
  22884. <method name="getBytesRead" return="long"
  22885. abstract="true" native="false" synchronized="false"
  22886. static="false" final="false" visibility="public"
  22887. deprecated="not deprecated">
  22888. <doc>
  22889. <![CDATA[Return number of uncompressed bytes input so far.]]>
  22890. </doc>
  22891. </method>
  22892. <method name="getBytesWritten" return="long"
  22893. abstract="true" native="false" synchronized="false"
  22894. static="false" final="false" visibility="public"
  22895. deprecated="not deprecated">
  22896. <doc>
  22897. <![CDATA[Return number of compressed bytes output so far.]]>
  22898. </doc>
  22899. </method>
  22900. <method name="finish"
  22901. abstract="true" native="false" synchronized="false"
  22902. static="false" final="false" visibility="public"
  22903. deprecated="not deprecated">
  22904. <doc>
  22905. <![CDATA[When called, indicates that compression should end
  22906. with the current contents of the input buffer.]]>
  22907. </doc>
  22908. </method>
  22909. <method name="finished" return="boolean"
  22910. abstract="true" native="false" synchronized="false"
  22911. static="false" final="false" visibility="public"
  22912. deprecated="not deprecated">
  22913. <doc>
  22914. <![CDATA[Returns true if the end of the compressed
  22915. data output stream has been reached.
  22916. @return <code>true</code> if the end of the compressed
  22917. data output stream has been reached.]]>
  22918. </doc>
  22919. </method>
  22920. <method name="compress" return="int"
  22921. abstract="true" native="false" synchronized="false"
  22922. static="false" final="false" visibility="public"
  22923. deprecated="not deprecated">
  22924. <param name="b" type="byte[]"/>
  22925. <param name="off" type="int"/>
  22926. <param name="len" type="int"/>
  22927. <exception name="IOException" type="java.io.IOException"/>
  22928. <doc>
  22929. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  22930. of bytes of compressed data. A return value of 0 indicates that
  22931. needsInput() should be called in order to determine if more input
  22932. data is required.
  22933. @param b Buffer for the compressed data
  22934. @param off Start offset of the data
  22935. @param len Size of the buffer
  22936. @return The actual number of bytes of compressed data.]]>
  22937. </doc>
  22938. </method>
  22939. <method name="reset"
  22940. abstract="true" native="false" synchronized="false"
  22941. static="false" final="false" visibility="public"
  22942. deprecated="not deprecated">
  22943. <doc>
  22944. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  22945. </doc>
  22946. </method>
  22947. <method name="end"
  22948. abstract="true" native="false" synchronized="false"
  22949. static="false" final="false" visibility="public"
  22950. deprecated="not deprecated">
  22951. <doc>
  22952. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  22953. </doc>
  22954. </method>
  22955. <method name="reinit"
  22956. abstract="true" native="false" synchronized="false"
  22957. static="false" final="false" visibility="public"
  22958. deprecated="not deprecated">
  22959. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22960. <doc>
  22961. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  22962. the given Configuration
  22963. @param conf Configuration from which new setting are fetched]]>
  22964. </doc>
  22965. </method>
  22966. <doc>
  22967. <![CDATA[Specification of a stream-based 'compressor' which can be
  22968. plugged into a {@link CompressionOutputStream} to compress data.
  22969. This is modelled after {@link java.util.zip.Deflater}]]>
  22970. </doc>
  22971. </interface>
  22972. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  22973. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  22974. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  22975. abstract="false"
  22976. static="false" final="false" visibility="public"
  22977. deprecated="not deprecated">
  22978. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  22979. static="false" final="false" visibility="public"
  22980. deprecated="not deprecated">
  22981. </constructor>
  22982. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  22983. static="false" final="false" visibility="public"
  22984. deprecated="not deprecated">
  22985. </constructor>
  22986. <constructor name="CompressorStream" type="java.io.OutputStream"
  22987. static="false" final="false" visibility="protected"
  22988. deprecated="not deprecated">
  22989. <doc>
  22990. <![CDATA[Allow derived classes to directly set the underlying stream.
  22991. @param out Underlying output stream.]]>
  22992. </doc>
  22993. </constructor>
  22994. <method name="write"
  22995. abstract="false" native="false" synchronized="false"
  22996. static="false" final="false" visibility="public"
  22997. deprecated="not deprecated">
  22998. <param name="b" type="byte[]"/>
  22999. <param name="off" type="int"/>
  23000. <param name="len" type="int"/>
  23001. <exception name="IOException" type="java.io.IOException"/>
  23002. </method>
  23003. <method name="compress"
  23004. abstract="false" native="false" synchronized="false"
  23005. static="false" final="false" visibility="protected"
  23006. deprecated="not deprecated">
  23007. <exception name="IOException" type="java.io.IOException"/>
  23008. </method>
  23009. <method name="finish"
  23010. abstract="false" native="false" synchronized="false"
  23011. static="false" final="false" visibility="public"
  23012. deprecated="not deprecated">
  23013. <exception name="IOException" type="java.io.IOException"/>
  23014. </method>
  23015. <method name="resetState"
  23016. abstract="false" native="false" synchronized="false"
  23017. static="false" final="false" visibility="public"
  23018. deprecated="not deprecated">
  23019. <exception name="IOException" type="java.io.IOException"/>
  23020. </method>
  23021. <method name="close"
  23022. abstract="false" native="false" synchronized="false"
  23023. static="false" final="false" visibility="public"
  23024. deprecated="not deprecated">
  23025. <exception name="IOException" type="java.io.IOException"/>
  23026. </method>
  23027. <method name="write"
  23028. abstract="false" native="false" synchronized="false"
  23029. static="false" final="false" visibility="public"
  23030. deprecated="not deprecated">
  23031. <param name="b" type="int"/>
  23032. <exception name="IOException" type="java.io.IOException"/>
  23033. </method>
  23034. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  23035. transient="false" volatile="false"
  23036. static="false" final="false" visibility="protected"
  23037. deprecated="not deprecated">
  23038. </field>
  23039. <field name="buffer" type="byte[]"
  23040. transient="false" volatile="false"
  23041. static="false" final="false" visibility="protected"
  23042. deprecated="not deprecated">
  23043. </field>
  23044. <field name="closed" type="boolean"
  23045. transient="false" volatile="false"
  23046. static="false" final="false" visibility="protected"
  23047. deprecated="not deprecated">
  23048. </field>
  23049. </class>
  23050. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  23051. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  23052. <interface name="Decompressor" abstract="true"
  23053. static="false" final="false" visibility="public"
  23054. deprecated="not deprecated">
  23055. <method name="setInput"
  23056. abstract="true" native="false" synchronized="false"
  23057. static="false" final="false" visibility="public"
  23058. deprecated="not deprecated">
  23059. <param name="b" type="byte[]"/>
  23060. <param name="off" type="int"/>
  23061. <param name="len" type="int"/>
  23062. <doc>
  23063. <![CDATA[Sets input data for decompression.
  23064. This should be called if and only if {@link #needsInput()} returns
  23065. <code>true</code> indicating that more input data is required.
  23066. (Both native and non-native versions of various Decompressors require
  23067. that the data passed in via <code>b[]</code> remain unmodified until
  23068. the caller is explicitly notified--via {@link #needsInput()}--that the
  23069. buffer may be safely modified. With this requirement, an extra
  23070. buffer-copy can be avoided.)
  23071. @param b Input data
  23072. @param off Start offset
  23073. @param len Length]]>
  23074. </doc>
  23075. </method>
  23076. <method name="needsInput" return="boolean"
  23077. abstract="true" native="false" synchronized="false"
  23078. static="false" final="false" visibility="public"
  23079. deprecated="not deprecated">
  23080. <doc>
  23081. <![CDATA[Returns <code>true</code> if the input data buffer is empty and
  23082. {@link #setInput(byte[], int, int)} should be called to
  23083. provide more input.
  23084. @return <code>true</code> if the input data buffer is empty and
  23085. {@link #setInput(byte[], int, int)} should be called in
  23086. order to provide more input.]]>
  23087. </doc>
  23088. </method>
  23089. <method name="setDictionary"
  23090. abstract="true" native="false" synchronized="false"
  23091. static="false" final="false" visibility="public"
  23092. deprecated="not deprecated">
  23093. <param name="b" type="byte[]"/>
  23094. <param name="off" type="int"/>
  23095. <param name="len" type="int"/>
  23096. <doc>
  23097. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  23098. is used when the history buffer can be predetermined.
  23099. @param b Dictionary data bytes
  23100. @param off Start offset
  23101. @param len Length]]>
  23102. </doc>
  23103. </method>
  23104. <method name="needsDictionary" return="boolean"
  23105. abstract="true" native="false" synchronized="false"
  23106. static="false" final="false" visibility="public"
  23107. deprecated="not deprecated">
  23108. <doc>
  23109. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  23110. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  23111. </doc>
  23112. </method>
  23113. <method name="finished" return="boolean"
  23114. abstract="true" native="false" synchronized="false"
  23115. static="false" final="false" visibility="public"
  23116. deprecated="not deprecated">
  23117. <doc>
  23118. <![CDATA[Returns <code>true</code> if the end of the decompressed
  23119. data output stream has been reached. Indicates a concatenated data stream
  23120. when finished() returns <code>true</code> and {@link #getRemaining()}
  23121. returns a positive value. finished() will be reset with the
  23122. {@link #reset()} method.
  23123. @return <code>true</code> if the end of the decompressed
  23124. data output stream has been reached.]]>
  23125. </doc>
  23126. </method>
  23127. <method name="decompress" return="int"
  23128. abstract="true" native="false" synchronized="false"
  23129. static="false" final="false" visibility="public"
  23130. deprecated="not deprecated">
  23131. <param name="b" type="byte[]"/>
  23132. <param name="off" type="int"/>
  23133. <param name="len" type="int"/>
  23134. <exception name="IOException" type="java.io.IOException"/>
  23135. <doc>
  23136. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  23137. of bytes of uncompressed data. A return value of 0 indicates that
  23138. {@link #needsInput()} should be called in order to determine if more
  23139. input data is required.
  23140. @param b Buffer for the compressed data
  23141. @param off Start offset of the data
  23142. @param len Size of the buffer
  23143. @return The actual number of bytes of uncompressed data.
  23144. @throws IOException]]>
  23145. </doc>
  23146. </method>
  23147. <method name="getRemaining" return="int"
  23148. abstract="true" native="false" synchronized="false"
  23149. static="false" final="false" visibility="public"
  23150. deprecated="not deprecated">
  23151. <doc>
  23152. <![CDATA[Returns the number of bytes remaining in the compressed data buffer.
  23153. Indicates a concatenated data stream if {@link #finished()} returns
  23154. <code>true</code> and getRemaining() returns a positive value. If
  23155. {@link #finished()} returns <code>true</code> and getRemaining() returns
  23156. a zero value, indicates that the end of data stream has been reached and
  23157. is not a concatenated data stream.
  23158. @return The number of bytes remaining in the compressed data buffer.]]>
  23159. </doc>
  23160. </method>
  23161. <method name="reset"
  23162. abstract="true" native="false" synchronized="false"
  23163. static="false" final="false" visibility="public"
  23164. deprecated="not deprecated">
  23165. <doc>
  23166. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  23167. input data can be processed. If {@link #finished()}} returns
  23168. <code>true</code> and {@link #getRemaining()} returns a positive value,
  23169. reset() is called before processing of the next data stream in the
  23170. concatenated data stream. {@link #finished()} will be reset and will
  23171. return <code>false</code> when reset() is called.]]>
  23172. </doc>
  23173. </method>
  23174. <method name="end"
  23175. abstract="true" native="false" synchronized="false"
  23176. static="false" final="false" visibility="public"
  23177. deprecated="not deprecated">
  23178. <doc>
  23179. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  23180. </doc>
  23181. </method>
  23182. <doc>
  23183. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  23184. plugged into a {@link CompressionInputStream} to compress data.
  23185. This is modelled after {@link java.util.zip.Inflater}]]>
  23186. </doc>
  23187. </interface>
  23188. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  23189. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  23190. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  23191. abstract="false"
  23192. static="false" final="false" visibility="public"
  23193. deprecated="not deprecated">
  23194. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  23195. static="false" final="false" visibility="public"
  23196. deprecated="not deprecated">
  23197. <exception name="IOException" type="java.io.IOException"/>
  23198. </constructor>
  23199. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  23200. static="false" final="false" visibility="public"
  23201. deprecated="not deprecated">
  23202. <exception name="IOException" type="java.io.IOException"/>
  23203. </constructor>
  23204. <constructor name="DecompressorStream" type="java.io.InputStream"
  23205. static="false" final="false" visibility="protected"
  23206. deprecated="not deprecated">
  23207. <exception name="IOException" type="java.io.IOException"/>
  23208. <doc>
  23209. <![CDATA[Allow derived classes to directly set the underlying stream.
  23210. @param in Underlying input stream.
  23211. @throws IOException]]>
  23212. </doc>
  23213. </constructor>
  23214. <method name="read" return="int"
  23215. abstract="false" native="false" synchronized="false"
  23216. static="false" final="false" visibility="public"
  23217. deprecated="not deprecated">
  23218. <exception name="IOException" type="java.io.IOException"/>
  23219. </method>
  23220. <method name="read" return="int"
  23221. abstract="false" native="false" synchronized="false"
  23222. static="false" final="false" visibility="public"
  23223. deprecated="not deprecated">
  23224. <param name="b" type="byte[]"/>
  23225. <param name="off" type="int"/>
  23226. <param name="len" type="int"/>
  23227. <exception name="IOException" type="java.io.IOException"/>
  23228. </method>
  23229. <method name="decompress" return="int"
  23230. abstract="false" native="false" synchronized="false"
  23231. static="false" final="false" visibility="protected"
  23232. deprecated="not deprecated">
  23233. <param name="b" type="byte[]"/>
  23234. <param name="off" type="int"/>
  23235. <param name="len" type="int"/>
  23236. <exception name="IOException" type="java.io.IOException"/>
  23237. </method>
  23238. <method name="getCompressedData" return="int"
  23239. abstract="false" native="false" synchronized="false"
  23240. static="false" final="false" visibility="protected"
  23241. deprecated="not deprecated">
  23242. <exception name="IOException" type="java.io.IOException"/>
  23243. </method>
  23244. <method name="checkStream"
  23245. abstract="false" native="false" synchronized="false"
  23246. static="false" final="false" visibility="protected"
  23247. deprecated="not deprecated">
  23248. <exception name="IOException" type="java.io.IOException"/>
  23249. </method>
  23250. <method name="resetState"
  23251. abstract="false" native="false" synchronized="false"
  23252. static="false" final="false" visibility="public"
  23253. deprecated="not deprecated">
  23254. <exception name="IOException" type="java.io.IOException"/>
  23255. </method>
  23256. <method name="skip" return="long"
  23257. abstract="false" native="false" synchronized="false"
  23258. static="false" final="false" visibility="public"
  23259. deprecated="not deprecated">
  23260. <param name="n" type="long"/>
  23261. <exception name="IOException" type="java.io.IOException"/>
  23262. </method>
  23263. <method name="available" return="int"
  23264. abstract="false" native="false" synchronized="false"
  23265. static="false" final="false" visibility="public"
  23266. deprecated="not deprecated">
  23267. <exception name="IOException" type="java.io.IOException"/>
  23268. </method>
  23269. <method name="close"
  23270. abstract="false" native="false" synchronized="false"
  23271. static="false" final="false" visibility="public"
  23272. deprecated="not deprecated">
  23273. <exception name="IOException" type="java.io.IOException"/>
  23274. </method>
  23275. <method name="markSupported" return="boolean"
  23276. abstract="false" native="false" synchronized="false"
  23277. static="false" final="false" visibility="public"
  23278. deprecated="not deprecated">
  23279. </method>
  23280. <method name="mark"
  23281. abstract="false" native="false" synchronized="true"
  23282. static="false" final="false" visibility="public"
  23283. deprecated="not deprecated">
  23284. <param name="readlimit" type="int"/>
  23285. </method>
  23286. <method name="reset"
  23287. abstract="false" native="false" synchronized="true"
  23288. static="false" final="false" visibility="public"
  23289. deprecated="not deprecated">
  23290. <exception name="IOException" type="java.io.IOException"/>
  23291. </method>
  23292. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  23293. transient="false" volatile="false"
  23294. static="false" final="false" visibility="protected"
  23295. deprecated="not deprecated">
  23296. </field>
  23297. <field name="buffer" type="byte[]"
  23298. transient="false" volatile="false"
  23299. static="false" final="false" visibility="protected"
  23300. deprecated="not deprecated">
  23301. </field>
  23302. <field name="eof" type="boolean"
  23303. transient="false" volatile="false"
  23304. static="false" final="false" visibility="protected"
  23305. deprecated="not deprecated">
  23306. </field>
  23307. <field name="closed" type="boolean"
  23308. transient="false" volatile="false"
  23309. static="false" final="false" visibility="protected"
  23310. deprecated="not deprecated">
  23311. </field>
  23312. </class>
  23313. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  23314. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  23315. <class name="DefaultCodec" extends="java.lang.Object"
  23316. abstract="false"
  23317. static="false" final="false" visibility="public"
  23318. deprecated="not deprecated">
  23319. <implements name="org.apache.hadoop.conf.Configurable"/>
  23320. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  23321. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  23322. <constructor name="DefaultCodec"
  23323. static="false" final="false" visibility="public"
  23324. deprecated="not deprecated">
  23325. </constructor>
  23326. <method name="setConf"
  23327. abstract="false" native="false" synchronized="false"
  23328. static="false" final="false" visibility="public"
  23329. deprecated="not deprecated">
  23330. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23331. </method>
  23332. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  23333. abstract="false" native="false" synchronized="false"
  23334. static="false" final="false" visibility="public"
  23335. deprecated="not deprecated">
  23336. </method>
  23337. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23338. abstract="false" native="false" synchronized="false"
  23339. static="false" final="false" visibility="public"
  23340. deprecated="not deprecated">
  23341. <param name="out" type="java.io.OutputStream"/>
  23342. <exception name="IOException" type="java.io.IOException"/>
  23343. </method>
  23344. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23345. abstract="false" native="false" synchronized="false"
  23346. static="false" final="false" visibility="public"
  23347. deprecated="not deprecated">
  23348. <param name="out" type="java.io.OutputStream"/>
  23349. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  23350. <exception name="IOException" type="java.io.IOException"/>
  23351. </method>
  23352. <method name="getCompressorType" return="java.lang.Class"
  23353. abstract="false" native="false" synchronized="false"
  23354. static="false" final="false" visibility="public"
  23355. deprecated="not deprecated">
  23356. </method>
  23357. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  23358. abstract="false" native="false" synchronized="false"
  23359. static="false" final="false" visibility="public"
  23360. deprecated="not deprecated">
  23361. </method>
  23362. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23363. abstract="false" native="false" synchronized="false"
  23364. static="false" final="false" visibility="public"
  23365. deprecated="not deprecated">
  23366. <param name="in" type="java.io.InputStream"/>
  23367. <exception name="IOException" type="java.io.IOException"/>
  23368. </method>
  23369. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23370. abstract="false" native="false" synchronized="false"
  23371. static="false" final="false" visibility="public"
  23372. deprecated="not deprecated">
  23373. <param name="in" type="java.io.InputStream"/>
  23374. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  23375. <exception name="IOException" type="java.io.IOException"/>
  23376. </method>
  23377. <method name="getDecompressorType" return="java.lang.Class"
  23378. abstract="false" native="false" synchronized="false"
  23379. static="false" final="false" visibility="public"
  23380. deprecated="not deprecated">
  23381. </method>
  23382. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  23383. abstract="false" native="false" synchronized="false"
  23384. static="false" final="false" visibility="public"
  23385. deprecated="not deprecated">
  23386. </method>
  23387. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  23388. abstract="false" native="false" synchronized="false"
  23389. static="false" final="false" visibility="public"
  23390. deprecated="not deprecated">
  23391. <doc>
  23392. <![CDATA[{@inheritDoc}]]>
  23393. </doc>
  23394. </method>
  23395. <method name="getDefaultExtension" return="java.lang.String"
  23396. abstract="false" native="false" synchronized="false"
  23397. static="false" final="false" visibility="public"
  23398. deprecated="not deprecated">
  23399. </method>
  23400. </class>
  23401. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  23402. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  23403. <interface name="DirectDecompressionCodec" abstract="true"
  23404. static="false" final="false" visibility="public"
  23405. deprecated="not deprecated">
  23406. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  23407. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  23408. abstract="true" native="false" synchronized="false"
  23409. static="false" final="false" visibility="public"
  23410. deprecated="not deprecated">
  23411. <doc>
  23412. <![CDATA[Create a new {@link DirectDecompressor} for use by this {@link DirectDecompressionCodec}.
  23413. @return a new direct decompressor for use by this codec]]>
  23414. </doc>
  23415. </method>
  23416. <doc>
  23417. <![CDATA[This class encapsulates a codec which can decompress direct bytebuffers.]]>
  23418. </doc>
  23419. </interface>
  23420. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  23421. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressor -->
  23422. <interface name="DirectDecompressor" abstract="true"
  23423. static="false" final="false" visibility="public"
  23424. deprecated="not deprecated">
  23425. <method name="decompress"
  23426. abstract="true" native="false" synchronized="false"
  23427. static="false" final="false" visibility="public"
  23428. deprecated="not deprecated">
  23429. <param name="src" type="java.nio.ByteBuffer"/>
  23430. <param name="dst" type="java.nio.ByteBuffer"/>
  23431. <exception name="IOException" type="java.io.IOException"/>
  23432. </method>
  23433. <doc>
  23434. <![CDATA[Specification of a direct ByteBuffer 'de-compressor'.]]>
  23435. </doc>
  23436. </interface>
  23437. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressor -->
  23438. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  23439. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  23440. abstract="false"
  23441. static="false" final="false" visibility="public"
  23442. deprecated="not deprecated">
  23443. <constructor name="GzipCodec"
  23444. static="false" final="false" visibility="public"
  23445. deprecated="not deprecated">
  23446. </constructor>
  23447. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23448. abstract="false" native="false" synchronized="false"
  23449. static="false" final="false" visibility="public"
  23450. deprecated="not deprecated">
  23451. <param name="out" type="java.io.OutputStream"/>
  23452. <exception name="IOException" type="java.io.IOException"/>
  23453. </method>
  23454. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23455. abstract="false" native="false" synchronized="false"
  23456. static="false" final="false" visibility="public"
  23457. deprecated="not deprecated">
  23458. <param name="out" type="java.io.OutputStream"/>
  23459. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  23460. <exception name="IOException" type="java.io.IOException"/>
  23461. </method>
  23462. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  23463. abstract="false" native="false" synchronized="false"
  23464. static="false" final="false" visibility="public"
  23465. deprecated="not deprecated">
  23466. </method>
  23467. <method name="getCompressorType" return="java.lang.Class"
  23468. abstract="false" native="false" synchronized="false"
  23469. static="false" final="false" visibility="public"
  23470. deprecated="not deprecated">
  23471. </method>
  23472. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23473. abstract="false" native="false" synchronized="false"
  23474. static="false" final="false" visibility="public"
  23475. deprecated="not deprecated">
  23476. <param name="in" type="java.io.InputStream"/>
  23477. <exception name="IOException" type="java.io.IOException"/>
  23478. </method>
  23479. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23480. abstract="false" native="false" synchronized="false"
  23481. static="false" final="false" visibility="public"
  23482. deprecated="not deprecated">
  23483. <param name="in" type="java.io.InputStream"/>
  23484. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  23485. <exception name="IOException" type="java.io.IOException"/>
  23486. </method>
  23487. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  23488. abstract="false" native="false" synchronized="false"
  23489. static="false" final="false" visibility="public"
  23490. deprecated="not deprecated">
  23491. </method>
  23492. <method name="getDecompressorType" return="java.lang.Class"
  23493. abstract="false" native="false" synchronized="false"
  23494. static="false" final="false" visibility="public"
  23495. deprecated="not deprecated">
  23496. </method>
  23497. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  23498. abstract="false" native="false" synchronized="false"
  23499. static="false" final="false" visibility="public"
  23500. deprecated="not deprecated">
  23501. </method>
  23502. <method name="getDefaultExtension" return="java.lang.String"
  23503. abstract="false" native="false" synchronized="false"
  23504. static="false" final="false" visibility="public"
  23505. deprecated="not deprecated">
  23506. </method>
  23507. <doc>
  23508. <![CDATA[This class creates gzip compressors/decompressors.]]>
  23509. </doc>
  23510. </class>
  23511. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  23512. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  23513. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  23514. abstract="true"
  23515. static="false" final="false" visibility="public"
  23516. deprecated="not deprecated">
  23517. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  23518. static="false" final="false" visibility="public"
  23519. deprecated="not deprecated">
  23520. <exception name="IOException" type="java.io.IOException"/>
  23521. </constructor>
  23522. <method name="setStart"
  23523. abstract="false" native="false" synchronized="false"
  23524. static="false" final="false" visibility="protected"
  23525. deprecated="not deprecated">
  23526. <param name="start" type="long"/>
  23527. </method>
  23528. <method name="setEnd"
  23529. abstract="false" native="false" synchronized="false"
  23530. static="false" final="false" visibility="protected"
  23531. deprecated="not deprecated">
  23532. <param name="end" type="long"/>
  23533. </method>
  23534. <method name="getAdjustedStart" return="long"
  23535. abstract="false" native="false" synchronized="false"
  23536. static="false" final="false" visibility="public"
  23537. deprecated="not deprecated">
  23538. <doc>
  23539. <![CDATA[After calling createInputStream, the values of start or end
  23540. might change. So this method can be used to get the new value of start.
  23541. @return The changed value of start]]>
  23542. </doc>
  23543. </method>
  23544. <method name="getAdjustedEnd" return="long"
  23545. abstract="false" native="false" synchronized="false"
  23546. static="false" final="false" visibility="public"
  23547. deprecated="not deprecated">
  23548. <doc>
  23549. <![CDATA[After calling createInputStream, the values of start or end
  23550. might change. So this method can be used to get the new value of end.
  23551. @return The changed value of end]]>
  23552. </doc>
  23553. </method>
  23554. <doc>
  23555. <![CDATA[An InputStream covering a range of compressed data. The start and end
  23556. offsets requested by a client may be modified by the codec to fit block
  23557. boundaries or other algorithm-dependent requirements.]]>
  23558. </doc>
  23559. </class>
  23560. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  23561. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  23562. <interface name="SplittableCompressionCodec" abstract="true"
  23563. static="false" final="false" visibility="public"
  23564. deprecated="not deprecated">
  23565. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  23566. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  23567. abstract="true" native="false" synchronized="false"
  23568. static="false" final="false" visibility="public"
  23569. deprecated="not deprecated">
  23570. <param name="seekableIn" type="java.io.InputStream"/>
  23571. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  23572. <param name="start" type="long"/>
  23573. <param name="end" type="long"/>
  23574. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  23575. <exception name="IOException" type="java.io.IOException"/>
  23576. <doc>
  23577. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  23578. the codecs wants the ability to work with the underlying stream positions.
  23579. @param seekableIn The seekable input stream (seeks in compressed data)
  23580. @param start The start offset into the compressed stream. May be changed
  23581. by the underlying codec.
  23582. @param end The end offset into the compressed stream. May be changed by
  23583. the underlying codec.
  23584. @param readMode Controls whether stream position is reported continuously
  23585. from the compressed stream only only at block boundaries.
  23586. @return a stream to read uncompressed bytes from]]>
  23587. </doc>
  23588. </method>
  23589. <doc>
  23590. <![CDATA[This interface is meant to be implemented by those compression codecs
  23591. which are capable to compress / de-compress a stream starting at any
  23592. arbitrary position.
  23593. Especially the process of de-compressing a stream starting at some arbitrary
  23594. position is challenging. Most of the codecs are only able to successfully
  23595. de-compress a stream, if they start from the very beginning till the end.
  23596. One of the reasons is the stored state at the beginning of the stream which
  23597. is crucial for de-compression.
  23598. Yet there are few codecs which do not save the whole state at the beginning
  23599. of the stream and hence can be used to de-compress stream starting at any
  23600. arbitrary points. This interface is meant to be used by such codecs. Such
  23601. codecs are highly valuable, especially in the context of Hadoop, because
  23602. an input compressed file can be split and hence can be worked on by multiple
  23603. machines in parallel.]]>
  23604. </doc>
  23605. </interface>
  23606. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  23607. </package>
  23608. <package name="org.apache.hadoop.io.erasurecode">
  23609. <!-- start class org.apache.hadoop.io.erasurecode.ECSchema -->
  23610. <class name="ECSchema" extends="java.lang.Object"
  23611. abstract="false"
  23612. static="false" final="true" visibility="public"
  23613. deprecated="not deprecated">
  23614. <implements name="java.io.Serializable"/>
  23615. <constructor name="ECSchema" type="java.util.Map"
  23616. static="false" final="false" visibility="public"
  23617. deprecated="not deprecated">
  23618. <doc>
  23619. <![CDATA[Constructor with schema name and provided all options. Note the options may
  23620. contain additional information for the erasure codec to interpret further.
  23621. @param allOptions all schema options]]>
  23622. </doc>
  23623. </constructor>
  23624. <constructor name="ECSchema" type="java.lang.String, int, int"
  23625. static="false" final="false" visibility="public"
  23626. deprecated="not deprecated">
  23627. <doc>
  23628. <![CDATA[Constructor with key parameters provided.
  23629. @param codecName codec name
  23630. @param numDataUnits number of data units used in the schema
  23631. @param numParityUnits number os parity units used in the schema]]>
  23632. </doc>
  23633. </constructor>
  23634. <constructor name="ECSchema" type="java.lang.String, int, int, java.util.Map"
  23635. static="false" final="false" visibility="public"
  23636. deprecated="not deprecated">
  23637. <doc>
  23638. <![CDATA[Constructor with key parameters provided. Note the extraOptions may contain
  23639. additional information for the erasure codec to interpret further.
  23640. @param codecName codec name
  23641. @param numDataUnits number of data units used in the schema
  23642. @param numParityUnits number os parity units used in the schema
  23643. @param extraOptions extra options to configure the codec]]>
  23644. </doc>
  23645. </constructor>
  23646. <method name="getCodecName" return="java.lang.String"
  23647. abstract="false" native="false" synchronized="false"
  23648. static="false" final="false" visibility="public"
  23649. deprecated="not deprecated">
  23650. <doc>
  23651. <![CDATA[Get the codec name
  23652. @return codec name]]>
  23653. </doc>
  23654. </method>
  23655. <method name="getExtraOptions" return="java.util.Map"
  23656. abstract="false" native="false" synchronized="false"
  23657. static="false" final="false" visibility="public"
  23658. deprecated="not deprecated">
  23659. <doc>
  23660. <![CDATA[Get extra options specific to an erasure code.
  23661. @return extra options]]>
  23662. </doc>
  23663. </method>
  23664. <method name="getNumDataUnits" return="int"
  23665. abstract="false" native="false" synchronized="false"
  23666. static="false" final="false" visibility="public"
  23667. deprecated="not deprecated">
  23668. <doc>
  23669. <![CDATA[Get required data units count in a coding group
  23670. @return count of data units]]>
  23671. </doc>
  23672. </method>
  23673. <method name="getNumParityUnits" return="int"
  23674. abstract="false" native="false" synchronized="false"
  23675. static="false" final="false" visibility="public"
  23676. deprecated="not deprecated">
  23677. <doc>
  23678. <![CDATA[Get required parity units count in a coding group
  23679. @return count of parity units]]>
  23680. </doc>
  23681. </method>
  23682. <method name="toString" return="java.lang.String"
  23683. abstract="false" native="false" synchronized="false"
  23684. static="false" final="false" visibility="public"
  23685. deprecated="not deprecated">
  23686. <doc>
  23687. <![CDATA[Make a meaningful string representation for log output.
  23688. @return string representation]]>
  23689. </doc>
  23690. </method>
  23691. <method name="equals" return="boolean"
  23692. abstract="false" native="false" synchronized="false"
  23693. static="false" final="false" visibility="public"
  23694. deprecated="not deprecated">
  23695. <param name="o" type="java.lang.Object"/>
  23696. </method>
  23697. <method name="hashCode" return="int"
  23698. abstract="false" native="false" synchronized="false"
  23699. static="false" final="false" visibility="public"
  23700. deprecated="not deprecated">
  23701. </method>
  23702. <field name="NUM_DATA_UNITS_KEY" type="java.lang.String"
  23703. transient="false" volatile="false"
  23704. static="true" final="true" visibility="public"
  23705. deprecated="not deprecated">
  23706. </field>
  23707. <field name="NUM_PARITY_UNITS_KEY" type="java.lang.String"
  23708. transient="false" volatile="false"
  23709. static="true" final="true" visibility="public"
  23710. deprecated="not deprecated">
  23711. </field>
  23712. <field name="CODEC_NAME_KEY" type="java.lang.String"
  23713. transient="false" volatile="false"
  23714. static="true" final="true" visibility="public"
  23715. deprecated="not deprecated">
  23716. </field>
  23717. <doc>
  23718. <![CDATA[Erasure coding schema to housekeeper relevant information.]]>
  23719. </doc>
  23720. </class>
  23721. <!-- end class org.apache.hadoop.io.erasurecode.ECSchema -->
  23722. </package>
  23723. <package name="org.apache.hadoop.io.erasurecode.coder.util">
  23724. </package>
  23725. <package name="org.apache.hadoop.io.erasurecode.grouper">
  23726. </package>
  23727. <package name="org.apache.hadoop.io.file.tfile">
  23728. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  23729. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  23730. abstract="false"
  23731. static="false" final="false" visibility="public"
  23732. deprecated="not deprecated">
  23733. <doc>
  23734. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  23735. </doc>
  23736. </class>
  23737. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  23738. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  23739. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  23740. abstract="false"
  23741. static="false" final="false" visibility="public"
  23742. deprecated="not deprecated">
  23743. <doc>
  23744. <![CDATA[Exception - No such Meta Block with the given name.]]>
  23745. </doc>
  23746. </class>
  23747. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  23748. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  23749. <interface name="RawComparable" abstract="true"
  23750. static="false" final="false" visibility="public"
  23751. deprecated="not deprecated">
  23752. <method name="buffer" return="byte[]"
  23753. abstract="true" native="false" synchronized="false"
  23754. static="false" final="false" visibility="public"
  23755. deprecated="not deprecated">
  23756. <doc>
  23757. <![CDATA[Get the underlying byte array.
  23758. @return The underlying byte array.]]>
  23759. </doc>
  23760. </method>
  23761. <method name="offset" return="int"
  23762. abstract="true" native="false" synchronized="false"
  23763. static="false" final="false" visibility="public"
  23764. deprecated="not deprecated">
  23765. <doc>
  23766. <![CDATA[Get the offset of the first byte in the byte array.
  23767. @return The offset of the first byte in the byte array.]]>
  23768. </doc>
  23769. </method>
  23770. <method name="size" return="int"
  23771. abstract="true" native="false" synchronized="false"
  23772. static="false" final="false" visibility="public"
  23773. deprecated="not deprecated">
  23774. <doc>
  23775. <![CDATA[Get the size of the byte range in the byte array.
  23776. @return The size of the byte range in the byte array.]]>
  23777. </doc>
  23778. </method>
  23779. <doc>
  23780. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  23781. This is useful in places where we need a single object reference to specify a
  23782. range of bytes in a byte array, such as {@link Comparable} or
  23783. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  23784. The actual comparison among RawComparable's requires an external
  23785. RawComparator and it is applications' responsibility to ensure two
  23786. RawComparable are supposed to be semantically comparable with the same
  23787. RawComparator.]]>
  23788. </doc>
  23789. </interface>
  23790. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  23791. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  23792. <class name="TFile" extends="java.lang.Object"
  23793. abstract="false"
  23794. static="false" final="false" visibility="public"
  23795. deprecated="not deprecated">
  23796. <method name="makeComparator" return="java.util.Comparator"
  23797. abstract="false" native="false" synchronized="false"
  23798. static="true" final="false" visibility="public"
  23799. deprecated="not deprecated">
  23800. <param name="name" type="java.lang.String"/>
  23801. <doc>
  23802. <![CDATA[Make a raw comparator from a string name.
  23803. @param name
  23804. Comparator name
  23805. @return A RawComparable comparator.]]>
  23806. </doc>
  23807. </method>
  23808. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  23809. abstract="false" native="false" synchronized="false"
  23810. static="true" final="false" visibility="public"
  23811. deprecated="not deprecated">
  23812. <doc>
  23813. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  23814. TFile.Writer.
  23815. @return Array of strings, each represents a supported compression
  23816. algorithm. Currently, the following compression algorithms are
  23817. supported.
  23818. <ul>
  23819. <li>"none" - No compression.
  23820. <li>"lzo" - LZO compression.
  23821. <li>"gz" - GZIP compression.
  23822. </ul>]]>
  23823. </doc>
  23824. </method>
  23825. <method name="main"
  23826. abstract="false" native="false" synchronized="false"
  23827. static="true" final="false" visibility="public"
  23828. deprecated="not deprecated">
  23829. <param name="args" type="java.lang.String[]"/>
  23830. <doc>
  23831. <![CDATA[Dumping the TFile information.
  23832. @param args
  23833. A list of TFile paths.]]>
  23834. </doc>
  23835. </method>
  23836. <field name="COMPRESSION_GZ" type="java.lang.String"
  23837. transient="false" volatile="false"
  23838. static="true" final="true" visibility="public"
  23839. deprecated="not deprecated">
  23840. <doc>
  23841. <![CDATA[compression: gzip]]>
  23842. </doc>
  23843. </field>
  23844. <field name="COMPRESSION_LZO" type="java.lang.String"
  23845. transient="false" volatile="false"
  23846. static="true" final="true" visibility="public"
  23847. deprecated="not deprecated">
  23848. <doc>
  23849. <![CDATA[compression: lzo]]>
  23850. </doc>
  23851. </field>
  23852. <field name="COMPRESSION_NONE" type="java.lang.String"
  23853. transient="false" volatile="false"
  23854. static="true" final="true" visibility="public"
  23855. deprecated="not deprecated">
  23856. <doc>
  23857. <![CDATA[compression: none]]>
  23858. </doc>
  23859. </field>
  23860. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  23861. transient="false" volatile="false"
  23862. static="true" final="true" visibility="public"
  23863. deprecated="not deprecated">
  23864. <doc>
  23865. <![CDATA[comparator: memcmp]]>
  23866. </doc>
  23867. </field>
  23868. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  23869. transient="false" volatile="false"
  23870. static="true" final="true" visibility="public"
  23871. deprecated="not deprecated">
  23872. <doc>
  23873. <![CDATA[comparator prefix: java class]]>
  23874. </doc>
  23875. </field>
  23876. <doc>
  23877. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  23878. bytes. Keys are restricted to 64KB, value length is not restricted
  23879. (practically limited to the available disk storage). TFile further provides
  23880. the following features:
  23881. <ul>
  23882. <li>Block Compression.
  23883. <li>Named meta data blocks.
  23884. <li>Sorted or unsorted keys.
  23885. <li>Seek by key or by file offset.
  23886. </ul>
  23887. The memory footprint of a TFile includes the following:
  23888. <ul>
  23889. <li>Some constant overhead of reading or writing a compressed block.
  23890. <ul>
  23891. <li>Each compressed block requires one compression/decompression codec for
  23892. I/O.
  23893. <li>Temporary space to buffer the key.
  23894. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  23895. chunk encoded, so that we buffer at most one chunk of user data. By default,
  23896. the chunk buffer is 1MB. Reading chunked value does not require additional
  23897. memory.
  23898. </ul>
  23899. <li>TFile index, which is proportional to the total number of Data Blocks.
  23900. The total amount of memory needed to hold the index can be estimated as
  23901. (56+AvgKeySize)*NumBlocks.
  23902. <li>MetaBlock index, which is proportional to the total number of Meta
  23903. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  23904. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  23905. </ul>
  23906. <p>
  23907. The behavior of TFile can be customized by the following variables through
  23908. Configuration:
  23909. <ul>
  23910. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  23911. to 1MB. Values of the length less than the chunk size is guaranteed to have
  23912. known value length in read time (See
  23913. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  23914. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  23915. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  23916. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  23917. FSDataInputStream. Integer (in bytes). Default to 256KB.
  23918. </ul>
  23919. <p>
  23920. Suggestions on performance optimization.
  23921. <ul>
  23922. <li>Minimum block size. We recommend a setting of minimum block size between
  23923. 256KB to 1MB for general usage. Larger block size is preferred if files are
  23924. primarily for sequential access. However, it would lead to inefficient random
  23925. access (because there are more data to decompress). Smaller blocks are good
  23926. for random access, but require more memory to hold the block index, and may
  23927. be slower to create (because we must flush the compressor stream at the
  23928. conclusion of each data block, which leads to an FS I/O flush). Further, due
  23929. to the internal caching in Compression codec, the smallest possible block
  23930. size would be around 20KB-30KB.
  23931. <li>The current implementation does not offer true multi-threading for
  23932. reading. The implementation uses FSDataInputStream seek()+read(), which is
  23933. shown to be much faster than positioned-read call in single thread mode.
  23934. However, it also means that if multiple threads attempt to access the same
  23935. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  23936. sequentially even if they access different DFS blocks.
  23937. <li>Compression codec. Use "none" if the data is not very compressable (by
  23938. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  23939. as the starting point for experimenting. "gz" overs slightly better
  23940. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  23941. decompress, comparing to "lzo".
  23942. <li>File system buffering, if the underlying FSDataInputStream and
  23943. FSDataOutputStream is already adequately buffered; or if applications
  23944. reads/writes keys and values in large buffers, we can reduce the sizes of
  23945. input/output buffering in TFile layer by setting the configuration parameters
  23946. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  23947. </ul>
  23948. Some design rationale behind TFile can be found at <a
  23949. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  23950. </doc>
  23951. </class>
  23952. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  23953. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  23954. <class name="Utils" extends="java.lang.Object"
  23955. abstract="false"
  23956. static="false" final="true" visibility="public"
  23957. deprecated="not deprecated">
  23958. <method name="writeVInt"
  23959. abstract="false" native="false" synchronized="false"
  23960. static="true" final="false" visibility="public"
  23961. deprecated="not deprecated">
  23962. <param name="out" type="java.io.DataOutput"/>
  23963. <param name="n" type="int"/>
  23964. <exception name="IOException" type="java.io.IOException"/>
  23965. <doc>
  23966. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  23967. <code>Utils#writeVLong(out, n)</code>.
  23968. @param out
  23969. output stream
  23970. @param n
  23971. The integer to be encoded
  23972. @throws IOException
  23973. @see Utils#writeVLong(DataOutput, long)]]>
  23974. </doc>
  23975. </method>
  23976. <method name="writeVLong"
  23977. abstract="false" native="false" synchronized="false"
  23978. static="true" final="false" visibility="public"
  23979. deprecated="not deprecated">
  23980. <param name="out" type="java.io.DataOutput"/>
  23981. <param name="n" type="long"/>
  23982. <exception name="IOException" type="java.io.IOException"/>
  23983. <doc>
  23984. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  23985. <ul>
  23986. <li>if n in [-32, 127): encode in one byte with the actual value.
  23987. Otherwise,
  23988. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  23989. byte[1]=n&0xff. Otherwise,
  23990. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  23991. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  23992. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  23993. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  23994. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  23995. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  23996. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  23997. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  23998. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  23999. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  24000. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  24001. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  24002. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  24003. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  24004. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  24005. byte[7]=n&0xff;
  24006. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  24007. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  24008. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  24009. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  24010. </ul>
  24011. @param out
  24012. output stream
  24013. @param n
  24014. the integer number
  24015. @throws IOException]]>
  24016. </doc>
  24017. </method>
  24018. <method name="readVInt" return="int"
  24019. abstract="false" native="false" synchronized="false"
  24020. static="true" final="false" visibility="public"
  24021. deprecated="not deprecated">
  24022. <param name="in" type="java.io.DataInput"/>
  24023. <exception name="IOException" type="java.io.IOException"/>
  24024. <doc>
  24025. <![CDATA[Decoding the variable-length integer. Synonymous to
  24026. <code>(int)Utils#readVLong(in)</code>.
  24027. @param in
  24028. input stream
  24029. @return the decoded integer
  24030. @throws IOException
  24031. @see Utils#readVLong(DataInput)]]>
  24032. </doc>
  24033. </method>
  24034. <method name="readVLong" return="long"
  24035. abstract="false" native="false" synchronized="false"
  24036. static="true" final="false" visibility="public"
  24037. deprecated="not deprecated">
  24038. <param name="in" type="java.io.DataInput"/>
  24039. <exception name="IOException" type="java.io.IOException"/>
  24040. <doc>
  24041. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  24042. is FB, and the following bytes are NB[*].
  24043. <ul>
  24044. <li>if (FB >= -32), return (long)FB;
  24045. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  24046. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  24047. NB[1]&0xff;
  24048. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  24049. (NB[1]&0xff)<<8 + NB[2]&0xff;
  24050. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  24051. big-endian integer.
  24052. @param in
  24053. input stream
  24054. @return the decoded long integer.
  24055. @throws IOException]]>
  24056. </doc>
  24057. </method>
  24058. <method name="writeString"
  24059. abstract="false" native="false" synchronized="false"
  24060. static="true" final="false" visibility="public"
  24061. deprecated="not deprecated">
  24062. <param name="out" type="java.io.DataOutput"/>
  24063. <param name="s" type="java.lang.String"/>
  24064. <exception name="IOException" type="java.io.IOException"/>
  24065. <doc>
  24066. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  24067. @param out
  24068. @param s
  24069. @throws IOException]]>
  24070. </doc>
  24071. </method>
  24072. <method name="readString" return="java.lang.String"
  24073. abstract="false" native="false" synchronized="false"
  24074. static="true" final="false" visibility="public"
  24075. deprecated="not deprecated">
  24076. <param name="in" type="java.io.DataInput"/>
  24077. <exception name="IOException" type="java.io.IOException"/>
  24078. <doc>
  24079. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  24080. @param in
  24081. The input stream.
  24082. @return The string
  24083. @throws IOException]]>
  24084. </doc>
  24085. </method>
  24086. <method name="lowerBound" return="int"
  24087. abstract="false" native="false" synchronized="false"
  24088. static="true" final="false" visibility="public"
  24089. deprecated="not deprecated">
  24090. <param name="list" type="java.util.List"/>
  24091. <param name="key" type="T"/>
  24092. <param name="cmp" type="java.util.Comparator"/>
  24093. <doc>
  24094. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  24095. that compares greater than or equal to key.
  24096. @param <T>
  24097. Type of the input key.
  24098. @param list
  24099. The list
  24100. @param key
  24101. The input key.
  24102. @param cmp
  24103. Comparator for the key.
  24104. @return The index to the desired element if it exists; or list.size()
  24105. otherwise.]]>
  24106. </doc>
  24107. </method>
  24108. <method name="upperBound" return="int"
  24109. abstract="false" native="false" synchronized="false"
  24110. static="true" final="false" visibility="public"
  24111. deprecated="not deprecated">
  24112. <param name="list" type="java.util.List"/>
  24113. <param name="key" type="T"/>
  24114. <param name="cmp" type="java.util.Comparator"/>
  24115. <doc>
  24116. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  24117. that compares greater than the input key.
  24118. @param <T>
  24119. Type of the input key.
  24120. @param list
  24121. The list
  24122. @param key
  24123. The input key.
  24124. @param cmp
  24125. Comparator for the key.
  24126. @return The index to the desired element if it exists; or list.size()
  24127. otherwise.]]>
  24128. </doc>
  24129. </method>
  24130. <method name="lowerBound" return="int"
  24131. abstract="false" native="false" synchronized="false"
  24132. static="true" final="false" visibility="public"
  24133. deprecated="not deprecated">
  24134. <param name="list" type="java.util.List"/>
  24135. <param name="key" type="T"/>
  24136. <doc>
  24137. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  24138. that compares greater than or equal to key.
  24139. @param <T>
  24140. Type of the input key.
  24141. @param list
  24142. The list
  24143. @param key
  24144. The input key.
  24145. @return The index to the desired element if it exists; or list.size()
  24146. otherwise.]]>
  24147. </doc>
  24148. </method>
  24149. <method name="upperBound" return="int"
  24150. abstract="false" native="false" synchronized="false"
  24151. static="true" final="false" visibility="public"
  24152. deprecated="not deprecated">
  24153. <param name="list" type="java.util.List"/>
  24154. <param name="key" type="T"/>
  24155. <doc>
  24156. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  24157. that compares greater than the input key.
  24158. @param <T>
  24159. Type of the input key.
  24160. @param list
  24161. The list
  24162. @param key
  24163. The input key.
  24164. @return The index to the desired element if it exists; or list.size()
  24165. otherwise.]]>
  24166. </doc>
  24167. </method>
  24168. <doc>
  24169. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  24170. </doc>
  24171. </class>
  24172. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  24173. </package>
  24174. <package name="org.apache.hadoop.io.serializer">
  24175. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  24176. <class name="JavaSerialization" extends="java.lang.Object"
  24177. abstract="false"
  24178. static="false" final="false" visibility="public"
  24179. deprecated="not deprecated">
  24180. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  24181. <constructor name="JavaSerialization"
  24182. static="false" final="false" visibility="public"
  24183. deprecated="not deprecated">
  24184. </constructor>
  24185. <doc>
  24186. <![CDATA[<p>
  24187. An experimental {@link Serialization} for Java {@link Serializable} classes.
  24188. </p>
  24189. @see JavaSerializationComparator]]>
  24190. </doc>
  24191. </class>
  24192. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  24193. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  24194. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  24195. abstract="false"
  24196. static="false" final="false" visibility="public"
  24197. deprecated="not deprecated">
  24198. <constructor name="JavaSerializationComparator"
  24199. static="false" final="false" visibility="public"
  24200. deprecated="not deprecated">
  24201. <exception name="IOException" type="java.io.IOException"/>
  24202. </constructor>
  24203. <doc>
  24204. <![CDATA[<p>
  24205. A {@link RawComparator} that uses a {@link JavaSerialization}
  24206. {@link Deserializer} to deserialize objects that are then compared via
  24207. their {@link Comparable} interfaces.
  24208. </p>
  24209. @param <T>
  24210. @see JavaSerialization]]>
  24211. </doc>
  24212. </class>
  24213. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  24214. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  24215. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  24216. abstract="false"
  24217. static="false" final="false" visibility="public"
  24218. deprecated="not deprecated">
  24219. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  24220. <constructor name="WritableSerialization"
  24221. static="false" final="false" visibility="public"
  24222. deprecated="not deprecated">
  24223. </constructor>
  24224. <doc>
  24225. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  24226. {@link Writable#write(java.io.DataOutput)} and
  24227. {@link Writable#readFields(java.io.DataInput)}.]]>
  24228. </doc>
  24229. </class>
  24230. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  24231. <doc>
  24232. <![CDATA[<p>
  24233. This package provides a mechanism for using different serialization frameworks
  24234. in Hadoop. The property "io.serializations" defines a list of
  24235. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  24236. {@link org.apache.hadoop.io.serializer.Serializer}s and
  24237. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  24238. </p>
  24239. <p>
  24240. To add a new serialization framework write an implementation of
  24241. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  24242. "io.serializations" property.
  24243. </p>]]>
  24244. </doc>
  24245. </package>
  24246. <package name="org.apache.hadoop.io.serializer.avro">
  24247. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  24248. <interface name="AvroReflectSerializable" abstract="true"
  24249. static="false" final="false" visibility="public"
  24250. deprecated="not deprecated">
  24251. <doc>
  24252. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  24253. this interface can be serialized/deserialized using
  24254. {@link AvroReflectSerialization}.]]>
  24255. </doc>
  24256. </interface>
  24257. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  24258. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  24259. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  24260. abstract="false"
  24261. static="false" final="false" visibility="public"
  24262. deprecated="not deprecated">
  24263. <constructor name="AvroReflectSerialization"
  24264. static="false" final="false" visibility="public"
  24265. deprecated="not deprecated">
  24266. </constructor>
  24267. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  24268. transient="false" volatile="false"
  24269. static="true" final="true" visibility="public"
  24270. deprecated="not deprecated">
  24271. <doc>
  24272. <![CDATA[Key to configure packages that contain classes to be serialized and
  24273. deserialized using this class. Multiple packages can be specified using
  24274. comma-separated list.]]>
  24275. </doc>
  24276. </field>
  24277. <doc>
  24278. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  24279. serialization, it must either be in the package list configured via
  24280. <code>avro.reflect.pkgs</code> or implement
  24281. {@link AvroReflectSerializable} interface.]]>
  24282. </doc>
  24283. </class>
  24284. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  24285. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  24286. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  24287. abstract="true"
  24288. static="false" final="false" visibility="public"
  24289. deprecated="not deprecated">
  24290. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  24291. <constructor name="AvroSerialization"
  24292. static="false" final="false" visibility="public"
  24293. deprecated="not deprecated">
  24294. </constructor>
  24295. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  24296. transient="false" volatile="false"
  24297. static="true" final="true" visibility="public"
  24298. deprecated="not deprecated">
  24299. </field>
  24300. <doc>
  24301. <![CDATA[Base class for providing serialization to Avro types.]]>
  24302. </doc>
  24303. </class>
  24304. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  24305. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  24306. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  24307. abstract="false"
  24308. static="false" final="false" visibility="public"
  24309. deprecated="not deprecated">
  24310. <constructor name="AvroSpecificSerialization"
  24311. static="false" final="false" visibility="public"
  24312. deprecated="not deprecated">
  24313. </constructor>
  24314. <doc>
  24315. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  24316. for classes generated by Avro's 'specific' compiler.]]>
  24317. </doc>
  24318. </class>
  24319. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  24320. <doc>
  24321. <![CDATA[<p>
  24322. This package provides Avro serialization in Hadoop. This can be used to
  24323. serialize/deserialize Avro types in Hadoop.
  24324. </p>
  24325. <p>
  24326. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  24327. serialization of classes generated by Avro's 'specific' compiler.
  24328. </p>
  24329. <p>
  24330. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  24331. other classes.
  24332. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  24333. any class which is either in the package list configured via
  24334. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  24335. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  24336. interface.
  24337. </p>]]>
  24338. </doc>
  24339. </package>
  24340. <package name="org.apache.hadoop.ipc.protocolPB">
  24341. </package>
  24342. <package name="org.apache.hadoop.log">
  24343. </package>
  24344. <package name="org.apache.hadoop.log.metrics">
  24345. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  24346. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  24347. abstract="false"
  24348. static="false" final="false" visibility="public"
  24349. deprecated="not deprecated">
  24350. <constructor name="EventCounter"
  24351. static="false" final="false" visibility="public"
  24352. deprecated="not deprecated">
  24353. </constructor>
  24354. <method name="append"
  24355. abstract="false" native="false" synchronized="false"
  24356. static="false" final="false" visibility="public"
  24357. deprecated="not deprecated">
  24358. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  24359. </method>
  24360. <method name="close"
  24361. abstract="false" native="false" synchronized="false"
  24362. static="false" final="false" visibility="public"
  24363. deprecated="not deprecated">
  24364. </method>
  24365. <method name="requiresLayout" return="boolean"
  24366. abstract="false" native="false" synchronized="false"
  24367. static="false" final="false" visibility="public"
  24368. deprecated="not deprecated">
  24369. </method>
  24370. <doc>
  24371. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  24372. fatal, error and warn. The class name is used in log4j.properties]]>
  24373. </doc>
  24374. </class>
  24375. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  24376. </package>
  24377. <package name="org.apache.hadoop.metrics2">
  24378. <!-- start class org.apache.hadoop.metrics2.AbstractMetric -->
  24379. <class name="AbstractMetric" extends="java.lang.Object"
  24380. abstract="true"
  24381. static="false" final="false" visibility="public"
  24382. deprecated="not deprecated">
  24383. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  24384. <constructor name="AbstractMetric" type="org.apache.hadoop.metrics2.MetricsInfo"
  24385. static="false" final="false" visibility="protected"
  24386. deprecated="not deprecated">
  24387. <doc>
  24388. <![CDATA[Construct the metric
  24389. @param info about the metric]]>
  24390. </doc>
  24391. </constructor>
  24392. <method name="name" return="java.lang.String"
  24393. abstract="false" native="false" synchronized="false"
  24394. static="false" final="false" visibility="public"
  24395. deprecated="not deprecated">
  24396. </method>
  24397. <method name="description" return="java.lang.String"
  24398. abstract="false" native="false" synchronized="false"
  24399. static="false" final="false" visibility="public"
  24400. deprecated="not deprecated">
  24401. </method>
  24402. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  24403. abstract="false" native="false" synchronized="false"
  24404. static="false" final="false" visibility="protected"
  24405. deprecated="not deprecated">
  24406. </method>
  24407. <method name="value" return="java.lang.Number"
  24408. abstract="true" native="false" synchronized="false"
  24409. static="false" final="false" visibility="public"
  24410. deprecated="not deprecated">
  24411. <doc>
  24412. <![CDATA[Get the value of the metric
  24413. @return the value of the metric]]>
  24414. </doc>
  24415. </method>
  24416. <method name="type" return="org.apache.hadoop.metrics2.MetricType"
  24417. abstract="true" native="false" synchronized="false"
  24418. static="false" final="false" visibility="public"
  24419. deprecated="not deprecated">
  24420. <doc>
  24421. <![CDATA[Get the type of the metric
  24422. @return the type of the metric]]>
  24423. </doc>
  24424. </method>
  24425. <method name="visit"
  24426. abstract="true" native="false" synchronized="false"
  24427. static="false" final="false" visibility="public"
  24428. deprecated="not deprecated">
  24429. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  24430. <doc>
  24431. <![CDATA[Accept a visitor interface
  24432. @param visitor of the metric]]>
  24433. </doc>
  24434. </method>
  24435. <method name="equals" return="boolean"
  24436. abstract="false" native="false" synchronized="false"
  24437. static="false" final="false" visibility="public"
  24438. deprecated="not deprecated">
  24439. <param name="obj" type="java.lang.Object"/>
  24440. </method>
  24441. <method name="hashCode" return="int"
  24442. abstract="false" native="false" synchronized="false"
  24443. static="false" final="false" visibility="public"
  24444. deprecated="not deprecated">
  24445. </method>
  24446. <method name="toString" return="java.lang.String"
  24447. abstract="false" native="false" synchronized="false"
  24448. static="false" final="false" visibility="public"
  24449. deprecated="not deprecated">
  24450. </method>
  24451. <doc>
  24452. <![CDATA[The immutable metric]]>
  24453. </doc>
  24454. </class>
  24455. <!-- end class org.apache.hadoop.metrics2.AbstractMetric -->
  24456. <!-- start interface org.apache.hadoop.metrics2.MetricsCollector -->
  24457. <interface name="MetricsCollector" abstract="true"
  24458. static="false" final="false" visibility="public"
  24459. deprecated="not deprecated">
  24460. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24461. abstract="true" native="false" synchronized="false"
  24462. static="false" final="false" visibility="public"
  24463. deprecated="not deprecated">
  24464. <param name="name" type="java.lang.String"/>
  24465. <doc>
  24466. <![CDATA[Add a metrics record
  24467. @param name of the record
  24468. @return a {@link MetricsRecordBuilder} for the record {@code name}]]>
  24469. </doc>
  24470. </method>
  24471. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24472. abstract="true" native="false" synchronized="false"
  24473. static="false" final="false" visibility="public"
  24474. deprecated="not deprecated">
  24475. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24476. <doc>
  24477. <![CDATA[Add a metrics record
  24478. @param info of the record
  24479. @return a {@link MetricsRecordBuilder} for metrics {@code info}]]>
  24480. </doc>
  24481. </method>
  24482. <doc>
  24483. <![CDATA[The metrics collector interface]]>
  24484. </doc>
  24485. </interface>
  24486. <!-- end interface org.apache.hadoop.metrics2.MetricsCollector -->
  24487. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  24488. <class name="MetricsException" extends="java.lang.RuntimeException"
  24489. abstract="false"
  24490. static="false" final="false" visibility="public"
  24491. deprecated="not deprecated">
  24492. <constructor name="MetricsException" type="java.lang.String"
  24493. static="false" final="false" visibility="public"
  24494. deprecated="not deprecated">
  24495. <doc>
  24496. <![CDATA[Construct the exception with a message
  24497. @param message for the exception]]>
  24498. </doc>
  24499. </constructor>
  24500. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  24501. static="false" final="false" visibility="public"
  24502. deprecated="not deprecated">
  24503. <doc>
  24504. <![CDATA[Construct the exception with a message and a cause
  24505. @param message for the exception
  24506. @param cause of the exception]]>
  24507. </doc>
  24508. </constructor>
  24509. <constructor name="MetricsException" type="java.lang.Throwable"
  24510. static="false" final="false" visibility="public"
  24511. deprecated="not deprecated">
  24512. <doc>
  24513. <![CDATA[Construct the exception with a cause
  24514. @param cause of the exception]]>
  24515. </doc>
  24516. </constructor>
  24517. <doc>
  24518. <![CDATA[A general metrics exception wrapper]]>
  24519. </doc>
  24520. </class>
  24521. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  24522. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  24523. <class name="MetricsFilter" extends="java.lang.Object"
  24524. abstract="true"
  24525. static="false" final="false" visibility="public"
  24526. deprecated="not deprecated">
  24527. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  24528. <constructor name="MetricsFilter"
  24529. static="false" final="false" visibility="public"
  24530. deprecated="not deprecated">
  24531. </constructor>
  24532. <method name="accepts" return="boolean"
  24533. abstract="true" native="false" synchronized="false"
  24534. static="false" final="false" visibility="public"
  24535. deprecated="not deprecated">
  24536. <param name="name" type="java.lang.String"/>
  24537. <doc>
  24538. <![CDATA[Whether to accept the name
  24539. @param name to filter on
  24540. @return true to accept; false otherwise.]]>
  24541. </doc>
  24542. </method>
  24543. <method name="accepts" return="boolean"
  24544. abstract="true" native="false" synchronized="false"
  24545. static="false" final="false" visibility="public"
  24546. deprecated="not deprecated">
  24547. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24548. <doc>
  24549. <![CDATA[Whether to accept the tag
  24550. @param tag to filter on
  24551. @return true to accept; false otherwise]]>
  24552. </doc>
  24553. </method>
  24554. <method name="accepts" return="boolean"
  24555. abstract="true" native="false" synchronized="false"
  24556. static="false" final="false" visibility="public"
  24557. deprecated="not deprecated">
  24558. <param name="tags" type="java.lang.Iterable"/>
  24559. <doc>
  24560. <![CDATA[Whether to accept the tags
  24561. @param tags to filter on
  24562. @return true to accept; false otherwise]]>
  24563. </doc>
  24564. </method>
  24565. <method name="accepts" return="boolean"
  24566. abstract="false" native="false" synchronized="false"
  24567. static="false" final="false" visibility="public"
  24568. deprecated="not deprecated">
  24569. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  24570. <doc>
  24571. <![CDATA[Whether to accept the record
  24572. @param record to filter on
  24573. @return true to accept; false otherwise.]]>
  24574. </doc>
  24575. </method>
  24576. <doc>
  24577. <![CDATA[The metrics filter interface. The MetricsFilter objects can be used either to
  24578. filter the metrics from {@link MetricsSource}s or to filter metrics per
  24579. {@link MetricsSink}.]]>
  24580. </doc>
  24581. </class>
  24582. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  24583. <!-- start interface org.apache.hadoop.metrics2.MetricsInfo -->
  24584. <interface name="MetricsInfo" abstract="true"
  24585. static="false" final="false" visibility="public"
  24586. deprecated="not deprecated">
  24587. <method name="name" return="java.lang.String"
  24588. abstract="true" native="false" synchronized="false"
  24589. static="false" final="false" visibility="public"
  24590. deprecated="not deprecated">
  24591. <doc>
  24592. <![CDATA[Typically name corresponds to annotation {@link Metric#value()} or
  24593. the name of the class.
  24594. @return the name of the metric/tag]]>
  24595. </doc>
  24596. </method>
  24597. <method name="description" return="java.lang.String"
  24598. abstract="true" native="false" synchronized="false"
  24599. static="false" final="false" visibility="public"
  24600. deprecated="not deprecated">
  24601. <doc>
  24602. <![CDATA[Typically the description corresponds to annotation {@link Metric#about()}
  24603. or the name of the class.
  24604. @return the description of the metric/tag]]>
  24605. </doc>
  24606. </method>
  24607. <doc>
  24608. <![CDATA[Interface to provide immutable metainfo for metrics.]]>
  24609. </doc>
  24610. </interface>
  24611. <!-- end interface org.apache.hadoop.metrics2.MetricsInfo -->
  24612. <!-- start class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  24613. <class name="MetricsJsonBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24614. abstract="false"
  24615. static="false" final="false" visibility="public"
  24616. deprecated="not deprecated">
  24617. <constructor name="MetricsJsonBuilder" type="org.apache.hadoop.metrics2.MetricsCollector"
  24618. static="false" final="false" visibility="public"
  24619. deprecated="not deprecated">
  24620. <doc>
  24621. <![CDATA[Build an instance.
  24622. @param parent parent collector. Unused in this instance; only used for
  24623. the {@link #parent()} method]]>
  24624. </doc>
  24625. </constructor>
  24626. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24627. abstract="false" native="false" synchronized="false"
  24628. static="false" final="false" visibility="public"
  24629. deprecated="not deprecated">
  24630. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24631. <param name="value" type="java.lang.String"/>
  24632. </method>
  24633. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24634. abstract="false" native="false" synchronized="false"
  24635. static="false" final="false" visibility="public"
  24636. deprecated="not deprecated">
  24637. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24638. </method>
  24639. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24640. abstract="false" native="false" synchronized="false"
  24641. static="false" final="false" visibility="public"
  24642. deprecated="not deprecated">
  24643. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  24644. </method>
  24645. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24646. abstract="false" native="false" synchronized="false"
  24647. static="false" final="false" visibility="public"
  24648. deprecated="not deprecated">
  24649. <param name="value" type="java.lang.String"/>
  24650. </method>
  24651. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24652. abstract="false" native="false" synchronized="false"
  24653. static="false" final="false" visibility="public"
  24654. deprecated="not deprecated">
  24655. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24656. <param name="value" type="int"/>
  24657. </method>
  24658. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24659. abstract="false" native="false" synchronized="false"
  24660. static="false" final="false" visibility="public"
  24661. deprecated="not deprecated">
  24662. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24663. <param name="value" type="long"/>
  24664. </method>
  24665. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24666. abstract="false" native="false" synchronized="false"
  24667. static="false" final="false" visibility="public"
  24668. deprecated="not deprecated">
  24669. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24670. <param name="value" type="int"/>
  24671. </method>
  24672. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24673. abstract="false" native="false" synchronized="false"
  24674. static="false" final="false" visibility="public"
  24675. deprecated="not deprecated">
  24676. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24677. <param name="value" type="long"/>
  24678. </method>
  24679. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24680. abstract="false" native="false" synchronized="false"
  24681. static="false" final="false" visibility="public"
  24682. deprecated="not deprecated">
  24683. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24684. <param name="value" type="float"/>
  24685. </method>
  24686. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24687. abstract="false" native="false" synchronized="false"
  24688. static="false" final="false" visibility="public"
  24689. deprecated="not deprecated">
  24690. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24691. <param name="value" type="double"/>
  24692. </method>
  24693. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  24694. abstract="false" native="false" synchronized="false"
  24695. static="false" final="false" visibility="public"
  24696. deprecated="not deprecated">
  24697. </method>
  24698. <method name="toString" return="java.lang.String"
  24699. abstract="false" native="false" synchronized="false"
  24700. static="false" final="false" visibility="public"
  24701. deprecated="not deprecated">
  24702. </method>
  24703. <field name="LOG" type="org.slf4j.Logger"
  24704. transient="false" volatile="false"
  24705. static="true" final="true" visibility="public"
  24706. deprecated="not deprecated">
  24707. </field>
  24708. <doc>
  24709. <![CDATA[Build a JSON dump of the metrics.
  24710. The {@link #toString()} operator dumps out all values collected.]]>
  24711. </doc>
  24712. </class>
  24713. <!-- end class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  24714. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  24715. <interface name="MetricsPlugin" abstract="true"
  24716. static="false" final="false" visibility="public"
  24717. deprecated="not deprecated">
  24718. <method name="init"
  24719. abstract="true" native="false" synchronized="false"
  24720. static="false" final="false" visibility="public"
  24721. deprecated="not deprecated">
  24722. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  24723. <doc>
  24724. <![CDATA[Initialize the plugin
  24725. @param conf the configuration object for the plugin]]>
  24726. </doc>
  24727. </method>
  24728. <doc>
  24729. <![CDATA[The plugin interface for the metrics framework]]>
  24730. </doc>
  24731. </interface>
  24732. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  24733. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  24734. <interface name="MetricsRecord" abstract="true"
  24735. static="false" final="false" visibility="public"
  24736. deprecated="not deprecated">
  24737. <method name="timestamp" return="long"
  24738. abstract="true" native="false" synchronized="false"
  24739. static="false" final="false" visibility="public"
  24740. deprecated="not deprecated">
  24741. <doc>
  24742. <![CDATA[Get the timestamp of the metrics
  24743. @return the timestamp]]>
  24744. </doc>
  24745. </method>
  24746. <method name="name" return="java.lang.String"
  24747. abstract="true" native="false" synchronized="false"
  24748. static="false" final="false" visibility="public"
  24749. deprecated="not deprecated">
  24750. <doc>
  24751. <![CDATA[@return the metrics record name]]>
  24752. </doc>
  24753. </method>
  24754. <method name="description" return="java.lang.String"
  24755. abstract="true" native="false" synchronized="false"
  24756. static="false" final="false" visibility="public"
  24757. deprecated="not deprecated">
  24758. <doc>
  24759. <![CDATA[@return the description of the metrics record]]>
  24760. </doc>
  24761. </method>
  24762. <method name="context" return="java.lang.String"
  24763. abstract="true" native="false" synchronized="false"
  24764. static="false" final="false" visibility="public"
  24765. deprecated="not deprecated">
  24766. <doc>
  24767. <![CDATA[@return the context name of the metrics record]]>
  24768. </doc>
  24769. </method>
  24770. <method name="tags" return="java.util.Collection"
  24771. abstract="true" native="false" synchronized="false"
  24772. static="false" final="false" visibility="public"
  24773. deprecated="not deprecated">
  24774. <doc>
  24775. <![CDATA[Get the tags of the record
  24776. Note: returning a collection instead of iterable as we
  24777. need to use tags as keys (hence Collection#hashCode etc.) in maps
  24778. @return an unmodifiable collection of tags]]>
  24779. </doc>
  24780. </method>
  24781. <method name="metrics" return="java.lang.Iterable"
  24782. abstract="true" native="false" synchronized="false"
  24783. static="false" final="false" visibility="public"
  24784. deprecated="not deprecated">
  24785. <doc>
  24786. <![CDATA[Get the metrics of the record
  24787. @return an immutable iterable interface for metrics]]>
  24788. </doc>
  24789. </method>
  24790. <doc>
  24791. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  24792. </doc>
  24793. </interface>
  24794. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  24795. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  24796. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  24797. abstract="true"
  24798. static="false" final="false" visibility="public"
  24799. deprecated="not deprecated">
  24800. <constructor name="MetricsRecordBuilder"
  24801. static="false" final="false" visibility="public"
  24802. deprecated="not deprecated">
  24803. </constructor>
  24804. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24805. abstract="true" native="false" synchronized="false"
  24806. static="false" final="false" visibility="public"
  24807. deprecated="not deprecated">
  24808. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24809. <param name="value" type="java.lang.String"/>
  24810. <doc>
  24811. <![CDATA[Add a metrics value with metrics information
  24812. @param info metadata of the tag
  24813. @param value of the tag
  24814. @return self]]>
  24815. </doc>
  24816. </method>
  24817. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24818. abstract="true" native="false" synchronized="false"
  24819. static="false" final="false" visibility="public"
  24820. deprecated="not deprecated">
  24821. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24822. <doc>
  24823. <![CDATA[Add an immutable metrics tag object
  24824. @param tag a pre-made tag object (potentially save an object construction)
  24825. @return self]]>
  24826. </doc>
  24827. </method>
  24828. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24829. abstract="true" native="false" synchronized="false"
  24830. static="false" final="false" visibility="public"
  24831. deprecated="not deprecated">
  24832. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  24833. <doc>
  24834. <![CDATA[Add a pre-made immutable metric object
  24835. @param metric the pre-made metric to save an object construction
  24836. @return self]]>
  24837. </doc>
  24838. </method>
  24839. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24840. abstract="true" native="false" synchronized="false"
  24841. static="false" final="false" visibility="public"
  24842. deprecated="not deprecated">
  24843. <param name="value" type="java.lang.String"/>
  24844. <doc>
  24845. <![CDATA[Set the context tag
  24846. @param value of the context
  24847. @return self]]>
  24848. </doc>
  24849. </method>
  24850. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24851. abstract="true" native="false" synchronized="false"
  24852. static="false" final="false" visibility="public"
  24853. deprecated="not deprecated">
  24854. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24855. <param name="value" type="int"/>
  24856. <doc>
  24857. <![CDATA[Add an integer metric
  24858. @param info metadata of the metric
  24859. @param value of the metric
  24860. @return self]]>
  24861. </doc>
  24862. </method>
  24863. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24864. abstract="true" native="false" synchronized="false"
  24865. static="false" final="false" visibility="public"
  24866. deprecated="not deprecated">
  24867. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24868. <param name="value" type="long"/>
  24869. <doc>
  24870. <![CDATA[Add an long metric
  24871. @param info metadata of the metric
  24872. @param value of the metric
  24873. @return self]]>
  24874. </doc>
  24875. </method>
  24876. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24877. abstract="true" native="false" synchronized="false"
  24878. static="false" final="false" visibility="public"
  24879. deprecated="not deprecated">
  24880. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24881. <param name="value" type="int"/>
  24882. <doc>
  24883. <![CDATA[Add a integer gauge metric
  24884. @param info metadata of the metric
  24885. @param value of the metric
  24886. @return self]]>
  24887. </doc>
  24888. </method>
  24889. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24890. abstract="true" native="false" synchronized="false"
  24891. static="false" final="false" visibility="public"
  24892. deprecated="not deprecated">
  24893. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24894. <param name="value" type="long"/>
  24895. <doc>
  24896. <![CDATA[Add a long gauge metric
  24897. @param info metadata of the metric
  24898. @param value of the metric
  24899. @return self]]>
  24900. </doc>
  24901. </method>
  24902. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24903. abstract="true" native="false" synchronized="false"
  24904. static="false" final="false" visibility="public"
  24905. deprecated="not deprecated">
  24906. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24907. <param name="value" type="float"/>
  24908. <doc>
  24909. <![CDATA[Add a float gauge metric
  24910. @param info metadata of the metric
  24911. @param value of the metric
  24912. @return self]]>
  24913. </doc>
  24914. </method>
  24915. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24916. abstract="true" native="false" synchronized="false"
  24917. static="false" final="false" visibility="public"
  24918. deprecated="not deprecated">
  24919. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24920. <param name="value" type="double"/>
  24921. <doc>
  24922. <![CDATA[Add a double gauge metric
  24923. @param info metadata of the metric
  24924. @param value of the metric
  24925. @return self]]>
  24926. </doc>
  24927. </method>
  24928. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  24929. abstract="true" native="false" synchronized="false"
  24930. static="false" final="false" visibility="public"
  24931. deprecated="not deprecated">
  24932. <doc>
  24933. <![CDATA[@return the parent metrics collector object]]>
  24934. </doc>
  24935. </method>
  24936. <method name="endRecord" return="org.apache.hadoop.metrics2.MetricsCollector"
  24937. abstract="false" native="false" synchronized="false"
  24938. static="false" final="false" visibility="public"
  24939. deprecated="not deprecated">
  24940. <doc>
  24941. <![CDATA[Syntactic sugar to add multiple records in a collector in a one liner.
  24942. @return the parent metrics collector object]]>
  24943. </doc>
  24944. </method>
  24945. <doc>
  24946. <![CDATA[The metrics record builder interface]]>
  24947. </doc>
  24948. </class>
  24949. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  24950. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  24951. <interface name="MetricsSink" abstract="true"
  24952. static="false" final="false" visibility="public"
  24953. deprecated="not deprecated">
  24954. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  24955. <method name="putMetrics"
  24956. abstract="true" native="false" synchronized="false"
  24957. static="false" final="false" visibility="public"
  24958. deprecated="not deprecated">
  24959. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  24960. <doc>
  24961. <![CDATA[Put a metrics record in the sink
  24962. @param record the record to put]]>
  24963. </doc>
  24964. </method>
  24965. <method name="flush"
  24966. abstract="true" native="false" synchronized="false"
  24967. static="false" final="false" visibility="public"
  24968. deprecated="not deprecated">
  24969. <doc>
  24970. <![CDATA[Flush any buffered metrics]]>
  24971. </doc>
  24972. </method>
  24973. <doc>
  24974. <![CDATA[The metrics sink interface. <p>
  24975. Implementations of this interface consume the {@link MetricsRecord} generated
  24976. from {@link MetricsSource}. It registers with {@link MetricsSystem} which
  24977. periodically pushes the {@link MetricsRecord} to the sink using
  24978. {@link #putMetrics(MetricsRecord)} method. If the implementing class also
  24979. implements {@link Closeable}, then the MetricsSystem will close the sink when
  24980. it is stopped.]]>
  24981. </doc>
  24982. </interface>
  24983. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  24984. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  24985. <interface name="MetricsSource" abstract="true"
  24986. static="false" final="false" visibility="public"
  24987. deprecated="not deprecated">
  24988. <method name="getMetrics"
  24989. abstract="true" native="false" synchronized="false"
  24990. static="false" final="false" visibility="public"
  24991. deprecated="not deprecated">
  24992. <param name="collector" type="org.apache.hadoop.metrics2.MetricsCollector"/>
  24993. <param name="all" type="boolean"/>
  24994. <doc>
  24995. <![CDATA[Get metrics from the metrics source
  24996. @param collector to contain the resulting metrics snapshot
  24997. @param all if true, return all metrics even if unchanged.]]>
  24998. </doc>
  24999. </method>
  25000. <doc>
  25001. <![CDATA[The source of metrics information. It generates and updates metrics. It
  25002. registers with {@link MetricsSystem}, which periodically polls it to collect
  25003. {@link MetricsRecord} and passes it to {@link MetricsSink}.]]>
  25004. </doc>
  25005. </interface>
  25006. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  25007. <!-- start class org.apache.hadoop.metrics2.MetricsSystem -->
  25008. <class name="MetricsSystem" extends="java.lang.Object"
  25009. abstract="true"
  25010. static="false" final="false" visibility="public"
  25011. deprecated="not deprecated">
  25012. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  25013. <constructor name="MetricsSystem"
  25014. static="false" final="false" visibility="public"
  25015. deprecated="not deprecated">
  25016. </constructor>
  25017. <method name="unregisterSource"
  25018. abstract="true" native="false" synchronized="false"
  25019. static="false" final="false" visibility="public"
  25020. deprecated="not deprecated">
  25021. <param name="name" type="java.lang.String"/>
  25022. <doc>
  25023. <![CDATA[Unregister a metrics source
  25024. @param name of the source. This is the name you use to call register()]]>
  25025. </doc>
  25026. </method>
  25027. <method name="register" return="T"
  25028. abstract="false" native="false" synchronized="false"
  25029. static="false" final="false" visibility="public"
  25030. deprecated="not deprecated">
  25031. <param name="source" type="T"/>
  25032. <doc>
  25033. <![CDATA[Register a metrics source (deriving name and description from the object)
  25034. @param <T> the actual type of the source object
  25035. @param source object to register
  25036. @return the source object
  25037. @exception MetricsException]]>
  25038. </doc>
  25039. </method>
  25040. <method name="register" return="T"
  25041. abstract="true" native="false" synchronized="false"
  25042. static="false" final="false" visibility="public"
  25043. deprecated="not deprecated">
  25044. <param name="name" type="java.lang.String"/>
  25045. <param name="desc" type="java.lang.String"/>
  25046. <param name="source" type="T"/>
  25047. <doc>
  25048. <![CDATA[Register a metrics source
  25049. @param <T> the actual type of the source object
  25050. @param source object to register
  25051. @param name of the source. Must be unique or null (then extracted from
  25052. the annotations of the source object.)
  25053. @param desc the description of the source (or null. See above.)
  25054. @return the source object
  25055. @exception MetricsException]]>
  25056. </doc>
  25057. </method>
  25058. <method name="register"
  25059. abstract="true" native="false" synchronized="false"
  25060. static="false" final="false" visibility="public"
  25061. deprecated="not deprecated">
  25062. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  25063. <doc>
  25064. <![CDATA[Register a callback interface for JMX events
  25065. @param callback the callback object implementing the MBean interface.]]>
  25066. </doc>
  25067. </method>
  25068. <method name="publishMetricsNow"
  25069. abstract="true" native="false" synchronized="false"
  25070. static="false" final="false" visibility="public"
  25071. deprecated="not deprecated">
  25072. <doc>
  25073. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  25074. This is a "soft" request: the expectation is that a best effort will be
  25075. done to synchronously snapshot the metrics from all the sources and put
  25076. them in all the sinks (including flushing the sinks) before returning to
  25077. the caller. If this can't be accomplished in reasonable time it's OK to
  25078. return to the caller before everything is done.]]>
  25079. </doc>
  25080. </method>
  25081. <method name="shutdown" return="boolean"
  25082. abstract="true" native="false" synchronized="false"
  25083. static="false" final="false" visibility="public"
  25084. deprecated="not deprecated">
  25085. <doc>
  25086. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  25087. The MetricsSystemMXBean will be unregistered.
  25088. @return true if shutdown completed]]>
  25089. </doc>
  25090. </method>
  25091. <doc>
  25092. <![CDATA[The metrics system interface.
  25093. The following components are used for metrics.
  25094. <ul>
  25095. <li>{@link MetricsSource} generate and update metrics information.</li>
  25096. <li>{@link MetricsSink} consume the metrics information</li>
  25097. </ul>
  25098. {@link MetricsSource} and {@link MetricsSink} register with the metrics
  25099. system. Implementations of {@link MetricsSystem} polls the
  25100. {@link MetricsSource}s periodically and pass the {@link MetricsRecord}s to
  25101. {@link MetricsSink}.]]>
  25102. </doc>
  25103. </class>
  25104. <!-- end class org.apache.hadoop.metrics2.MetricsSystem -->
  25105. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  25106. <interface name="MetricsSystemMXBean" abstract="true"
  25107. static="false" final="false" visibility="public"
  25108. deprecated="not deprecated">
  25109. <method name="start"
  25110. abstract="true" native="false" synchronized="false"
  25111. static="false" final="false" visibility="public"
  25112. deprecated="not deprecated">
  25113. <doc>
  25114. <![CDATA[Start the metrics system
  25115. @throws MetricsException]]>
  25116. </doc>
  25117. </method>
  25118. <method name="stop"
  25119. abstract="true" native="false" synchronized="false"
  25120. static="false" final="false" visibility="public"
  25121. deprecated="not deprecated">
  25122. <doc>
  25123. <![CDATA[Stop the metrics system
  25124. @throws MetricsException]]>
  25125. </doc>
  25126. </method>
  25127. <method name="startMetricsMBeans"
  25128. abstract="true" native="false" synchronized="false"
  25129. static="false" final="false" visibility="public"
  25130. deprecated="not deprecated">
  25131. <doc>
  25132. <![CDATA[Start metrics MBeans
  25133. @throws MetricsException]]>
  25134. </doc>
  25135. </method>
  25136. <method name="stopMetricsMBeans"
  25137. abstract="true" native="false" synchronized="false"
  25138. static="false" final="false" visibility="public"
  25139. deprecated="not deprecated">
  25140. <doc>
  25141. <![CDATA[Stop metrics MBeans.
  25142. Note, it doesn't stop the metrics system control MBean,
  25143. i.e this interface.
  25144. @throws MetricsException]]>
  25145. </doc>
  25146. </method>
  25147. <method name="currentConfig" return="java.lang.String"
  25148. abstract="true" native="false" synchronized="false"
  25149. static="false" final="false" visibility="public"
  25150. deprecated="not deprecated">
  25151. <doc>
  25152. <![CDATA[@return the current config
  25153. Avoided getConfig, as it'll turn into a "Config" attribute,
  25154. which doesn't support multiple line values in jconsole.
  25155. @throws MetricsException]]>
  25156. </doc>
  25157. </method>
  25158. <doc>
  25159. <![CDATA[The JMX interface to the metrics system]]>
  25160. </doc>
  25161. </interface>
  25162. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  25163. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  25164. <class name="MetricsTag" extends="java.lang.Object"
  25165. abstract="false"
  25166. static="false" final="false" visibility="public"
  25167. deprecated="not deprecated">
  25168. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  25169. <constructor name="MetricsTag" type="org.apache.hadoop.metrics2.MetricsInfo, java.lang.String"
  25170. static="false" final="false" visibility="public"
  25171. deprecated="not deprecated">
  25172. <doc>
  25173. <![CDATA[Construct the tag with name, description and value
  25174. @param info of the tag
  25175. @param value of the tag]]>
  25176. </doc>
  25177. </constructor>
  25178. <method name="name" return="java.lang.String"
  25179. abstract="false" native="false" synchronized="false"
  25180. static="false" final="false" visibility="public"
  25181. deprecated="not deprecated">
  25182. </method>
  25183. <method name="description" return="java.lang.String"
  25184. abstract="false" native="false" synchronized="false"
  25185. static="false" final="false" visibility="public"
  25186. deprecated="not deprecated">
  25187. </method>
  25188. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25189. abstract="false" native="false" synchronized="false"
  25190. static="false" final="false" visibility="public"
  25191. deprecated="not deprecated">
  25192. <doc>
  25193. <![CDATA[@return the info object of the tag]]>
  25194. </doc>
  25195. </method>
  25196. <method name="value" return="java.lang.String"
  25197. abstract="false" native="false" synchronized="false"
  25198. static="false" final="false" visibility="public"
  25199. deprecated="not deprecated">
  25200. <doc>
  25201. <![CDATA[Get the value of the tag
  25202. @return the value]]>
  25203. </doc>
  25204. </method>
  25205. <method name="equals" return="boolean"
  25206. abstract="false" native="false" synchronized="false"
  25207. static="false" final="false" visibility="public"
  25208. deprecated="not deprecated">
  25209. <param name="obj" type="java.lang.Object"/>
  25210. </method>
  25211. <method name="hashCode" return="int"
  25212. abstract="false" native="false" synchronized="false"
  25213. static="false" final="false" visibility="public"
  25214. deprecated="not deprecated">
  25215. </method>
  25216. <method name="toString" return="java.lang.String"
  25217. abstract="false" native="false" synchronized="false"
  25218. static="false" final="false" visibility="public"
  25219. deprecated="not deprecated">
  25220. </method>
  25221. <doc>
  25222. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  25223. </doc>
  25224. </class>
  25225. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  25226. <!-- start class org.apache.hadoop.metrics2.MetricStringBuilder -->
  25227. <class name="MetricStringBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25228. abstract="false"
  25229. static="false" final="false" visibility="public"
  25230. deprecated="not deprecated">
  25231. <constructor name="MetricStringBuilder" type="org.apache.hadoop.metrics2.MetricsCollector, java.lang.String, java.lang.String, java.lang.String"
  25232. static="false" final="false" visibility="public"
  25233. deprecated="not deprecated">
  25234. <doc>
  25235. <![CDATA[Build an instance.
  25236. @param parent parent collector. Unused in this instance; only used for
  25237. the {@link #parent()} method
  25238. @param prefix string before each entry
  25239. @param separator separator between name and value
  25240. @param suffix suffix after each entry]]>
  25241. </doc>
  25242. </constructor>
  25243. <method name="add" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  25244. abstract="false" native="false" synchronized="false"
  25245. static="false" final="false" visibility="public"
  25246. deprecated="not deprecated">
  25247. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25248. <param name="value" type="java.lang.Object"/>
  25249. </method>
  25250. <method name="tuple" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  25251. abstract="false" native="false" synchronized="false"
  25252. static="false" final="false" visibility="public"
  25253. deprecated="not deprecated">
  25254. <param name="key" type="java.lang.String"/>
  25255. <param name="value" type="java.lang.String"/>
  25256. <doc>
  25257. <![CDATA[Add any key,val pair to the string, between the prefix and suffix,
  25258. separated by the separator.
  25259. @param key key
  25260. @param value value
  25261. @return this instance]]>
  25262. </doc>
  25263. </method>
  25264. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25265. abstract="false" native="false" synchronized="false"
  25266. static="false" final="false" visibility="public"
  25267. deprecated="not deprecated">
  25268. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25269. <param name="value" type="java.lang.String"/>
  25270. </method>
  25271. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25272. abstract="false" native="false" synchronized="false"
  25273. static="false" final="false" visibility="public"
  25274. deprecated="not deprecated">
  25275. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25276. </method>
  25277. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25278. abstract="false" native="false" synchronized="false"
  25279. static="false" final="false" visibility="public"
  25280. deprecated="not deprecated">
  25281. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  25282. </method>
  25283. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25284. abstract="false" native="false" synchronized="false"
  25285. static="false" final="false" visibility="public"
  25286. deprecated="not deprecated">
  25287. <param name="value" type="java.lang.String"/>
  25288. </method>
  25289. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25290. abstract="false" native="false" synchronized="false"
  25291. static="false" final="false" visibility="public"
  25292. deprecated="not deprecated">
  25293. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25294. <param name="value" type="int"/>
  25295. </method>
  25296. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25297. abstract="false" native="false" synchronized="false"
  25298. static="false" final="false" visibility="public"
  25299. deprecated="not deprecated">
  25300. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25301. <param name="value" type="long"/>
  25302. </method>
  25303. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25304. abstract="false" native="false" synchronized="false"
  25305. static="false" final="false" visibility="public"
  25306. deprecated="not deprecated">
  25307. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25308. <param name="value" type="int"/>
  25309. </method>
  25310. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25311. abstract="false" native="false" synchronized="false"
  25312. static="false" final="false" visibility="public"
  25313. deprecated="not deprecated">
  25314. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25315. <param name="value" type="long"/>
  25316. </method>
  25317. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25318. abstract="false" native="false" synchronized="false"
  25319. static="false" final="false" visibility="public"
  25320. deprecated="not deprecated">
  25321. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25322. <param name="value" type="float"/>
  25323. </method>
  25324. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25325. abstract="false" native="false" synchronized="false"
  25326. static="false" final="false" visibility="public"
  25327. deprecated="not deprecated">
  25328. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25329. <param name="value" type="double"/>
  25330. </method>
  25331. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  25332. abstract="false" native="false" synchronized="false"
  25333. static="false" final="false" visibility="public"
  25334. deprecated="not deprecated">
  25335. </method>
  25336. <method name="toString" return="java.lang.String"
  25337. abstract="false" native="false" synchronized="false"
  25338. static="false" final="false" visibility="public"
  25339. deprecated="not deprecated">
  25340. </method>
  25341. <doc>
  25342. <![CDATA[Build a string dump of the metrics.
  25343. The {@link #toString()} operator dumps out all values collected.
  25344. Every entry is formatted as
  25345. {@code prefix + name + separator + value + suffix}]]>
  25346. </doc>
  25347. </class>
  25348. <!-- end class org.apache.hadoop.metrics2.MetricStringBuilder -->
  25349. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  25350. <interface name="MetricsVisitor" abstract="true"
  25351. static="false" final="false" visibility="public"
  25352. deprecated="not deprecated">
  25353. <method name="gauge"
  25354. abstract="true" native="false" synchronized="false"
  25355. static="false" final="false" visibility="public"
  25356. deprecated="not deprecated">
  25357. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25358. <param name="value" type="int"/>
  25359. <doc>
  25360. <![CDATA[Callback for integer value gauges
  25361. @param info the metric info
  25362. @param value of the metric]]>
  25363. </doc>
  25364. </method>
  25365. <method name="gauge"
  25366. abstract="true" native="false" synchronized="false"
  25367. static="false" final="false" visibility="public"
  25368. deprecated="not deprecated">
  25369. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25370. <param name="value" type="long"/>
  25371. <doc>
  25372. <![CDATA[Callback for long value gauges
  25373. @param info the metric info
  25374. @param value of the metric]]>
  25375. </doc>
  25376. </method>
  25377. <method name="gauge"
  25378. abstract="true" native="false" synchronized="false"
  25379. static="false" final="false" visibility="public"
  25380. deprecated="not deprecated">
  25381. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25382. <param name="value" type="float"/>
  25383. <doc>
  25384. <![CDATA[Callback for float value gauges
  25385. @param info the metric info
  25386. @param value of the metric]]>
  25387. </doc>
  25388. </method>
  25389. <method name="gauge"
  25390. abstract="true" native="false" synchronized="false"
  25391. static="false" final="false" visibility="public"
  25392. deprecated="not deprecated">
  25393. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25394. <param name="value" type="double"/>
  25395. <doc>
  25396. <![CDATA[Callback for double value gauges
  25397. @param info the metric info
  25398. @param value of the metric]]>
  25399. </doc>
  25400. </method>
  25401. <method name="counter"
  25402. abstract="true" native="false" synchronized="false"
  25403. static="false" final="false" visibility="public"
  25404. deprecated="not deprecated">
  25405. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25406. <param name="value" type="int"/>
  25407. <doc>
  25408. <![CDATA[Callback for integer value counters
  25409. @param info the metric info
  25410. @param value of the metric]]>
  25411. </doc>
  25412. </method>
  25413. <method name="counter"
  25414. abstract="true" native="false" synchronized="false"
  25415. static="false" final="false" visibility="public"
  25416. deprecated="not deprecated">
  25417. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25418. <param name="value" type="long"/>
  25419. <doc>
  25420. <![CDATA[Callback for long value counters
  25421. @param info the metric info
  25422. @param value of the metric]]>
  25423. </doc>
  25424. </method>
  25425. <doc>
  25426. <![CDATA[A visitor interface for metrics]]>
  25427. </doc>
  25428. </interface>
  25429. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  25430. </package>
  25431. <package name="org.apache.hadoop.metrics2.annotation">
  25432. <!-- start class org.apache.hadoop.metrics2.annotation.Metric -->
  25433. <class name="Metric" abstract="true"
  25434. static="false" final="false" visibility="public"
  25435. deprecated="not deprecated">
  25436. <implements name="java.lang.annotation.Annotation"/>
  25437. <doc>
  25438. <![CDATA[Annotation interface for a single metric used to annotate a field or a method
  25439. in the class.]]>
  25440. </doc>
  25441. </class>
  25442. <!-- end class org.apache.hadoop.metrics2.annotation.Metric -->
  25443. <!-- start class org.apache.hadoop.metrics2.annotation.Metrics -->
  25444. <class name="Metrics" abstract="true"
  25445. static="false" final="false" visibility="public"
  25446. deprecated="not deprecated">
  25447. <implements name="java.lang.annotation.Annotation"/>
  25448. <doc>
  25449. <![CDATA[Annotation interface for a group of metrics]]>
  25450. </doc>
  25451. </class>
  25452. <!-- end class org.apache.hadoop.metrics2.annotation.Metrics -->
  25453. </package>
  25454. <package name="org.apache.hadoop.metrics2.filter">
  25455. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  25456. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  25457. abstract="false"
  25458. static="false" final="false" visibility="public"
  25459. deprecated="not deprecated">
  25460. <constructor name="GlobFilter"
  25461. static="false" final="false" visibility="public"
  25462. deprecated="not deprecated">
  25463. </constructor>
  25464. <method name="compile" return="com.google.re2j.Pattern"
  25465. abstract="false" native="false" synchronized="false"
  25466. static="false" final="false" visibility="protected"
  25467. deprecated="not deprecated">
  25468. <param name="s" type="java.lang.String"/>
  25469. </method>
  25470. <doc>
  25471. <![CDATA[A glob pattern filter for metrics.
  25472. The class name is used in metrics config files]]>
  25473. </doc>
  25474. </class>
  25475. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  25476. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  25477. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  25478. abstract="false"
  25479. static="false" final="false" visibility="public"
  25480. deprecated="not deprecated">
  25481. <constructor name="RegexFilter"
  25482. static="false" final="false" visibility="public"
  25483. deprecated="not deprecated">
  25484. </constructor>
  25485. <method name="compile" return="com.google.re2j.Pattern"
  25486. abstract="false" native="false" synchronized="false"
  25487. static="false" final="false" visibility="protected"
  25488. deprecated="not deprecated">
  25489. <param name="s" type="java.lang.String"/>
  25490. </method>
  25491. <doc>
  25492. <![CDATA[A regex pattern filter for metrics]]>
  25493. </doc>
  25494. </class>
  25495. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  25496. </package>
  25497. <package name="org.apache.hadoop.metrics2.lib">
  25498. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  25499. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  25500. abstract="false"
  25501. static="false" final="true" visibility="public"
  25502. deprecated="not deprecated">
  25503. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  25504. abstract="false" native="false" synchronized="false"
  25505. static="true" final="false" visibility="public"
  25506. deprecated="not deprecated">
  25507. </method>
  25508. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  25509. abstract="false" native="false" synchronized="false"
  25510. static="true" final="false" visibility="public"
  25511. deprecated="not deprecated">
  25512. <param name="name" type="java.lang.String"/>
  25513. </method>
  25514. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  25515. abstract="false" native="false" synchronized="false"
  25516. static="true" final="false" visibility="public"
  25517. deprecated="not deprecated">
  25518. <param name="prefix" type="java.lang.String"/>
  25519. <doc>
  25520. <![CDATA[Convenience method to initialize the metrics system
  25521. @param prefix for the metrics system configuration
  25522. @return the metrics system instance]]>
  25523. </doc>
  25524. </method>
  25525. <method name="instance" return="org.apache.hadoop.metrics2.MetricsSystem"
  25526. abstract="false" native="false" synchronized="false"
  25527. static="true" final="false" visibility="public"
  25528. deprecated="not deprecated">
  25529. <doc>
  25530. <![CDATA[@return the metrics system object]]>
  25531. </doc>
  25532. </method>
  25533. <method name="shutdown"
  25534. abstract="false" native="false" synchronized="false"
  25535. static="true" final="false" visibility="public"
  25536. deprecated="not deprecated">
  25537. <doc>
  25538. <![CDATA[Shutdown the metrics system]]>
  25539. </doc>
  25540. </method>
  25541. <method name="setMiniClusterMode"
  25542. abstract="false" native="false" synchronized="false"
  25543. static="true" final="false" visibility="public"
  25544. deprecated="not deprecated">
  25545. <param name="choice" type="boolean"/>
  25546. </method>
  25547. <method name="inMiniClusterMode" return="boolean"
  25548. abstract="false" native="false" synchronized="false"
  25549. static="true" final="false" visibility="public"
  25550. deprecated="not deprecated">
  25551. </method>
  25552. <doc>
  25553. <![CDATA[The default metrics system singleton. This class is used by all the daemon
  25554. processes(such as NameNode, DataNode, JobTracker etc.). During daemon process
  25555. initialization the processes call {@link DefaultMetricsSystem#init(String)}
  25556. to initialize the {@link MetricsSystem}.]]>
  25557. </doc>
  25558. </class>
  25559. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  25560. <!-- start class org.apache.hadoop.metrics2.lib.Interns -->
  25561. <class name="Interns" extends="java.lang.Object"
  25562. abstract="false"
  25563. static="false" final="false" visibility="public"
  25564. deprecated="not deprecated">
  25565. <constructor name="Interns"
  25566. static="false" final="false" visibility="public"
  25567. deprecated="not deprecated">
  25568. </constructor>
  25569. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25570. abstract="false" native="false" synchronized="false"
  25571. static="true" final="false" visibility="public"
  25572. deprecated="not deprecated">
  25573. <param name="name" type="java.lang.String"/>
  25574. <param name="description" type="java.lang.String"/>
  25575. <doc>
  25576. <![CDATA[Get a metric info object.
  25577. @param name Name of metric info object
  25578. @param description Description of metric info object
  25579. @return an interned metric info object]]>
  25580. </doc>
  25581. </method>
  25582. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  25583. abstract="false" native="false" synchronized="false"
  25584. static="true" final="false" visibility="public"
  25585. deprecated="not deprecated">
  25586. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25587. <param name="value" type="java.lang.String"/>
  25588. <doc>
  25589. <![CDATA[Get a metrics tag.
  25590. @param info of the tag
  25591. @param value of the tag
  25592. @return an interned metrics tag]]>
  25593. </doc>
  25594. </method>
  25595. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  25596. abstract="false" native="false" synchronized="false"
  25597. static="true" final="false" visibility="public"
  25598. deprecated="not deprecated">
  25599. <param name="name" type="java.lang.String"/>
  25600. <param name="description" type="java.lang.String"/>
  25601. <param name="value" type="java.lang.String"/>
  25602. <doc>
  25603. <![CDATA[Get a metrics tag.
  25604. @param name of the tag
  25605. @param description of the tag
  25606. @param value of the tag
  25607. @return an interned metrics tag]]>
  25608. </doc>
  25609. </method>
  25610. <doc>
  25611. <![CDATA[Helpers to create interned metrics info.]]>
  25612. </doc>
  25613. </class>
  25614. <!-- end class org.apache.hadoop.metrics2.lib.Interns -->
  25615. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  25616. <class name="MetricsRegistry" extends="java.lang.Object"
  25617. abstract="false"
  25618. static="false" final="false" visibility="public"
  25619. deprecated="not deprecated">
  25620. <constructor name="MetricsRegistry" type="java.lang.String"
  25621. static="false" final="false" visibility="public"
  25622. deprecated="not deprecated">
  25623. <doc>
  25624. <![CDATA[Construct the registry with a record name
  25625. @param name of the record of the metrics]]>
  25626. </doc>
  25627. </constructor>
  25628. <constructor name="MetricsRegistry" type="org.apache.hadoop.metrics2.MetricsInfo"
  25629. static="false" final="false" visibility="public"
  25630. deprecated="not deprecated">
  25631. <doc>
  25632. <![CDATA[Construct the registry with a metadata object
  25633. @param info the info object for the metrics record/group]]>
  25634. </doc>
  25635. </constructor>
  25636. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25637. abstract="false" native="false" synchronized="false"
  25638. static="false" final="false" visibility="public"
  25639. deprecated="not deprecated">
  25640. <doc>
  25641. <![CDATA[@return the info object of the metrics registry]]>
  25642. </doc>
  25643. </method>
  25644. <method name="get" return="org.apache.hadoop.metrics2.lib.MutableMetric"
  25645. abstract="false" native="false" synchronized="true"
  25646. static="false" final="false" visibility="public"
  25647. deprecated="not deprecated">
  25648. <param name="name" type="java.lang.String"/>
  25649. <doc>
  25650. <![CDATA[Get a metric by name
  25651. @param name of the metric
  25652. @return the metric object]]>
  25653. </doc>
  25654. </method>
  25655. <method name="getTag" return="org.apache.hadoop.metrics2.MetricsTag"
  25656. abstract="false" native="false" synchronized="true"
  25657. static="false" final="false" visibility="public"
  25658. deprecated="not deprecated">
  25659. <param name="name" type="java.lang.String"/>
  25660. <doc>
  25661. <![CDATA[Get a tag by name
  25662. @param name of the tag
  25663. @return the tag object]]>
  25664. </doc>
  25665. </method>
  25666. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  25667. abstract="false" native="false" synchronized="false"
  25668. static="false" final="false" visibility="public"
  25669. deprecated="not deprecated">
  25670. <param name="name" type="java.lang.String"/>
  25671. <param name="desc" type="java.lang.String"/>
  25672. <param name="iVal" type="int"/>
  25673. <doc>
  25674. <![CDATA[Create a mutable integer counter
  25675. @param name of the metric
  25676. @param desc metric description
  25677. @param iVal initial value
  25678. @return a new counter object]]>
  25679. </doc>
  25680. </method>
  25681. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  25682. abstract="false" native="false" synchronized="true"
  25683. static="false" final="false" visibility="public"
  25684. deprecated="not deprecated">
  25685. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25686. <param name="iVal" type="int"/>
  25687. <doc>
  25688. <![CDATA[Create a mutable integer counter
  25689. @param info metadata of the metric
  25690. @param iVal initial value
  25691. @return a new counter object]]>
  25692. </doc>
  25693. </method>
  25694. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  25695. abstract="false" native="false" synchronized="false"
  25696. static="false" final="false" visibility="public"
  25697. deprecated="not deprecated">
  25698. <param name="name" type="java.lang.String"/>
  25699. <param name="desc" type="java.lang.String"/>
  25700. <param name="iVal" type="long"/>
  25701. <doc>
  25702. <![CDATA[Create a mutable long integer counter
  25703. @param name of the metric
  25704. @param desc metric description
  25705. @param iVal initial value
  25706. @return a new counter object]]>
  25707. </doc>
  25708. </method>
  25709. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  25710. abstract="false" native="false" synchronized="true"
  25711. static="false" final="false" visibility="public"
  25712. deprecated="not deprecated">
  25713. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25714. <param name="iVal" type="long"/>
  25715. <doc>
  25716. <![CDATA[Create a mutable long integer counter
  25717. @param info metadata of the metric
  25718. @param iVal initial value
  25719. @return a new counter object]]>
  25720. </doc>
  25721. </method>
  25722. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  25723. abstract="false" native="false" synchronized="false"
  25724. static="false" final="false" visibility="public"
  25725. deprecated="not deprecated">
  25726. <param name="name" type="java.lang.String"/>
  25727. <param name="desc" type="java.lang.String"/>
  25728. <param name="iVal" type="int"/>
  25729. <doc>
  25730. <![CDATA[Create a mutable integer gauge
  25731. @param name of the metric
  25732. @param desc metric description
  25733. @param iVal initial value
  25734. @return a new gauge object]]>
  25735. </doc>
  25736. </method>
  25737. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  25738. abstract="false" native="false" synchronized="true"
  25739. static="false" final="false" visibility="public"
  25740. deprecated="not deprecated">
  25741. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25742. <param name="iVal" type="int"/>
  25743. <doc>
  25744. <![CDATA[Create a mutable integer gauge
  25745. @param info metadata of the metric
  25746. @param iVal initial value
  25747. @return a new gauge object]]>
  25748. </doc>
  25749. </method>
  25750. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  25751. abstract="false" native="false" synchronized="false"
  25752. static="false" final="false" visibility="public"
  25753. deprecated="not deprecated">
  25754. <param name="name" type="java.lang.String"/>
  25755. <param name="desc" type="java.lang.String"/>
  25756. <param name="iVal" type="long"/>
  25757. <doc>
  25758. <![CDATA[Create a mutable long integer gauge
  25759. @param name of the metric
  25760. @param desc metric description
  25761. @param iVal initial value
  25762. @return a new gauge object]]>
  25763. </doc>
  25764. </method>
  25765. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  25766. abstract="false" native="false" synchronized="true"
  25767. static="false" final="false" visibility="public"
  25768. deprecated="not deprecated">
  25769. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25770. <param name="iVal" type="long"/>
  25771. <doc>
  25772. <![CDATA[Create a mutable long integer gauge
  25773. @param info metadata of the metric
  25774. @param iVal initial value
  25775. @return a new gauge object]]>
  25776. </doc>
  25777. </method>
  25778. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  25779. abstract="false" native="false" synchronized="false"
  25780. static="false" final="false" visibility="public"
  25781. deprecated="not deprecated">
  25782. <param name="name" type="java.lang.String"/>
  25783. <param name="desc" type="java.lang.String"/>
  25784. <param name="iVal" type="float"/>
  25785. <doc>
  25786. <![CDATA[Create a mutable float gauge
  25787. @param name of the metric
  25788. @param desc metric description
  25789. @param iVal initial value
  25790. @return a new gauge object]]>
  25791. </doc>
  25792. </method>
  25793. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  25794. abstract="false" native="false" synchronized="true"
  25795. static="false" final="false" visibility="public"
  25796. deprecated="not deprecated">
  25797. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25798. <param name="iVal" type="float"/>
  25799. <doc>
  25800. <![CDATA[Create a mutable float gauge
  25801. @param info metadata of the metric
  25802. @param iVal initial value
  25803. @return a new gauge object]]>
  25804. </doc>
  25805. </method>
  25806. <method name="newQuantiles" return="org.apache.hadoop.metrics2.lib.MutableQuantiles"
  25807. abstract="false" native="false" synchronized="true"
  25808. static="false" final="false" visibility="public"
  25809. deprecated="not deprecated">
  25810. <param name="name" type="java.lang.String"/>
  25811. <param name="desc" type="java.lang.String"/>
  25812. <param name="sampleName" type="java.lang.String"/>
  25813. <param name="valueName" type="java.lang.String"/>
  25814. <param name="interval" type="int"/>
  25815. <doc>
  25816. <![CDATA[Create a mutable metric that estimates quantiles of a stream of values
  25817. @param name of the metric
  25818. @param desc metric description
  25819. @param sampleName of the metric (e.g., "Ops")
  25820. @param valueName of the metric (e.g., "Time" or "Latency")
  25821. @param interval rollover interval of estimator in seconds
  25822. @return a new quantile estimator object
  25823. @throws MetricsException if interval is not a positive integer]]>
  25824. </doc>
  25825. </method>
  25826. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  25827. abstract="false" native="false" synchronized="true"
  25828. static="false" final="false" visibility="public"
  25829. deprecated="not deprecated">
  25830. <param name="name" type="java.lang.String"/>
  25831. <param name="desc" type="java.lang.String"/>
  25832. <param name="sampleName" type="java.lang.String"/>
  25833. <param name="valueName" type="java.lang.String"/>
  25834. <param name="extended" type="boolean"/>
  25835. <doc>
  25836. <![CDATA[Create a mutable metric with stats
  25837. @param name of the metric
  25838. @param desc metric description
  25839. @param sampleName of the metric (e.g., "Ops")
  25840. @param valueName of the metric (e.g., "Time" or "Latency")
  25841. @param extended produce extended stat (stdev, min/max etc.) if true.
  25842. @return a new mutable stat metric object]]>
  25843. </doc>
  25844. </method>
  25845. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  25846. abstract="false" native="false" synchronized="false"
  25847. static="false" final="false" visibility="public"
  25848. deprecated="not deprecated">
  25849. <param name="name" type="java.lang.String"/>
  25850. <param name="desc" type="java.lang.String"/>
  25851. <param name="sampleName" type="java.lang.String"/>
  25852. <param name="valueName" type="java.lang.String"/>
  25853. <doc>
  25854. <![CDATA[Create a mutable metric with stats
  25855. @param name of the metric
  25856. @param desc metric description
  25857. @param sampleName of the metric (e.g., "Ops")
  25858. @param valueName of the metric (e.g., "Time" or "Latency")
  25859. @return a new mutable metric object]]>
  25860. </doc>
  25861. </method>
  25862. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25863. abstract="false" native="false" synchronized="false"
  25864. static="false" final="false" visibility="public"
  25865. deprecated="not deprecated">
  25866. <param name="name" type="java.lang.String"/>
  25867. <doc>
  25868. <![CDATA[Create a mutable rate metric
  25869. @param name of the metric
  25870. @return a new mutable metric object]]>
  25871. </doc>
  25872. </method>
  25873. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25874. abstract="false" native="false" synchronized="false"
  25875. static="false" final="false" visibility="public"
  25876. deprecated="not deprecated">
  25877. <param name="name" type="java.lang.String"/>
  25878. <param name="description" type="java.lang.String"/>
  25879. <doc>
  25880. <![CDATA[Create a mutable rate metric
  25881. @param name of the metric
  25882. @param description of the metric
  25883. @return a new mutable rate metric object]]>
  25884. </doc>
  25885. </method>
  25886. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25887. abstract="false" native="false" synchronized="false"
  25888. static="false" final="false" visibility="public"
  25889. deprecated="not deprecated">
  25890. <param name="name" type="java.lang.String"/>
  25891. <param name="desc" type="java.lang.String"/>
  25892. <param name="extended" type="boolean"/>
  25893. <doc>
  25894. <![CDATA[Create a mutable rate metric (for throughput measurement)
  25895. @param name of the metric
  25896. @param desc description
  25897. @param extended produce extended stat (stdev/min/max etc.) if true
  25898. @return a new mutable rate metric object]]>
  25899. </doc>
  25900. </method>
  25901. <method name="newRatesWithAggregation" return="org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation"
  25902. abstract="false" native="false" synchronized="true"
  25903. static="false" final="false" visibility="public"
  25904. deprecated="not deprecated">
  25905. <param name="name" type="java.lang.String"/>
  25906. </method>
  25907. <method name="newMutableRollingAverages" return="org.apache.hadoop.metrics2.lib.MutableRollingAverages"
  25908. abstract="false" native="false" synchronized="true"
  25909. static="false" final="false" visibility="public"
  25910. deprecated="not deprecated">
  25911. <param name="name" type="java.lang.String"/>
  25912. <param name="valueName" type="java.lang.String"/>
  25913. </method>
  25914. <method name="add"
  25915. abstract="false" native="false" synchronized="true"
  25916. static="false" final="false" visibility="public"
  25917. deprecated="not deprecated">
  25918. <param name="name" type="java.lang.String"/>
  25919. <param name="value" type="long"/>
  25920. <doc>
  25921. <![CDATA[Add sample to a stat metric by name.
  25922. @param name of the metric
  25923. @param value of the snapshot to add]]>
  25924. </doc>
  25925. </method>
  25926. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25927. abstract="false" native="false" synchronized="false"
  25928. static="false" final="false" visibility="public"
  25929. deprecated="not deprecated">
  25930. <param name="name" type="java.lang.String"/>
  25931. <doc>
  25932. <![CDATA[Set the metrics context tag
  25933. @param name of the context
  25934. @return the registry itself as a convenience]]>
  25935. </doc>
  25936. </method>
  25937. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25938. abstract="false" native="false" synchronized="false"
  25939. static="false" final="false" visibility="public"
  25940. deprecated="not deprecated">
  25941. <param name="name" type="java.lang.String"/>
  25942. <param name="description" type="java.lang.String"/>
  25943. <param name="value" type="java.lang.String"/>
  25944. <doc>
  25945. <![CDATA[Add a tag to the metrics
  25946. @param name of the tag
  25947. @param description of the tag
  25948. @param value of the tag
  25949. @return the registry (for keep adding tags)]]>
  25950. </doc>
  25951. </method>
  25952. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25953. abstract="false" native="false" synchronized="false"
  25954. static="false" final="false" visibility="public"
  25955. deprecated="not deprecated">
  25956. <param name="name" type="java.lang.String"/>
  25957. <param name="description" type="java.lang.String"/>
  25958. <param name="value" type="java.lang.String"/>
  25959. <param name="override" type="boolean"/>
  25960. <doc>
  25961. <![CDATA[Add a tag to the metrics
  25962. @param name of the tag
  25963. @param description of the tag
  25964. @param value of the tag
  25965. @param override existing tag if true
  25966. @return the registry (for keep adding tags)]]>
  25967. </doc>
  25968. </method>
  25969. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25970. abstract="false" native="false" synchronized="true"
  25971. static="false" final="false" visibility="public"
  25972. deprecated="not deprecated">
  25973. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25974. <param name="value" type="java.lang.String"/>
  25975. <param name="override" type="boolean"/>
  25976. <doc>
  25977. <![CDATA[Add a tag to the metrics
  25978. @param info metadata of the tag
  25979. @param value of the tag
  25980. @param override existing tag if true
  25981. @return the registry (for keep adding tags etc.)]]>
  25982. </doc>
  25983. </method>
  25984. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25985. abstract="false" native="false" synchronized="false"
  25986. static="false" final="false" visibility="public"
  25987. deprecated="not deprecated">
  25988. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25989. <param name="value" type="java.lang.String"/>
  25990. </method>
  25991. <method name="snapshot"
  25992. abstract="false" native="false" synchronized="true"
  25993. static="false" final="false" visibility="public"
  25994. deprecated="not deprecated">
  25995. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25996. <param name="all" type="boolean"/>
  25997. <doc>
  25998. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  25999. @param builder to contain the metrics snapshot
  26000. @param all get all the metrics even if the values are not changed.]]>
  26001. </doc>
  26002. </method>
  26003. <method name="toString" return="java.lang.String"
  26004. abstract="false" native="false" synchronized="false"
  26005. static="false" final="false" visibility="public"
  26006. deprecated="not deprecated">
  26007. </method>
  26008. <doc>
  26009. <![CDATA[An optional metrics registry class for creating and maintaining a
  26010. collection of MetricsMutables, making writing metrics source easier.]]>
  26011. </doc>
  26012. </class>
  26013. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  26014. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounter -->
  26015. <class name="MutableCounter" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26016. abstract="true"
  26017. static="false" final="false" visibility="public"
  26018. deprecated="not deprecated">
  26019. <constructor name="MutableCounter" type="org.apache.hadoop.metrics2.MetricsInfo"
  26020. static="false" final="false" visibility="protected"
  26021. deprecated="not deprecated">
  26022. </constructor>
  26023. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  26024. abstract="false" native="false" synchronized="false"
  26025. static="false" final="false" visibility="protected"
  26026. deprecated="not deprecated">
  26027. </method>
  26028. <method name="incr"
  26029. abstract="true" native="false" synchronized="false"
  26030. static="false" final="false" visibility="public"
  26031. deprecated="not deprecated">
  26032. <doc>
  26033. <![CDATA[Increment the metric value by 1.]]>
  26034. </doc>
  26035. </method>
  26036. <doc>
  26037. <![CDATA[The mutable counter (monotonically increasing) metric interface]]>
  26038. </doc>
  26039. </class>
  26040. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounter -->
  26041. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  26042. <class name="MutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  26043. abstract="false"
  26044. static="false" final="false" visibility="public"
  26045. deprecated="not deprecated">
  26046. <method name="incr"
  26047. abstract="false" native="false" synchronized="false"
  26048. static="false" final="false" visibility="public"
  26049. deprecated="not deprecated">
  26050. </method>
  26051. <method name="incr"
  26052. abstract="false" native="false" synchronized="true"
  26053. static="false" final="false" visibility="public"
  26054. deprecated="not deprecated">
  26055. <param name="delta" type="int"/>
  26056. <doc>
  26057. <![CDATA[Increment the value by a delta
  26058. @param delta of the increment]]>
  26059. </doc>
  26060. </method>
  26061. <method name="value" return="int"
  26062. abstract="false" native="false" synchronized="false"
  26063. static="false" final="false" visibility="public"
  26064. deprecated="not deprecated">
  26065. </method>
  26066. <method name="snapshot"
  26067. abstract="false" native="false" synchronized="false"
  26068. static="false" final="false" visibility="public"
  26069. deprecated="not deprecated">
  26070. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26071. <param name="all" type="boolean"/>
  26072. </method>
  26073. <doc>
  26074. <![CDATA[A mutable int counter for implementing metrics sources]]>
  26075. </doc>
  26076. </class>
  26077. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  26078. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  26079. <class name="MutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  26080. abstract="false"
  26081. static="false" final="false" visibility="public"
  26082. deprecated="not deprecated">
  26083. <constructor name="MutableCounterLong" type="org.apache.hadoop.metrics2.MetricsInfo, long"
  26084. static="false" final="false" visibility="public"
  26085. deprecated="not deprecated">
  26086. </constructor>
  26087. <method name="incr"
  26088. abstract="false" native="false" synchronized="false"
  26089. static="false" final="false" visibility="public"
  26090. deprecated="not deprecated">
  26091. </method>
  26092. <method name="incr"
  26093. abstract="false" native="false" synchronized="false"
  26094. static="false" final="false" visibility="public"
  26095. deprecated="not deprecated">
  26096. <param name="delta" type="long"/>
  26097. <doc>
  26098. <![CDATA[Increment the value by a delta
  26099. @param delta of the increment]]>
  26100. </doc>
  26101. </method>
  26102. <method name="value" return="long"
  26103. abstract="false" native="false" synchronized="false"
  26104. static="false" final="false" visibility="public"
  26105. deprecated="not deprecated">
  26106. </method>
  26107. <method name="snapshot"
  26108. abstract="false" native="false" synchronized="false"
  26109. static="false" final="false" visibility="public"
  26110. deprecated="not deprecated">
  26111. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26112. <param name="all" type="boolean"/>
  26113. </method>
  26114. <doc>
  26115. <![CDATA[A mutable long counter]]>
  26116. </doc>
  26117. </class>
  26118. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  26119. <!-- start class org.apache.hadoop.metrics2.lib.MutableGauge -->
  26120. <class name="MutableGauge" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26121. abstract="true"
  26122. static="false" final="false" visibility="public"
  26123. deprecated="not deprecated">
  26124. <constructor name="MutableGauge" type="org.apache.hadoop.metrics2.MetricsInfo"
  26125. static="false" final="false" visibility="protected"
  26126. deprecated="not deprecated">
  26127. </constructor>
  26128. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  26129. abstract="false" native="false" synchronized="false"
  26130. static="false" final="false" visibility="protected"
  26131. deprecated="not deprecated">
  26132. </method>
  26133. <method name="incr"
  26134. abstract="true" native="false" synchronized="false"
  26135. static="false" final="false" visibility="public"
  26136. deprecated="not deprecated">
  26137. <doc>
  26138. <![CDATA[Increment the value of the metric by 1]]>
  26139. </doc>
  26140. </method>
  26141. <method name="decr"
  26142. abstract="true" native="false" synchronized="false"
  26143. static="false" final="false" visibility="public"
  26144. deprecated="not deprecated">
  26145. <doc>
  26146. <![CDATA[Decrement the value of the metric by 1]]>
  26147. </doc>
  26148. </method>
  26149. <doc>
  26150. <![CDATA[The mutable gauge metric interface]]>
  26151. </doc>
  26152. </class>
  26153. <!-- end class org.apache.hadoop.metrics2.lib.MutableGauge -->
  26154. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  26155. <class name="MutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  26156. abstract="false"
  26157. static="false" final="false" visibility="public"
  26158. deprecated="not deprecated">
  26159. <method name="value" return="int"
  26160. abstract="false" native="false" synchronized="false"
  26161. static="false" final="false" visibility="public"
  26162. deprecated="not deprecated">
  26163. </method>
  26164. <method name="incr"
  26165. abstract="false" native="false" synchronized="false"
  26166. static="false" final="false" visibility="public"
  26167. deprecated="not deprecated">
  26168. </method>
  26169. <method name="incr"
  26170. abstract="false" native="false" synchronized="false"
  26171. static="false" final="false" visibility="public"
  26172. deprecated="not deprecated">
  26173. <param name="delta" type="int"/>
  26174. <doc>
  26175. <![CDATA[Increment by delta
  26176. @param delta of the increment]]>
  26177. </doc>
  26178. </method>
  26179. <method name="decr"
  26180. abstract="false" native="false" synchronized="false"
  26181. static="false" final="false" visibility="public"
  26182. deprecated="not deprecated">
  26183. </method>
  26184. <method name="decr"
  26185. abstract="false" native="false" synchronized="false"
  26186. static="false" final="false" visibility="public"
  26187. deprecated="not deprecated">
  26188. <param name="delta" type="int"/>
  26189. <doc>
  26190. <![CDATA[decrement by delta
  26191. @param delta of the decrement]]>
  26192. </doc>
  26193. </method>
  26194. <method name="set"
  26195. abstract="false" native="false" synchronized="false"
  26196. static="false" final="false" visibility="public"
  26197. deprecated="not deprecated">
  26198. <param name="value" type="int"/>
  26199. <doc>
  26200. <![CDATA[Set the value of the metric
  26201. @param value to set]]>
  26202. </doc>
  26203. </method>
  26204. <method name="snapshot"
  26205. abstract="false" native="false" synchronized="false"
  26206. static="false" final="false" visibility="public"
  26207. deprecated="not deprecated">
  26208. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26209. <param name="all" type="boolean"/>
  26210. </method>
  26211. <method name="toString" return="java.lang.String"
  26212. abstract="false" native="false" synchronized="false"
  26213. static="false" final="false" visibility="public"
  26214. deprecated="not deprecated">
  26215. <doc>
  26216. <![CDATA[@return the value of the metric]]>
  26217. </doc>
  26218. </method>
  26219. <doc>
  26220. <![CDATA[A mutable int gauge]]>
  26221. </doc>
  26222. </class>
  26223. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  26224. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  26225. <class name="MutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  26226. abstract="false"
  26227. static="false" final="false" visibility="public"
  26228. deprecated="not deprecated">
  26229. <method name="value" return="long"
  26230. abstract="false" native="false" synchronized="false"
  26231. static="false" final="false" visibility="public"
  26232. deprecated="not deprecated">
  26233. </method>
  26234. <method name="incr"
  26235. abstract="false" native="false" synchronized="false"
  26236. static="false" final="false" visibility="public"
  26237. deprecated="not deprecated">
  26238. </method>
  26239. <method name="incr"
  26240. abstract="false" native="false" synchronized="false"
  26241. static="false" final="false" visibility="public"
  26242. deprecated="not deprecated">
  26243. <param name="delta" type="long"/>
  26244. <doc>
  26245. <![CDATA[Increment by delta
  26246. @param delta of the increment]]>
  26247. </doc>
  26248. </method>
  26249. <method name="decr"
  26250. abstract="false" native="false" synchronized="false"
  26251. static="false" final="false" visibility="public"
  26252. deprecated="not deprecated">
  26253. </method>
  26254. <method name="decr"
  26255. abstract="false" native="false" synchronized="false"
  26256. static="false" final="false" visibility="public"
  26257. deprecated="not deprecated">
  26258. <param name="delta" type="long"/>
  26259. <doc>
  26260. <![CDATA[decrement by delta
  26261. @param delta of the decrement]]>
  26262. </doc>
  26263. </method>
  26264. <method name="set"
  26265. abstract="false" native="false" synchronized="false"
  26266. static="false" final="false" visibility="public"
  26267. deprecated="not deprecated">
  26268. <param name="value" type="long"/>
  26269. <doc>
  26270. <![CDATA[Set the value of the metric
  26271. @param value to set]]>
  26272. </doc>
  26273. </method>
  26274. <method name="snapshot"
  26275. abstract="false" native="false" synchronized="false"
  26276. static="false" final="false" visibility="public"
  26277. deprecated="not deprecated">
  26278. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26279. <param name="all" type="boolean"/>
  26280. </method>
  26281. <method name="toString" return="java.lang.String"
  26282. abstract="false" native="false" synchronized="false"
  26283. static="false" final="false" visibility="public"
  26284. deprecated="not deprecated">
  26285. <doc>
  26286. <![CDATA[@return the value of the metric]]>
  26287. </doc>
  26288. </method>
  26289. <doc>
  26290. <![CDATA[A mutable long gauge]]>
  26291. </doc>
  26292. </class>
  26293. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  26294. <!-- start class org.apache.hadoop.metrics2.lib.MutableMetric -->
  26295. <class name="MutableMetric" extends="java.lang.Object"
  26296. abstract="true"
  26297. static="false" final="false" visibility="public"
  26298. deprecated="not deprecated">
  26299. <constructor name="MutableMetric"
  26300. static="false" final="false" visibility="public"
  26301. deprecated="not deprecated">
  26302. </constructor>
  26303. <method name="snapshot"
  26304. abstract="true" native="false" synchronized="false"
  26305. static="false" final="false" visibility="public"
  26306. deprecated="not deprecated">
  26307. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26308. <param name="all" type="boolean"/>
  26309. <doc>
  26310. <![CDATA[Get a snapshot of the metric
  26311. @param builder the metrics record builder
  26312. @param all if true, snapshot unchanged metrics as well]]>
  26313. </doc>
  26314. </method>
  26315. <method name="snapshot"
  26316. abstract="false" native="false" synchronized="false"
  26317. static="false" final="false" visibility="public"
  26318. deprecated="not deprecated">
  26319. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26320. <doc>
  26321. <![CDATA[Get a snapshot of metric if changed
  26322. @param builder the metrics record builder]]>
  26323. </doc>
  26324. </method>
  26325. <method name="setChanged"
  26326. abstract="false" native="false" synchronized="false"
  26327. static="false" final="false" visibility="protected"
  26328. deprecated="not deprecated">
  26329. <doc>
  26330. <![CDATA[Set the changed flag in mutable operations]]>
  26331. </doc>
  26332. </method>
  26333. <method name="clearChanged"
  26334. abstract="false" native="false" synchronized="false"
  26335. static="false" final="false" visibility="protected"
  26336. deprecated="not deprecated">
  26337. <doc>
  26338. <![CDATA[Clear the changed flag in the snapshot operations]]>
  26339. </doc>
  26340. </method>
  26341. <method name="changed" return="boolean"
  26342. abstract="false" native="false" synchronized="false"
  26343. static="false" final="false" visibility="public"
  26344. deprecated="not deprecated">
  26345. <doc>
  26346. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  26347. </doc>
  26348. </method>
  26349. <doc>
  26350. <![CDATA[The mutable metric interface]]>
  26351. </doc>
  26352. </class>
  26353. <!-- end class org.apache.hadoop.metrics2.lib.MutableMetric -->
  26354. <!-- start class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  26355. <class name="MutableQuantiles" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26356. abstract="false"
  26357. static="false" final="false" visibility="public"
  26358. deprecated="not deprecated">
  26359. <constructor name="MutableQuantiles" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, int"
  26360. static="false" final="false" visibility="public"
  26361. deprecated="not deprecated">
  26362. <doc>
  26363. <![CDATA[Instantiates a new {@link MutableQuantiles} for a metric that rolls itself
  26364. over on the specified time interval.
  26365. @param name
  26366. of the metric
  26367. @param description
  26368. long-form textual description of the metric
  26369. @param sampleName
  26370. type of items in the stream (e.g., "Ops")
  26371. @param valueName
  26372. type of the values
  26373. @param interval
  26374. rollover interval (in seconds) of the estimator]]>
  26375. </doc>
  26376. </constructor>
  26377. <method name="snapshot"
  26378. abstract="false" native="false" synchronized="true"
  26379. static="false" final="false" visibility="public"
  26380. deprecated="not deprecated">
  26381. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26382. <param name="all" type="boolean"/>
  26383. </method>
  26384. <method name="add"
  26385. abstract="false" native="false" synchronized="true"
  26386. static="false" final="false" visibility="public"
  26387. deprecated="not deprecated">
  26388. <param name="value" type="long"/>
  26389. </method>
  26390. <method name="getInterval" return="int"
  26391. abstract="false" native="false" synchronized="false"
  26392. static="false" final="false" visibility="public"
  26393. deprecated="not deprecated">
  26394. </method>
  26395. <method name="stop"
  26396. abstract="false" native="false" synchronized="false"
  26397. static="false" final="false" visibility="public"
  26398. deprecated="not deprecated">
  26399. </method>
  26400. <method name="getEstimator" return="org.apache.hadoop.metrics2.util.QuantileEstimator"
  26401. abstract="false" native="false" synchronized="true"
  26402. static="false" final="false" visibility="public"
  26403. deprecated="not deprecated">
  26404. <doc>
  26405. <![CDATA[Get the quantile estimator.
  26406. @return the quantile estimator]]>
  26407. </doc>
  26408. </method>
  26409. <method name="setEstimator"
  26410. abstract="false" native="false" synchronized="true"
  26411. static="false" final="false" visibility="public"
  26412. deprecated="not deprecated">
  26413. <param name="quantileEstimator" type="org.apache.hadoop.metrics2.util.QuantileEstimator"/>
  26414. </method>
  26415. <field name="quantiles" type="org.apache.hadoop.metrics2.util.Quantile[]"
  26416. transient="false" volatile="false"
  26417. static="true" final="true" visibility="public"
  26418. deprecated="not deprecated">
  26419. </field>
  26420. <field name="previousSnapshot" type="java.util.Map"
  26421. transient="false" volatile="false"
  26422. static="false" final="false" visibility="protected"
  26423. deprecated="not deprecated">
  26424. </field>
  26425. <doc>
  26426. <![CDATA[Watches a stream of long values, maintaining online estimates of specific
  26427. quantiles with provably low error bounds. This is particularly useful for
  26428. accurate high-percentile (e.g. 95th, 99th) latency metrics.]]>
  26429. </doc>
  26430. </class>
  26431. <!-- end class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  26432. <!-- start class org.apache.hadoop.metrics2.lib.MutableRate -->
  26433. <class name="MutableRate" extends="org.apache.hadoop.metrics2.lib.MutableStat"
  26434. abstract="false"
  26435. static="false" final="false" visibility="public"
  26436. deprecated="not deprecated">
  26437. <doc>
  26438. <![CDATA[A convenient mutable metric for throughput measurement]]>
  26439. </doc>
  26440. </class>
  26441. <!-- end class org.apache.hadoop.metrics2.lib.MutableRate -->
  26442. <!-- start class org.apache.hadoop.metrics2.lib.MutableRates -->
  26443. <class name="MutableRates" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26444. abstract="false"
  26445. static="false" final="false" visibility="public"
  26446. deprecated="not deprecated">
  26447. <method name="init"
  26448. abstract="false" native="false" synchronized="false"
  26449. static="false" final="false" visibility="public"
  26450. deprecated="not deprecated">
  26451. <param name="protocol" type="java.lang.Class"/>
  26452. <doc>
  26453. <![CDATA[Initialize the registry with all the methods in a protocol
  26454. so they all show up in the first snapshot.
  26455. Convenient for JMX implementations.
  26456. @param protocol the protocol class]]>
  26457. </doc>
  26458. </method>
  26459. <method name="add"
  26460. abstract="false" native="false" synchronized="false"
  26461. static="false" final="false" visibility="public"
  26462. deprecated="not deprecated">
  26463. <param name="name" type="java.lang.String"/>
  26464. <param name="elapsed" type="long"/>
  26465. <doc>
  26466. <![CDATA[Add a rate sample for a rate metric
  26467. @param name of the rate metric
  26468. @param elapsed time]]>
  26469. </doc>
  26470. </method>
  26471. <method name="snapshot"
  26472. abstract="false" native="false" synchronized="false"
  26473. static="false" final="false" visibility="public"
  26474. deprecated="not deprecated">
  26475. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26476. <param name="all" type="boolean"/>
  26477. </method>
  26478. <doc>
  26479. <![CDATA[Helper class to manage a group of mutable rate metrics
  26480. This class synchronizes all accesses to the metrics it
  26481. contains, so it should not be used in situations where
  26482. there is high contention on the metrics.
  26483. {@link MutableRatesWithAggregation} is preferable in that
  26484. situation.]]>
  26485. </doc>
  26486. </class>
  26487. <!-- end class org.apache.hadoop.metrics2.lib.MutableRates -->
  26488. <!-- start class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  26489. <class name="MutableRatesWithAggregation" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26490. abstract="false"
  26491. static="false" final="false" visibility="public"
  26492. deprecated="not deprecated">
  26493. <constructor name="MutableRatesWithAggregation"
  26494. static="false" final="false" visibility="public"
  26495. deprecated="not deprecated">
  26496. </constructor>
  26497. <method name="init"
  26498. abstract="false" native="false" synchronized="false"
  26499. static="false" final="false" visibility="public"
  26500. deprecated="not deprecated">
  26501. <param name="protocol" type="java.lang.Class"/>
  26502. <doc>
  26503. <![CDATA[Initialize the registry with all the methods in a protocol
  26504. so they all show up in the first snapshot.
  26505. Convenient for JMX implementations.
  26506. @param protocol the protocol class]]>
  26507. </doc>
  26508. </method>
  26509. <method name="add"
  26510. abstract="false" native="false" synchronized="false"
  26511. static="false" final="false" visibility="public"
  26512. deprecated="not deprecated">
  26513. <param name="name" type="java.lang.String"/>
  26514. <param name="elapsed" type="long"/>
  26515. <doc>
  26516. <![CDATA[Add a rate sample for a rate metric.
  26517. @param name of the rate metric
  26518. @param elapsed time]]>
  26519. </doc>
  26520. </method>
  26521. <method name="snapshot"
  26522. abstract="false" native="false" synchronized="true"
  26523. static="false" final="false" visibility="public"
  26524. deprecated="not deprecated">
  26525. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26526. <param name="all" type="boolean"/>
  26527. </method>
  26528. <doc>
  26529. <![CDATA[Helper class to manage a group of mutable rate metrics.
  26530. Each thread will maintain a local rate count, and upon snapshot,
  26531. these values will be aggregated into a global rate. This class
  26532. should only be used for long running threads, as any metrics
  26533. produced between the last snapshot and the death of a thread
  26534. will be lost. This allows for significantly higher concurrency
  26535. than {@link MutableRates}. See HADOOP-24420.]]>
  26536. </doc>
  26537. </class>
  26538. <!-- end class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  26539. <!-- start class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  26540. <class name="MutableRollingAverages" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26541. abstract="false"
  26542. static="false" final="false" visibility="public"
  26543. deprecated="not deprecated">
  26544. <implements name="java.io.Closeable"/>
  26545. <constructor name="MutableRollingAverages" type="java.lang.String"
  26546. static="false" final="false" visibility="public"
  26547. deprecated="not deprecated">
  26548. <doc>
  26549. <![CDATA[Constructor for {@link MutableRollingAverages}.
  26550. @param metricValueName]]>
  26551. </doc>
  26552. </constructor>
  26553. <method name="snapshot"
  26554. abstract="false" native="false" synchronized="false"
  26555. static="false" final="false" visibility="public"
  26556. deprecated="not deprecated">
  26557. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26558. <param name="all" type="boolean"/>
  26559. </method>
  26560. <method name="collectThreadLocalStates"
  26561. abstract="false" native="false" synchronized="false"
  26562. static="false" final="false" visibility="public"
  26563. deprecated="not deprecated">
  26564. <doc>
  26565. <![CDATA[Collects states maintained in {@link ThreadLocal}, if any.]]>
  26566. </doc>
  26567. </method>
  26568. <method name="add"
  26569. abstract="false" native="false" synchronized="false"
  26570. static="false" final="false" visibility="public"
  26571. deprecated="not deprecated">
  26572. <param name="name" type="java.lang.String"/>
  26573. <param name="value" type="long"/>
  26574. <doc>
  26575. <![CDATA[@param name
  26576. name of metric
  26577. @param value
  26578. value of metric]]>
  26579. </doc>
  26580. </method>
  26581. <method name="close"
  26582. abstract="false" native="false" synchronized="false"
  26583. static="false" final="false" visibility="public"
  26584. deprecated="not deprecated">
  26585. <exception name="IOException" type="java.io.IOException"/>
  26586. </method>
  26587. <method name="getStats" return="java.util.Map"
  26588. abstract="false" native="false" synchronized="true"
  26589. static="false" final="false" visibility="public"
  26590. deprecated="not deprecated">
  26591. <param name="minSamples" type="long"/>
  26592. <doc>
  26593. <![CDATA[Retrieve a map of metric name -> (aggregate).
  26594. Filter out entries that don't have at least minSamples.
  26595. @return a map of peer DataNode Id to the average latency to that
  26596. node seen over the measurement period.]]>
  26597. </doc>
  26598. </method>
  26599. <doc>
  26600. <![CDATA[<p>
  26601. This class maintains a group of rolling average metrics. It implements the
  26602. algorithm of rolling average, i.e. a number of sliding windows are kept to
  26603. roll over and evict old subsets of samples. Each window has a subset of
  26604. samples in a stream, where sub-sum and sub-total are collected. All sub-sums
  26605. and sub-totals in all windows will be aggregated to final-sum and final-total
  26606. used to compute final average, which is called rolling average.
  26607. </p>]]>
  26608. </doc>
  26609. </class>
  26610. <!-- end class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  26611. <!-- start class org.apache.hadoop.metrics2.lib.MutableStat -->
  26612. <class name="MutableStat" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26613. abstract="false"
  26614. static="false" final="false" visibility="public"
  26615. deprecated="not deprecated">
  26616. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  26617. static="false" final="false" visibility="public"
  26618. deprecated="not deprecated">
  26619. <doc>
  26620. <![CDATA[Construct a sample statistics metric
  26621. @param name of the metric
  26622. @param description of the metric
  26623. @param sampleName of the metric (e.g. "Ops")
  26624. @param valueName of the metric (e.g. "Time", "Latency")
  26625. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  26626. </doc>
  26627. </constructor>
  26628. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  26629. static="false" final="false" visibility="public"
  26630. deprecated="not deprecated">
  26631. <doc>
  26632. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  26633. @param name of the metric
  26634. @param description of the metric
  26635. @param sampleName of the metric (e.g. "Ops")
  26636. @param valueName of the metric (e.g. "Time", "Latency")]]>
  26637. </doc>
  26638. </constructor>
  26639. <method name="setExtended"
  26640. abstract="false" native="false" synchronized="true"
  26641. static="false" final="false" visibility="public"
  26642. deprecated="not deprecated">
  26643. <param name="extended" type="boolean"/>
  26644. <doc>
  26645. <![CDATA[Set whether to display the extended stats (stdev, min/max etc.) or not
  26646. @param extended enable/disable displaying extended stats]]>
  26647. </doc>
  26648. </method>
  26649. <method name="add"
  26650. abstract="false" native="false" synchronized="true"
  26651. static="false" final="false" visibility="public"
  26652. deprecated="not deprecated">
  26653. <param name="numSamples" type="long"/>
  26654. <param name="sum" type="long"/>
  26655. <doc>
  26656. <![CDATA[Add a number of samples and their sum to the running stat
  26657. Note that although use of this method will preserve accurate mean values,
  26658. large values for numSamples may result in inaccurate variance values due
  26659. to the use of a single step of the Welford method for variance calculation.
  26660. @param numSamples number of samples
  26661. @param sum of the samples]]>
  26662. </doc>
  26663. </method>
  26664. <method name="add"
  26665. abstract="false" native="false" synchronized="true"
  26666. static="false" final="false" visibility="public"
  26667. deprecated="not deprecated">
  26668. <param name="value" type="long"/>
  26669. <doc>
  26670. <![CDATA[Add a snapshot to the metric
  26671. @param value of the metric]]>
  26672. </doc>
  26673. </method>
  26674. <method name="snapshot"
  26675. abstract="false" native="false" synchronized="true"
  26676. static="false" final="false" visibility="public"
  26677. deprecated="not deprecated">
  26678. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26679. <param name="all" type="boolean"/>
  26680. </method>
  26681. <method name="lastStat" return="org.apache.hadoop.metrics2.util.SampleStat"
  26682. abstract="false" native="false" synchronized="false"
  26683. static="false" final="false" visibility="public"
  26684. deprecated="not deprecated">
  26685. <doc>
  26686. <![CDATA[Return a SampleStat object that supports
  26687. calls like StdDev and Mean.
  26688. @return SampleStat]]>
  26689. </doc>
  26690. </method>
  26691. <method name="resetMinMax"
  26692. abstract="false" native="false" synchronized="false"
  26693. static="false" final="false" visibility="public"
  26694. deprecated="not deprecated">
  26695. <doc>
  26696. <![CDATA[Reset the all time min max of the metric]]>
  26697. </doc>
  26698. </method>
  26699. <method name="toString" return="java.lang.String"
  26700. abstract="false" native="false" synchronized="false"
  26701. static="false" final="false" visibility="public"
  26702. deprecated="not deprecated">
  26703. </method>
  26704. <doc>
  26705. <![CDATA[A mutable metric with stats.
  26706. Useful for keeping throughput/latency stats.]]>
  26707. </doc>
  26708. </class>
  26709. <!-- end class org.apache.hadoop.metrics2.lib.MutableStat -->
  26710. </package>
  26711. <package name="org.apache.hadoop.metrics2.sink">
  26712. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  26713. <class name="FileSink" extends="java.lang.Object"
  26714. abstract="false"
  26715. static="false" final="false" visibility="public"
  26716. deprecated="not deprecated">
  26717. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26718. <implements name="java.io.Closeable"/>
  26719. <constructor name="FileSink"
  26720. static="false" final="false" visibility="public"
  26721. deprecated="not deprecated">
  26722. </constructor>
  26723. <method name="init"
  26724. abstract="false" native="false" synchronized="false"
  26725. static="false" final="false" visibility="public"
  26726. deprecated="not deprecated">
  26727. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  26728. </method>
  26729. <method name="putMetrics"
  26730. abstract="false" native="false" synchronized="false"
  26731. static="false" final="false" visibility="public"
  26732. deprecated="not deprecated">
  26733. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26734. </method>
  26735. <method name="flush"
  26736. abstract="false" native="false" synchronized="false"
  26737. static="false" final="false" visibility="public"
  26738. deprecated="not deprecated">
  26739. </method>
  26740. <method name="close"
  26741. abstract="false" native="false" synchronized="false"
  26742. static="false" final="false" visibility="public"
  26743. deprecated="not deprecated">
  26744. <exception name="IOException" type="java.io.IOException"/>
  26745. </method>
  26746. <doc>
  26747. <![CDATA[A metrics sink that writes to a file]]>
  26748. </doc>
  26749. </class>
  26750. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  26751. <!-- start class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  26752. <class name="GraphiteSink" extends="java.lang.Object"
  26753. abstract="false"
  26754. static="false" final="false" visibility="public"
  26755. deprecated="not deprecated">
  26756. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26757. <implements name="java.io.Closeable"/>
  26758. <constructor name="GraphiteSink"
  26759. static="false" final="false" visibility="public"
  26760. deprecated="not deprecated">
  26761. </constructor>
  26762. <method name="init"
  26763. abstract="false" native="false" synchronized="false"
  26764. static="false" final="false" visibility="public"
  26765. deprecated="not deprecated">
  26766. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  26767. </method>
  26768. <method name="putMetrics"
  26769. abstract="false" native="false" synchronized="false"
  26770. static="false" final="false" visibility="public"
  26771. deprecated="not deprecated">
  26772. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26773. </method>
  26774. <method name="flush"
  26775. abstract="false" native="false" synchronized="false"
  26776. static="false" final="false" visibility="public"
  26777. deprecated="not deprecated">
  26778. </method>
  26779. <method name="close"
  26780. abstract="false" native="false" synchronized="false"
  26781. static="false" final="false" visibility="public"
  26782. deprecated="not deprecated">
  26783. <exception name="IOException" type="java.io.IOException"/>
  26784. </method>
  26785. <doc>
  26786. <![CDATA[A metrics sink that writes to a Graphite server]]>
  26787. </doc>
  26788. </class>
  26789. <!-- end class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  26790. <!-- start class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  26791. <class name="RollingFileSystemSink" extends="java.lang.Object"
  26792. abstract="false"
  26793. static="false" final="false" visibility="public"
  26794. deprecated="not deprecated">
  26795. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26796. <implements name="java.io.Closeable"/>
  26797. <constructor name="RollingFileSystemSink"
  26798. static="false" final="false" visibility="public"
  26799. deprecated="not deprecated">
  26800. <doc>
  26801. <![CDATA[Create an empty instance. Required for reflection.]]>
  26802. </doc>
  26803. </constructor>
  26804. <constructor name="RollingFileSystemSink" type="long, long"
  26805. static="false" final="false" visibility="protected"
  26806. deprecated="not deprecated">
  26807. <doc>
  26808. <![CDATA[Create an instance for testing.
  26809. @param flushIntervalMillis the roll interval in millis
  26810. @param flushOffsetIntervalMillis the roll offset interval in millis]]>
  26811. </doc>
  26812. </constructor>
  26813. <method name="init"
  26814. abstract="false" native="false" synchronized="false"
  26815. static="false" final="false" visibility="public"
  26816. deprecated="not deprecated">
  26817. <param name="metrics2Properties" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  26818. </method>
  26819. <method name="getRollInterval" return="long"
  26820. abstract="false" native="false" synchronized="false"
  26821. static="false" final="false" visibility="protected"
  26822. deprecated="not deprecated">
  26823. <doc>
  26824. <![CDATA[Extract the roll interval from the configuration and return it in
  26825. milliseconds.
  26826. @return the roll interval in millis]]>
  26827. </doc>
  26828. </method>
  26829. <method name="updateFlushTime"
  26830. abstract="false" native="false" synchronized="false"
  26831. static="false" final="false" visibility="protected"
  26832. deprecated="not deprecated">
  26833. <param name="now" type="java.util.Date"/>
  26834. <doc>
  26835. <![CDATA[Update the {@link #nextFlush} variable to the next flush time. Add
  26836. an integer number of flush intervals, preserving the initial random offset.
  26837. @param now the current time]]>
  26838. </doc>
  26839. </method>
  26840. <method name="setInitialFlushTime"
  26841. abstract="false" native="false" synchronized="false"
  26842. static="false" final="false" visibility="protected"
  26843. deprecated="not deprecated">
  26844. <param name="now" type="java.util.Date"/>
  26845. <doc>
  26846. <![CDATA[Set the {@link #nextFlush} variable to the initial flush time. The initial
  26847. flush will be an integer number of flush intervals past the beginning of
  26848. the current hour and will have a random offset added, up to
  26849. {@link #rollOffsetIntervalMillis}. The initial flush will be a time in
  26850. past that can be used from which to calculate future flush times.
  26851. @param now the current time]]>
  26852. </doc>
  26853. </method>
  26854. <method name="putMetrics"
  26855. abstract="false" native="false" synchronized="false"
  26856. static="false" final="false" visibility="public"
  26857. deprecated="not deprecated">
  26858. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26859. </method>
  26860. <method name="flush"
  26861. abstract="false" native="false" synchronized="false"
  26862. static="false" final="false" visibility="public"
  26863. deprecated="not deprecated">
  26864. </method>
  26865. <method name="close"
  26866. abstract="false" native="false" synchronized="false"
  26867. static="false" final="false" visibility="public"
  26868. deprecated="not deprecated">
  26869. </method>
  26870. <field name="source" type="java.lang.String"
  26871. transient="false" volatile="false"
  26872. static="false" final="false" visibility="protected"
  26873. deprecated="not deprecated">
  26874. </field>
  26875. <field name="ignoreError" type="boolean"
  26876. transient="false" volatile="false"
  26877. static="false" final="false" visibility="protected"
  26878. deprecated="not deprecated">
  26879. </field>
  26880. <field name="allowAppend" type="boolean"
  26881. transient="false" volatile="false"
  26882. static="false" final="false" visibility="protected"
  26883. deprecated="not deprecated">
  26884. </field>
  26885. <field name="basePath" type="org.apache.hadoop.fs.Path"
  26886. transient="false" volatile="false"
  26887. static="false" final="false" visibility="protected"
  26888. deprecated="not deprecated">
  26889. </field>
  26890. <field name="rollIntervalMillis" type="long"
  26891. transient="false" volatile="false"
  26892. static="false" final="false" visibility="protected"
  26893. deprecated="not deprecated">
  26894. </field>
  26895. <field name="rollOffsetIntervalMillis" type="long"
  26896. transient="false" volatile="false"
  26897. static="false" final="false" visibility="protected"
  26898. deprecated="not deprecated">
  26899. </field>
  26900. <field name="nextFlush" type="java.util.Calendar"
  26901. transient="false" volatile="false"
  26902. static="false" final="false" visibility="protected"
  26903. deprecated="not deprecated">
  26904. </field>
  26905. <field name="forceFlush" type="boolean"
  26906. transient="false" volatile="false"
  26907. static="true" final="false" visibility="protected"
  26908. deprecated="not deprecated">
  26909. </field>
  26910. <field name="hasFlushed" type="boolean"
  26911. transient="false" volatile="true"
  26912. static="true" final="false" visibility="protected"
  26913. deprecated="not deprecated">
  26914. </field>
  26915. <field name="suppliedConf" type="org.apache.hadoop.conf.Configuration"
  26916. transient="false" volatile="false"
  26917. static="true" final="false" visibility="protected"
  26918. deprecated="not deprecated">
  26919. </field>
  26920. <field name="suppliedFilesystem" type="org.apache.hadoop.fs.FileSystem"
  26921. transient="false" volatile="false"
  26922. static="true" final="false" visibility="protected"
  26923. deprecated="not deprecated">
  26924. </field>
  26925. <doc>
  26926. <![CDATA[<p>This class is a metrics sink that uses
  26927. {@link org.apache.hadoop.fs.FileSystem} to write the metrics logs. Every
  26928. roll interval a new directory will be created under the path specified by the
  26929. <code>basepath</code> property. All metrics will be logged to a file in the
  26930. current interval's directory in a file named &lt;hostname&gt;.log, where
  26931. &lt;hostname&gt; is the name of the host on which the metrics logging
  26932. process is running. The base path is set by the
  26933. <code>&lt;prefix&gt;.sink.&lt;instance&gt;.basepath</code> property. The
  26934. time zone used to create the current interval's directory name is GMT. If
  26935. the <code>basepath</code> property isn't specified, it will default to
  26936. &quot;/tmp&quot;, which is the temp directory on whatever default file
  26937. system is configured for the cluster.</p>
  26938. <p>The <code>&lt;prefix&gt;.sink.&lt;instance&gt;.ignore-error</code>
  26939. property controls whether an exception is thrown when an error is encountered
  26940. writing a log file. The default value is <code>true</code>. When set to
  26941. <code>false</code>, file errors are quietly swallowed.</p>
  26942. <p>The <code>roll-interval</code> property sets the amount of time before
  26943. rolling the directory. The default value is 1 hour. The roll interval may
  26944. not be less than 1 minute. The property's value should be given as
  26945. <i>number unit</i>, where <i>number</i> is an integer value, and
  26946. <i>unit</i> is a valid unit. Valid units are <i>minute</i>, <i>hour</i>,
  26947. and <i>day</i>. The units are case insensitive and may be abbreviated or
  26948. plural. If no units are specified, hours are assumed. For example,
  26949. &quot;2&quot;, &quot;2h&quot;, &quot;2 hour&quot;, and
  26950. &quot;2 hours&quot; are all valid ways to specify two hours.</p>
  26951. <p>The <code>roll-offset-interval-millis</code> property sets the upper
  26952. bound on a random time interval (in milliseconds) that is used to delay
  26953. before the initial roll. All subsequent rolls will happen an integer
  26954. number of roll intervals after the initial roll, hence retaining the original
  26955. offset. The purpose of this property is to insert some variance in the roll
  26956. times so that large clusters using this sink on every node don't cause a
  26957. performance impact on HDFS by rolling simultaneously. The default value is
  26958. 30000 (30s). When writing to HDFS, as a rule of thumb, the roll offset in
  26959. millis should be no less than the number of sink instances times 5.
  26960. <p>The primary use of this class is for logging to HDFS. As it uses
  26961. {@link org.apache.hadoop.fs.FileSystem} to access the target file system,
  26962. however, it can be used to write to the local file system, Amazon S3, or any
  26963. other supported file system. The base path for the sink will determine the
  26964. file system used. An unqualified path will write to the default file system
  26965. set by the configuration.</p>
  26966. <p>Not all file systems support the ability to append to files. In file
  26967. systems without the ability to append to files, only one writer can write to
  26968. a file at a time. To allow for concurrent writes from multiple daemons on a
  26969. single host, the <code>source</code> property is used to set unique headers
  26970. for the log files. The property should be set to the name of
  26971. the source daemon, e.g. <i>namenode</i>. The value of the
  26972. <code>source</code> property should typically be the same as the property's
  26973. prefix. If this property is not set, the source is taken to be
  26974. <i>unknown</i>.</p>
  26975. <p>Instead of appending to an existing file, by default the sink
  26976. will create a new file with a suffix of &quot;.&lt;n&gt;&quet;, where
  26977. <i>n</i> is the next lowest integer that isn't already used in a file name,
  26978. similar to the Hadoop daemon logs. NOTE: the file with the <b>highest</b>
  26979. sequence number is the <b>newest</b> file, unlike the Hadoop daemon logs.</p>
  26980. <p>For file systems that allow append, the sink supports appending to the
  26981. existing file instead. If the <code>allow-append</code> property is set to
  26982. true, the sink will instead append to the existing file on file systems that
  26983. support appends. By default, the <code>allow-append</code> property is
  26984. false.</p>
  26985. <p>Note that when writing to HDFS with <code>allow-append</code> set to true,
  26986. there is a minimum acceptable number of data nodes. If the number of data
  26987. nodes drops below that minimum, the append will succeed, but reading the
  26988. data will fail with an IOException in the DataStreamer class. The minimum
  26989. number of data nodes required for a successful append is generally 2 or
  26990. 3.</p>
  26991. <p>Note also that when writing to HDFS, the file size information is not
  26992. updated until the file is closed (at the end of the interval) even though
  26993. the data is being written successfully. This is a known HDFS limitation that
  26994. exists because of the performance cost of updating the metadata. See
  26995. <a href="https://issues.apache.org/jira/browse/HDFS-5478">HDFS-5478</a>.</p>
  26996. <p>When using this sink in a secure (Kerberos) environment, two additional
  26997. properties must be set: <code>keytab-key</code> and
  26998. <code>principal-key</code>. <code>keytab-key</code> should contain the key by
  26999. which the keytab file can be found in the configuration, for example,
  27000. <code>yarn.nodemanager.keytab</code>. <code>principal-key</code> should
  27001. contain the key by which the principal can be found in the configuration,
  27002. for example, <code>yarn.nodemanager.principal</code>.]]>
  27003. </doc>
  27004. </class>
  27005. <!-- end class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  27006. <!-- start class org.apache.hadoop.metrics2.sink.StatsDSink -->
  27007. <class name="StatsDSink" extends="java.lang.Object"
  27008. abstract="false"
  27009. static="false" final="false" visibility="public"
  27010. deprecated="not deprecated">
  27011. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  27012. <implements name="java.io.Closeable"/>
  27013. <constructor name="StatsDSink"
  27014. static="false" final="false" visibility="public"
  27015. deprecated="not deprecated">
  27016. </constructor>
  27017. <method name="init"
  27018. abstract="false" native="false" synchronized="false"
  27019. static="false" final="false" visibility="public"
  27020. deprecated="not deprecated">
  27021. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  27022. </method>
  27023. <method name="putMetrics"
  27024. abstract="false" native="false" synchronized="false"
  27025. static="false" final="false" visibility="public"
  27026. deprecated="not deprecated">
  27027. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27028. </method>
  27029. <method name="writeMetric"
  27030. abstract="false" native="false" synchronized="false"
  27031. static="false" final="false" visibility="public"
  27032. deprecated="not deprecated">
  27033. <param name="line" type="java.lang.String"/>
  27034. </method>
  27035. <method name="flush"
  27036. abstract="false" native="false" synchronized="false"
  27037. static="false" final="false" visibility="public"
  27038. deprecated="not deprecated">
  27039. </method>
  27040. <method name="close"
  27041. abstract="false" native="false" synchronized="false"
  27042. static="false" final="false" visibility="public"
  27043. deprecated="not deprecated">
  27044. <exception name="IOException" type="java.io.IOException"/>
  27045. </method>
  27046. <doc>
  27047. <![CDATA[A metrics sink that writes metrics to a StatsD daemon.
  27048. This sink will produce metrics of the form
  27049. '[hostname].servicename.context.name.metricname:value|type'
  27050. where hostname is optional. This is useful when sending to
  27051. a daemon that is running on the localhost and will add the
  27052. hostname to the metric (such as the
  27053. <a href="https://collectd.org/">CollectD</a> StatsD plugin).
  27054. <br/>
  27055. To configure this plugin, you will need to add the following
  27056. entries to your hadoop-metrics2.properties file:
  27057. <br/>
  27058. <pre>
  27059. *.sink.statsd.class=org.apache.hadoop.metrics2.sink.StatsDSink
  27060. [prefix].sink.statsd.server.host=
  27061. [prefix].sink.statsd.server.port=
  27062. [prefix].sink.statsd.skip.hostname=true|false (optional)
  27063. [prefix].sink.statsd.service.name=NameNode (name you want for service)
  27064. </pre>]]>
  27065. </doc>
  27066. </class>
  27067. <!-- end class org.apache.hadoop.metrics2.sink.StatsDSink -->
  27068. </package>
  27069. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  27070. </package>
  27071. <package name="org.apache.hadoop.metrics2.source">
  27072. </package>
  27073. <package name="org.apache.hadoop.metrics2.util">
  27074. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  27075. <class name="MBeans" extends="java.lang.Object"
  27076. abstract="false"
  27077. static="false" final="true" visibility="public"
  27078. deprecated="not deprecated">
  27079. <method name="register" return="javax.management.ObjectName"
  27080. abstract="false" native="false" synchronized="false"
  27081. static="true" final="false" visibility="public"
  27082. deprecated="not deprecated">
  27083. <param name="serviceName" type="java.lang.String"/>
  27084. <param name="nameName" type="java.lang.String"/>
  27085. <param name="theMbean" type="java.lang.Object"/>
  27086. <doc>
  27087. <![CDATA[Register the MBean using our standard MBeanName format
  27088. "hadoop:service=<serviceName>,name=<nameName>"
  27089. Where the <serviceName> and <nameName> are the supplied parameters.
  27090. @param serviceName
  27091. @param nameName
  27092. @param theMbean - the MBean to register
  27093. @return the named used to register the MBean]]>
  27094. </doc>
  27095. </method>
  27096. <method name="register" return="javax.management.ObjectName"
  27097. abstract="false" native="false" synchronized="false"
  27098. static="true" final="false" visibility="public"
  27099. deprecated="not deprecated">
  27100. <param name="serviceName" type="java.lang.String"/>
  27101. <param name="nameName" type="java.lang.String"/>
  27102. <param name="properties" type="java.util.Map"/>
  27103. <param name="theMbean" type="java.lang.Object"/>
  27104. <doc>
  27105. <![CDATA[Register the MBean using our standard MBeanName format
  27106. "hadoop:service=<serviceName>,name=<nameName>"
  27107. Where the <serviceName> and <nameName> are the supplied parameters.
  27108. @param serviceName
  27109. @param nameName
  27110. @param properties - Key value pairs to define additional JMX ObjectName
  27111. properties.
  27112. @param theMbean - the MBean to register
  27113. @return the named used to register the MBean]]>
  27114. </doc>
  27115. </method>
  27116. <method name="getMbeanNameService" return="java.lang.String"
  27117. abstract="false" native="false" synchronized="false"
  27118. static="true" final="false" visibility="public"
  27119. deprecated="not deprecated">
  27120. <param name="objectName" type="javax.management.ObjectName"/>
  27121. </method>
  27122. <method name="getMbeanNameName" return="java.lang.String"
  27123. abstract="false" native="false" synchronized="false"
  27124. static="true" final="false" visibility="public"
  27125. deprecated="not deprecated">
  27126. <param name="objectName" type="javax.management.ObjectName"/>
  27127. </method>
  27128. <method name="unregister"
  27129. abstract="false" native="false" synchronized="false"
  27130. static="true" final="false" visibility="public"
  27131. deprecated="not deprecated">
  27132. <param name="mbeanName" type="javax.management.ObjectName"/>
  27133. </method>
  27134. <doc>
  27135. <![CDATA[This util class provides a method to register an MBean using
  27136. our standard naming convention as described in the doc
  27137. for {link {@link #register(String, String, Object)}.]]>
  27138. </doc>
  27139. </class>
  27140. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  27141. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  27142. <class name="MetricsCache" extends="java.lang.Object"
  27143. abstract="false"
  27144. static="false" final="false" visibility="public"
  27145. deprecated="not deprecated">
  27146. <constructor name="MetricsCache"
  27147. static="false" final="false" visibility="public"
  27148. deprecated="not deprecated">
  27149. </constructor>
  27150. <constructor name="MetricsCache" type="int"
  27151. static="false" final="false" visibility="public"
  27152. deprecated="not deprecated">
  27153. <doc>
  27154. <![CDATA[Construct a metrics cache
  27155. @param maxRecsPerName limit of the number records per record name]]>
  27156. </doc>
  27157. </constructor>
  27158. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  27159. abstract="false" native="false" synchronized="false"
  27160. static="false" final="false" visibility="public"
  27161. deprecated="not deprecated">
  27162. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27163. <param name="includingTags" type="boolean"/>
  27164. <doc>
  27165. <![CDATA[Update the cache and return the current cached record
  27166. @param mr the update record
  27167. @param includingTags cache tag values (for later lookup by name) if true
  27168. @return the updated cache record]]>
  27169. </doc>
  27170. </method>
  27171. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  27172. abstract="false" native="false" synchronized="false"
  27173. static="false" final="false" visibility="public"
  27174. deprecated="not deprecated">
  27175. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27176. <doc>
  27177. <![CDATA[Update the cache and return the current cache record
  27178. @param mr the update record
  27179. @return the updated cache record]]>
  27180. </doc>
  27181. </method>
  27182. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  27183. abstract="false" native="false" synchronized="false"
  27184. static="false" final="false" visibility="public"
  27185. deprecated="not deprecated">
  27186. <param name="name" type="java.lang.String"/>
  27187. <param name="tags" type="java.util.Collection"/>
  27188. <doc>
  27189. <![CDATA[Get the cached record
  27190. @param name of the record
  27191. @param tags of the record
  27192. @return the cached record or null]]>
  27193. </doc>
  27194. </method>
  27195. <doc>
  27196. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  27197. </doc>
  27198. </class>
  27199. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  27200. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  27201. <class name="Servers" extends="java.lang.Object"
  27202. abstract="false"
  27203. static="false" final="false" visibility="public"
  27204. deprecated="not deprecated">
  27205. <method name="parse" return="java.util.List"
  27206. abstract="false" native="false" synchronized="false"
  27207. static="true" final="false" visibility="public"
  27208. deprecated="not deprecated">
  27209. <param name="specs" type="java.lang.String"/>
  27210. <param name="defaultPort" type="int"/>
  27211. <doc>
  27212. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  27213. of the form <i>hostname</i> or <i>hostname:port</i>. If
  27214. the specs string is null, defaults to localhost:defaultPort.
  27215. @param specs server specs (see description)
  27216. @param defaultPort the default port if not specified
  27217. @return a list of InetSocketAddress objects.]]>
  27218. </doc>
  27219. </method>
  27220. <doc>
  27221. <![CDATA[Helpers to handle server addresses]]>
  27222. </doc>
  27223. </class>
  27224. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  27225. </package>
  27226. <package name="org.apache.hadoop.net">
  27227. <!-- start class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  27228. <class name="AbstractDNSToSwitchMapping" extends="java.lang.Object"
  27229. abstract="true"
  27230. static="false" final="false" visibility="public"
  27231. deprecated="not deprecated">
  27232. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  27233. <implements name="org.apache.hadoop.conf.Configurable"/>
  27234. <constructor name="AbstractDNSToSwitchMapping"
  27235. static="false" final="false" visibility="protected"
  27236. deprecated="not deprecated">
  27237. <doc>
  27238. <![CDATA[Create an unconfigured instance]]>
  27239. </doc>
  27240. </constructor>
  27241. <constructor name="AbstractDNSToSwitchMapping" type="org.apache.hadoop.conf.Configuration"
  27242. static="false" final="false" visibility="protected"
  27243. deprecated="not deprecated">
  27244. <doc>
  27245. <![CDATA[Create an instance, caching the configuration file.
  27246. This constructor does not call {@link #setConf(Configuration)}; if
  27247. a subclass extracts information in that method, it must call it explicitly.
  27248. @param conf the configuration]]>
  27249. </doc>
  27250. </constructor>
  27251. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27252. abstract="false" native="false" synchronized="false"
  27253. static="false" final="false" visibility="public"
  27254. deprecated="not deprecated">
  27255. </method>
  27256. <method name="setConf"
  27257. abstract="false" native="false" synchronized="false"
  27258. static="false" final="false" visibility="public"
  27259. deprecated="not deprecated">
  27260. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27261. </method>
  27262. <method name="isSingleSwitch" return="boolean"
  27263. abstract="false" native="false" synchronized="false"
  27264. static="false" final="false" visibility="public"
  27265. deprecated="not deprecated">
  27266. <doc>
  27267. <![CDATA[Predicate that indicates that the switch mapping is known to be
  27268. single-switch. The base class returns false: it assumes all mappings are
  27269. multi-rack. Subclasses may override this with methods that are more aware
  27270. of their topologies.
  27271. <p/>
  27272. This method is used when parts of Hadoop need know whether to apply
  27273. single rack vs multi-rack policies, such as during block placement.
  27274. Such algorithms behave differently if they are on multi-switch systems.
  27275. </p>
  27276. @return true if the mapping thinks that it is on a single switch]]>
  27277. </doc>
  27278. </method>
  27279. <method name="getSwitchMap" return="java.util.Map"
  27280. abstract="false" native="false" synchronized="false"
  27281. static="false" final="false" visibility="public"
  27282. deprecated="not deprecated">
  27283. <doc>
  27284. <![CDATA[Get a copy of the map (for diagnostics)
  27285. @return a clone of the map or null for none known]]>
  27286. </doc>
  27287. </method>
  27288. <method name="dumpTopology" return="java.lang.String"
  27289. abstract="false" native="false" synchronized="false"
  27290. static="false" final="false" visibility="public"
  27291. deprecated="not deprecated">
  27292. <doc>
  27293. <![CDATA[Generate a string listing the switch mapping implementation,
  27294. the mapping for every known node and the number of nodes and
  27295. unique switches known about -each entry to a separate line.
  27296. @return a string that can be presented to the ops team or used in
  27297. debug messages.]]>
  27298. </doc>
  27299. </method>
  27300. <method name="isSingleSwitchByScriptPolicy" return="boolean"
  27301. abstract="false" native="false" synchronized="false"
  27302. static="false" final="false" visibility="protected"
  27303. deprecated="not deprecated">
  27304. </method>
  27305. <method name="isMappingSingleSwitch" return="boolean"
  27306. abstract="false" native="false" synchronized="false"
  27307. static="true" final="false" visibility="public"
  27308. deprecated="not deprecated">
  27309. <param name="mapping" type="org.apache.hadoop.net.DNSToSwitchMapping"/>
  27310. <doc>
  27311. <![CDATA[Query for a {@link DNSToSwitchMapping} instance being on a single
  27312. switch.
  27313. <p/>
  27314. This predicate simply assumes that all mappings not derived from
  27315. this class are multi-switch.
  27316. @param mapping the mapping to query
  27317. @return true if the base class says it is single switch, or the mapping
  27318. is not derived from this class.]]>
  27319. </doc>
  27320. </method>
  27321. <doc>
  27322. <![CDATA[This is a base class for DNS to Switch mappings. <p/> It is not mandatory to
  27323. derive {@link DNSToSwitchMapping} implementations from it, but it is strongly
  27324. recommended, as it makes it easy for the Hadoop developers to add new methods
  27325. to this base class that are automatically picked up by all implementations.
  27326. <p/>
  27327. This class does not extend the <code>Configured</code>
  27328. base class, and should not be changed to do so, as it causes problems
  27329. for subclasses. The constructor of the <code>Configured</code> calls
  27330. the {@link #setConf(Configuration)} method, which will call into the
  27331. subclasses before they have been fully constructed.]]>
  27332. </doc>
  27333. </class>
  27334. <!-- end class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  27335. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  27336. <class name="CachedDNSToSwitchMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  27337. abstract="false"
  27338. static="false" final="false" visibility="public"
  27339. deprecated="not deprecated">
  27340. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  27341. static="false" final="false" visibility="public"
  27342. deprecated="not deprecated">
  27343. <doc>
  27344. <![CDATA[cache a raw DNS mapping
  27345. @param rawMapping the raw mapping to cache]]>
  27346. </doc>
  27347. </constructor>
  27348. <method name="resolve" return="java.util.List"
  27349. abstract="false" native="false" synchronized="false"
  27350. static="false" final="false" visibility="public"
  27351. deprecated="not deprecated">
  27352. <param name="names" type="java.util.List"/>
  27353. </method>
  27354. <method name="getSwitchMap" return="java.util.Map"
  27355. abstract="false" native="false" synchronized="false"
  27356. static="false" final="false" visibility="public"
  27357. deprecated="not deprecated">
  27358. <doc>
  27359. <![CDATA[Get the (host x switch) map.
  27360. @return a copy of the cached map of hosts to rack]]>
  27361. </doc>
  27362. </method>
  27363. <method name="toString" return="java.lang.String"
  27364. abstract="false" native="false" synchronized="false"
  27365. static="false" final="false" visibility="public"
  27366. deprecated="not deprecated">
  27367. </method>
  27368. <method name="isSingleSwitch" return="boolean"
  27369. abstract="false" native="false" synchronized="false"
  27370. static="false" final="false" visibility="public"
  27371. deprecated="not deprecated">
  27372. <doc>
  27373. <![CDATA[Delegate the switch topology query to the raw mapping, via
  27374. {@link AbstractDNSToSwitchMapping#isMappingSingleSwitch(DNSToSwitchMapping)}
  27375. @return true iff the raw mapper is considered single-switch.]]>
  27376. </doc>
  27377. </method>
  27378. <method name="reloadCachedMappings"
  27379. abstract="false" native="false" synchronized="false"
  27380. static="false" final="false" visibility="public"
  27381. deprecated="not deprecated">
  27382. </method>
  27383. <method name="reloadCachedMappings"
  27384. abstract="false" native="false" synchronized="false"
  27385. static="false" final="false" visibility="public"
  27386. deprecated="not deprecated">
  27387. <param name="names" type="java.util.List"/>
  27388. </method>
  27389. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  27390. transient="false" volatile="false"
  27391. static="false" final="true" visibility="protected"
  27392. deprecated="not deprecated">
  27393. <doc>
  27394. <![CDATA[The uncached mapping]]>
  27395. </doc>
  27396. </field>
  27397. <doc>
  27398. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  27399. raw DNSToSwitchMapping and stores the resolved network location in
  27400. a cache. The following calls to a resolved network location
  27401. will get its location from the cache.]]>
  27402. </doc>
  27403. </class>
  27404. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  27405. <!-- start class org.apache.hadoop.net.ConnectTimeoutException -->
  27406. <class name="ConnectTimeoutException" extends="java.net.SocketTimeoutException"
  27407. abstract="false"
  27408. static="false" final="false" visibility="public"
  27409. deprecated="not deprecated">
  27410. <constructor name="ConnectTimeoutException" type="java.lang.String"
  27411. static="false" final="false" visibility="public"
  27412. deprecated="not deprecated">
  27413. </constructor>
  27414. <doc>
  27415. <![CDATA[Thrown by {@link NetUtils#connect(java.net.Socket, java.net.SocketAddress, int)}
  27416. if it times out while connecting to the remote host.]]>
  27417. </doc>
  27418. </class>
  27419. <!-- end class org.apache.hadoop.net.ConnectTimeoutException -->
  27420. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  27421. <interface name="DNSToSwitchMapping" abstract="true"
  27422. static="false" final="false" visibility="public"
  27423. deprecated="not deprecated">
  27424. <method name="resolve" return="java.util.List"
  27425. abstract="true" native="false" synchronized="false"
  27426. static="false" final="false" visibility="public"
  27427. deprecated="not deprecated">
  27428. <param name="names" type="java.util.List"/>
  27429. <doc>
  27430. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  27431. switch information (network paths). One-to-one correspondence must be
  27432. maintained between the elements in the lists.
  27433. Consider an element in the argument list - x.y.com. The switch information
  27434. that is returned must be a network path of the form /foo/rack,
  27435. where / is the root, and 'foo' is the switch where 'rack' is connected.
  27436. Note the hostname/ip-address is not part of the returned path.
  27437. The network topology of the cluster would determine the number of
  27438. components in the network path.
  27439. <p/>
  27440. If a name cannot be resolved to a rack, the implementation
  27441. should return {@link NetworkTopology#DEFAULT_RACK}. This
  27442. is what the bundled implementations do, though it is not a formal requirement
  27443. @param names the list of hosts to resolve (can be empty)
  27444. @return list of resolved network paths.
  27445. If <i>names</i> is empty, the returned list is also empty]]>
  27446. </doc>
  27447. </method>
  27448. <method name="reloadCachedMappings"
  27449. abstract="true" native="false" synchronized="false"
  27450. static="false" final="false" visibility="public"
  27451. deprecated="not deprecated">
  27452. <doc>
  27453. <![CDATA[Reload all of the cached mappings.
  27454. If there is a cache, this method will clear it, so that future accesses
  27455. will get a chance to see the new data.]]>
  27456. </doc>
  27457. </method>
  27458. <method name="reloadCachedMappings"
  27459. abstract="true" native="false" synchronized="false"
  27460. static="false" final="false" visibility="public"
  27461. deprecated="not deprecated">
  27462. <param name="names" type="java.util.List"/>
  27463. <doc>
  27464. <![CDATA[Reload cached mappings on specific nodes.
  27465. If there is a cache on these nodes, this method will clear it, so that
  27466. future accesses will see updated data.]]>
  27467. </doc>
  27468. </method>
  27469. <doc>
  27470. <![CDATA[An interface that must be implemented to allow pluggable
  27471. DNS-name/IP-address to RackID resolvers.]]>
  27472. </doc>
  27473. </interface>
  27474. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  27475. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  27476. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  27477. abstract="false"
  27478. static="false" final="false" visibility="public"
  27479. deprecated="not deprecated">
  27480. <constructor name="ScriptBasedMapping"
  27481. static="false" final="false" visibility="public"
  27482. deprecated="not deprecated">
  27483. <doc>
  27484. <![CDATA[Create an instance with the default configuration.
  27485. </p>
  27486. Calling {@link #setConf(Configuration)} will trigger a
  27487. re-evaluation of the configuration settings and so be used to
  27488. set up the mapping script.]]>
  27489. </doc>
  27490. </constructor>
  27491. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  27492. static="false" final="false" visibility="public"
  27493. deprecated="not deprecated">
  27494. <doc>
  27495. <![CDATA[Create an instance from the given raw mapping
  27496. @param rawMap raw DNSTOSwithMapping]]>
  27497. </doc>
  27498. </constructor>
  27499. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  27500. static="false" final="false" visibility="public"
  27501. deprecated="not deprecated">
  27502. <doc>
  27503. <![CDATA[Create an instance from the given configuration
  27504. @param conf configuration]]>
  27505. </doc>
  27506. </constructor>
  27507. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27508. abstract="false" native="false" synchronized="false"
  27509. static="false" final="false" visibility="public"
  27510. deprecated="not deprecated">
  27511. </method>
  27512. <method name="toString" return="java.lang.String"
  27513. abstract="false" native="false" synchronized="false"
  27514. static="false" final="false" visibility="public"
  27515. deprecated="not deprecated">
  27516. </method>
  27517. <method name="setConf"
  27518. abstract="false" native="false" synchronized="false"
  27519. static="false" final="false" visibility="public"
  27520. deprecated="not deprecated">
  27521. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27522. <doc>
  27523. <![CDATA[{@inheritDoc}
  27524. <p/>
  27525. This will get called in the superclass constructor, so a check is needed
  27526. to ensure that the raw mapping is defined before trying to relaying a null
  27527. configuration.
  27528. @param conf]]>
  27529. </doc>
  27530. </method>
  27531. <field name="NO_SCRIPT" type="java.lang.String"
  27532. transient="false" volatile="false"
  27533. static="true" final="true" visibility="public"
  27534. deprecated="not deprecated">
  27535. <doc>
  27536. <![CDATA[Text used in the {@link #toString()} method if there is no string
  27537. {@value}]]>
  27538. </doc>
  27539. </field>
  27540. <doc>
  27541. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  27542. script configured via the
  27543. {@link CommonConfigurationKeys#NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY} option.
  27544. <p/>
  27545. It contains a static class <code>RawScriptBasedMapping</code> that performs
  27546. the work: reading the configuration parameters, executing any defined
  27547. script, handling errors and such like. The outer
  27548. class extends {@link CachedDNSToSwitchMapping} to cache the delegated
  27549. queries.
  27550. <p/>
  27551. This DNS mapper's {@link #isSingleSwitch()} predicate returns
  27552. true if and only if a script is defined.]]>
  27553. </doc>
  27554. </class>
  27555. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  27556. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  27557. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  27558. abstract="false"
  27559. static="false" final="false" visibility="public"
  27560. deprecated="not deprecated">
  27561. <implements name="org.apache.hadoop.conf.Configurable"/>
  27562. <constructor name="SocksSocketFactory"
  27563. static="false" final="false" visibility="public"
  27564. deprecated="not deprecated">
  27565. <doc>
  27566. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  27567. </doc>
  27568. </constructor>
  27569. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  27570. static="false" final="false" visibility="public"
  27571. deprecated="not deprecated">
  27572. <doc>
  27573. <![CDATA[Constructor with a supplied Proxy
  27574. @param proxy the proxy to use to create sockets]]>
  27575. </doc>
  27576. </constructor>
  27577. <method name="createSocket" return="java.net.Socket"
  27578. abstract="false" native="false" synchronized="false"
  27579. static="false" final="false" visibility="public"
  27580. deprecated="not deprecated">
  27581. <exception name="IOException" type="java.io.IOException"/>
  27582. </method>
  27583. <method name="createSocket" return="java.net.Socket"
  27584. abstract="false" native="false" synchronized="false"
  27585. static="false" final="false" visibility="public"
  27586. deprecated="not deprecated">
  27587. <param name="addr" type="java.net.InetAddress"/>
  27588. <param name="port" type="int"/>
  27589. <exception name="IOException" type="java.io.IOException"/>
  27590. </method>
  27591. <method name="createSocket" return="java.net.Socket"
  27592. abstract="false" native="false" synchronized="false"
  27593. static="false" final="false" visibility="public"
  27594. deprecated="not deprecated">
  27595. <param name="addr" type="java.net.InetAddress"/>
  27596. <param name="port" type="int"/>
  27597. <param name="localHostAddr" type="java.net.InetAddress"/>
  27598. <param name="localPort" type="int"/>
  27599. <exception name="IOException" type="java.io.IOException"/>
  27600. </method>
  27601. <method name="createSocket" return="java.net.Socket"
  27602. abstract="false" native="false" synchronized="false"
  27603. static="false" final="false" visibility="public"
  27604. deprecated="not deprecated">
  27605. <param name="host" type="java.lang.String"/>
  27606. <param name="port" type="int"/>
  27607. <exception name="IOException" type="java.io.IOException"/>
  27608. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27609. </method>
  27610. <method name="createSocket" return="java.net.Socket"
  27611. abstract="false" native="false" synchronized="false"
  27612. static="false" final="false" visibility="public"
  27613. deprecated="not deprecated">
  27614. <param name="host" type="java.lang.String"/>
  27615. <param name="port" type="int"/>
  27616. <param name="localHostAddr" type="java.net.InetAddress"/>
  27617. <param name="localPort" type="int"/>
  27618. <exception name="IOException" type="java.io.IOException"/>
  27619. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27620. </method>
  27621. <method name="hashCode" return="int"
  27622. abstract="false" native="false" synchronized="false"
  27623. static="false" final="false" visibility="public"
  27624. deprecated="not deprecated">
  27625. </method>
  27626. <method name="equals" return="boolean"
  27627. abstract="false" native="false" synchronized="false"
  27628. static="false" final="false" visibility="public"
  27629. deprecated="not deprecated">
  27630. <param name="obj" type="java.lang.Object"/>
  27631. </method>
  27632. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27633. abstract="false" native="false" synchronized="false"
  27634. static="false" final="false" visibility="public"
  27635. deprecated="not deprecated">
  27636. </method>
  27637. <method name="setConf"
  27638. abstract="false" native="false" synchronized="false"
  27639. static="false" final="false" visibility="public"
  27640. deprecated="not deprecated">
  27641. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27642. </method>
  27643. <doc>
  27644. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  27645. </doc>
  27646. </class>
  27647. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  27648. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  27649. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  27650. abstract="false"
  27651. static="false" final="false" visibility="public"
  27652. deprecated="not deprecated">
  27653. <constructor name="StandardSocketFactory"
  27654. static="false" final="false" visibility="public"
  27655. deprecated="not deprecated">
  27656. <doc>
  27657. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  27658. </doc>
  27659. </constructor>
  27660. <method name="createSocket" return="java.net.Socket"
  27661. abstract="false" native="false" synchronized="false"
  27662. static="false" final="false" visibility="public"
  27663. deprecated="not deprecated">
  27664. <exception name="IOException" type="java.io.IOException"/>
  27665. </method>
  27666. <method name="createSocket" return="java.net.Socket"
  27667. abstract="false" native="false" synchronized="false"
  27668. static="false" final="false" visibility="public"
  27669. deprecated="not deprecated">
  27670. <param name="addr" type="java.net.InetAddress"/>
  27671. <param name="port" type="int"/>
  27672. <exception name="IOException" type="java.io.IOException"/>
  27673. </method>
  27674. <method name="createSocket" return="java.net.Socket"
  27675. abstract="false" native="false" synchronized="false"
  27676. static="false" final="false" visibility="public"
  27677. deprecated="not deprecated">
  27678. <param name="addr" type="java.net.InetAddress"/>
  27679. <param name="port" type="int"/>
  27680. <param name="localHostAddr" type="java.net.InetAddress"/>
  27681. <param name="localPort" type="int"/>
  27682. <exception name="IOException" type="java.io.IOException"/>
  27683. </method>
  27684. <method name="createSocket" return="java.net.Socket"
  27685. abstract="false" native="false" synchronized="false"
  27686. static="false" final="false" visibility="public"
  27687. deprecated="not deprecated">
  27688. <param name="host" type="java.lang.String"/>
  27689. <param name="port" type="int"/>
  27690. <exception name="IOException" type="java.io.IOException"/>
  27691. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27692. </method>
  27693. <method name="createSocket" return="java.net.Socket"
  27694. abstract="false" native="false" synchronized="false"
  27695. static="false" final="false" visibility="public"
  27696. deprecated="not deprecated">
  27697. <param name="host" type="java.lang.String"/>
  27698. <param name="port" type="int"/>
  27699. <param name="localHostAddr" type="java.net.InetAddress"/>
  27700. <param name="localPort" type="int"/>
  27701. <exception name="IOException" type="java.io.IOException"/>
  27702. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27703. </method>
  27704. <method name="equals" return="boolean"
  27705. abstract="false" native="false" synchronized="false"
  27706. static="false" final="false" visibility="public"
  27707. deprecated="not deprecated">
  27708. <param name="obj" type="java.lang.Object"/>
  27709. </method>
  27710. <method name="hashCode" return="int"
  27711. abstract="false" native="false" synchronized="false"
  27712. static="false" final="false" visibility="public"
  27713. deprecated="not deprecated">
  27714. </method>
  27715. <doc>
  27716. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  27717. </doc>
  27718. </class>
  27719. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  27720. <!-- start class org.apache.hadoop.net.TableMapping -->
  27721. <class name="TableMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  27722. abstract="false"
  27723. static="false" final="false" visibility="public"
  27724. deprecated="not deprecated">
  27725. <constructor name="TableMapping"
  27726. static="false" final="false" visibility="public"
  27727. deprecated="not deprecated">
  27728. </constructor>
  27729. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27730. abstract="false" native="false" synchronized="false"
  27731. static="false" final="false" visibility="public"
  27732. deprecated="not deprecated">
  27733. </method>
  27734. <method name="setConf"
  27735. abstract="false" native="false" synchronized="false"
  27736. static="false" final="false" visibility="public"
  27737. deprecated="not deprecated">
  27738. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27739. </method>
  27740. <method name="reloadCachedMappings"
  27741. abstract="false" native="false" synchronized="false"
  27742. static="false" final="false" visibility="public"
  27743. deprecated="not deprecated">
  27744. </method>
  27745. <doc>
  27746. <![CDATA[<p>
  27747. Simple {@link DNSToSwitchMapping} implementation that reads a 2 column text
  27748. file. The columns are separated by whitespace. The first column is a DNS or
  27749. IP address and the second column specifies the rack where the address maps.
  27750. </p>
  27751. <p>
  27752. This class uses the configuration parameter {@code
  27753. net.topology.table.file.name} to locate the mapping file.
  27754. </p>
  27755. <p>
  27756. Calls to {@link #resolve(List)} will look up the address as defined in the
  27757. mapping file. If no entry corresponding to the address is found, the value
  27758. {@code /default-rack} is returned.
  27759. </p>]]>
  27760. </doc>
  27761. </class>
  27762. <!-- end class org.apache.hadoop.net.TableMapping -->
  27763. <doc>
  27764. <![CDATA[Network-related classes.]]>
  27765. </doc>
  27766. </package>
  27767. <package name="org.apache.hadoop.net.unix">
  27768. </package>
  27769. <package name="org.apache.hadoop.security">
  27770. <!-- start class org.apache.hadoop.security.AccessControlException -->
  27771. <class name="AccessControlException" extends="java.io.IOException"
  27772. abstract="false"
  27773. static="false" final="false" visibility="public"
  27774. deprecated="not deprecated">
  27775. <constructor name="AccessControlException"
  27776. static="false" final="false" visibility="public"
  27777. deprecated="not deprecated">
  27778. <doc>
  27779. <![CDATA[Default constructor is needed for unwrapping from
  27780. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  27781. </doc>
  27782. </constructor>
  27783. <constructor name="AccessControlException" type="java.lang.String"
  27784. static="false" final="false" visibility="public"
  27785. deprecated="not deprecated">
  27786. <doc>
  27787. <![CDATA[Constructs an {@link AccessControlException}
  27788. with the specified detail message.
  27789. @param s the detail message.]]>
  27790. </doc>
  27791. </constructor>
  27792. <constructor name="AccessControlException" type="java.lang.Throwable"
  27793. static="false" final="false" visibility="public"
  27794. deprecated="not deprecated">
  27795. <doc>
  27796. <![CDATA[Constructs a new exception with the specified cause and a detail
  27797. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  27798. typically contains the class and detail message of <tt>cause</tt>).
  27799. @param cause the cause (which is saved for later retrieval by the
  27800. {@link #getCause()} method). (A <tt>null</tt> value is
  27801. permitted, and indicates that the cause is nonexistent or
  27802. unknown.)]]>
  27803. </doc>
  27804. </constructor>
  27805. <doc>
  27806. <![CDATA[An exception class for access control related issues.]]>
  27807. </doc>
  27808. </class>
  27809. <!-- end class org.apache.hadoop.security.AccessControlException -->
  27810. <!-- start class org.apache.hadoop.security.Credentials -->
  27811. <class name="Credentials" extends="java.lang.Object"
  27812. abstract="false"
  27813. static="false" final="false" visibility="public"
  27814. deprecated="not deprecated">
  27815. <implements name="org.apache.hadoop.io.Writable"/>
  27816. <constructor name="Credentials"
  27817. static="false" final="false" visibility="public"
  27818. deprecated="not deprecated">
  27819. <doc>
  27820. <![CDATA[Create an empty credentials instance.]]>
  27821. </doc>
  27822. </constructor>
  27823. <constructor name="Credentials" type="org.apache.hadoop.security.Credentials"
  27824. static="false" final="false" visibility="public"
  27825. deprecated="not deprecated">
  27826. <doc>
  27827. <![CDATA[Create a copy of the given credentials.
  27828. @param credentials to copy]]>
  27829. </doc>
  27830. </constructor>
  27831. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  27832. abstract="false" native="false" synchronized="false"
  27833. static="false" final="false" visibility="public"
  27834. deprecated="not deprecated">
  27835. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27836. <doc>
  27837. <![CDATA[Returns the Token object for the alias.
  27838. @param alias the alias for the Token
  27839. @return token for this alias]]>
  27840. </doc>
  27841. </method>
  27842. <method name="addToken"
  27843. abstract="false" native="false" synchronized="false"
  27844. static="false" final="false" visibility="public"
  27845. deprecated="not deprecated">
  27846. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27847. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  27848. <doc>
  27849. <![CDATA[Add a token in the storage (in memory).
  27850. @param alias the alias for the key
  27851. @param t the token object]]>
  27852. </doc>
  27853. </method>
  27854. <method name="getAllTokens" return="java.util.Collection"
  27855. abstract="false" native="false" synchronized="false"
  27856. static="false" final="false" visibility="public"
  27857. deprecated="not deprecated">
  27858. <doc>
  27859. <![CDATA[Return all the tokens in the in-memory map.]]>
  27860. </doc>
  27861. </method>
  27862. <method name="numberOfTokens" return="int"
  27863. abstract="false" native="false" synchronized="false"
  27864. static="false" final="false" visibility="public"
  27865. deprecated="not deprecated">
  27866. <doc>
  27867. <![CDATA[@return number of Tokens in the in-memory map]]>
  27868. </doc>
  27869. </method>
  27870. <method name="getSecretKey" return="byte[]"
  27871. abstract="false" native="false" synchronized="false"
  27872. static="false" final="false" visibility="public"
  27873. deprecated="not deprecated">
  27874. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27875. <doc>
  27876. <![CDATA[Returns the key bytes for the alias.
  27877. @param alias the alias for the key
  27878. @return key for this alias]]>
  27879. </doc>
  27880. </method>
  27881. <method name="numberOfSecretKeys" return="int"
  27882. abstract="false" native="false" synchronized="false"
  27883. static="false" final="false" visibility="public"
  27884. deprecated="not deprecated">
  27885. <doc>
  27886. <![CDATA[@return number of keys in the in-memory map]]>
  27887. </doc>
  27888. </method>
  27889. <method name="addSecretKey"
  27890. abstract="false" native="false" synchronized="false"
  27891. static="false" final="false" visibility="public"
  27892. deprecated="not deprecated">
  27893. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27894. <param name="key" type="byte[]"/>
  27895. <doc>
  27896. <![CDATA[Set the key for an alias.
  27897. @param alias the alias for the key
  27898. @param key the key bytes]]>
  27899. </doc>
  27900. </method>
  27901. <method name="removeSecretKey"
  27902. abstract="false" native="false" synchronized="false"
  27903. static="false" final="false" visibility="public"
  27904. deprecated="not deprecated">
  27905. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27906. <doc>
  27907. <![CDATA[Remove the key for a given alias.
  27908. @param alias the alias for the key]]>
  27909. </doc>
  27910. </method>
  27911. <method name="getAllSecretKeys" return="java.util.List"
  27912. abstract="false" native="false" synchronized="false"
  27913. static="false" final="false" visibility="public"
  27914. deprecated="not deprecated">
  27915. <doc>
  27916. <![CDATA[Return all the secret key entries in the in-memory map.]]>
  27917. </doc>
  27918. </method>
  27919. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  27920. abstract="false" native="false" synchronized="false"
  27921. static="true" final="false" visibility="public"
  27922. deprecated="not deprecated">
  27923. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  27924. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27925. <exception name="IOException" type="java.io.IOException"/>
  27926. <doc>
  27927. <![CDATA[Convenience method for reading a token storage file and loading its Tokens.
  27928. @param filename
  27929. @param conf
  27930. @throws IOException]]>
  27931. </doc>
  27932. </method>
  27933. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  27934. abstract="false" native="false" synchronized="false"
  27935. static="true" final="false" visibility="public"
  27936. deprecated="not deprecated">
  27937. <param name="filename" type="java.io.File"/>
  27938. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27939. <exception name="IOException" type="java.io.IOException"/>
  27940. <doc>
  27941. <![CDATA[Convenience method for reading a token storage file and loading its Tokens.
  27942. @param filename
  27943. @param conf
  27944. @throws IOException]]>
  27945. </doc>
  27946. </method>
  27947. <method name="readTokenStorageStream"
  27948. abstract="false" native="false" synchronized="false"
  27949. static="false" final="false" visibility="public"
  27950. deprecated="not deprecated">
  27951. <param name="in" type="java.io.DataInputStream"/>
  27952. <exception name="IOException" type="java.io.IOException"/>
  27953. <doc>
  27954. <![CDATA[Convenience method for reading a token from a DataInputStream.]]>
  27955. </doc>
  27956. </method>
  27957. <method name="writeTokenStorageToStream"
  27958. abstract="false" native="false" synchronized="false"
  27959. static="false" final="false" visibility="public"
  27960. deprecated="not deprecated">
  27961. <param name="os" type="java.io.DataOutputStream"/>
  27962. <exception name="IOException" type="java.io.IOException"/>
  27963. </method>
  27964. <method name="writeTokenStorageToStream"
  27965. abstract="false" native="false" synchronized="false"
  27966. static="false" final="false" visibility="public"
  27967. deprecated="not deprecated">
  27968. <param name="os" type="java.io.DataOutputStream"/>
  27969. <param name="format" type="org.apache.hadoop.security.Credentials.SerializedFormat"/>
  27970. <exception name="IOException" type="java.io.IOException"/>
  27971. </method>
  27972. <method name="writeTokenStorageFile"
  27973. abstract="false" native="false" synchronized="false"
  27974. static="false" final="false" visibility="public"
  27975. deprecated="not deprecated">
  27976. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  27977. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27978. <exception name="IOException" type="java.io.IOException"/>
  27979. </method>
  27980. <method name="writeTokenStorageFile"
  27981. abstract="false" native="false" synchronized="false"
  27982. static="false" final="false" visibility="public"
  27983. deprecated="not deprecated">
  27984. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  27985. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27986. <param name="format" type="org.apache.hadoop.security.Credentials.SerializedFormat"/>
  27987. <exception name="IOException" type="java.io.IOException"/>
  27988. </method>
  27989. <method name="write"
  27990. abstract="false" native="false" synchronized="false"
  27991. static="false" final="false" visibility="public"
  27992. deprecated="not deprecated">
  27993. <param name="out" type="java.io.DataOutput"/>
  27994. <exception name="IOException" type="java.io.IOException"/>
  27995. <doc>
  27996. <![CDATA[Stores all the keys to DataOutput.
  27997. @param out
  27998. @throws IOException]]>
  27999. </doc>
  28000. </method>
  28001. <method name="readFields"
  28002. abstract="false" native="false" synchronized="false"
  28003. static="false" final="false" visibility="public"
  28004. deprecated="not deprecated">
  28005. <param name="in" type="java.io.DataInput"/>
  28006. <exception name="IOException" type="java.io.IOException"/>
  28007. <doc>
  28008. <![CDATA[Loads all the keys.
  28009. @param in
  28010. @throws IOException]]>
  28011. </doc>
  28012. </method>
  28013. <method name="addAll"
  28014. abstract="false" native="false" synchronized="false"
  28015. static="false" final="false" visibility="public"
  28016. deprecated="not deprecated">
  28017. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  28018. <doc>
  28019. <![CDATA[Copy all of the credentials from one credential object into another.
  28020. Existing secrets and tokens are overwritten.
  28021. @param other the credentials to copy]]>
  28022. </doc>
  28023. </method>
  28024. <method name="mergeAll"
  28025. abstract="false" native="false" synchronized="false"
  28026. static="false" final="false" visibility="public"
  28027. deprecated="not deprecated">
  28028. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  28029. <doc>
  28030. <![CDATA[Copy all of the credentials from one credential object into another.
  28031. Existing secrets and tokens are not overwritten.
  28032. @param other the credentials to copy]]>
  28033. </doc>
  28034. </method>
  28035. <doc>
  28036. <![CDATA[A class that provides the facilities of reading and writing
  28037. secret keys and Tokens.]]>
  28038. </doc>
  28039. </class>
  28040. <!-- end class org.apache.hadoop.security.Credentials -->
  28041. <!-- start interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  28042. <interface name="GroupMappingServiceProvider" abstract="true"
  28043. static="false" final="false" visibility="public"
  28044. deprecated="not deprecated">
  28045. <method name="getGroups" return="java.util.List"
  28046. abstract="true" native="false" synchronized="false"
  28047. static="false" final="false" visibility="public"
  28048. deprecated="not deprecated">
  28049. <param name="user" type="java.lang.String"/>
  28050. <exception name="IOException" type="java.io.IOException"/>
  28051. <doc>
  28052. <![CDATA[Get all various group memberships of a given user.
  28053. Returns EMPTY list in case of non-existing user
  28054. @param user User's name
  28055. @return group memberships of user
  28056. @throws IOException]]>
  28057. </doc>
  28058. </method>
  28059. <method name="cacheGroupsRefresh"
  28060. abstract="true" native="false" synchronized="false"
  28061. static="false" final="false" visibility="public"
  28062. deprecated="not deprecated">
  28063. <exception name="IOException" type="java.io.IOException"/>
  28064. <doc>
  28065. <![CDATA[Refresh the cache of groups and user mapping
  28066. @throws IOException]]>
  28067. </doc>
  28068. </method>
  28069. <method name="cacheGroupsAdd"
  28070. abstract="true" native="false" synchronized="false"
  28071. static="false" final="false" visibility="public"
  28072. deprecated="not deprecated">
  28073. <param name="groups" type="java.util.List"/>
  28074. <exception name="IOException" type="java.io.IOException"/>
  28075. <doc>
  28076. <![CDATA[Caches the group user information
  28077. @param groups list of groups to add to cache
  28078. @throws IOException]]>
  28079. </doc>
  28080. </method>
  28081. <field name="GROUP_MAPPING_CONFIG_PREFIX" type="java.lang.String"
  28082. transient="false" volatile="false"
  28083. static="true" final="true" visibility="public"
  28084. deprecated="not deprecated">
  28085. </field>
  28086. <doc>
  28087. <![CDATA[An interface for the implementation of a user-to-groups mapping service
  28088. used by {@link Groups}.]]>
  28089. </doc>
  28090. </interface>
  28091. <!-- end interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  28092. <!-- start interface org.apache.hadoop.security.IdMappingServiceProvider -->
  28093. <interface name="IdMappingServiceProvider" abstract="true"
  28094. static="false" final="false" visibility="public"
  28095. deprecated="not deprecated">
  28096. <method name="getUid" return="int"
  28097. abstract="true" native="false" synchronized="false"
  28098. static="false" final="false" visibility="public"
  28099. deprecated="not deprecated">
  28100. <param name="user" type="java.lang.String"/>
  28101. <exception name="IOException" type="java.io.IOException"/>
  28102. </method>
  28103. <method name="getGid" return="int"
  28104. abstract="true" native="false" synchronized="false"
  28105. static="false" final="false" visibility="public"
  28106. deprecated="not deprecated">
  28107. <param name="group" type="java.lang.String"/>
  28108. <exception name="IOException" type="java.io.IOException"/>
  28109. </method>
  28110. <method name="getUserName" return="java.lang.String"
  28111. abstract="true" native="false" synchronized="false"
  28112. static="false" final="false" visibility="public"
  28113. deprecated="not deprecated">
  28114. <param name="uid" type="int"/>
  28115. <param name="unknown" type="java.lang.String"/>
  28116. </method>
  28117. <method name="getGroupName" return="java.lang.String"
  28118. abstract="true" native="false" synchronized="false"
  28119. static="false" final="false" visibility="public"
  28120. deprecated="not deprecated">
  28121. <param name="gid" type="int"/>
  28122. <param name="unknown" type="java.lang.String"/>
  28123. </method>
  28124. <method name="getUidAllowingUnknown" return="int"
  28125. abstract="true" native="false" synchronized="false"
  28126. static="false" final="false" visibility="public"
  28127. deprecated="not deprecated">
  28128. <param name="user" type="java.lang.String"/>
  28129. </method>
  28130. <method name="getGidAllowingUnknown" return="int"
  28131. abstract="true" native="false" synchronized="false"
  28132. static="false" final="false" visibility="public"
  28133. deprecated="not deprecated">
  28134. <param name="group" type="java.lang.String"/>
  28135. </method>
  28136. <doc>
  28137. <![CDATA[An interface for the implementation of <userId, userName> mapping
  28138. and <groupId, groupName> mapping]]>
  28139. </doc>
  28140. </interface>
  28141. <!-- end interface org.apache.hadoop.security.IdMappingServiceProvider -->
  28142. <!-- start class org.apache.hadoop.security.KerberosAuthException -->
  28143. <class name="KerberosAuthException" extends="java.io.IOException"
  28144. abstract="false"
  28145. static="false" final="false" visibility="public"
  28146. deprecated="not deprecated">
  28147. <constructor name="KerberosAuthException" type="java.lang.String"
  28148. static="false" final="false" visibility="public"
  28149. deprecated="not deprecated">
  28150. </constructor>
  28151. <constructor name="KerberosAuthException" type="java.lang.Throwable"
  28152. static="false" final="false" visibility="public"
  28153. deprecated="not deprecated">
  28154. </constructor>
  28155. <constructor name="KerberosAuthException" type="java.lang.String, java.lang.Throwable"
  28156. static="false" final="false" visibility="public"
  28157. deprecated="not deprecated">
  28158. </constructor>
  28159. <method name="setUser"
  28160. abstract="false" native="false" synchronized="false"
  28161. static="false" final="false" visibility="public"
  28162. deprecated="not deprecated">
  28163. <param name="u" type="java.lang.String"/>
  28164. </method>
  28165. <method name="setPrincipal"
  28166. abstract="false" native="false" synchronized="false"
  28167. static="false" final="false" visibility="public"
  28168. deprecated="not deprecated">
  28169. <param name="p" type="java.lang.String"/>
  28170. </method>
  28171. <method name="setKeytabFile"
  28172. abstract="false" native="false" synchronized="false"
  28173. static="false" final="false" visibility="public"
  28174. deprecated="not deprecated">
  28175. <param name="k" type="java.lang.String"/>
  28176. </method>
  28177. <method name="setTicketCacheFile"
  28178. abstract="false" native="false" synchronized="false"
  28179. static="false" final="false" visibility="public"
  28180. deprecated="not deprecated">
  28181. <param name="t" type="java.lang.String"/>
  28182. </method>
  28183. <method name="getInitialMessage" return="java.lang.String"
  28184. abstract="false" native="false" synchronized="false"
  28185. static="false" final="false" visibility="public"
  28186. deprecated="not deprecated">
  28187. <doc>
  28188. <![CDATA[@return The initial message, or null if not set.]]>
  28189. </doc>
  28190. </method>
  28191. <method name="getKeytabFile" return="java.lang.String"
  28192. abstract="false" native="false" synchronized="false"
  28193. static="false" final="false" visibility="public"
  28194. deprecated="not deprecated">
  28195. <doc>
  28196. <![CDATA[@return The keytab file path, or null if not set.]]>
  28197. </doc>
  28198. </method>
  28199. <method name="getPrincipal" return="java.lang.String"
  28200. abstract="false" native="false" synchronized="false"
  28201. static="false" final="false" visibility="public"
  28202. deprecated="not deprecated">
  28203. <doc>
  28204. <![CDATA[@return The principal, or null if not set.]]>
  28205. </doc>
  28206. </method>
  28207. <method name="getTicketCacheFile" return="java.lang.String"
  28208. abstract="false" native="false" synchronized="false"
  28209. static="false" final="false" visibility="public"
  28210. deprecated="not deprecated">
  28211. <doc>
  28212. <![CDATA[@return The ticket cache file path, or null if not set.]]>
  28213. </doc>
  28214. </method>
  28215. <method name="getUser" return="java.lang.String"
  28216. abstract="false" native="false" synchronized="false"
  28217. static="false" final="false" visibility="public"
  28218. deprecated="not deprecated">
  28219. <doc>
  28220. <![CDATA[@return The user, or null if not set.]]>
  28221. </doc>
  28222. </method>
  28223. <method name="getMessage" return="java.lang.String"
  28224. abstract="false" native="false" synchronized="false"
  28225. static="false" final="false" visibility="public"
  28226. deprecated="not deprecated">
  28227. </method>
  28228. <doc>
  28229. <![CDATA[Thrown when {@link UserGroupInformation} failed with an unrecoverable error,
  28230. such as failure in kerberos login/logout, invalid subject etc.
  28231. Caller should not retry when catching this exception.]]>
  28232. </doc>
  28233. </class>
  28234. <!-- end class org.apache.hadoop.security.KerberosAuthException -->
  28235. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  28236. <class name="SecurityUtil" extends="java.lang.Object"
  28237. abstract="false"
  28238. static="false" final="true" visibility="public"
  28239. deprecated="not deprecated">
  28240. <method name="setConfiguration"
  28241. abstract="false" native="false" synchronized="false"
  28242. static="true" final="false" visibility="public"
  28243. deprecated="not deprecated">
  28244. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28245. </method>
  28246. <method name="isOriginalTGT" return="boolean"
  28247. abstract="false" native="false" synchronized="false"
  28248. static="true" final="false" visibility="protected"
  28249. deprecated="not deprecated">
  28250. <param name="ticket" type="javax.security.auth.kerberos.KerberosTicket"/>
  28251. <doc>
  28252. <![CDATA[Check whether the server principal is the TGS's principal
  28253. @param ticket the original TGT (the ticket that is obtained when a
  28254. kinit is done)
  28255. @return true or false]]>
  28256. </doc>
  28257. </method>
  28258. <method name="getServerPrincipal" return="java.lang.String"
  28259. abstract="false" native="false" synchronized="false"
  28260. static="true" final="false" visibility="public"
  28261. deprecated="not deprecated">
  28262. <param name="principalConfig" type="java.lang.String"/>
  28263. <param name="hostname" type="java.lang.String"/>
  28264. <exception name="IOException" type="java.io.IOException"/>
  28265. <doc>
  28266. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  28267. names. It replaces hostname pattern with hostname, which should be
  28268. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  28269. dynamically looked-up fqdn of the current host instead.
  28270. @param principalConfig
  28271. the Kerberos principal name conf value to convert
  28272. @param hostname
  28273. the fully-qualified domain name used for substitution
  28274. @return converted Kerberos principal name
  28275. @throws IOException if the client address cannot be determined]]>
  28276. </doc>
  28277. </method>
  28278. <method name="getServerPrincipal" return="java.lang.String"
  28279. abstract="false" native="false" synchronized="false"
  28280. static="true" final="false" visibility="public"
  28281. deprecated="not deprecated">
  28282. <param name="principalConfig" type="java.lang.String"/>
  28283. <param name="addr" type="java.net.InetAddress"/>
  28284. <exception name="IOException" type="java.io.IOException"/>
  28285. <doc>
  28286. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  28287. This method is similar to {@link #getServerPrincipal(String, String)},
  28288. except 1) the reverse DNS lookup from addr to hostname is done only when
  28289. necessary, 2) param addr can't be null (no default behavior of using local
  28290. hostname when addr is null).
  28291. @param principalConfig
  28292. Kerberos principal name pattern to convert
  28293. @param addr
  28294. InetAddress of the host used for substitution
  28295. @return converted Kerberos principal name
  28296. @throws IOException if the client address cannot be determined]]>
  28297. </doc>
  28298. </method>
  28299. <method name="login"
  28300. abstract="false" native="false" synchronized="false"
  28301. static="true" final="false" visibility="public"
  28302. deprecated="not deprecated">
  28303. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28304. <param name="keytabFileKey" type="java.lang.String"/>
  28305. <param name="userNameKey" type="java.lang.String"/>
  28306. <exception name="IOException" type="java.io.IOException"/>
  28307. <doc>
  28308. <![CDATA[Login as a principal specified in config. Substitute $host in
  28309. user's Kerberos principal name with a dynamically looked-up fully-qualified
  28310. domain name of the current host.
  28311. @param conf
  28312. conf to use
  28313. @param keytabFileKey
  28314. the key to look for keytab file in conf
  28315. @param userNameKey
  28316. the key to look for user's Kerberos principal name in conf
  28317. @throws IOException if login fails]]>
  28318. </doc>
  28319. </method>
  28320. <method name="login"
  28321. abstract="false" native="false" synchronized="false"
  28322. static="true" final="false" visibility="public"
  28323. deprecated="not deprecated">
  28324. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28325. <param name="keytabFileKey" type="java.lang.String"/>
  28326. <param name="userNameKey" type="java.lang.String"/>
  28327. <param name="hostname" type="java.lang.String"/>
  28328. <exception name="IOException" type="java.io.IOException"/>
  28329. <doc>
  28330. <![CDATA[Login as a principal specified in config. Substitute $host in user's Kerberos principal
  28331. name with hostname. If non-secure mode - return. If no keytab available -
  28332. bail out with an exception
  28333. @param conf
  28334. conf to use
  28335. @param keytabFileKey
  28336. the key to look for keytab file in conf
  28337. @param userNameKey
  28338. the key to look for user's Kerberos principal name in conf
  28339. @param hostname
  28340. hostname to use for substitution
  28341. @throws IOException if the config doesn't specify a keytab]]>
  28342. </doc>
  28343. </method>
  28344. <method name="buildDTServiceName" return="java.lang.String"
  28345. abstract="false" native="false" synchronized="false"
  28346. static="true" final="false" visibility="public"
  28347. deprecated="not deprecated">
  28348. <param name="uri" type="java.net.URI"/>
  28349. <param name="defPort" type="int"/>
  28350. <doc>
  28351. <![CDATA[create the service name for a Delegation token
  28352. @param uri of the service
  28353. @param defPort is used if the uri lacks a port
  28354. @return the token service, or null if no authority
  28355. @see #buildTokenService(InetSocketAddress)]]>
  28356. </doc>
  28357. </method>
  28358. <method name="getHostFromPrincipal" return="java.lang.String"
  28359. abstract="false" native="false" synchronized="false"
  28360. static="true" final="false" visibility="public"
  28361. deprecated="not deprecated">
  28362. <param name="principalName" type="java.lang.String"/>
  28363. <doc>
  28364. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  28365. @param principalName principal name of format as described above
  28366. @return host name if the the string conforms to the above format, else null]]>
  28367. </doc>
  28368. </method>
  28369. <method name="getKerberosInfo" return="org.apache.hadoop.security.KerberosInfo"
  28370. abstract="false" native="false" synchronized="false"
  28371. static="true" final="false" visibility="public"
  28372. deprecated="not deprecated">
  28373. <param name="protocol" type="java.lang.Class"/>
  28374. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28375. <doc>
  28376. <![CDATA[Look up the KerberosInfo for a given protocol. It searches all known
  28377. SecurityInfo providers.
  28378. @param protocol the protocol class to get the information for
  28379. @param conf configuration object
  28380. @return the KerberosInfo or null if it has no KerberosInfo defined]]>
  28381. </doc>
  28382. </method>
  28383. <method name="getTokenInfo" return="org.apache.hadoop.security.token.TokenInfo"
  28384. abstract="false" native="false" synchronized="false"
  28385. static="true" final="false" visibility="public"
  28386. deprecated="not deprecated">
  28387. <param name="protocol" type="java.lang.Class"/>
  28388. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28389. <doc>
  28390. <![CDATA[Look up the TokenInfo for a given protocol. It searches all known
  28391. SecurityInfo providers.
  28392. @param protocol The protocol class to get the information for.
  28393. @param conf Configuration object
  28394. @return the TokenInfo or null if it has no KerberosInfo defined]]>
  28395. </doc>
  28396. </method>
  28397. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  28398. abstract="false" native="false" synchronized="false"
  28399. static="true" final="false" visibility="public"
  28400. deprecated="not deprecated">
  28401. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  28402. <doc>
  28403. <![CDATA[Decode the given token's service field into an InetAddress
  28404. @param token from which to obtain the service
  28405. @return InetAddress for the service]]>
  28406. </doc>
  28407. </method>
  28408. <method name="setTokenService"
  28409. abstract="false" native="false" synchronized="false"
  28410. static="true" final="false" visibility="public"
  28411. deprecated="not deprecated">
  28412. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  28413. <param name="addr" type="java.net.InetSocketAddress"/>
  28414. <doc>
  28415. <![CDATA[Set the given token's service to the format expected by the RPC client
  28416. @param token a delegation token
  28417. @param addr the socket for the rpc connection]]>
  28418. </doc>
  28419. </method>
  28420. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  28421. abstract="false" native="false" synchronized="false"
  28422. static="true" final="false" visibility="public"
  28423. deprecated="not deprecated">
  28424. <param name="addr" type="java.net.InetSocketAddress"/>
  28425. <doc>
  28426. <![CDATA[Construct the service key for a token
  28427. @param addr InetSocketAddress of remote connection with a token
  28428. @return "ip:port" or "host:port" depending on the value of
  28429. hadoop.security.token.service.use_ip]]>
  28430. </doc>
  28431. </method>
  28432. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  28433. abstract="false" native="false" synchronized="false"
  28434. static="true" final="false" visibility="public"
  28435. deprecated="not deprecated">
  28436. <param name="uri" type="java.net.URI"/>
  28437. <doc>
  28438. <![CDATA[Construct the service key for a token
  28439. @param uri of remote connection with a token
  28440. @return "ip:port" or "host:port" depending on the value of
  28441. hadoop.security.token.service.use_ip]]>
  28442. </doc>
  28443. </method>
  28444. <method name="doAsLoginUserOrFatal" return="T"
  28445. abstract="false" native="false" synchronized="false"
  28446. static="true" final="false" visibility="public"
  28447. deprecated="not deprecated">
  28448. <param name="action" type="java.security.PrivilegedAction"/>
  28449. <doc>
  28450. <![CDATA[Perform the given action as the daemon's login user. If the login
  28451. user cannot be determined, this will log a FATAL error and exit
  28452. the whole JVM.]]>
  28453. </doc>
  28454. </method>
  28455. <method name="doAsLoginUser" return="T"
  28456. abstract="false" native="false" synchronized="false"
  28457. static="true" final="false" visibility="public"
  28458. deprecated="not deprecated">
  28459. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  28460. <exception name="IOException" type="java.io.IOException"/>
  28461. <doc>
  28462. <![CDATA[Perform the given action as the daemon's login user. If an
  28463. InterruptedException is thrown, it is converted to an IOException.
  28464. @param action the action to perform
  28465. @return the result of the action
  28466. @throws IOException in the event of error]]>
  28467. </doc>
  28468. </method>
  28469. <method name="doAsCurrentUser" return="T"
  28470. abstract="false" native="false" synchronized="false"
  28471. static="true" final="false" visibility="public"
  28472. deprecated="not deprecated">
  28473. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  28474. <exception name="IOException" type="java.io.IOException"/>
  28475. <doc>
  28476. <![CDATA[Perform the given action as the daemon's current user. If an
  28477. InterruptedException is thrown, it is converted to an IOException.
  28478. @param action the action to perform
  28479. @return the result of the action
  28480. @throws IOException in the event of error]]>
  28481. </doc>
  28482. </method>
  28483. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28484. abstract="false" native="false" synchronized="false"
  28485. static="true" final="false" visibility="public"
  28486. deprecated="not deprecated">
  28487. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28488. </method>
  28489. <method name="setAuthenticationMethod"
  28490. abstract="false" native="false" synchronized="false"
  28491. static="true" final="false" visibility="public"
  28492. deprecated="not deprecated">
  28493. <param name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  28494. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28495. </method>
  28496. <method name="isPrivilegedPort" return="boolean"
  28497. abstract="false" native="false" synchronized="false"
  28498. static="true" final="false" visibility="public"
  28499. deprecated="not deprecated">
  28500. <param name="port" type="int"/>
  28501. </method>
  28502. <method name="getZKAuthInfos" return="java.util.List"
  28503. abstract="false" native="false" synchronized="false"
  28504. static="true" final="false" visibility="public"
  28505. deprecated="not deprecated">
  28506. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28507. <param name="configKey" type="java.lang.String"/>
  28508. <exception name="IOException" type="java.io.IOException"/>
  28509. <doc>
  28510. <![CDATA[Utility method to fetch ZK auth info from the configuration.
  28511. @throws java.io.IOException if the Zookeeper ACLs configuration file
  28512. cannot be read
  28513. @throws ZKUtil.BadAuthFormatException if the auth format is invalid]]>
  28514. </doc>
  28515. </method>
  28516. <field name="LOG" type="org.slf4j.Logger"
  28517. transient="false" volatile="false"
  28518. static="true" final="true" visibility="public"
  28519. deprecated="not deprecated">
  28520. </field>
  28521. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  28522. transient="false" volatile="false"
  28523. static="true" final="true" visibility="public"
  28524. deprecated="not deprecated">
  28525. </field>
  28526. <field name="FAILED_TO_GET_UGI_MSG_HEADER" type="java.lang.String"
  28527. transient="false" volatile="false"
  28528. static="true" final="true" visibility="public"
  28529. deprecated="not deprecated">
  28530. </field>
  28531. <doc>
  28532. <![CDATA[Security Utils.]]>
  28533. </doc>
  28534. </class>
  28535. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  28536. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  28537. <class name="UserGroupInformation" extends="java.lang.Object"
  28538. abstract="false"
  28539. static="false" final="false" visibility="public"
  28540. deprecated="not deprecated">
  28541. <method name="setShouldRenewImmediatelyForTests"
  28542. abstract="false" native="false" synchronized="false"
  28543. static="true" final="false" visibility="public"
  28544. deprecated="not deprecated">
  28545. <param name="immediate" type="boolean"/>
  28546. <doc>
  28547. <![CDATA[For the purposes of unit tests, we want to test login
  28548. from keytab and don't want to wait until the renew
  28549. window (controlled by TICKET_RENEW_WINDOW).
  28550. @param immediate true if we should login without waiting for ticket window]]>
  28551. </doc>
  28552. </method>
  28553. <method name="reattachMetrics"
  28554. abstract="false" native="false" synchronized="false"
  28555. static="true" final="false" visibility="public"
  28556. deprecated="not deprecated">
  28557. <doc>
  28558. <![CDATA[Reattach the class's metrics to a new metric system.]]>
  28559. </doc>
  28560. </method>
  28561. <method name="isInitialized" return="boolean"
  28562. abstract="false" native="false" synchronized="false"
  28563. static="true" final="false" visibility="public"
  28564. deprecated="not deprecated">
  28565. </method>
  28566. <method name="setConfiguration"
  28567. abstract="false" native="false" synchronized="false"
  28568. static="true" final="false" visibility="public"
  28569. deprecated="not deprecated">
  28570. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28571. <doc>
  28572. <![CDATA[Set the static configuration for UGI.
  28573. In particular, set the security authentication mechanism and the
  28574. group look up service.
  28575. @param conf the configuration to use]]>
  28576. </doc>
  28577. </method>
  28578. <method name="isSecurityEnabled" return="boolean"
  28579. abstract="false" native="false" synchronized="false"
  28580. static="true" final="false" visibility="public"
  28581. deprecated="not deprecated">
  28582. <doc>
  28583. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  28584. user identities or is relying on simple authentication
  28585. @return true if UGI is working in a secure environment]]>
  28586. </doc>
  28587. </method>
  28588. <method name="hasKerberosCredentials" return="boolean"
  28589. abstract="false" native="false" synchronized="false"
  28590. static="false" final="false" visibility="public"
  28591. deprecated="not deprecated">
  28592. <doc>
  28593. <![CDATA[checks if logged in using kerberos
  28594. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  28595. </doc>
  28596. </method>
  28597. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  28598. abstract="false" native="false" synchronized="false"
  28599. static="true" final="false" visibility="public"
  28600. deprecated="not deprecated">
  28601. <exception name="IOException" type="java.io.IOException"/>
  28602. <doc>
  28603. <![CDATA[Return the current user, including any doAs in the current stack.
  28604. @return the current user
  28605. @throws IOException if login fails]]>
  28606. </doc>
  28607. </method>
  28608. <method name="getBestUGI" return="org.apache.hadoop.security.UserGroupInformation"
  28609. abstract="false" native="false" synchronized="false"
  28610. static="true" final="false" visibility="public"
  28611. deprecated="not deprecated">
  28612. <param name="ticketCachePath" type="java.lang.String"/>
  28613. <param name="user" type="java.lang.String"/>
  28614. <exception name="IOException" type="java.io.IOException"/>
  28615. <doc>
  28616. <![CDATA[Find the most appropriate UserGroupInformation to use
  28617. @param ticketCachePath The Kerberos ticket cache path, or NULL
  28618. if none is specfied
  28619. @param user The user name, or NULL if none is specified.
  28620. @return The most appropriate UserGroupInformation]]>
  28621. </doc>
  28622. </method>
  28623. <method name="getUGIFromTicketCache" return="org.apache.hadoop.security.UserGroupInformation"
  28624. abstract="false" native="false" synchronized="false"
  28625. static="true" final="false" visibility="public"
  28626. deprecated="not deprecated">
  28627. <param name="ticketCache" type="java.lang.String"/>
  28628. <param name="user" type="java.lang.String"/>
  28629. <exception name="IOException" type="java.io.IOException"/>
  28630. <doc>
  28631. <![CDATA[Create a UserGroupInformation from a Kerberos ticket cache.
  28632. @param user The principal name to load from the ticket
  28633. cache
  28634. @param ticketCache the path to the ticket cache file
  28635. @throws IOException if the kerberos login fails]]>
  28636. </doc>
  28637. </method>
  28638. <method name="getUGIFromSubject" return="org.apache.hadoop.security.UserGroupInformation"
  28639. abstract="false" native="false" synchronized="false"
  28640. static="true" final="false" visibility="public"
  28641. deprecated="not deprecated">
  28642. <param name="subject" type="javax.security.auth.Subject"/>
  28643. <exception name="IOException" type="java.io.IOException"/>
  28644. <doc>
  28645. <![CDATA[Create a UserGroupInformation from a Subject with Kerberos principal.
  28646. @param subject The KerberosPrincipal to use in UGI.
  28647. The creator of subject is responsible for
  28648. renewing credentials.
  28649. @throws IOException
  28650. @throws KerberosAuthException if the kerberos login fails]]>
  28651. </doc>
  28652. </method>
  28653. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  28654. abstract="false" native="false" synchronized="false"
  28655. static="true" final="false" visibility="public"
  28656. deprecated="not deprecated">
  28657. <exception name="IOException" type="java.io.IOException"/>
  28658. <doc>
  28659. <![CDATA[Get the currently logged in user. If no explicit login has occurred,
  28660. the user will automatically be logged in with either kerberos credentials
  28661. if available, or as the local OS user, based on security settings.
  28662. @return the logged in user
  28663. @throws IOException if login fails]]>
  28664. </doc>
  28665. </method>
  28666. <method name="trimLoginMethod" return="java.lang.String"
  28667. abstract="false" native="false" synchronized="false"
  28668. static="true" final="false" visibility="public"
  28669. deprecated="not deprecated">
  28670. <param name="userName" type="java.lang.String"/>
  28671. <doc>
  28672. <![CDATA[remove the login method that is followed by a space from the username
  28673. e.g. "jack (auth:SIMPLE)" -> "jack"
  28674. @param userName
  28675. @return userName without login method]]>
  28676. </doc>
  28677. </method>
  28678. <method name="loginUserFromSubject"
  28679. abstract="false" native="false" synchronized="false"
  28680. static="true" final="false" visibility="public"
  28681. deprecated="not deprecated">
  28682. <param name="subject" type="javax.security.auth.Subject"/>
  28683. <exception name="IOException" type="java.io.IOException"/>
  28684. <doc>
  28685. <![CDATA[Log in a user using the given subject
  28686. @param subject the subject to use when logging in a user, or null to
  28687. create a new subject.
  28688. If subject is not null, the creator of subject is responsible for renewing
  28689. credentials.
  28690. @throws IOException if login fails]]>
  28691. </doc>
  28692. </method>
  28693. <method name="isFromKeytab" return="boolean"
  28694. abstract="false" native="false" synchronized="false"
  28695. static="false" final="false" visibility="public"
  28696. deprecated="not deprecated">
  28697. <doc>
  28698. <![CDATA[Is this user logged in from a keytab file managed by the UGI?
  28699. @return true if the credentials are from a keytab file.]]>
  28700. </doc>
  28701. </method>
  28702. <method name="loginUserFromKeytab"
  28703. abstract="false" native="false" synchronized="false"
  28704. static="true" final="false" visibility="public"
  28705. deprecated="not deprecated">
  28706. <param name="user" type="java.lang.String"/>
  28707. <param name="path" type="java.lang.String"/>
  28708. <exception name="IOException" type="java.io.IOException"/>
  28709. <doc>
  28710. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  28711. file and logs them in. They become the currently logged-in user.
  28712. @param user the principal name to load from the keytab
  28713. @param path the path to the keytab file
  28714. @throws IOException
  28715. @throws KerberosAuthException if it's a kerberos login exception.]]>
  28716. </doc>
  28717. </method>
  28718. <method name="logoutUserFromKeytab"
  28719. abstract="false" native="false" synchronized="false"
  28720. static="false" final="false" visibility="public"
  28721. deprecated="not deprecated">
  28722. <exception name="IOException" type="java.io.IOException"/>
  28723. <doc>
  28724. <![CDATA[Log the current user out who previously logged in using keytab.
  28725. This method assumes that the user logged in by calling
  28726. {@link #loginUserFromKeytab(String, String)}.
  28727. @throws IOException
  28728. @throws KerberosAuthException if a failure occurred in logout,
  28729. or if the user did not log in by invoking loginUserFromKeyTab() before.]]>
  28730. </doc>
  28731. </method>
  28732. <method name="checkTGTAndReloginFromKeytab"
  28733. abstract="false" native="false" synchronized="false"
  28734. static="false" final="false" visibility="public"
  28735. deprecated="not deprecated">
  28736. <exception name="IOException" type="java.io.IOException"/>
  28737. <doc>
  28738. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  28739. @throws IOException
  28740. @throws KerberosAuthException if it's a kerberos login exception.]]>
  28741. </doc>
  28742. </method>
  28743. <method name="reloginFromKeytab"
  28744. abstract="false" native="false" synchronized="false"
  28745. static="false" final="false" visibility="public"
  28746. deprecated="not deprecated">
  28747. <exception name="IOException" type="java.io.IOException"/>
  28748. <doc>
  28749. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  28750. file and logs them in. They become the currently logged-in user. This
  28751. method assumes that {@link #loginUserFromKeytab(String, String)} had
  28752. happened already.
  28753. The Subject field of this UserGroupInformation object is updated to have
  28754. the new credentials.
  28755. @throws IOException
  28756. @throws KerberosAuthException on a failure]]>
  28757. </doc>
  28758. </method>
  28759. <method name="reloginFromTicketCache"
  28760. abstract="false" native="false" synchronized="false"
  28761. static="false" final="false" visibility="public"
  28762. deprecated="not deprecated">
  28763. <exception name="IOException" type="java.io.IOException"/>
  28764. <doc>
  28765. <![CDATA[Re-Login a user in from the ticket cache. This
  28766. method assumes that login had happened already.
  28767. The Subject field of this UserGroupInformation object is updated to have
  28768. the new credentials.
  28769. @throws IOException
  28770. @throws KerberosAuthException on a failure]]>
  28771. </doc>
  28772. </method>
  28773. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  28774. abstract="false" native="false" synchronized="false"
  28775. static="true" final="false" visibility="public"
  28776. deprecated="not deprecated">
  28777. <param name="user" type="java.lang.String"/>
  28778. <param name="path" type="java.lang.String"/>
  28779. <exception name="IOException" type="java.io.IOException"/>
  28780. <doc>
  28781. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  28782. file and login them in. This new user does not affect the currently
  28783. logged-in user.
  28784. @param user the principal name to load from the keytab
  28785. @param path the path to the keytab file
  28786. @throws IOException if the keytab file can't be read]]>
  28787. </doc>
  28788. </method>
  28789. <method name="isLoginKeytabBased" return="boolean"
  28790. abstract="false" native="false" synchronized="false"
  28791. static="true" final="false" visibility="public"
  28792. deprecated="not deprecated">
  28793. <exception name="IOException" type="java.io.IOException"/>
  28794. <doc>
  28795. <![CDATA[Did the login happen via keytab
  28796. @return true or false]]>
  28797. </doc>
  28798. </method>
  28799. <method name="isLoginTicketBased" return="boolean"
  28800. abstract="false" native="false" synchronized="false"
  28801. static="true" final="false" visibility="public"
  28802. deprecated="not deprecated">
  28803. <exception name="IOException" type="java.io.IOException"/>
  28804. <doc>
  28805. <![CDATA[Did the login happen via ticket cache
  28806. @return true or false]]>
  28807. </doc>
  28808. </method>
  28809. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  28810. abstract="false" native="false" synchronized="false"
  28811. static="true" final="false" visibility="public"
  28812. deprecated="not deprecated">
  28813. <param name="user" type="java.lang.String"/>
  28814. <doc>
  28815. <![CDATA[Create a user from a login name. It is intended to be used for remote
  28816. users in RPC, since it won't have any credentials.
  28817. @param user the full user principal name, must not be empty or null
  28818. @return the UserGroupInformation for the remote user.]]>
  28819. </doc>
  28820. </method>
  28821. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  28822. abstract="false" native="false" synchronized="false"
  28823. static="true" final="false" visibility="public"
  28824. deprecated="not deprecated">
  28825. <param name="user" type="java.lang.String"/>
  28826. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  28827. <doc>
  28828. <![CDATA[Create a user from a login name. It is intended to be used for remote
  28829. users in RPC, since it won't have any credentials.
  28830. @param user the full user principal name, must not be empty or null
  28831. @return the UserGroupInformation for the remote user.]]>
  28832. </doc>
  28833. </method>
  28834. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  28835. abstract="false" native="false" synchronized="false"
  28836. static="true" final="false" visibility="public"
  28837. deprecated="not deprecated">
  28838. <param name="user" type="java.lang.String"/>
  28839. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  28840. <doc>
  28841. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  28842. real user.
  28843. @param user
  28844. @param realUser
  28845. @return proxyUser ugi]]>
  28846. </doc>
  28847. </method>
  28848. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  28849. abstract="false" native="false" synchronized="false"
  28850. static="false" final="false" visibility="public"
  28851. deprecated="not deprecated">
  28852. <doc>
  28853. <![CDATA[get RealUser (vs. EffectiveUser)
  28854. @return realUser running over proxy user]]>
  28855. </doc>
  28856. </method>
  28857. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  28858. abstract="false" native="false" synchronized="false"
  28859. static="true" final="false" visibility="public"
  28860. deprecated="not deprecated">
  28861. <param name="user" type="java.lang.String"/>
  28862. <param name="userGroups" type="java.lang.String[]"/>
  28863. <doc>
  28864. <![CDATA[Create a UGI for testing HDFS and MapReduce
  28865. @param user the full user principal name
  28866. @param userGroups the names of the groups that the user belongs to
  28867. @return a fake user for running unit tests]]>
  28868. </doc>
  28869. </method>
  28870. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  28871. abstract="false" native="false" synchronized="false"
  28872. static="true" final="false" visibility="public"
  28873. deprecated="not deprecated">
  28874. <param name="user" type="java.lang.String"/>
  28875. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  28876. <param name="userGroups" type="java.lang.String[]"/>
  28877. <doc>
  28878. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  28879. @param user
  28880. the full user principal name for effective user
  28881. @param realUser
  28882. UGI of the real user
  28883. @param userGroups
  28884. the names of the groups that the user belongs to
  28885. @return a fake user for running unit tests]]>
  28886. </doc>
  28887. </method>
  28888. <method name="getShortUserName" return="java.lang.String"
  28889. abstract="false" native="false" synchronized="false"
  28890. static="false" final="false" visibility="public"
  28891. deprecated="not deprecated">
  28892. <doc>
  28893. <![CDATA[Get the user's login name.
  28894. @return the user's name up to the first '/' or '@'.]]>
  28895. </doc>
  28896. </method>
  28897. <method name="getPrimaryGroupName" return="java.lang.String"
  28898. abstract="false" native="false" synchronized="false"
  28899. static="false" final="false" visibility="public"
  28900. deprecated="not deprecated">
  28901. <exception name="IOException" type="java.io.IOException"/>
  28902. </method>
  28903. <method name="getUserName" return="java.lang.String"
  28904. abstract="false" native="false" synchronized="false"
  28905. static="false" final="false" visibility="public"
  28906. deprecated="not deprecated">
  28907. <doc>
  28908. <![CDATA[Get the user's full principal name.
  28909. @return the user's full principal name.]]>
  28910. </doc>
  28911. </method>
  28912. <method name="addTokenIdentifier" return="boolean"
  28913. abstract="false" native="false" synchronized="true"
  28914. static="false" final="false" visibility="public"
  28915. deprecated="not deprecated">
  28916. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  28917. <doc>
  28918. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  28919. authenticated by the RPC layer as belonging to the user represented by this
  28920. UGI.
  28921. @param tokenId
  28922. tokenIdentifier to be added
  28923. @return true on successful add of new tokenIdentifier]]>
  28924. </doc>
  28925. </method>
  28926. <method name="getTokenIdentifiers" return="java.util.Set"
  28927. abstract="false" native="false" synchronized="true"
  28928. static="false" final="false" visibility="public"
  28929. deprecated="not deprecated">
  28930. <doc>
  28931. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  28932. @return the set of TokenIdentifiers belonging to this UGI]]>
  28933. </doc>
  28934. </method>
  28935. <method name="addToken" return="boolean"
  28936. abstract="false" native="false" synchronized="false"
  28937. static="false" final="false" visibility="public"
  28938. deprecated="not deprecated">
  28939. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  28940. <doc>
  28941. <![CDATA[Add a token to this UGI
  28942. @param token Token to be added
  28943. @return true on successful add of new token]]>
  28944. </doc>
  28945. </method>
  28946. <method name="addToken" return="boolean"
  28947. abstract="false" native="false" synchronized="false"
  28948. static="false" final="false" visibility="public"
  28949. deprecated="not deprecated">
  28950. <param name="alias" type="org.apache.hadoop.io.Text"/>
  28951. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  28952. <doc>
  28953. <![CDATA[Add a named token to this UGI
  28954. @param alias Name of the token
  28955. @param token Token to be added
  28956. @return true on successful add of new token]]>
  28957. </doc>
  28958. </method>
  28959. <method name="getTokens" return="java.util.Collection"
  28960. abstract="false" native="false" synchronized="false"
  28961. static="false" final="false" visibility="public"
  28962. deprecated="not deprecated">
  28963. <doc>
  28964. <![CDATA[Obtain the collection of tokens associated with this user.
  28965. @return an unmodifiable collection of tokens associated with user]]>
  28966. </doc>
  28967. </method>
  28968. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  28969. abstract="false" native="false" synchronized="false"
  28970. static="false" final="false" visibility="public"
  28971. deprecated="not deprecated">
  28972. <doc>
  28973. <![CDATA[Obtain the tokens in credentials form associated with this user.
  28974. @return Credentials of tokens associated with this user]]>
  28975. </doc>
  28976. </method>
  28977. <method name="addCredentials"
  28978. abstract="false" native="false" synchronized="false"
  28979. static="false" final="false" visibility="public"
  28980. deprecated="not deprecated">
  28981. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  28982. <doc>
  28983. <![CDATA[Add the given Credentials to this user.
  28984. @param credentials of tokens and secrets]]>
  28985. </doc>
  28986. </method>
  28987. <method name="getGroupNames" return="java.lang.String[]"
  28988. abstract="false" native="false" synchronized="false"
  28989. static="false" final="false" visibility="public"
  28990. deprecated="not deprecated">
  28991. <doc>
  28992. <![CDATA[Get the group names for this user. {@link #getGroups()} is less
  28993. expensive alternative when checking for a contained element.
  28994. @return the list of users with the primary group first. If the command
  28995. fails, it returns an empty list.]]>
  28996. </doc>
  28997. </method>
  28998. <method name="getGroups" return="java.util.List"
  28999. abstract="false" native="false" synchronized="false"
  29000. static="false" final="false" visibility="public"
  29001. deprecated="not deprecated">
  29002. <doc>
  29003. <![CDATA[Get the group names for this user.
  29004. @return the list of users with the primary group first. If the command
  29005. fails, it returns an empty list.]]>
  29006. </doc>
  29007. </method>
  29008. <method name="toString" return="java.lang.String"
  29009. abstract="false" native="false" synchronized="false"
  29010. static="false" final="false" visibility="public"
  29011. deprecated="not deprecated">
  29012. <doc>
  29013. <![CDATA[Return the username.]]>
  29014. </doc>
  29015. </method>
  29016. <method name="setAuthenticationMethod"
  29017. abstract="false" native="false" synchronized="true"
  29018. static="false" final="false" visibility="public"
  29019. deprecated="not deprecated">
  29020. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  29021. <doc>
  29022. <![CDATA[Sets the authentication method in the subject
  29023. @param authMethod]]>
  29024. </doc>
  29025. </method>
  29026. <method name="setAuthenticationMethod"
  29027. abstract="false" native="false" synchronized="false"
  29028. static="false" final="false" visibility="public"
  29029. deprecated="not deprecated">
  29030. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  29031. <doc>
  29032. <![CDATA[Sets the authentication method in the subject
  29033. @param authMethod]]>
  29034. </doc>
  29035. </method>
  29036. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  29037. abstract="false" native="false" synchronized="true"
  29038. static="false" final="false" visibility="public"
  29039. deprecated="not deprecated">
  29040. <doc>
  29041. <![CDATA[Get the authentication method from the subject
  29042. @return AuthenticationMethod in the subject, null if not present.]]>
  29043. </doc>
  29044. </method>
  29045. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  29046. abstract="false" native="false" synchronized="true"
  29047. static="false" final="false" visibility="public"
  29048. deprecated="not deprecated">
  29049. <doc>
  29050. <![CDATA[Get the authentication method from the real user's subject. If there
  29051. is no real user, return the given user's authentication method.
  29052. @return AuthenticationMethod in the subject, null if not present.]]>
  29053. </doc>
  29054. </method>
  29055. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  29056. abstract="false" native="false" synchronized="false"
  29057. static="true" final="false" visibility="public"
  29058. deprecated="not deprecated">
  29059. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  29060. <doc>
  29061. <![CDATA[Returns the authentication method of a ugi. If the authentication method is
  29062. PROXY, returns the authentication method of the real user.
  29063. @param ugi
  29064. @return AuthenticationMethod]]>
  29065. </doc>
  29066. </method>
  29067. <method name="equals" return="boolean"
  29068. abstract="false" native="false" synchronized="false"
  29069. static="false" final="false" visibility="public"
  29070. deprecated="not deprecated">
  29071. <param name="o" type="java.lang.Object"/>
  29072. <doc>
  29073. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  29074. </doc>
  29075. </method>
  29076. <method name="hashCode" return="int"
  29077. abstract="false" native="false" synchronized="false"
  29078. static="false" final="false" visibility="public"
  29079. deprecated="not deprecated">
  29080. <doc>
  29081. <![CDATA[Return the hash of the subject.]]>
  29082. </doc>
  29083. </method>
  29084. <method name="getSubject" return="javax.security.auth.Subject"
  29085. abstract="false" native="false" synchronized="false"
  29086. static="false" final="false" visibility="protected"
  29087. deprecated="not deprecated">
  29088. <doc>
  29089. <![CDATA[Get the underlying subject from this ugi.
  29090. @return the subject that represents this user.]]>
  29091. </doc>
  29092. </method>
  29093. <method name="doAs" return="T"
  29094. abstract="false" native="false" synchronized="false"
  29095. static="false" final="false" visibility="public"
  29096. deprecated="not deprecated">
  29097. <param name="action" type="java.security.PrivilegedAction"/>
  29098. <doc>
  29099. <![CDATA[Run the given action as the user.
  29100. @param <T> the return type of the run method
  29101. @param action the method to execute
  29102. @return the value from the run method]]>
  29103. </doc>
  29104. </method>
  29105. <method name="doAs" return="T"
  29106. abstract="false" native="false" synchronized="false"
  29107. static="false" final="false" visibility="public"
  29108. deprecated="not deprecated">
  29109. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  29110. <exception name="IOException" type="java.io.IOException"/>
  29111. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  29112. <doc>
  29113. <![CDATA[Run the given action as the user, potentially throwing an exception.
  29114. @param <T> the return type of the run method
  29115. @param action the method to execute
  29116. @return the value from the run method
  29117. @throws IOException if the action throws an IOException
  29118. @throws Error if the action throws an Error
  29119. @throws RuntimeException if the action throws a RuntimeException
  29120. @throws InterruptedException if the action throws an InterruptedException
  29121. @throws UndeclaredThrowableException if the action throws something else]]>
  29122. </doc>
  29123. </method>
  29124. <method name="logAllUserInfo"
  29125. abstract="false" native="false" synchronized="false"
  29126. static="true" final="false" visibility="public"
  29127. deprecated="not deprecated">
  29128. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  29129. <exception name="IOException" type="java.io.IOException"/>
  29130. <doc>
  29131. <![CDATA[Log all (current, real, login) UGI and token info into UGI debug log.
  29132. @param ugi - UGI
  29133. @throws IOException]]>
  29134. </doc>
  29135. </method>
  29136. <method name="main"
  29137. abstract="false" native="false" synchronized="false"
  29138. static="true" final="false" visibility="public"
  29139. deprecated="not deprecated">
  29140. <param name="args" type="java.lang.String[]"/>
  29141. <exception name="Exception" type="java.lang.Exception"/>
  29142. <doc>
  29143. <![CDATA[A test method to print out the current user's UGI.
  29144. @param args if there are two arguments, read the user from the keytab
  29145. and print it out.
  29146. @throws Exception]]>
  29147. </doc>
  29148. </method>
  29149. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  29150. transient="false" volatile="false"
  29151. static="true" final="true" visibility="public"
  29152. deprecated="not deprecated">
  29153. <doc>
  29154. <![CDATA[Environment variable pointing to the token cache file]]>
  29155. </doc>
  29156. </field>
  29157. <doc>
  29158. <![CDATA[User and group information for Hadoop.
  29159. This class wraps around a JAAS Subject and provides methods to determine the
  29160. user's username and groups. It supports both the Windows, Unix and Kerberos
  29161. login modules.]]>
  29162. </doc>
  29163. </class>
  29164. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  29165. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  29166. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  29167. abstract="false"
  29168. static="true" final="true" visibility="public"
  29169. deprecated="not deprecated">
  29170. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  29171. abstract="false" native="false" synchronized="false"
  29172. static="true" final="false" visibility="public"
  29173. deprecated="not deprecated">
  29174. </method>
  29175. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  29176. abstract="false" native="false" synchronized="false"
  29177. static="true" final="false" visibility="public"
  29178. deprecated="not deprecated">
  29179. <param name="name" type="java.lang.String"/>
  29180. </method>
  29181. <method name="getAuthMethod" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  29182. abstract="false" native="false" synchronized="false"
  29183. static="false" final="false" visibility="public"
  29184. deprecated="not deprecated">
  29185. </method>
  29186. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  29187. abstract="false" native="false" synchronized="false"
  29188. static="true" final="false" visibility="public"
  29189. deprecated="not deprecated">
  29190. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  29191. </method>
  29192. <doc>
  29193. <![CDATA[existing types of authentications' methods]]>
  29194. </doc>
  29195. </class>
  29196. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  29197. </package>
  29198. <package name="org.apache.hadoop.security.alias">
  29199. <!-- start class org.apache.hadoop.security.alias.CredentialProvider -->
  29200. <class name="CredentialProvider" extends="java.lang.Object"
  29201. abstract="true"
  29202. static="false" final="false" visibility="public"
  29203. deprecated="not deprecated">
  29204. <constructor name="CredentialProvider"
  29205. static="false" final="false" visibility="public"
  29206. deprecated="not deprecated">
  29207. </constructor>
  29208. <method name="isTransient" return="boolean"
  29209. abstract="false" native="false" synchronized="false"
  29210. static="false" final="false" visibility="public"
  29211. deprecated="not deprecated">
  29212. <doc>
  29213. <![CDATA[Indicates whether this provider represents a store
  29214. that is intended for transient use - such as the UserProvider
  29215. is. These providers are generally used to provide job access to
  29216. passwords rather than for long term storage.
  29217. @return true if transient, false otherwise]]>
  29218. </doc>
  29219. </method>
  29220. <method name="flush"
  29221. abstract="true" native="false" synchronized="false"
  29222. static="false" final="false" visibility="public"
  29223. deprecated="not deprecated">
  29224. <exception name="IOException" type="java.io.IOException"/>
  29225. <doc>
  29226. <![CDATA[Ensures that any changes to the credentials are written to persistent
  29227. store.
  29228. @throws IOException]]>
  29229. </doc>
  29230. </method>
  29231. <method name="getCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  29232. abstract="true" native="false" synchronized="false"
  29233. static="false" final="false" visibility="public"
  29234. deprecated="not deprecated">
  29235. <param name="alias" type="java.lang.String"/>
  29236. <exception name="IOException" type="java.io.IOException"/>
  29237. <doc>
  29238. <![CDATA[Get the credential entry for a specific alias.
  29239. @param alias the name of a specific credential
  29240. @return the credentialEntry
  29241. @throws IOException]]>
  29242. </doc>
  29243. </method>
  29244. <method name="getAliases" return="java.util.List"
  29245. abstract="true" native="false" synchronized="false"
  29246. static="false" final="false" visibility="public"
  29247. deprecated="not deprecated">
  29248. <exception name="IOException" type="java.io.IOException"/>
  29249. <doc>
  29250. <![CDATA[Get the aliases for all credentials.
  29251. @return the list of alias names
  29252. @throws IOException]]>
  29253. </doc>
  29254. </method>
  29255. <method name="createCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  29256. abstract="true" native="false" synchronized="false"
  29257. static="false" final="false" visibility="public"
  29258. deprecated="not deprecated">
  29259. <param name="name" type="java.lang.String"/>
  29260. <param name="credential" type="char[]"/>
  29261. <exception name="IOException" type="java.io.IOException"/>
  29262. <doc>
  29263. <![CDATA[Create a new credential. The given alias must not already exist.
  29264. @param name the alias of the credential
  29265. @param credential the credential value for the alias.
  29266. @throws IOException]]>
  29267. </doc>
  29268. </method>
  29269. <method name="deleteCredentialEntry"
  29270. abstract="true" native="false" synchronized="false"
  29271. static="false" final="false" visibility="public"
  29272. deprecated="not deprecated">
  29273. <param name="name" type="java.lang.String"/>
  29274. <exception name="IOException" type="java.io.IOException"/>
  29275. <doc>
  29276. <![CDATA[Delete the given credential.
  29277. @param name the alias of the credential to delete
  29278. @throws IOException]]>
  29279. </doc>
  29280. </method>
  29281. <method name="needsPassword" return="boolean"
  29282. abstract="false" native="false" synchronized="false"
  29283. static="false" final="false" visibility="public"
  29284. deprecated="not deprecated">
  29285. <exception name="IOException" type="java.io.IOException"/>
  29286. <doc>
  29287. <![CDATA[Does this provider require a password? This means that a password is
  29288. required for normal operation, and it has not been found through normal
  29289. means. If true, the password should be provided by the caller using
  29290. setPassword().
  29291. @return Whether or not the provider requires a password
  29292. @throws IOException]]>
  29293. </doc>
  29294. </method>
  29295. <method name="noPasswordWarning" return="java.lang.String"
  29296. abstract="false" native="false" synchronized="false"
  29297. static="false" final="false" visibility="public"
  29298. deprecated="not deprecated">
  29299. <doc>
  29300. <![CDATA[If a password for the provider is needed, but is not provided, this will
  29301. return a warning and instructions for supplying said password to the
  29302. provider.
  29303. @return A warning and instructions for supplying the password]]>
  29304. </doc>
  29305. </method>
  29306. <method name="noPasswordError" return="java.lang.String"
  29307. abstract="false" native="false" synchronized="false"
  29308. static="false" final="false" visibility="public"
  29309. deprecated="not deprecated">
  29310. <doc>
  29311. <![CDATA[If a password for the provider is needed, but is not provided, this will
  29312. return an error message and instructions for supplying said password to
  29313. the provider.
  29314. @return An error message and instructions for supplying the password]]>
  29315. </doc>
  29316. </method>
  29317. <field name="CLEAR_TEXT_FALLBACK" type="java.lang.String"
  29318. transient="false" volatile="false"
  29319. static="true" final="true" visibility="public"
  29320. deprecated="not deprecated">
  29321. </field>
  29322. <doc>
  29323. <![CDATA[A provider of credentials or password for Hadoop applications. Provides an
  29324. abstraction to separate credential storage from users of them. It
  29325. is intended to support getting or storing passwords in a variety of ways,
  29326. including third party bindings.
  29327. <code>CredentialProvider</code> implementations must be thread safe.]]>
  29328. </doc>
  29329. </class>
  29330. <!-- end class org.apache.hadoop.security.alias.CredentialProvider -->
  29331. <!-- start class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  29332. <class name="CredentialProviderFactory" extends="java.lang.Object"
  29333. abstract="true"
  29334. static="false" final="false" visibility="public"
  29335. deprecated="not deprecated">
  29336. <constructor name="CredentialProviderFactory"
  29337. static="false" final="false" visibility="public"
  29338. deprecated="not deprecated">
  29339. </constructor>
  29340. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  29341. abstract="true" native="false" synchronized="false"
  29342. static="false" final="false" visibility="public"
  29343. deprecated="not deprecated">
  29344. <param name="providerName" type="java.net.URI"/>
  29345. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29346. <exception name="IOException" type="java.io.IOException"/>
  29347. </method>
  29348. <method name="getProviders" return="java.util.List"
  29349. abstract="false" native="false" synchronized="false"
  29350. static="true" final="false" visibility="public"
  29351. deprecated="not deprecated">
  29352. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29353. <exception name="IOException" type="java.io.IOException"/>
  29354. </method>
  29355. <field name="CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  29356. transient="false" volatile="false"
  29357. static="true" final="true" visibility="public"
  29358. deprecated="not deprecated">
  29359. </field>
  29360. <doc>
  29361. <![CDATA[A factory to create a list of CredentialProvider based on the path given in a
  29362. Configuration. It uses a service loader interface to find the available
  29363. CredentialProviders and create them based on the list of URIs.]]>
  29364. </doc>
  29365. </class>
  29366. <!-- end class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  29367. </package>
  29368. <package name="org.apache.hadoop.security.authorize">
  29369. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  29370. <class name="AccessControlList" extends="java.lang.Object"
  29371. abstract="false"
  29372. static="false" final="false" visibility="public"
  29373. deprecated="not deprecated">
  29374. <implements name="org.apache.hadoop.io.Writable"/>
  29375. <constructor name="AccessControlList"
  29376. static="false" final="false" visibility="public"
  29377. deprecated="not deprecated">
  29378. <doc>
  29379. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  29380. </doc>
  29381. </constructor>
  29382. <constructor name="AccessControlList" type="java.lang.String"
  29383. static="false" final="false" visibility="public"
  29384. deprecated="not deprecated">
  29385. <doc>
  29386. <![CDATA[Construct a new ACL from a String representation of the same.
  29387. The String is a a comma separated list of users and groups.
  29388. The user list comes first and is separated by a space followed
  29389. by the group list. For e.g. "user1,user2 group1,group2"
  29390. @param aclString String representation of the ACL]]>
  29391. </doc>
  29392. </constructor>
  29393. <constructor name="AccessControlList" type="java.lang.String, java.lang.String"
  29394. static="false" final="false" visibility="public"
  29395. deprecated="not deprecated">
  29396. <doc>
  29397. <![CDATA[Construct a new ACL from String representation of users and groups
  29398. The arguments are comma separated lists
  29399. @param users comma separated list of users
  29400. @param groups comma separated list of groups]]>
  29401. </doc>
  29402. </constructor>
  29403. <method name="isAllAllowed" return="boolean"
  29404. abstract="false" native="false" synchronized="false"
  29405. static="false" final="false" visibility="public"
  29406. deprecated="not deprecated">
  29407. </method>
  29408. <method name="addUser"
  29409. abstract="false" native="false" synchronized="false"
  29410. static="false" final="false" visibility="public"
  29411. deprecated="not deprecated">
  29412. <param name="user" type="java.lang.String"/>
  29413. <doc>
  29414. <![CDATA[Add user to the names of users allowed for this service.
  29415. @param user
  29416. The user name]]>
  29417. </doc>
  29418. </method>
  29419. <method name="addGroup"
  29420. abstract="false" native="false" synchronized="false"
  29421. static="false" final="false" visibility="public"
  29422. deprecated="not deprecated">
  29423. <param name="group" type="java.lang.String"/>
  29424. <doc>
  29425. <![CDATA[Add group to the names of groups allowed for this service.
  29426. @param group
  29427. The group name]]>
  29428. </doc>
  29429. </method>
  29430. <method name="removeUser"
  29431. abstract="false" native="false" synchronized="false"
  29432. static="false" final="false" visibility="public"
  29433. deprecated="not deprecated">
  29434. <param name="user" type="java.lang.String"/>
  29435. <doc>
  29436. <![CDATA[Remove user from the names of users allowed for this service.
  29437. @param user
  29438. The user name]]>
  29439. </doc>
  29440. </method>
  29441. <method name="removeGroup"
  29442. abstract="false" native="false" synchronized="false"
  29443. static="false" final="false" visibility="public"
  29444. deprecated="not deprecated">
  29445. <param name="group" type="java.lang.String"/>
  29446. <doc>
  29447. <![CDATA[Remove group from the names of groups allowed for this service.
  29448. @param group
  29449. The group name]]>
  29450. </doc>
  29451. </method>
  29452. <method name="getUsers" return="java.util.Collection"
  29453. abstract="false" native="false" synchronized="false"
  29454. static="false" final="false" visibility="public"
  29455. deprecated="not deprecated">
  29456. <doc>
  29457. <![CDATA[Get the names of users allowed for this service.
  29458. @return the set of user names. the set must not be modified.]]>
  29459. </doc>
  29460. </method>
  29461. <method name="getGroups" return="java.util.Collection"
  29462. abstract="false" native="false" synchronized="false"
  29463. static="false" final="false" visibility="public"
  29464. deprecated="not deprecated">
  29465. <doc>
  29466. <![CDATA[Get the names of user groups allowed for this service.
  29467. @return the set of group names. the set must not be modified.]]>
  29468. </doc>
  29469. </method>
  29470. <method name="isUserInList" return="boolean"
  29471. abstract="false" native="false" synchronized="false"
  29472. static="false" final="true" visibility="public"
  29473. deprecated="not deprecated">
  29474. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  29475. <doc>
  29476. <![CDATA[Checks if a user represented by the provided {@link UserGroupInformation}
  29477. is a member of the Access Control List
  29478. @param ugi UserGroupInformation to check if contained in the ACL
  29479. @return true if ugi is member of the list]]>
  29480. </doc>
  29481. </method>
  29482. <method name="isUserAllowed" return="boolean"
  29483. abstract="false" native="false" synchronized="false"
  29484. static="false" final="false" visibility="public"
  29485. deprecated="not deprecated">
  29486. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  29487. </method>
  29488. <method name="toString" return="java.lang.String"
  29489. abstract="false" native="false" synchronized="false"
  29490. static="false" final="false" visibility="public"
  29491. deprecated="not deprecated">
  29492. <doc>
  29493. <![CDATA[Returns descriptive way of users and groups that are part of this ACL.
  29494. Use {@link #getAclString()} to get the exact String that can be given to
  29495. the constructor of AccessControlList to create a new instance.]]>
  29496. </doc>
  29497. </method>
  29498. <method name="getAclString" return="java.lang.String"
  29499. abstract="false" native="false" synchronized="false"
  29500. static="false" final="false" visibility="public"
  29501. deprecated="not deprecated">
  29502. <doc>
  29503. <![CDATA[Returns the access control list as a String that can be used for building a
  29504. new instance by sending it to the constructor of {@link AccessControlList}.]]>
  29505. </doc>
  29506. </method>
  29507. <method name="write"
  29508. abstract="false" native="false" synchronized="false"
  29509. static="false" final="false" visibility="public"
  29510. deprecated="not deprecated">
  29511. <param name="out" type="java.io.DataOutput"/>
  29512. <exception name="IOException" type="java.io.IOException"/>
  29513. <doc>
  29514. <![CDATA[Serializes the AccessControlList object]]>
  29515. </doc>
  29516. </method>
  29517. <method name="readFields"
  29518. abstract="false" native="false" synchronized="false"
  29519. static="false" final="false" visibility="public"
  29520. deprecated="not deprecated">
  29521. <param name="in" type="java.io.DataInput"/>
  29522. <exception name="IOException" type="java.io.IOException"/>
  29523. <doc>
  29524. <![CDATA[Deserializes the AccessControlList object]]>
  29525. </doc>
  29526. </method>
  29527. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  29528. transient="false" volatile="false"
  29529. static="true" final="true" visibility="public"
  29530. deprecated="not deprecated">
  29531. </field>
  29532. <doc>
  29533. <![CDATA[Class representing a configured access control list.]]>
  29534. </doc>
  29535. </class>
  29536. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  29537. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  29538. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  29539. abstract="false"
  29540. static="false" final="false" visibility="public"
  29541. deprecated="not deprecated">
  29542. <constructor name="AuthorizationException"
  29543. static="false" final="false" visibility="public"
  29544. deprecated="not deprecated">
  29545. </constructor>
  29546. <constructor name="AuthorizationException" type="java.lang.String"
  29547. static="false" final="false" visibility="public"
  29548. deprecated="not deprecated">
  29549. </constructor>
  29550. <constructor name="AuthorizationException" type="java.lang.Throwable"
  29551. static="false" final="false" visibility="public"
  29552. deprecated="not deprecated">
  29553. <doc>
  29554. <![CDATA[Constructs a new exception with the specified cause and a detail
  29555. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  29556. typically contains the class and detail message of <tt>cause</tt>).
  29557. @param cause the cause (which is saved for later retrieval by the
  29558. {@link #getCause()} method). (A <tt>null</tt> value is
  29559. permitted, and indicates that the cause is nonexistent or
  29560. unknown.)]]>
  29561. </doc>
  29562. </constructor>
  29563. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  29564. abstract="false" native="false" synchronized="false"
  29565. static="false" final="false" visibility="public"
  29566. deprecated="not deprecated">
  29567. </method>
  29568. <method name="printStackTrace"
  29569. abstract="false" native="false" synchronized="false"
  29570. static="false" final="false" visibility="public"
  29571. deprecated="not deprecated">
  29572. </method>
  29573. <method name="printStackTrace"
  29574. abstract="false" native="false" synchronized="false"
  29575. static="false" final="false" visibility="public"
  29576. deprecated="not deprecated">
  29577. <param name="s" type="java.io.PrintStream"/>
  29578. </method>
  29579. <method name="printStackTrace"
  29580. abstract="false" native="false" synchronized="false"
  29581. static="false" final="false" visibility="public"
  29582. deprecated="not deprecated">
  29583. <param name="s" type="java.io.PrintWriter"/>
  29584. </method>
  29585. <doc>
  29586. <![CDATA[An exception class for authorization-related issues.
  29587. This class <em>does not</em> provide the stack trace for security purposes.]]>
  29588. </doc>
  29589. </class>
  29590. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  29591. <!-- start class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  29592. <class name="DefaultImpersonationProvider" extends="java.lang.Object"
  29593. abstract="false"
  29594. static="false" final="false" visibility="public"
  29595. deprecated="not deprecated">
  29596. <implements name="org.apache.hadoop.security.authorize.ImpersonationProvider"/>
  29597. <constructor name="DefaultImpersonationProvider"
  29598. static="false" final="false" visibility="public"
  29599. deprecated="not deprecated">
  29600. </constructor>
  29601. <method name="getTestProvider" return="org.apache.hadoop.security.authorize.DefaultImpersonationProvider"
  29602. abstract="false" native="false" synchronized="true"
  29603. static="true" final="false" visibility="public"
  29604. deprecated="not deprecated">
  29605. </method>
  29606. <method name="setConf"
  29607. abstract="false" native="false" synchronized="false"
  29608. static="false" final="false" visibility="public"
  29609. deprecated="not deprecated">
  29610. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29611. </method>
  29612. <method name="init"
  29613. abstract="false" native="false" synchronized="false"
  29614. static="false" final="false" visibility="public"
  29615. deprecated="not deprecated">
  29616. <param name="configurationPrefix" type="java.lang.String"/>
  29617. </method>
  29618. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  29619. abstract="false" native="false" synchronized="false"
  29620. static="false" final="false" visibility="public"
  29621. deprecated="not deprecated">
  29622. </method>
  29623. <method name="authorize"
  29624. abstract="false" native="false" synchronized="false"
  29625. static="false" final="false" visibility="public"
  29626. deprecated="not deprecated">
  29627. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  29628. <param name="remoteAddress" type="java.lang.String"/>
  29629. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  29630. </method>
  29631. <method name="getProxySuperuserUserConfKey" return="java.lang.String"
  29632. abstract="false" native="false" synchronized="false"
  29633. static="false" final="false" visibility="public"
  29634. deprecated="not deprecated">
  29635. <param name="userName" type="java.lang.String"/>
  29636. <doc>
  29637. <![CDATA[Returns configuration key for effective usergroups allowed for a superuser
  29638. @param userName name of the superuser
  29639. @return configuration key for superuser usergroups]]>
  29640. </doc>
  29641. </method>
  29642. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  29643. abstract="false" native="false" synchronized="false"
  29644. static="false" final="false" visibility="public"
  29645. deprecated="not deprecated">
  29646. <param name="userName" type="java.lang.String"/>
  29647. <doc>
  29648. <![CDATA[Returns configuration key for effective groups allowed for a superuser
  29649. @param userName name of the superuser
  29650. @return configuration key for superuser groups]]>
  29651. </doc>
  29652. </method>
  29653. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  29654. abstract="false" native="false" synchronized="false"
  29655. static="false" final="false" visibility="public"
  29656. deprecated="not deprecated">
  29657. <param name="userName" type="java.lang.String"/>
  29658. <doc>
  29659. <![CDATA[Return configuration key for superuser ip addresses
  29660. @param userName name of the superuser
  29661. @return configuration key for superuser ip-addresses]]>
  29662. </doc>
  29663. </method>
  29664. <method name="getProxyGroups" return="java.util.Map"
  29665. abstract="false" native="false" synchronized="false"
  29666. static="false" final="false" visibility="public"
  29667. deprecated="not deprecated">
  29668. </method>
  29669. <method name="getProxyHosts" return="java.util.Map"
  29670. abstract="false" native="false" synchronized="false"
  29671. static="false" final="false" visibility="public"
  29672. deprecated="not deprecated">
  29673. </method>
  29674. </class>
  29675. <!-- end class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  29676. <!-- start interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  29677. <interface name="ImpersonationProvider" abstract="true"
  29678. static="false" final="false" visibility="public"
  29679. deprecated="not deprecated">
  29680. <implements name="org.apache.hadoop.conf.Configurable"/>
  29681. <method name="init"
  29682. abstract="true" native="false" synchronized="false"
  29683. static="false" final="false" visibility="public"
  29684. deprecated="not deprecated">
  29685. <param name="configurationPrefix" type="java.lang.String"/>
  29686. <doc>
  29687. <![CDATA[Specifies the configuration prefix for the proxy user properties and
  29688. initializes the provider.
  29689. @param configurationPrefix the configuration prefix for the proxy user
  29690. properties]]>
  29691. </doc>
  29692. </method>
  29693. <method name="authorize"
  29694. abstract="true" native="false" synchronized="false"
  29695. static="false" final="false" visibility="public"
  29696. deprecated="not deprecated">
  29697. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  29698. <param name="remoteAddress" type="java.lang.String"/>
  29699. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  29700. <doc>
  29701. <![CDATA[Authorize the superuser which is doing doAs
  29702. @param user ugi of the effective or proxy user which contains a real user
  29703. @param remoteAddress the ip address of client
  29704. @throws AuthorizationException]]>
  29705. </doc>
  29706. </method>
  29707. </interface>
  29708. <!-- end interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  29709. </package>
  29710. <package name="org.apache.hadoop.security.http">
  29711. <!-- start class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  29712. <class name="RestCsrfPreventionFilter" extends="java.lang.Object"
  29713. abstract="false"
  29714. static="false" final="false" visibility="public"
  29715. deprecated="not deprecated">
  29716. <implements name="javax.servlet.Filter"/>
  29717. <constructor name="RestCsrfPreventionFilter"
  29718. static="false" final="false" visibility="public"
  29719. deprecated="not deprecated">
  29720. </constructor>
  29721. <method name="init"
  29722. abstract="false" native="false" synchronized="false"
  29723. static="false" final="false" visibility="public"
  29724. deprecated="not deprecated">
  29725. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  29726. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29727. </method>
  29728. <method name="isBrowser" return="boolean"
  29729. abstract="false" native="false" synchronized="false"
  29730. static="false" final="false" visibility="protected"
  29731. deprecated="not deprecated">
  29732. <param name="userAgent" type="java.lang.String"/>
  29733. <doc>
  29734. <![CDATA[This method interrogates the User-Agent String and returns whether it
  29735. refers to a browser. If its not a browser, then the requirement for the
  29736. CSRF header will not be enforced; if it is a browser, the requirement will
  29737. be enforced.
  29738. <p>
  29739. A User-Agent String is considered to be a browser if it matches
  29740. any of the regex patterns from browser-useragent-regex; the default
  29741. behavior is to consider everything a browser that matches the following:
  29742. "^Mozilla.*,^Opera.*". Subclasses can optionally override
  29743. this method to use different behavior.
  29744. @param userAgent The User-Agent String, or null if there isn't one
  29745. @return true if the User-Agent String refers to a browser, false if not]]>
  29746. </doc>
  29747. </method>
  29748. <method name="handleHttpInteraction"
  29749. abstract="false" native="false" synchronized="false"
  29750. static="false" final="false" visibility="public"
  29751. deprecated="not deprecated">
  29752. <param name="httpInteraction" type="org.apache.hadoop.security.http.RestCsrfPreventionFilter.HttpInteraction"/>
  29753. <exception name="IOException" type="java.io.IOException"/>
  29754. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29755. <doc>
  29756. <![CDATA[Handles an {@link HttpInteraction} by applying the filtering logic.
  29757. @param httpInteraction caller's HTTP interaction
  29758. @throws IOException if there is an I/O error
  29759. @throws ServletException if the implementation relies on the servlet API
  29760. and a servlet API call has failed]]>
  29761. </doc>
  29762. </method>
  29763. <method name="doFilter"
  29764. abstract="false" native="false" synchronized="false"
  29765. static="false" final="false" visibility="public"
  29766. deprecated="not deprecated">
  29767. <param name="request" type="javax.servlet.ServletRequest"/>
  29768. <param name="response" type="javax.servlet.ServletResponse"/>
  29769. <param name="chain" type="javax.servlet.FilterChain"/>
  29770. <exception name="IOException" type="java.io.IOException"/>
  29771. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29772. </method>
  29773. <method name="destroy"
  29774. abstract="false" native="false" synchronized="false"
  29775. static="false" final="false" visibility="public"
  29776. deprecated="not deprecated">
  29777. </method>
  29778. <method name="getFilterParams" return="java.util.Map"
  29779. abstract="false" native="false" synchronized="false"
  29780. static="true" final="false" visibility="public"
  29781. deprecated="not deprecated">
  29782. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29783. <param name="confPrefix" type="java.lang.String"/>
  29784. <doc>
  29785. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  29786. initialization. The mapping includes all properties that start with the
  29787. specified configuration prefix. Property names in the mapping are trimmed
  29788. to remove the configuration prefix.
  29789. @param conf configuration to read
  29790. @param confPrefix configuration prefix
  29791. @return mapping of configuration properties to be used for filter
  29792. initialization]]>
  29793. </doc>
  29794. </method>
  29795. <field name="HEADER_USER_AGENT" type="java.lang.String"
  29796. transient="false" volatile="false"
  29797. static="true" final="true" visibility="public"
  29798. deprecated="not deprecated">
  29799. </field>
  29800. <field name="BROWSER_USER_AGENT_PARAM" type="java.lang.String"
  29801. transient="false" volatile="false"
  29802. static="true" final="true" visibility="public"
  29803. deprecated="not deprecated">
  29804. </field>
  29805. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  29806. transient="false" volatile="false"
  29807. static="true" final="true" visibility="public"
  29808. deprecated="not deprecated">
  29809. </field>
  29810. <field name="CUSTOM_METHODS_TO_IGNORE_PARAM" type="java.lang.String"
  29811. transient="false" volatile="false"
  29812. static="true" final="true" visibility="public"
  29813. deprecated="not deprecated">
  29814. </field>
  29815. <field name="HEADER_DEFAULT" type="java.lang.String"
  29816. transient="false" volatile="false"
  29817. static="true" final="true" visibility="public"
  29818. deprecated="not deprecated">
  29819. </field>
  29820. <doc>
  29821. <![CDATA[This filter provides protection against cross site request forgery (CSRF)
  29822. attacks for REST APIs. Enabling this filter on an endpoint results in the
  29823. requirement of all client to send a particular (configurable) HTTP header
  29824. with every request. In the absense of this header the filter will reject the
  29825. attempt as a bad request.]]>
  29826. </doc>
  29827. </class>
  29828. <!-- end class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  29829. <!-- start class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  29830. <class name="XFrameOptionsFilter" extends="java.lang.Object"
  29831. abstract="false"
  29832. static="false" final="false" visibility="public"
  29833. deprecated="not deprecated">
  29834. <implements name="javax.servlet.Filter"/>
  29835. <constructor name="XFrameOptionsFilter"
  29836. static="false" final="false" visibility="public"
  29837. deprecated="not deprecated">
  29838. </constructor>
  29839. <method name="destroy"
  29840. abstract="false" native="false" synchronized="false"
  29841. static="false" final="false" visibility="public"
  29842. deprecated="not deprecated">
  29843. </method>
  29844. <method name="doFilter"
  29845. abstract="false" native="false" synchronized="false"
  29846. static="false" final="false" visibility="public"
  29847. deprecated="not deprecated">
  29848. <param name="req" type="javax.servlet.ServletRequest"/>
  29849. <param name="res" type="javax.servlet.ServletResponse"/>
  29850. <param name="chain" type="javax.servlet.FilterChain"/>
  29851. <exception name="IOException" type="java.io.IOException"/>
  29852. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29853. </method>
  29854. <method name="init"
  29855. abstract="false" native="false" synchronized="false"
  29856. static="false" final="false" visibility="public"
  29857. deprecated="not deprecated">
  29858. <param name="config" type="javax.servlet.FilterConfig"/>
  29859. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29860. </method>
  29861. <method name="getFilterParams" return="java.util.Map"
  29862. abstract="false" native="false" synchronized="false"
  29863. static="true" final="false" visibility="public"
  29864. deprecated="not deprecated">
  29865. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29866. <param name="confPrefix" type="java.lang.String"/>
  29867. <doc>
  29868. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  29869. initialization. The mapping includes all properties that start with the
  29870. specified configuration prefix. Property names in the mapping are trimmed
  29871. to remove the configuration prefix.
  29872. @param conf configuration to read
  29873. @param confPrefix configuration prefix
  29874. @return mapping of configuration properties to be used for filter
  29875. initialization]]>
  29876. </doc>
  29877. </method>
  29878. <field name="X_FRAME_OPTIONS" type="java.lang.String"
  29879. transient="false" volatile="false"
  29880. static="true" final="true" visibility="public"
  29881. deprecated="not deprecated">
  29882. </field>
  29883. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  29884. transient="false" volatile="false"
  29885. static="true" final="true" visibility="public"
  29886. deprecated="not deprecated">
  29887. </field>
  29888. <doc>
  29889. <![CDATA[This filter protects webapps from clickjacking attacks that
  29890. are possible through use of Frames to embed the resources in another
  29891. application and intercept clicks to accomplish nefarious things.]]>
  29892. </doc>
  29893. </class>
  29894. <!-- end class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  29895. </package>
  29896. <package name="org.apache.hadoop.security.protocolPB">
  29897. </package>
  29898. <package name="org.apache.hadoop.security.ssl">
  29899. </package>
  29900. <package name="org.apache.hadoop.security.token">
  29901. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  29902. <class name="SecretManager" extends="java.lang.Object"
  29903. abstract="true"
  29904. static="false" final="false" visibility="public"
  29905. deprecated="not deprecated">
  29906. <constructor name="SecretManager"
  29907. static="false" final="false" visibility="public"
  29908. deprecated="not deprecated">
  29909. </constructor>
  29910. <method name="createPassword" return="byte[]"
  29911. abstract="true" native="false" synchronized="false"
  29912. static="false" final="false" visibility="protected"
  29913. deprecated="not deprecated">
  29914. <param name="identifier" type="T"/>
  29915. <doc>
  29916. <![CDATA[Create the password for the given identifier.
  29917. identifier may be modified inside this method.
  29918. @param identifier the identifier to use
  29919. @return the new password]]>
  29920. </doc>
  29921. </method>
  29922. <method name="retrievePassword" return="byte[]"
  29923. abstract="true" native="false" synchronized="false"
  29924. static="false" final="false" visibility="public"
  29925. deprecated="not deprecated">
  29926. <param name="identifier" type="T"/>
  29927. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  29928. <doc>
  29929. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  29930. or registry to make sure the token hasn't expired or been revoked. Returns
  29931. the relevant password.
  29932. @param identifier the identifier to validate
  29933. @return the password to use
  29934. @throws InvalidToken the token was invalid]]>
  29935. </doc>
  29936. </method>
  29937. <method name="retriableRetrievePassword" return="byte[]"
  29938. abstract="false" native="false" synchronized="false"
  29939. static="false" final="false" visibility="public"
  29940. deprecated="not deprecated">
  29941. <param name="identifier" type="T"/>
  29942. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  29943. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  29944. <exception name="RetriableException" type="org.apache.hadoop.ipc.RetriableException"/>
  29945. <exception name="IOException" type="java.io.IOException"/>
  29946. <doc>
  29947. <![CDATA[The same functionality with {@link #retrievePassword}, except that this
  29948. method can throw a {@link RetriableException} or a {@link StandbyException}
  29949. to indicate that client can retry/failover the same operation because of
  29950. temporary issue on the server side.
  29951. @param identifier the identifier to validate
  29952. @return the password to use
  29953. @throws InvalidToken the token was invalid
  29954. @throws StandbyException the server is in standby state, the client can
  29955. try other servers
  29956. @throws RetriableException the token was invalid, and the server thinks
  29957. this may be a temporary issue and suggests the client to retry
  29958. @throws IOException to allow future exceptions to be added without breaking
  29959. compatibility]]>
  29960. </doc>
  29961. </method>
  29962. <method name="createIdentifier" return="T"
  29963. abstract="true" native="false" synchronized="false"
  29964. static="false" final="false" visibility="public"
  29965. deprecated="not deprecated">
  29966. <doc>
  29967. <![CDATA[Create an empty token identifier.
  29968. @return the newly created empty token identifier]]>
  29969. </doc>
  29970. </method>
  29971. <method name="checkAvailableForRead"
  29972. abstract="false" native="false" synchronized="false"
  29973. static="false" final="false" visibility="public"
  29974. deprecated="not deprecated">
  29975. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  29976. <doc>
  29977. <![CDATA[No-op if the secret manager is available for reading tokens, throw a
  29978. StandbyException otherwise.
  29979. @throws StandbyException if the secret manager is not available to read
  29980. tokens]]>
  29981. </doc>
  29982. </method>
  29983. <method name="generateSecret" return="javax.crypto.SecretKey"
  29984. abstract="false" native="false" synchronized="false"
  29985. static="false" final="false" visibility="protected"
  29986. deprecated="not deprecated">
  29987. <doc>
  29988. <![CDATA[Generate a new random secret key.
  29989. @return the new key]]>
  29990. </doc>
  29991. </method>
  29992. <method name="createPassword" return="byte[]"
  29993. abstract="false" native="false" synchronized="false"
  29994. static="true" final="false" visibility="protected"
  29995. deprecated="not deprecated">
  29996. <param name="identifier" type="byte[]"/>
  29997. <param name="key" type="javax.crypto.SecretKey"/>
  29998. <doc>
  29999. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  30000. output as password
  30001. @param identifier the bytes of the identifier
  30002. @param key the secret key
  30003. @return the bytes of the generated password]]>
  30004. </doc>
  30005. </method>
  30006. <method name="createSecretKey" return="javax.crypto.SecretKey"
  30007. abstract="false" native="false" synchronized="false"
  30008. static="true" final="false" visibility="protected"
  30009. deprecated="not deprecated">
  30010. <param name="key" type="byte[]"/>
  30011. <doc>
  30012. <![CDATA[Convert the byte[] to a secret key
  30013. @param key the byte[] to create a secret key from
  30014. @return the secret key]]>
  30015. </doc>
  30016. </method>
  30017. <doc>
  30018. <![CDATA[The server-side secret manager for each token type.
  30019. @param <T> The type of the token identifier]]>
  30020. </doc>
  30021. </class>
  30022. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  30023. <!-- start class org.apache.hadoop.security.token.Token -->
  30024. <class name="Token" extends="java.lang.Object"
  30025. abstract="false"
  30026. static="false" final="false" visibility="public"
  30027. deprecated="not deprecated">
  30028. <implements name="org.apache.hadoop.io.Writable"/>
  30029. <constructor name="Token" type="T, org.apache.hadoop.security.token.SecretManager"
  30030. static="false" final="false" visibility="public"
  30031. deprecated="not deprecated">
  30032. <doc>
  30033. <![CDATA[Construct a token given a token identifier and a secret manager for the
  30034. type of the token identifier.
  30035. @param id the token identifier
  30036. @param mgr the secret manager]]>
  30037. </doc>
  30038. </constructor>
  30039. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  30040. static="false" final="false" visibility="public"
  30041. deprecated="not deprecated">
  30042. <doc>
  30043. <![CDATA[Construct a token from the components.
  30044. @param identifier the token identifier
  30045. @param password the token's password
  30046. @param kind the kind of token
  30047. @param service the service for this token]]>
  30048. </doc>
  30049. </constructor>
  30050. <constructor name="Token"
  30051. static="false" final="false" visibility="public"
  30052. deprecated="not deprecated">
  30053. <doc>
  30054. <![CDATA[Default constructor.]]>
  30055. </doc>
  30056. </constructor>
  30057. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  30058. static="false" final="false" visibility="public"
  30059. deprecated="not deprecated">
  30060. <doc>
  30061. <![CDATA[Clone a token.
  30062. @param other the token to clone]]>
  30063. </doc>
  30064. </constructor>
  30065. <constructor name="Token" type="org.apache.hadoop.security.proto.SecurityProtos.TokenProto"
  30066. static="false" final="false" visibility="public"
  30067. deprecated="not deprecated">
  30068. <doc>
  30069. <![CDATA[Construct a Token from a TokenProto.
  30070. @param tokenPB the TokenProto object]]>
  30071. </doc>
  30072. </constructor>
  30073. <method name="copyToken" return="org.apache.hadoop.security.token.Token"
  30074. abstract="false" native="false" synchronized="false"
  30075. static="false" final="false" visibility="public"
  30076. deprecated="not deprecated">
  30077. </method>
  30078. <method name="toTokenProto" return="org.apache.hadoop.security.proto.SecurityProtos.TokenProto"
  30079. abstract="false" native="false" synchronized="false"
  30080. static="false" final="false" visibility="public"
  30081. deprecated="not deprecated">
  30082. <doc>
  30083. <![CDATA[Construct a TokenProto from this Token instance.
  30084. @return a new TokenProto object holding copies of data in this instance]]>
  30085. </doc>
  30086. </method>
  30087. <method name="getIdentifier" return="byte[]"
  30088. abstract="false" native="false" synchronized="false"
  30089. static="false" final="false" visibility="public"
  30090. deprecated="not deprecated">
  30091. <doc>
  30092. <![CDATA[Get the token identifier's byte representation.
  30093. @return the token identifier's byte representation]]>
  30094. </doc>
  30095. </method>
  30096. <method name="decodeIdentifier" return="T"
  30097. abstract="false" native="false" synchronized="false"
  30098. static="false" final="false" visibility="public"
  30099. deprecated="not deprecated">
  30100. <exception name="IOException" type="java.io.IOException"/>
  30101. <doc>
  30102. <![CDATA[Get the token identifier object, or null if it could not be constructed
  30103. (because the class could not be loaded, for example).
  30104. @return the token identifier, or null if there was no class found for it
  30105. @throws IOException failure to unmarshall the data
  30106. @throws RuntimeException if the token class could not be instantiated.]]>
  30107. </doc>
  30108. </method>
  30109. <method name="getPassword" return="byte[]"
  30110. abstract="false" native="false" synchronized="false"
  30111. static="false" final="false" visibility="public"
  30112. deprecated="not deprecated">
  30113. <doc>
  30114. <![CDATA[Get the token password/secret.
  30115. @return the token password/secret]]>
  30116. </doc>
  30117. </method>
  30118. <method name="getKind" return="org.apache.hadoop.io.Text"
  30119. abstract="false" native="false" synchronized="true"
  30120. static="false" final="false" visibility="public"
  30121. deprecated="not deprecated">
  30122. <doc>
  30123. <![CDATA[Get the token kind.
  30124. @return the kind of the token]]>
  30125. </doc>
  30126. </method>
  30127. <method name="getService" return="org.apache.hadoop.io.Text"
  30128. abstract="false" native="false" synchronized="false"
  30129. static="false" final="false" visibility="public"
  30130. deprecated="not deprecated">
  30131. <doc>
  30132. <![CDATA[Get the service on which the token is supposed to be used.
  30133. @return the service name]]>
  30134. </doc>
  30135. </method>
  30136. <method name="setService"
  30137. abstract="false" native="false" synchronized="false"
  30138. static="false" final="false" visibility="public"
  30139. deprecated="not deprecated">
  30140. <param name="newService" type="org.apache.hadoop.io.Text"/>
  30141. <doc>
  30142. <![CDATA[Set the service on which the token is supposed to be used.
  30143. @param newService the service name]]>
  30144. </doc>
  30145. </method>
  30146. <method name="isPrivate" return="boolean"
  30147. abstract="false" native="false" synchronized="false"
  30148. static="false" final="false" visibility="public"
  30149. deprecated="not deprecated">
  30150. <doc>
  30151. <![CDATA[Whether this is a private token.
  30152. @return false always for non-private tokens]]>
  30153. </doc>
  30154. </method>
  30155. <method name="isPrivateCloneOf" return="boolean"
  30156. abstract="false" native="false" synchronized="false"
  30157. static="false" final="false" visibility="public"
  30158. deprecated="not deprecated">
  30159. <param name="thePublicService" type="org.apache.hadoop.io.Text"/>
  30160. <doc>
  30161. <![CDATA[Whether this is a private clone of a public token.
  30162. @param thePublicService the public service name
  30163. @return false always for non-private tokens]]>
  30164. </doc>
  30165. </method>
  30166. <method name="privateClone" return="org.apache.hadoop.security.token.Token"
  30167. abstract="false" native="false" synchronized="false"
  30168. static="false" final="false" visibility="public"
  30169. deprecated="not deprecated">
  30170. <param name="newService" type="org.apache.hadoop.io.Text"/>
  30171. <doc>
  30172. <![CDATA[Create a private clone of a public token.
  30173. @param newService the new service name
  30174. @return a private token]]>
  30175. </doc>
  30176. </method>
  30177. <method name="readFields"
  30178. abstract="false" native="false" synchronized="false"
  30179. static="false" final="false" visibility="public"
  30180. deprecated="not deprecated">
  30181. <param name="in" type="java.io.DataInput"/>
  30182. <exception name="IOException" type="java.io.IOException"/>
  30183. </method>
  30184. <method name="write"
  30185. abstract="false" native="false" synchronized="false"
  30186. static="false" final="false" visibility="public"
  30187. deprecated="not deprecated">
  30188. <param name="out" type="java.io.DataOutput"/>
  30189. <exception name="IOException" type="java.io.IOException"/>
  30190. </method>
  30191. <method name="encodeToUrlString" return="java.lang.String"
  30192. abstract="false" native="false" synchronized="false"
  30193. static="false" final="false" visibility="public"
  30194. deprecated="not deprecated">
  30195. <exception name="IOException" type="java.io.IOException"/>
  30196. <doc>
  30197. <![CDATA[Encode this token as a url safe string.
  30198. @return the encoded string
  30199. @throws IOException]]>
  30200. </doc>
  30201. </method>
  30202. <method name="decodeFromUrlString"
  30203. abstract="false" native="false" synchronized="false"
  30204. static="false" final="false" visibility="public"
  30205. deprecated="not deprecated">
  30206. <param name="newValue" type="java.lang.String"/>
  30207. <exception name="IOException" type="java.io.IOException"/>
  30208. <doc>
  30209. <![CDATA[Decode the given url safe string into this token.
  30210. @param newValue the encoded string
  30211. @throws IOException]]>
  30212. </doc>
  30213. </method>
  30214. <method name="equals" return="boolean"
  30215. abstract="false" native="false" synchronized="false"
  30216. static="false" final="false" visibility="public"
  30217. deprecated="not deprecated">
  30218. <param name="right" type="java.lang.Object"/>
  30219. </method>
  30220. <method name="hashCode" return="int"
  30221. abstract="false" native="false" synchronized="false"
  30222. static="false" final="false" visibility="public"
  30223. deprecated="not deprecated">
  30224. </method>
  30225. <method name="toString" return="java.lang.String"
  30226. abstract="false" native="false" synchronized="false"
  30227. static="false" final="false" visibility="public"
  30228. deprecated="not deprecated">
  30229. </method>
  30230. <method name="buildCacheKey" return="java.lang.String"
  30231. abstract="false" native="false" synchronized="false"
  30232. static="false" final="false" visibility="public"
  30233. deprecated="not deprecated">
  30234. </method>
  30235. <method name="isManaged" return="boolean"
  30236. abstract="false" native="false" synchronized="false"
  30237. static="false" final="false" visibility="public"
  30238. deprecated="not deprecated">
  30239. <exception name="IOException" type="java.io.IOException"/>
  30240. <doc>
  30241. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  30242. @return true, if it can be renewed and cancelled.]]>
  30243. </doc>
  30244. </method>
  30245. <method name="renew" return="long"
  30246. abstract="false" native="false" synchronized="false"
  30247. static="false" final="false" visibility="public"
  30248. deprecated="not deprecated">
  30249. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30250. <exception name="IOException" type="java.io.IOException"/>
  30251. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  30252. <doc>
  30253. <![CDATA[Renew this delegation token.
  30254. @return the new expiration time
  30255. @throws IOException
  30256. @throws InterruptedException]]>
  30257. </doc>
  30258. </method>
  30259. <method name="cancel"
  30260. abstract="false" native="false" synchronized="false"
  30261. static="false" final="false" visibility="public"
  30262. deprecated="not deprecated">
  30263. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30264. <exception name="IOException" type="java.io.IOException"/>
  30265. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  30266. <doc>
  30267. <![CDATA[Cancel this delegation token.
  30268. @throws IOException
  30269. @throws InterruptedException]]>
  30270. </doc>
  30271. </method>
  30272. <field name="LOG" type="org.slf4j.Logger"
  30273. transient="false" volatile="false"
  30274. static="true" final="true" visibility="public"
  30275. deprecated="not deprecated">
  30276. </field>
  30277. <doc>
  30278. <![CDATA[The client-side form of the token.]]>
  30279. </doc>
  30280. </class>
  30281. <!-- end class org.apache.hadoop.security.token.Token -->
  30282. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  30283. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  30284. abstract="false"
  30285. static="true" final="false" visibility="public"
  30286. deprecated="not deprecated">
  30287. <constructor name="TrivialRenewer"
  30288. static="false" final="false" visibility="public"
  30289. deprecated="not deprecated">
  30290. </constructor>
  30291. <method name="getKind" return="org.apache.hadoop.io.Text"
  30292. abstract="false" native="false" synchronized="false"
  30293. static="false" final="false" visibility="protected"
  30294. deprecated="not deprecated">
  30295. </method>
  30296. <method name="handleKind" return="boolean"
  30297. abstract="false" native="false" synchronized="false"
  30298. static="false" final="false" visibility="public"
  30299. deprecated="not deprecated">
  30300. <param name="kind" type="org.apache.hadoop.io.Text"/>
  30301. </method>
  30302. <method name="isManaged" return="boolean"
  30303. abstract="false" native="false" synchronized="false"
  30304. static="false" final="false" visibility="public"
  30305. deprecated="not deprecated">
  30306. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30307. </method>
  30308. <method name="renew" return="long"
  30309. abstract="false" native="false" synchronized="false"
  30310. static="false" final="false" visibility="public"
  30311. deprecated="not deprecated">
  30312. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30313. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30314. </method>
  30315. <method name="cancel"
  30316. abstract="false" native="false" synchronized="false"
  30317. static="false" final="false" visibility="public"
  30318. deprecated="not deprecated">
  30319. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30320. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30321. <exception name="IOException" type="java.io.IOException"/>
  30322. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  30323. </method>
  30324. <doc>
  30325. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  30326. to implement getKind for their token kind.]]>
  30327. </doc>
  30328. </class>
  30329. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  30330. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  30331. <class name="TokenIdentifier" extends="java.lang.Object"
  30332. abstract="true"
  30333. static="false" final="false" visibility="public"
  30334. deprecated="not deprecated">
  30335. <implements name="org.apache.hadoop.io.Writable"/>
  30336. <constructor name="TokenIdentifier"
  30337. static="false" final="false" visibility="public"
  30338. deprecated="not deprecated">
  30339. </constructor>
  30340. <method name="getKind" return="org.apache.hadoop.io.Text"
  30341. abstract="true" native="false" synchronized="false"
  30342. static="false" final="false" visibility="public"
  30343. deprecated="not deprecated">
  30344. <doc>
  30345. <![CDATA[Get the token kind
  30346. @return the kind of the token]]>
  30347. </doc>
  30348. </method>
  30349. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  30350. abstract="true" native="false" synchronized="false"
  30351. static="false" final="false" visibility="public"
  30352. deprecated="not deprecated">
  30353. <doc>
  30354. <![CDATA[Get the Ugi with the username encoded in the token identifier
  30355. @return the username. null is returned if username in the identifier is
  30356. empty or null.]]>
  30357. </doc>
  30358. </method>
  30359. <method name="getBytes" return="byte[]"
  30360. abstract="false" native="false" synchronized="false"
  30361. static="false" final="false" visibility="public"
  30362. deprecated="not deprecated">
  30363. <doc>
  30364. <![CDATA[Get the bytes for the token identifier
  30365. @return the bytes of the identifier]]>
  30366. </doc>
  30367. </method>
  30368. <method name="getTrackingId" return="java.lang.String"
  30369. abstract="false" native="false" synchronized="false"
  30370. static="false" final="false" visibility="public"
  30371. deprecated="not deprecated">
  30372. <doc>
  30373. <![CDATA[Returns a tracking identifier that can be used to associate usages of a
  30374. token across multiple client sessions.
  30375. Currently, this function just returns an MD5 of {{@link #getBytes()}.
  30376. @return tracking identifier]]>
  30377. </doc>
  30378. </method>
  30379. <doc>
  30380. <![CDATA[An identifier that identifies a token, may contain public information
  30381. about a token, including its kind (or type).]]>
  30382. </doc>
  30383. </class>
  30384. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  30385. <!-- start class org.apache.hadoop.security.token.TokenInfo -->
  30386. <class name="TokenInfo" abstract="true"
  30387. static="false" final="false" visibility="public"
  30388. deprecated="not deprecated">
  30389. <implements name="java.lang.annotation.Annotation"/>
  30390. <doc>
  30391. <![CDATA[Indicates Token related information to be used]]>
  30392. </doc>
  30393. </class>
  30394. <!-- end class org.apache.hadoop.security.token.TokenInfo -->
  30395. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  30396. <class name="TokenRenewer" extends="java.lang.Object"
  30397. abstract="true"
  30398. static="false" final="false" visibility="public"
  30399. deprecated="not deprecated">
  30400. <constructor name="TokenRenewer"
  30401. static="false" final="false" visibility="public"
  30402. deprecated="not deprecated">
  30403. </constructor>
  30404. <method name="handleKind" return="boolean"
  30405. abstract="true" native="false" synchronized="false"
  30406. static="false" final="false" visibility="public"
  30407. deprecated="not deprecated">
  30408. <param name="kind" type="org.apache.hadoop.io.Text"/>
  30409. <doc>
  30410. <![CDATA[Does this renewer handle this kind of token?
  30411. @param kind the kind of the token
  30412. @return true if this renewer can renew it]]>
  30413. </doc>
  30414. </method>
  30415. <method name="isManaged" return="boolean"
  30416. abstract="true" native="false" synchronized="false"
  30417. static="false" final="false" visibility="public"
  30418. deprecated="not deprecated">
  30419. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30420. <exception name="IOException" type="java.io.IOException"/>
  30421. <doc>
  30422. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  30423. cancelled.
  30424. @param token the token being checked
  30425. @return true if the token may be renewed or cancelled
  30426. @throws IOException]]>
  30427. </doc>
  30428. </method>
  30429. <method name="renew" return="long"
  30430. abstract="true" native="false" synchronized="false"
  30431. static="false" final="false" visibility="public"
  30432. deprecated="not deprecated">
  30433. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30434. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30435. <exception name="IOException" type="java.io.IOException"/>
  30436. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  30437. <doc>
  30438. <![CDATA[Renew the given token.
  30439. @return the new expiration time
  30440. @throws IOException
  30441. @throws InterruptedException]]>
  30442. </doc>
  30443. </method>
  30444. <method name="cancel"
  30445. abstract="true" native="false" synchronized="false"
  30446. static="false" final="false" visibility="public"
  30447. deprecated="not deprecated">
  30448. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30449. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30450. <exception name="IOException" type="java.io.IOException"/>
  30451. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  30452. <doc>
  30453. <![CDATA[Cancel the given token
  30454. @throws IOException
  30455. @throws InterruptedException]]>
  30456. </doc>
  30457. </method>
  30458. <doc>
  30459. <![CDATA[This is the interface for plugins that handle tokens.]]>
  30460. </doc>
  30461. </class>
  30462. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  30463. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  30464. <interface name="TokenSelector" abstract="true"
  30465. static="false" final="false" visibility="public"
  30466. deprecated="not deprecated">
  30467. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  30468. abstract="true" native="false" synchronized="false"
  30469. static="false" final="false" visibility="public"
  30470. deprecated="not deprecated">
  30471. <param name="service" type="org.apache.hadoop.io.Text"/>
  30472. <param name="tokens" type="java.util.Collection"/>
  30473. </method>
  30474. <doc>
  30475. <![CDATA[Select token of type T from tokens for use with named service
  30476. @param <T>
  30477. T extends TokenIdentifier]]>
  30478. </doc>
  30479. </interface>
  30480. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  30481. </package>
  30482. <package name="org.apache.hadoop.security.token.delegation.web">
  30483. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  30484. <class name="DelegationTokenAuthenticatedURL" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL"
  30485. abstract="false"
  30486. static="false" final="false" visibility="public"
  30487. deprecated="not deprecated">
  30488. <constructor name="DelegationTokenAuthenticatedURL"
  30489. static="false" final="false" visibility="public"
  30490. deprecated="not deprecated">
  30491. <doc>
  30492. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  30493. <p/>
  30494. An instance of the default {@link DelegationTokenAuthenticator} will be
  30495. used.]]>
  30496. </doc>
  30497. </constructor>
  30498. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  30499. static="false" final="false" visibility="public"
  30500. deprecated="not deprecated">
  30501. <doc>
  30502. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  30503. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  30504. use, if <code>null</code> the default one will be used.]]>
  30505. </doc>
  30506. </constructor>
  30507. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  30508. static="false" final="false" visibility="public"
  30509. deprecated="not deprecated">
  30510. <doc>
  30511. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code> using the default
  30512. {@link DelegationTokenAuthenticator} class.
  30513. @param connConfigurator a connection configurator.]]>
  30514. </doc>
  30515. </constructor>
  30516. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator, org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  30517. static="false" final="false" visibility="public"
  30518. deprecated="not deprecated">
  30519. <doc>
  30520. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  30521. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  30522. use, if <code>null</code> the default one will be used.
  30523. @param connConfigurator a connection configurator.]]>
  30524. </doc>
  30525. </constructor>
  30526. <method name="setDefaultDelegationTokenAuthenticator"
  30527. abstract="false" native="false" synchronized="false"
  30528. static="true" final="false" visibility="public"
  30529. deprecated="not deprecated">
  30530. <param name="authenticator" type="java.lang.Class"/>
  30531. <doc>
  30532. <![CDATA[Sets the default {@link DelegationTokenAuthenticator} class to use when an
  30533. {@link DelegationTokenAuthenticatedURL} instance is created without
  30534. specifying one.
  30535. The default class is {@link KerberosDelegationTokenAuthenticator}
  30536. @param authenticator the authenticator class to use as default.]]>
  30537. </doc>
  30538. </method>
  30539. <method name="getDefaultDelegationTokenAuthenticator" return="java.lang.Class"
  30540. abstract="false" native="false" synchronized="false"
  30541. static="true" final="false" visibility="public"
  30542. deprecated="not deprecated">
  30543. <doc>
  30544. <![CDATA[Returns the default {@link DelegationTokenAuthenticator} class to use when
  30545. an {@link DelegationTokenAuthenticatedURL} instance is created without
  30546. specifying one.
  30547. <p/>
  30548. The default class is {@link KerberosDelegationTokenAuthenticator}
  30549. @return the delegation token authenticator class to use as default.]]>
  30550. </doc>
  30551. </method>
  30552. <method name="setUseQueryStringForDelegationToken"
  30553. abstract="false" native="false" synchronized="false"
  30554. static="false" final="false" visibility="protected"
  30555. deprecated="not deprecated">
  30556. <param name="useQueryString" type="boolean"/>
  30557. <doc>
  30558. <![CDATA[Sets if delegation token should be transmitted in the URL query string.
  30559. By default it is transmitted using the
  30560. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.
  30561. <p/>
  30562. This method is provided to enable WebHDFS backwards compatibility.
  30563. @param useQueryString <code>TRUE</code> if the token is transmitted in the
  30564. URL query string, <code>FALSE</code> if the delegation token is transmitted
  30565. using the {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP
  30566. header.]]>
  30567. </doc>
  30568. </method>
  30569. <method name="useQueryStringForDelegationToken" return="boolean"
  30570. abstract="false" native="false" synchronized="false"
  30571. static="false" final="false" visibility="public"
  30572. deprecated="not deprecated">
  30573. <doc>
  30574. <![CDATA[Returns if delegation token is transmitted as a HTTP header.
  30575. @return <code>TRUE</code> if the token is transmitted in the URL query
  30576. string, <code>FALSE</code> if the delegation token is transmitted using the
  30577. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.]]>
  30578. </doc>
  30579. </method>
  30580. <method name="openConnection" return="java.net.HttpURLConnection"
  30581. abstract="false" native="false" synchronized="false"
  30582. static="false" final="false" visibility="public"
  30583. deprecated="not deprecated">
  30584. <param name="url" type="java.net.URL"/>
  30585. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30586. <exception name="IOException" type="java.io.IOException"/>
  30587. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30588. <doc>
  30589. <![CDATA[Returns an authenticated {@link HttpURLConnection}, it uses a Delegation
  30590. Token only if the given auth token is an instance of {@link Token} and
  30591. it contains a Delegation Token, otherwise use the configured
  30592. {@link DelegationTokenAuthenticator} to authenticate the connection.
  30593. @param url the URL to connect to. Only HTTP/S URLs are supported.
  30594. @param token the authentication token being used for the user.
  30595. @return an authenticated {@link HttpURLConnection}.
  30596. @throws IOException if an IO error occurred.
  30597. @throws AuthenticationException if an authentication exception occurred.]]>
  30598. </doc>
  30599. </method>
  30600. <method name="openConnection" return="java.net.HttpURLConnection"
  30601. abstract="false" native="false" synchronized="false"
  30602. static="false" final="false" visibility="public"
  30603. deprecated="not deprecated">
  30604. <param name="url" type="java.net.URL"/>
  30605. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30606. <exception name="IOException" type="java.io.IOException"/>
  30607. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30608. <doc>
  30609. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  30610. Token is present, it will be used taking precedence over the configured
  30611. <code>Authenticator</code>.
  30612. @param url the URL to connect to. Only HTTP/S URLs are supported.
  30613. @param token the authentication token being used for the user.
  30614. @return an authenticated {@link HttpURLConnection}.
  30615. @throws IOException if an IO error occurred.
  30616. @throws AuthenticationException if an authentication exception occurred.]]>
  30617. </doc>
  30618. </method>
  30619. <method name="openConnection" return="java.net.HttpURLConnection"
  30620. abstract="false" native="false" synchronized="false"
  30621. static="false" final="false" visibility="public"
  30622. deprecated="not deprecated">
  30623. <param name="url" type="java.net.URL"/>
  30624. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30625. <param name="doAs" type="java.lang.String"/>
  30626. <exception name="IOException" type="java.io.IOException"/>
  30627. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30628. <doc>
  30629. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  30630. Token is present, it will be used taking precedence over the configured
  30631. <code>Authenticator</code>. If the <code>doAs</code> parameter is not NULL,
  30632. the request will be done on behalf of the specified <code>doAs</code> user.
  30633. @param url the URL to connect to. Only HTTP/S URLs are supported.
  30634. @param token the authentication token being used for the user.
  30635. @param doAs user to do the the request on behalf of, if NULL the request is
  30636. as self.
  30637. @return an authenticated {@link HttpURLConnection}.
  30638. @throws IOException if an IO error occurred.
  30639. @throws AuthenticationException if an authentication exception occurred.]]>
  30640. </doc>
  30641. </method>
  30642. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  30643. abstract="false" native="false" synchronized="false"
  30644. static="false" final="false" visibility="public"
  30645. deprecated="not deprecated">
  30646. <param name="url" type="java.net.URL"/>
  30647. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30648. <param name="renewer" type="java.lang.String"/>
  30649. <exception name="IOException" type="java.io.IOException"/>
  30650. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30651. <doc>
  30652. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  30653. for authentication.
  30654. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  30655. supported.
  30656. @param token the authentication token being used for the user where the
  30657. Delegation token will be stored.
  30658. @param renewer the renewer user.
  30659. @return a delegation token.
  30660. @throws IOException if an IO error occurred.
  30661. @throws AuthenticationException if an authentication exception occurred.]]>
  30662. </doc>
  30663. </method>
  30664. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  30665. abstract="false" native="false" synchronized="false"
  30666. static="false" final="false" visibility="public"
  30667. deprecated="not deprecated">
  30668. <param name="url" type="java.net.URL"/>
  30669. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30670. <param name="renewer" type="java.lang.String"/>
  30671. <param name="doAsUser" type="java.lang.String"/>
  30672. <exception name="IOException" type="java.io.IOException"/>
  30673. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30674. <doc>
  30675. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  30676. for authentication.
  30677. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  30678. supported.
  30679. @param token the authentication token being used for the user where the
  30680. Delegation token will be stored.
  30681. @param renewer the renewer user.
  30682. @param doAsUser the user to do as, which will be the token owner.
  30683. @return a delegation token.
  30684. @throws IOException if an IO error occurred.
  30685. @throws AuthenticationException if an authentication exception occurred.]]>
  30686. </doc>
  30687. </method>
  30688. <method name="renewDelegationToken" return="long"
  30689. abstract="false" native="false" synchronized="false"
  30690. static="false" final="false" visibility="public"
  30691. deprecated="not deprecated">
  30692. <param name="url" type="java.net.URL"/>
  30693. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30694. <exception name="IOException" type="java.io.IOException"/>
  30695. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30696. <doc>
  30697. <![CDATA[Renews a delegation token from the server end-point using the
  30698. configured <code>Authenticator</code> for authentication.
  30699. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  30700. supported.
  30701. @param token the authentication token with the Delegation Token to renew.
  30702. @throws IOException if an IO error occurred.
  30703. @throws AuthenticationException if an authentication exception occurred.]]>
  30704. </doc>
  30705. </method>
  30706. <method name="renewDelegationToken" return="long"
  30707. abstract="false" native="false" synchronized="false"
  30708. static="false" final="false" visibility="public"
  30709. deprecated="not deprecated">
  30710. <param name="url" type="java.net.URL"/>
  30711. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30712. <param name="doAsUser" type="java.lang.String"/>
  30713. <exception name="IOException" type="java.io.IOException"/>
  30714. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30715. <doc>
  30716. <![CDATA[Renews a delegation token from the server end-point using the
  30717. configured <code>Authenticator</code> for authentication.
  30718. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  30719. supported.
  30720. @param token the authentication token with the Delegation Token to renew.
  30721. @param doAsUser the user to do as, which will be the token owner.
  30722. @throws IOException if an IO error occurred.
  30723. @throws AuthenticationException if an authentication exception occurred.]]>
  30724. </doc>
  30725. </method>
  30726. <method name="cancelDelegationToken"
  30727. abstract="false" native="false" synchronized="false"
  30728. static="false" final="false" visibility="public"
  30729. deprecated="not deprecated">
  30730. <param name="url" type="java.net.URL"/>
  30731. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30732. <exception name="IOException" type="java.io.IOException"/>
  30733. <doc>
  30734. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  30735. being authenticated by the configured <code>Authenticator</code>.
  30736. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  30737. are supported.
  30738. @param token the authentication token with the Delegation Token to cancel.
  30739. @throws IOException if an IO error occurred.]]>
  30740. </doc>
  30741. </method>
  30742. <method name="cancelDelegationToken"
  30743. abstract="false" native="false" synchronized="false"
  30744. static="false" final="false" visibility="public"
  30745. deprecated="not deprecated">
  30746. <param name="url" type="java.net.URL"/>
  30747. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30748. <param name="doAsUser" type="java.lang.String"/>
  30749. <exception name="IOException" type="java.io.IOException"/>
  30750. <doc>
  30751. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  30752. being authenticated by the configured <code>Authenticator</code>.
  30753. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  30754. are supported.
  30755. @param token the authentication token with the Delegation Token to cancel.
  30756. @param doAsUser the user to do as, which will be the token owner.
  30757. @throws IOException if an IO error occurred.]]>
  30758. </doc>
  30759. </method>
  30760. <doc>
  30761. <![CDATA[The <code>DelegationTokenAuthenticatedURL</code> is a
  30762. {@link AuthenticatedURL} sub-class with built-in Hadoop Delegation Token
  30763. functionality.
  30764. <p/>
  30765. The authentication mechanisms supported by default are Hadoop Simple
  30766. authentication (also known as pseudo authentication) and Kerberos SPNEGO
  30767. authentication.
  30768. <p/>
  30769. Additional authentication mechanisms can be supported via {@link
  30770. DelegationTokenAuthenticator} implementations.
  30771. <p/>
  30772. The default {@link DelegationTokenAuthenticator} is the {@link
  30773. KerberosDelegationTokenAuthenticator} class which supports
  30774. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication via
  30775. the {@link PseudoDelegationTokenAuthenticator} class.
  30776. <p/>
  30777. <code>AuthenticatedURL</code> instances are not thread-safe.]]>
  30778. </doc>
  30779. </class>
  30780. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  30781. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  30782. <class name="DelegationTokenAuthenticatedURL.Token" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"
  30783. abstract="false"
  30784. static="true" final="false" visibility="public"
  30785. deprecated="not deprecated">
  30786. <constructor name="Token"
  30787. static="false" final="false" visibility="public"
  30788. deprecated="not deprecated">
  30789. </constructor>
  30790. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  30791. abstract="false" native="false" synchronized="false"
  30792. static="false" final="false" visibility="public"
  30793. deprecated="not deprecated">
  30794. </method>
  30795. <method name="setDelegationToken"
  30796. abstract="false" native="false" synchronized="false"
  30797. static="false" final="false" visibility="public"
  30798. deprecated="not deprecated">
  30799. <param name="delegationToken" type="org.apache.hadoop.security.token.Token"/>
  30800. </method>
  30801. <doc>
  30802. <![CDATA[Client side authentication token that handles Delegation Tokens.]]>
  30803. </doc>
  30804. </class>
  30805. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  30806. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  30807. <class name="DelegationTokenAuthenticator" extends="java.lang.Object"
  30808. abstract="true"
  30809. static="false" final="false" visibility="public"
  30810. deprecated="not deprecated">
  30811. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  30812. <constructor name="DelegationTokenAuthenticator" type="org.apache.hadoop.security.authentication.client.Authenticator"
  30813. static="false" final="false" visibility="public"
  30814. deprecated="not deprecated">
  30815. </constructor>
  30816. <method name="setConnectionConfigurator"
  30817. abstract="false" native="false" synchronized="false"
  30818. static="false" final="false" visibility="public"
  30819. deprecated="not deprecated">
  30820. <param name="configurator" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"/>
  30821. </method>
  30822. <method name="authenticate"
  30823. abstract="false" native="false" synchronized="false"
  30824. static="false" final="false" visibility="public"
  30825. deprecated="not deprecated">
  30826. <param name="url" type="java.net.URL"/>
  30827. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30828. <exception name="IOException" type="java.io.IOException"/>
  30829. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30830. </method>
  30831. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  30832. abstract="false" native="false" synchronized="false"
  30833. static="false" final="false" visibility="public"
  30834. deprecated="not deprecated">
  30835. <param name="url" type="java.net.URL"/>
  30836. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30837. <param name="renewer" type="java.lang.String"/>
  30838. <exception name="IOException" type="java.io.IOException"/>
  30839. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30840. <doc>
  30841. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  30842. for authentication.
  30843. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  30844. supported.
  30845. @param token the authentication token being used for the user where the
  30846. Delegation token will be stored.
  30847. @param renewer the renewer user.
  30848. @throws IOException if an IO error occurred.
  30849. @throws AuthenticationException if an authentication exception occurred.]]>
  30850. </doc>
  30851. </method>
  30852. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  30853. abstract="false" native="false" synchronized="false"
  30854. static="false" final="false" visibility="public"
  30855. deprecated="not deprecated">
  30856. <param name="url" type="java.net.URL"/>
  30857. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30858. <param name="renewer" type="java.lang.String"/>
  30859. <param name="doAsUser" type="java.lang.String"/>
  30860. <exception name="IOException" type="java.io.IOException"/>
  30861. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30862. <doc>
  30863. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  30864. for authentication.
  30865. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  30866. supported.
  30867. @param token the authentication token being used for the user where the
  30868. Delegation token will be stored.
  30869. @param renewer the renewer user.
  30870. @param doAsUser the user to do as, which will be the token owner.
  30871. @throws IOException if an IO error occurred.
  30872. @throws AuthenticationException if an authentication exception occurred.]]>
  30873. </doc>
  30874. </method>
  30875. <method name="renewDelegationToken" return="long"
  30876. abstract="false" native="false" synchronized="false"
  30877. static="false" final="false" visibility="public"
  30878. deprecated="not deprecated">
  30879. <param name="url" type="java.net.URL"/>
  30880. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30881. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  30882. <exception name="IOException" type="java.io.IOException"/>
  30883. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30884. <doc>
  30885. <![CDATA[Renews a delegation token from the server end-point using the
  30886. configured <code>Authenticator</code> for authentication.
  30887. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  30888. supported.
  30889. @param token the authentication token with the Delegation Token to renew.
  30890. @throws IOException if an IO error occurred.
  30891. @throws AuthenticationException if an authentication exception occurred.]]>
  30892. </doc>
  30893. </method>
  30894. <method name="renewDelegationToken" return="long"
  30895. abstract="false" native="false" synchronized="false"
  30896. static="false" final="false" visibility="public"
  30897. deprecated="not deprecated">
  30898. <param name="url" type="java.net.URL"/>
  30899. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30900. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  30901. <param name="doAsUser" type="java.lang.String"/>
  30902. <exception name="IOException" type="java.io.IOException"/>
  30903. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30904. <doc>
  30905. <![CDATA[Renews a delegation token from the server end-point using the
  30906. configured <code>Authenticator</code> for authentication.
  30907. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  30908. supported.
  30909. @param token the authentication token with the Delegation Token to renew.
  30910. @param doAsUser the user to do as, which will be the token owner.
  30911. @throws IOException if an IO error occurred.
  30912. @throws AuthenticationException if an authentication exception occurred.]]>
  30913. </doc>
  30914. </method>
  30915. <method name="cancelDelegationToken"
  30916. abstract="false" native="false" synchronized="false"
  30917. static="false" final="false" visibility="public"
  30918. deprecated="not deprecated">
  30919. <param name="url" type="java.net.URL"/>
  30920. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30921. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  30922. <exception name="IOException" type="java.io.IOException"/>
  30923. <doc>
  30924. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  30925. being authenticated by the configured <code>Authenticator</code>.
  30926. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  30927. are supported.
  30928. @param token the authentication token with the Delegation Token to cancel.
  30929. @throws IOException if an IO error occurred.]]>
  30930. </doc>
  30931. </method>
  30932. <method name="cancelDelegationToken"
  30933. abstract="false" native="false" synchronized="false"
  30934. static="false" final="false" visibility="public"
  30935. deprecated="not deprecated">
  30936. <param name="url" type="java.net.URL"/>
  30937. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30938. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  30939. <param name="doAsUser" type="java.lang.String"/>
  30940. <exception name="IOException" type="java.io.IOException"/>
  30941. <doc>
  30942. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  30943. being authenticated by the configured <code>Authenticator</code>.
  30944. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  30945. are supported.
  30946. @param token the authentication token with the Delegation Token to cancel.
  30947. @param doAsUser the user to do as, which will be the token owner.
  30948. @throws IOException if an IO error occurred.]]>
  30949. </doc>
  30950. </method>
  30951. <field name="OP_PARAM" type="java.lang.String"
  30952. transient="false" volatile="false"
  30953. static="true" final="true" visibility="public"
  30954. deprecated="not deprecated">
  30955. </field>
  30956. <field name="DELEGATION_TOKEN_HEADER" type="java.lang.String"
  30957. transient="false" volatile="false"
  30958. static="true" final="true" visibility="public"
  30959. deprecated="not deprecated">
  30960. </field>
  30961. <field name="DELEGATION_PARAM" type="java.lang.String"
  30962. transient="false" volatile="false"
  30963. static="true" final="true" visibility="public"
  30964. deprecated="not deprecated">
  30965. </field>
  30966. <field name="TOKEN_PARAM" type="java.lang.String"
  30967. transient="false" volatile="false"
  30968. static="true" final="true" visibility="public"
  30969. deprecated="not deprecated">
  30970. </field>
  30971. <field name="RENEWER_PARAM" type="java.lang.String"
  30972. transient="false" volatile="false"
  30973. static="true" final="true" visibility="public"
  30974. deprecated="not deprecated">
  30975. </field>
  30976. <field name="SERVICE_PARAM" type="java.lang.String"
  30977. transient="false" volatile="false"
  30978. static="true" final="true" visibility="public"
  30979. deprecated="not deprecated">
  30980. </field>
  30981. <field name="DELEGATION_TOKEN_JSON" type="java.lang.String"
  30982. transient="false" volatile="false"
  30983. static="true" final="true" visibility="public"
  30984. deprecated="not deprecated">
  30985. </field>
  30986. <field name="DELEGATION_TOKEN_URL_STRING_JSON" type="java.lang.String"
  30987. transient="false" volatile="false"
  30988. static="true" final="true" visibility="public"
  30989. deprecated="not deprecated">
  30990. </field>
  30991. <field name="RENEW_DELEGATION_TOKEN_JSON" type="java.lang.String"
  30992. transient="false" volatile="false"
  30993. static="true" final="true" visibility="public"
  30994. deprecated="not deprecated">
  30995. </field>
  30996. <doc>
  30997. <![CDATA[{@link Authenticator} wrapper that enhances an {@link Authenticator} with
  30998. Delegation Token support.]]>
  30999. </doc>
  31000. </class>
  31001. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  31002. <!-- start class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  31003. <class name="KerberosDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  31004. abstract="false"
  31005. static="false" final="false" visibility="public"
  31006. deprecated="not deprecated">
  31007. <constructor name="KerberosDelegationTokenAuthenticator"
  31008. static="false" final="false" visibility="public"
  31009. deprecated="not deprecated">
  31010. </constructor>
  31011. <doc>
  31012. <![CDATA[The <code>KerberosDelegationTokenAuthenticator</code> provides support for
  31013. Kerberos SPNEGO authentication mechanism and support for Hadoop Delegation
  31014. Token operations.
  31015. <p/>
  31016. It falls back to the {@link PseudoDelegationTokenAuthenticator} if the HTTP
  31017. endpoint does not trigger a SPNEGO authentication]]>
  31018. </doc>
  31019. </class>
  31020. <!-- end class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  31021. <!-- start class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  31022. <class name="PseudoDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  31023. abstract="false"
  31024. static="false" final="false" visibility="public"
  31025. deprecated="not deprecated">
  31026. <constructor name="PseudoDelegationTokenAuthenticator"
  31027. static="false" final="false" visibility="public"
  31028. deprecated="not deprecated">
  31029. </constructor>
  31030. <doc>
  31031. <![CDATA[The <code>PseudoDelegationTokenAuthenticator</code> provides support for
  31032. Hadoop's pseudo authentication mechanism that accepts
  31033. the user name specified as a query string parameter and support for Hadoop
  31034. Delegation Token operations.
  31035. <p/>
  31036. This mimics the model of Hadoop Simple authentication trusting the
  31037. {@link UserGroupInformation#getCurrentUser()} value.]]>
  31038. </doc>
  31039. </class>
  31040. <!-- end class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  31041. </package>
  31042. <package name="org.apache.hadoop.service">
  31043. <!-- start class org.apache.hadoop.service.AbstractService -->
  31044. <class name="AbstractService" extends="java.lang.Object"
  31045. abstract="true"
  31046. static="false" final="false" visibility="public"
  31047. deprecated="not deprecated">
  31048. <implements name="org.apache.hadoop.service.Service"/>
  31049. <constructor name="AbstractService" type="java.lang.String"
  31050. static="false" final="false" visibility="public"
  31051. deprecated="not deprecated">
  31052. <doc>
  31053. <![CDATA[Construct the service.
  31054. @param name service name]]>
  31055. </doc>
  31056. </constructor>
  31057. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  31058. abstract="false" native="false" synchronized="false"
  31059. static="false" final="true" visibility="public"
  31060. deprecated="not deprecated">
  31061. </method>
  31062. <method name="getFailureCause" return="java.lang.Throwable"
  31063. abstract="false" native="false" synchronized="true"
  31064. static="false" final="true" visibility="public"
  31065. deprecated="not deprecated">
  31066. </method>
  31067. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  31068. abstract="false" native="false" synchronized="true"
  31069. static="false" final="false" visibility="public"
  31070. deprecated="not deprecated">
  31071. </method>
  31072. <method name="setConfig"
  31073. abstract="false" native="false" synchronized="false"
  31074. static="false" final="false" visibility="protected"
  31075. deprecated="not deprecated">
  31076. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31077. <doc>
  31078. <![CDATA[Set the configuration for this service.
  31079. This method is called during {@link #init(Configuration)}
  31080. and should only be needed if for some reason a service implementation
  31081. needs to override that initial setting -for example replacing
  31082. it with a new subclass of {@link Configuration}
  31083. @param conf new configuration.]]>
  31084. </doc>
  31085. </method>
  31086. <method name="init"
  31087. abstract="false" native="false" synchronized="false"
  31088. static="false" final="false" visibility="public"
  31089. deprecated="not deprecated">
  31090. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31091. <doc>
  31092. <![CDATA[{@inheritDoc}
  31093. This invokes {@link #serviceInit}
  31094. @param conf the configuration of the service. This must not be null
  31095. @throws ServiceStateException if the configuration was null,
  31096. the state change not permitted, or something else went wrong]]>
  31097. </doc>
  31098. </method>
  31099. <method name="start"
  31100. abstract="false" native="false" synchronized="false"
  31101. static="false" final="false" visibility="public"
  31102. deprecated="not deprecated">
  31103. <doc>
  31104. <![CDATA[{@inheritDoc}
  31105. @throws ServiceStateException if the current service state does not permit
  31106. this action]]>
  31107. </doc>
  31108. </method>
  31109. <method name="stop"
  31110. abstract="false" native="false" synchronized="false"
  31111. static="false" final="false" visibility="public"
  31112. deprecated="not deprecated">
  31113. <doc>
  31114. <![CDATA[{@inheritDoc}]]>
  31115. </doc>
  31116. </method>
  31117. <method name="close"
  31118. abstract="false" native="false" synchronized="false"
  31119. static="false" final="true" visibility="public"
  31120. deprecated="not deprecated">
  31121. <exception name="IOException" type="java.io.IOException"/>
  31122. <doc>
  31123. <![CDATA[Relay to {@link #stop()}
  31124. @throws IOException]]>
  31125. </doc>
  31126. </method>
  31127. <method name="noteFailure"
  31128. abstract="false" native="false" synchronized="false"
  31129. static="false" final="true" visibility="protected"
  31130. deprecated="not deprecated">
  31131. <param name="exception" type="java.lang.Exception"/>
  31132. <doc>
  31133. <![CDATA[Failure handling: record the exception
  31134. that triggered it -if there was not one already.
  31135. Services are free to call this themselves.
  31136. @param exception the exception]]>
  31137. </doc>
  31138. </method>
  31139. <method name="waitForServiceToStop" return="boolean"
  31140. abstract="false" native="false" synchronized="false"
  31141. static="false" final="true" visibility="public"
  31142. deprecated="not deprecated">
  31143. <param name="timeout" type="long"/>
  31144. </method>
  31145. <method name="serviceInit"
  31146. abstract="false" native="false" synchronized="false"
  31147. static="false" final="false" visibility="protected"
  31148. deprecated="not deprecated">
  31149. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31150. <exception name="Exception" type="java.lang.Exception"/>
  31151. <doc>
  31152. <![CDATA[All initialization code needed by a service.
  31153. This method will only ever be called once during the lifecycle of
  31154. a specific service instance.
  31155. Implementations do not need to be synchronized as the logic
  31156. in {@link #init(Configuration)} prevents re-entrancy.
  31157. The base implementation checks to see if the subclass has created
  31158. a new configuration instance, and if so, updates the base class value
  31159. @param conf configuration
  31160. @throws Exception on a failure -these will be caught,
  31161. possibly wrapped, and wil; trigger a service stop]]>
  31162. </doc>
  31163. </method>
  31164. <method name="serviceStart"
  31165. abstract="false" native="false" synchronized="false"
  31166. static="false" final="false" visibility="protected"
  31167. deprecated="not deprecated">
  31168. <exception name="Exception" type="java.lang.Exception"/>
  31169. <doc>
  31170. <![CDATA[Actions called during the INITED to STARTED transition.
  31171. This method will only ever be called once during the lifecycle of
  31172. a specific service instance.
  31173. Implementations do not need to be synchronized as the logic
  31174. in {@link #start()} prevents re-entrancy.
  31175. @throws Exception if needed -these will be caught,
  31176. wrapped, and trigger a service stop]]>
  31177. </doc>
  31178. </method>
  31179. <method name="serviceStop"
  31180. abstract="false" native="false" synchronized="false"
  31181. static="false" final="false" visibility="protected"
  31182. deprecated="not deprecated">
  31183. <exception name="Exception" type="java.lang.Exception"/>
  31184. <doc>
  31185. <![CDATA[Actions called during the transition to the STOPPED state.
  31186. This method will only ever be called once during the lifecycle of
  31187. a specific service instance.
  31188. Implementations do not need to be synchronized as the logic
  31189. in {@link #stop()} prevents re-entrancy.
  31190. Implementations MUST write this to be robust against failures, including
  31191. checks for null references -and for the first failure to not stop other
  31192. attempts to shut down parts of the service.
  31193. @throws Exception if needed -these will be caught and logged.]]>
  31194. </doc>
  31195. </method>
  31196. <method name="registerServiceListener"
  31197. abstract="false" native="false" synchronized="false"
  31198. static="false" final="false" visibility="public"
  31199. deprecated="not deprecated">
  31200. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  31201. </method>
  31202. <method name="unregisterServiceListener"
  31203. abstract="false" native="false" synchronized="false"
  31204. static="false" final="false" visibility="public"
  31205. deprecated="not deprecated">
  31206. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  31207. </method>
  31208. <method name="registerGlobalListener"
  31209. abstract="false" native="false" synchronized="false"
  31210. static="true" final="false" visibility="public"
  31211. deprecated="not deprecated">
  31212. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  31213. <doc>
  31214. <![CDATA[Register a global listener, which receives notifications
  31215. from the state change events of all services in the JVM
  31216. @param l listener]]>
  31217. </doc>
  31218. </method>
  31219. <method name="unregisterGlobalListener" return="boolean"
  31220. abstract="false" native="false" synchronized="false"
  31221. static="true" final="false" visibility="public"
  31222. deprecated="not deprecated">
  31223. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  31224. <doc>
  31225. <![CDATA[unregister a global listener.
  31226. @param l listener to unregister
  31227. @return true if the listener was found (and then deleted)]]>
  31228. </doc>
  31229. </method>
  31230. <method name="getName" return="java.lang.String"
  31231. abstract="false" native="false" synchronized="false"
  31232. static="false" final="false" visibility="public"
  31233. deprecated="not deprecated">
  31234. </method>
  31235. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  31236. abstract="false" native="false" synchronized="false"
  31237. static="false" final="false" visibility="public"
  31238. deprecated="not deprecated">
  31239. </method>
  31240. <method name="getStartTime" return="long"
  31241. abstract="false" native="false" synchronized="false"
  31242. static="false" final="false" visibility="public"
  31243. deprecated="not deprecated">
  31244. </method>
  31245. <method name="getLifecycleHistory" return="java.util.List"
  31246. abstract="false" native="false" synchronized="true"
  31247. static="false" final="false" visibility="public"
  31248. deprecated="not deprecated">
  31249. </method>
  31250. <method name="isInState" return="boolean"
  31251. abstract="false" native="false" synchronized="false"
  31252. static="false" final="true" visibility="public"
  31253. deprecated="not deprecated">
  31254. <param name="expected" type="org.apache.hadoop.service.Service.STATE"/>
  31255. </method>
  31256. <method name="toString" return="java.lang.String"
  31257. abstract="false" native="false" synchronized="false"
  31258. static="false" final="false" visibility="public"
  31259. deprecated="not deprecated">
  31260. </method>
  31261. <method name="putBlocker"
  31262. abstract="false" native="false" synchronized="false"
  31263. static="false" final="false" visibility="protected"
  31264. deprecated="not deprecated">
  31265. <param name="name" type="java.lang.String"/>
  31266. <param name="details" type="java.lang.String"/>
  31267. <doc>
  31268. <![CDATA[Put a blocker to the blocker map -replacing any
  31269. with the same name.
  31270. @param name blocker name
  31271. @param details any specifics on the block. This must be non-null.]]>
  31272. </doc>
  31273. </method>
  31274. <method name="removeBlocker"
  31275. abstract="false" native="false" synchronized="false"
  31276. static="false" final="false" visibility="public"
  31277. deprecated="not deprecated">
  31278. <param name="name" type="java.lang.String"/>
  31279. <doc>
  31280. <![CDATA[Remove a blocker from the blocker map -
  31281. this is a no-op if the blocker is not present
  31282. @param name the name of the blocker]]>
  31283. </doc>
  31284. </method>
  31285. <method name="getBlockers" return="java.util.Map"
  31286. abstract="false" native="false" synchronized="false"
  31287. static="false" final="false" visibility="public"
  31288. deprecated="not deprecated">
  31289. </method>
  31290. <doc>
  31291. <![CDATA[This is the base implementation class for services.]]>
  31292. </doc>
  31293. </class>
  31294. <!-- end class org.apache.hadoop.service.AbstractService -->
  31295. <!-- start class org.apache.hadoop.service.CompositeService -->
  31296. <class name="CompositeService" extends="org.apache.hadoop.service.AbstractService"
  31297. abstract="false"
  31298. static="false" final="false" visibility="public"
  31299. deprecated="not deprecated">
  31300. <constructor name="CompositeService" type="java.lang.String"
  31301. static="false" final="false" visibility="public"
  31302. deprecated="not deprecated">
  31303. </constructor>
  31304. <method name="getServices" return="java.util.List"
  31305. abstract="false" native="false" synchronized="false"
  31306. static="false" final="false" visibility="public"
  31307. deprecated="not deprecated">
  31308. <doc>
  31309. <![CDATA[Get a cloned list of services
  31310. @return a list of child services at the time of invocation -
  31311. added services will not be picked up.]]>
  31312. </doc>
  31313. </method>
  31314. <method name="addService"
  31315. abstract="false" native="false" synchronized="false"
  31316. static="false" final="false" visibility="protected"
  31317. deprecated="not deprecated">
  31318. <param name="service" type="org.apache.hadoop.service.Service"/>
  31319. <doc>
  31320. <![CDATA[Add the passed {@link Service} to the list of services managed by this
  31321. {@link CompositeService}
  31322. @param service the {@link Service} to be added]]>
  31323. </doc>
  31324. </method>
  31325. <method name="addIfService" return="boolean"
  31326. abstract="false" native="false" synchronized="false"
  31327. static="false" final="false" visibility="protected"
  31328. deprecated="not deprecated">
  31329. <param name="object" type="java.lang.Object"/>
  31330. <doc>
  31331. <![CDATA[If the passed object is an instance of {@link Service},
  31332. add it to the list of services managed by this {@link CompositeService}
  31333. @param object
  31334. @return true if a service is added, false otherwise.]]>
  31335. </doc>
  31336. </method>
  31337. <method name="removeService" return="boolean"
  31338. abstract="false" native="false" synchronized="true"
  31339. static="false" final="false" visibility="protected"
  31340. deprecated="not deprecated">
  31341. <param name="service" type="org.apache.hadoop.service.Service"/>
  31342. </method>
  31343. <method name="serviceInit"
  31344. abstract="false" native="false" synchronized="false"
  31345. static="false" final="false" visibility="protected"
  31346. deprecated="not deprecated">
  31347. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31348. <exception name="Exception" type="java.lang.Exception"/>
  31349. </method>
  31350. <method name="serviceStart"
  31351. abstract="false" native="false" synchronized="false"
  31352. static="false" final="false" visibility="protected"
  31353. deprecated="not deprecated">
  31354. <exception name="Exception" type="java.lang.Exception"/>
  31355. </method>
  31356. <method name="serviceStop"
  31357. abstract="false" native="false" synchronized="false"
  31358. static="false" final="false" visibility="protected"
  31359. deprecated="not deprecated">
  31360. <exception name="Exception" type="java.lang.Exception"/>
  31361. </method>
  31362. <field name="STOP_ONLY_STARTED_SERVICES" type="boolean"
  31363. transient="false" volatile="false"
  31364. static="true" final="true" visibility="protected"
  31365. deprecated="not deprecated">
  31366. <doc>
  31367. <![CDATA[Policy on shutdown: attempt to close everything (purest) or
  31368. only try to close started services (which assumes
  31369. that the service implementations may not handle the stop() operation
  31370. except when started.
  31371. Irrespective of this policy, if a child service fails during
  31372. its init() or start() operations, it will have stop() called on it.]]>
  31373. </doc>
  31374. </field>
  31375. <doc>
  31376. <![CDATA[Composition of services.]]>
  31377. </doc>
  31378. </class>
  31379. <!-- end class org.apache.hadoop.service.CompositeService -->
  31380. <!-- start class org.apache.hadoop.service.LifecycleEvent -->
  31381. <class name="LifecycleEvent" extends="java.lang.Object"
  31382. abstract="false"
  31383. static="false" final="false" visibility="public"
  31384. deprecated="not deprecated">
  31385. <implements name="java.io.Serializable"/>
  31386. <constructor name="LifecycleEvent"
  31387. static="false" final="false" visibility="public"
  31388. deprecated="not deprecated">
  31389. </constructor>
  31390. <field name="time" type="long"
  31391. transient="false" volatile="false"
  31392. static="false" final="false" visibility="public"
  31393. deprecated="not deprecated">
  31394. <doc>
  31395. <![CDATA[Local time in milliseconds when the event occurred]]>
  31396. </doc>
  31397. </field>
  31398. <field name="state" type="org.apache.hadoop.service.Service.STATE"
  31399. transient="false" volatile="false"
  31400. static="false" final="false" visibility="public"
  31401. deprecated="not deprecated">
  31402. <doc>
  31403. <![CDATA[new state]]>
  31404. </doc>
  31405. </field>
  31406. <doc>
  31407. <![CDATA[A serializable lifecycle event: the time a state
  31408. transition occurred, and what state was entered.]]>
  31409. </doc>
  31410. </class>
  31411. <!-- end class org.apache.hadoop.service.LifecycleEvent -->
  31412. <!-- start class org.apache.hadoop.service.LoggingStateChangeListener -->
  31413. <class name="LoggingStateChangeListener" extends="java.lang.Object"
  31414. abstract="false"
  31415. static="false" final="false" visibility="public"
  31416. deprecated="not deprecated">
  31417. <implements name="org.apache.hadoop.service.ServiceStateChangeListener"/>
  31418. <constructor name="LoggingStateChangeListener" type="org.slf4j.Logger"
  31419. static="false" final="false" visibility="public"
  31420. deprecated="not deprecated">
  31421. <doc>
  31422. <![CDATA[Log events to the given log
  31423. @param log destination for events]]>
  31424. </doc>
  31425. </constructor>
  31426. <constructor name="LoggingStateChangeListener"
  31427. static="false" final="false" visibility="public"
  31428. deprecated="not deprecated">
  31429. <doc>
  31430. <![CDATA[Log events to the static log for this class]]>
  31431. </doc>
  31432. </constructor>
  31433. <method name="stateChanged"
  31434. abstract="false" native="false" synchronized="false"
  31435. static="false" final="false" visibility="public"
  31436. deprecated="not deprecated">
  31437. <param name="service" type="org.apache.hadoop.service.Service"/>
  31438. <doc>
  31439. <![CDATA[Callback for a state change event: log it
  31440. @param service the service that has changed.]]>
  31441. </doc>
  31442. </method>
  31443. <doc>
  31444. <![CDATA[This is a state change listener that logs events at INFO level]]>
  31445. </doc>
  31446. </class>
  31447. <!-- end class org.apache.hadoop.service.LoggingStateChangeListener -->
  31448. <!-- start interface org.apache.hadoop.service.Service -->
  31449. <interface name="Service" abstract="true"
  31450. static="false" final="false" visibility="public"
  31451. deprecated="not deprecated">
  31452. <implements name="java.io.Closeable"/>
  31453. <method name="init"
  31454. abstract="true" native="false" synchronized="false"
  31455. static="false" final="false" visibility="public"
  31456. deprecated="not deprecated">
  31457. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  31458. <doc>
  31459. <![CDATA[Initialize the service.
  31460. The transition MUST be from {@link STATE#NOTINITED} to {@link STATE#INITED}
  31461. unless the operation failed and an exception was raised, in which case
  31462. {@link #stop()} MUST be invoked and the service enter the state
  31463. {@link STATE#STOPPED}.
  31464. @param config the configuration of the service
  31465. @throws RuntimeException on any failure during the operation]]>
  31466. </doc>
  31467. </method>
  31468. <method name="start"
  31469. abstract="true" native="false" synchronized="false"
  31470. static="false" final="false" visibility="public"
  31471. deprecated="not deprecated">
  31472. <doc>
  31473. <![CDATA[Start the service.
  31474. The transition MUST be from {@link STATE#INITED} to {@link STATE#STARTED}
  31475. unless the operation failed and an exception was raised, in which case
  31476. {@link #stop()} MUST be invoked and the service enter the state
  31477. {@link STATE#STOPPED}.
  31478. @throws RuntimeException on any failure during the operation]]>
  31479. </doc>
  31480. </method>
  31481. <method name="stop"
  31482. abstract="true" native="false" synchronized="false"
  31483. static="false" final="false" visibility="public"
  31484. deprecated="not deprecated">
  31485. <doc>
  31486. <![CDATA[Stop the service. This MUST be a no-op if the service is already
  31487. in the {@link STATE#STOPPED} state. It SHOULD be a best-effort attempt
  31488. to stop all parts of the service.
  31489. The implementation must be designed to complete regardless of the service
  31490. state, including the initialized/uninitialized state of all its internal
  31491. fields.
  31492. @throws RuntimeException on any failure during the stop operation]]>
  31493. </doc>
  31494. </method>
  31495. <method name="close"
  31496. abstract="true" native="false" synchronized="false"
  31497. static="false" final="false" visibility="public"
  31498. deprecated="not deprecated">
  31499. <exception name="IOException" type="java.io.IOException"/>
  31500. <doc>
  31501. <![CDATA[A version of stop() that is designed to be usable in Java7 closure
  31502. clauses.
  31503. Implementation classes MUST relay this directly to {@link #stop()}
  31504. @throws IOException never
  31505. @throws RuntimeException on any failure during the stop operation]]>
  31506. </doc>
  31507. </method>
  31508. <method name="registerServiceListener"
  31509. abstract="true" native="false" synchronized="false"
  31510. static="false" final="false" visibility="public"
  31511. deprecated="not deprecated">
  31512. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  31513. <doc>
  31514. <![CDATA[Register a listener to the service state change events.
  31515. If the supplied listener is already listening to this service,
  31516. this method is a no-op.
  31517. @param listener a new listener]]>
  31518. </doc>
  31519. </method>
  31520. <method name="unregisterServiceListener"
  31521. abstract="true" native="false" synchronized="false"
  31522. static="false" final="false" visibility="public"
  31523. deprecated="not deprecated">
  31524. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  31525. <doc>
  31526. <![CDATA[Unregister a previously registered listener of the service state
  31527. change events. No-op if the listener is already unregistered.
  31528. @param listener the listener to unregister.]]>
  31529. </doc>
  31530. </method>
  31531. <method name="getName" return="java.lang.String"
  31532. abstract="true" native="false" synchronized="false"
  31533. static="false" final="false" visibility="public"
  31534. deprecated="not deprecated">
  31535. <doc>
  31536. <![CDATA[Get the name of this service.
  31537. @return the service name]]>
  31538. </doc>
  31539. </method>
  31540. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  31541. abstract="true" native="false" synchronized="false"
  31542. static="false" final="false" visibility="public"
  31543. deprecated="not deprecated">
  31544. <doc>
  31545. <![CDATA[Get the configuration of this service.
  31546. This is normally not a clone and may be manipulated, though there are no
  31547. guarantees as to what the consequences of such actions may be
  31548. @return the current configuration, unless a specific implentation chooses
  31549. otherwise.]]>
  31550. </doc>
  31551. </method>
  31552. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  31553. abstract="true" native="false" synchronized="false"
  31554. static="false" final="false" visibility="public"
  31555. deprecated="not deprecated">
  31556. <doc>
  31557. <![CDATA[Get the current service state
  31558. @return the state of the service]]>
  31559. </doc>
  31560. </method>
  31561. <method name="getStartTime" return="long"
  31562. abstract="true" native="false" synchronized="false"
  31563. static="false" final="false" visibility="public"
  31564. deprecated="not deprecated">
  31565. <doc>
  31566. <![CDATA[Get the service start time
  31567. @return the start time of the service. This will be zero if the service
  31568. has not yet been started.]]>
  31569. </doc>
  31570. </method>
  31571. <method name="isInState" return="boolean"
  31572. abstract="true" native="false" synchronized="false"
  31573. static="false" final="false" visibility="public"
  31574. deprecated="not deprecated">
  31575. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  31576. <doc>
  31577. <![CDATA[Query to see if the service is in a specific state.
  31578. In a multi-threaded system, the state may not hold for very long.
  31579. @param state the expected state
  31580. @return true if, at the time of invocation, the service was in that state.]]>
  31581. </doc>
  31582. </method>
  31583. <method name="getFailureCause" return="java.lang.Throwable"
  31584. abstract="true" native="false" synchronized="false"
  31585. static="false" final="false" visibility="public"
  31586. deprecated="not deprecated">
  31587. <doc>
  31588. <![CDATA[Get the first exception raised during the service failure. If null,
  31589. no exception was logged
  31590. @return the failure logged during a transition to the stopped state]]>
  31591. </doc>
  31592. </method>
  31593. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  31594. abstract="true" native="false" synchronized="false"
  31595. static="false" final="false" visibility="public"
  31596. deprecated="not deprecated">
  31597. <doc>
  31598. <![CDATA[Get the state in which the failure in {@link #getFailureCause()} occurred.
  31599. @return the state or null if there was no failure]]>
  31600. </doc>
  31601. </method>
  31602. <method name="waitForServiceToStop" return="boolean"
  31603. abstract="true" native="false" synchronized="false"
  31604. static="false" final="false" visibility="public"
  31605. deprecated="not deprecated">
  31606. <param name="timeout" type="long"/>
  31607. <doc>
  31608. <![CDATA[Block waiting for the service to stop; uses the termination notification
  31609. object to do so.
  31610. This method will only return after all the service stop actions
  31611. have been executed (to success or failure), or the timeout elapsed
  31612. This method can be called before the service is inited or started; this is
  31613. to eliminate any race condition with the service stopping before
  31614. this event occurs.
  31615. @param timeout timeout in milliseconds. A value of zero means "forever"
  31616. @return true iff the service stopped in the time period]]>
  31617. </doc>
  31618. </method>
  31619. <method name="getLifecycleHistory" return="java.util.List"
  31620. abstract="true" native="false" synchronized="false"
  31621. static="false" final="false" visibility="public"
  31622. deprecated="not deprecated">
  31623. <doc>
  31624. <![CDATA[Get a snapshot of the lifecycle history; it is a static list
  31625. @return a possibly empty but never null list of lifecycle events.]]>
  31626. </doc>
  31627. </method>
  31628. <method name="getBlockers" return="java.util.Map"
  31629. abstract="true" native="false" synchronized="false"
  31630. static="false" final="false" visibility="public"
  31631. deprecated="not deprecated">
  31632. <doc>
  31633. <![CDATA[Get the blockers on a service -remote dependencies
  31634. that are stopping the service from being <i>live</i>.
  31635. @return a (snapshotted) map of blocker name-&gt;description values]]>
  31636. </doc>
  31637. </method>
  31638. <doc>
  31639. <![CDATA[Service LifeCycle.]]>
  31640. </doc>
  31641. </interface>
  31642. <!-- end interface org.apache.hadoop.service.Service -->
  31643. <!-- start class org.apache.hadoop.service.ServiceOperations -->
  31644. <class name="ServiceOperations" extends="java.lang.Object"
  31645. abstract="false"
  31646. static="false" final="true" visibility="public"
  31647. deprecated="not deprecated">
  31648. <method name="stop"
  31649. abstract="false" native="false" synchronized="false"
  31650. static="true" final="false" visibility="public"
  31651. deprecated="not deprecated">
  31652. <param name="service" type="org.apache.hadoop.service.Service"/>
  31653. <doc>
  31654. <![CDATA[Stop a service.
  31655. <p/>Do nothing if the service is null or not
  31656. in a state in which it can be/needs to be stopped.
  31657. <p/>
  31658. The service state is checked <i>before</i> the operation begins.
  31659. This process is <i>not</i> thread safe.
  31660. @param service a service or null]]>
  31661. </doc>
  31662. </method>
  31663. <method name="stopQuietly" return="java.lang.Exception"
  31664. abstract="false" native="false" synchronized="false"
  31665. static="true" final="false" visibility="public"
  31666. deprecated="not deprecated">
  31667. <param name="service" type="org.apache.hadoop.service.Service"/>
  31668. <doc>
  31669. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  31670. logged at warn level. (but not Throwables). This operation is intended to
  31671. be used in cleanup operations
  31672. @param service a service; may be null
  31673. @return any exception that was caught; null if none was.]]>
  31674. </doc>
  31675. </method>
  31676. <method name="stopQuietly" return="java.lang.Exception"
  31677. abstract="false" native="false" synchronized="false"
  31678. static="true" final="false" visibility="public"
  31679. deprecated="not deprecated">
  31680. <param name="log" type="org.apache.commons.logging.Log"/>
  31681. <param name="service" type="org.apache.hadoop.service.Service"/>
  31682. <doc>
  31683. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  31684. logged at warn level. (but not Throwables). This operation is intended to
  31685. be used in cleanup operations
  31686. @param log the log to warn at
  31687. @param service a service; may be null
  31688. @return any exception that was caught; null if none was.
  31689. @see ServiceOperations#stopQuietly(Service)]]>
  31690. </doc>
  31691. </method>
  31692. <method name="stopQuietly" return="java.lang.Exception"
  31693. abstract="false" native="false" synchronized="false"
  31694. static="true" final="false" visibility="public"
  31695. deprecated="not deprecated">
  31696. <param name="log" type="org.slf4j.Logger"/>
  31697. <param name="service" type="org.apache.hadoop.service.Service"/>
  31698. <doc>
  31699. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  31700. logged at warn level. (but not Throwables). This operation is intended to
  31701. be used in cleanup operations
  31702. @param log the log to warn at
  31703. @param service a service; may be null
  31704. @return any exception that was caught; null if none was.
  31705. @see ServiceOperations#stopQuietly(Service)]]>
  31706. </doc>
  31707. </method>
  31708. <doc>
  31709. <![CDATA[This class contains a set of methods to work with services, especially
  31710. to walk them through their lifecycle.]]>
  31711. </doc>
  31712. </class>
  31713. <!-- end class org.apache.hadoop.service.ServiceOperations -->
  31714. <!-- start interface org.apache.hadoop.service.ServiceStateChangeListener -->
  31715. <interface name="ServiceStateChangeListener" abstract="true"
  31716. static="false" final="false" visibility="public"
  31717. deprecated="not deprecated">
  31718. <method name="stateChanged"
  31719. abstract="true" native="false" synchronized="false"
  31720. static="false" final="false" visibility="public"
  31721. deprecated="not deprecated">
  31722. <param name="service" type="org.apache.hadoop.service.Service"/>
  31723. <doc>
  31724. <![CDATA[Callback to notify of a state change. The service will already
  31725. have changed state before this callback is invoked.
  31726. This operation is invoked on the thread that initiated the state change,
  31727. while the service itself in in a sychronized section.
  31728. <ol>
  31729. <li>Any long-lived operation here will prevent the service state
  31730. change from completing in a timely manner.</li>
  31731. <li>If another thread is somehow invoked from the listener, and
  31732. that thread invokes the methods of the service (including
  31733. subclass-specific methods), there is a risk of a deadlock.</li>
  31734. </ol>
  31735. @param service the service that has changed.]]>
  31736. </doc>
  31737. </method>
  31738. <doc>
  31739. <![CDATA[Interface to notify state changes of a service.]]>
  31740. </doc>
  31741. </interface>
  31742. <!-- end interface org.apache.hadoop.service.ServiceStateChangeListener -->
  31743. <!-- start class org.apache.hadoop.service.ServiceStateException -->
  31744. <class name="ServiceStateException" extends="java.lang.RuntimeException"
  31745. abstract="false"
  31746. static="false" final="false" visibility="public"
  31747. deprecated="not deprecated">
  31748. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  31749. <constructor name="ServiceStateException" type="java.lang.String"
  31750. static="false" final="false" visibility="public"
  31751. deprecated="not deprecated">
  31752. <doc>
  31753. <![CDATA[Instantiate
  31754. @param message error message]]>
  31755. </doc>
  31756. </constructor>
  31757. <constructor name="ServiceStateException" type="java.lang.String, java.lang.Throwable"
  31758. static="false" final="false" visibility="public"
  31759. deprecated="not deprecated">
  31760. <doc>
  31761. <![CDATA[Instantiate with a message and cause; if the cause has an exit code
  31762. then it is used, otherwise the generic
  31763. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION} exit code
  31764. is used.
  31765. @param message exception message
  31766. @param cause optional inner cause]]>
  31767. </doc>
  31768. </constructor>
  31769. <constructor name="ServiceStateException" type="int, java.lang.String, java.lang.Throwable"
  31770. static="false" final="false" visibility="public"
  31771. deprecated="not deprecated">
  31772. <doc>
  31773. <![CDATA[Instantiate, using the specified exit code as the exit code
  31774. of the exception, irrespetive of any exit code supplied by any inner
  31775. cause.
  31776. @param exitCode exit code to declare
  31777. @param message exception message
  31778. @param cause inner cause]]>
  31779. </doc>
  31780. </constructor>
  31781. <constructor name="ServiceStateException" type="java.lang.Throwable"
  31782. static="false" final="false" visibility="public"
  31783. deprecated="not deprecated">
  31784. </constructor>
  31785. <method name="getExitCode" return="int"
  31786. abstract="false" native="false" synchronized="false"
  31787. static="false" final="false" visibility="public"
  31788. deprecated="not deprecated">
  31789. </method>
  31790. <method name="convert" return="java.lang.RuntimeException"
  31791. abstract="false" native="false" synchronized="false"
  31792. static="true" final="false" visibility="public"
  31793. deprecated="not deprecated">
  31794. <param name="fault" type="java.lang.Throwable"/>
  31795. <doc>
  31796. <![CDATA[Convert any exception into a {@link RuntimeException}.
  31797. All other exception types are wrapped in a new instance of
  31798. {@code ServiceStateException}.
  31799. @param fault exception or throwable
  31800. @return a {@link RuntimeException} to rethrow]]>
  31801. </doc>
  31802. </method>
  31803. <method name="convert" return="java.lang.RuntimeException"
  31804. abstract="false" native="false" synchronized="false"
  31805. static="true" final="false" visibility="public"
  31806. deprecated="not deprecated">
  31807. <param name="text" type="java.lang.String"/>
  31808. <param name="fault" type="java.lang.Throwable"/>
  31809. <doc>
  31810. <![CDATA[Convert any exception into a {@link RuntimeException}.
  31811. If the caught exception is already of that type, it is typecast to a
  31812. {@link RuntimeException} and returned.
  31813. All other exception types are wrapped in a new instance of
  31814. {@code ServiceStateException}.
  31815. @param text text to use if a new exception is created
  31816. @param fault exception or throwable
  31817. @return a {@link RuntimeException} to rethrow]]>
  31818. </doc>
  31819. </method>
  31820. <doc>
  31821. <![CDATA[Exception that can be raised on state change operations, whose
  31822. exit code can be explicitly set, determined from that of any nested
  31823. cause, or a default value of
  31824. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION}.]]>
  31825. </doc>
  31826. </class>
  31827. <!-- end class org.apache.hadoop.service.ServiceStateException -->
  31828. <!-- start class org.apache.hadoop.service.ServiceStateModel -->
  31829. <class name="ServiceStateModel" extends="java.lang.Object"
  31830. abstract="false"
  31831. static="false" final="false" visibility="public"
  31832. deprecated="not deprecated">
  31833. <constructor name="ServiceStateModel" type="java.lang.String"
  31834. static="false" final="false" visibility="public"
  31835. deprecated="not deprecated">
  31836. <doc>
  31837. <![CDATA[Create the service state model in the {@link Service.STATE#NOTINITED}
  31838. state.]]>
  31839. </doc>
  31840. </constructor>
  31841. <constructor name="ServiceStateModel" type="java.lang.String, org.apache.hadoop.service.Service.STATE"
  31842. static="false" final="false" visibility="public"
  31843. deprecated="not deprecated">
  31844. <doc>
  31845. <![CDATA[Create a service state model instance in the chosen state
  31846. @param state the starting state]]>
  31847. </doc>
  31848. </constructor>
  31849. <method name="getState" return="org.apache.hadoop.service.Service.STATE"
  31850. abstract="false" native="false" synchronized="false"
  31851. static="false" final="false" visibility="public"
  31852. deprecated="not deprecated">
  31853. <doc>
  31854. <![CDATA[Query the service state. This is a non-blocking operation.
  31855. @return the state]]>
  31856. </doc>
  31857. </method>
  31858. <method name="isInState" return="boolean"
  31859. abstract="false" native="false" synchronized="false"
  31860. static="false" final="false" visibility="public"
  31861. deprecated="not deprecated">
  31862. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  31863. <doc>
  31864. <![CDATA[Query that the state is in a specific state
  31865. @param proposed proposed new state
  31866. @return the state]]>
  31867. </doc>
  31868. </method>
  31869. <method name="ensureCurrentState"
  31870. abstract="false" native="false" synchronized="false"
  31871. static="false" final="false" visibility="public"
  31872. deprecated="not deprecated">
  31873. <param name="expectedState" type="org.apache.hadoop.service.Service.STATE"/>
  31874. <doc>
  31875. <![CDATA[Verify that that a service is in a given state.
  31876. @param expectedState the desired state
  31877. @throws ServiceStateException if the service state is different from
  31878. the desired state]]>
  31879. </doc>
  31880. </method>
  31881. <method name="enterState" return="org.apache.hadoop.service.Service.STATE"
  31882. abstract="false" native="false" synchronized="true"
  31883. static="false" final="false" visibility="public"
  31884. deprecated="not deprecated">
  31885. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  31886. <doc>
  31887. <![CDATA[Enter a state -thread safe.
  31888. @param proposed proposed new state
  31889. @return the original state
  31890. @throws ServiceStateException if the transition is not permitted]]>
  31891. </doc>
  31892. </method>
  31893. <method name="checkStateTransition"
  31894. abstract="false" native="false" synchronized="false"
  31895. static="true" final="false" visibility="public"
  31896. deprecated="not deprecated">
  31897. <param name="name" type="java.lang.String"/>
  31898. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  31899. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  31900. <doc>
  31901. <![CDATA[Check that a state tansition is valid and
  31902. throw an exception if not
  31903. @param name name of the service (can be null)
  31904. @param state current state
  31905. @param proposed proposed new state]]>
  31906. </doc>
  31907. </method>
  31908. <method name="isValidStateTransition" return="boolean"
  31909. abstract="false" native="false" synchronized="false"
  31910. static="true" final="false" visibility="public"
  31911. deprecated="not deprecated">
  31912. <param name="current" type="org.apache.hadoop.service.Service.STATE"/>
  31913. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  31914. <doc>
  31915. <![CDATA[Is a state transition valid?
  31916. There are no checks for current==proposed
  31917. as that is considered a non-transition.
  31918. using an array kills off all branch misprediction costs, at the expense
  31919. of cache line misses.
  31920. @param current current state
  31921. @param proposed proposed new state
  31922. @return true if the transition to a new state is valid]]>
  31923. </doc>
  31924. </method>
  31925. <method name="toString" return="java.lang.String"
  31926. abstract="false" native="false" synchronized="false"
  31927. static="false" final="false" visibility="public"
  31928. deprecated="not deprecated">
  31929. <doc>
  31930. <![CDATA[return the state text as the toString() value
  31931. @return the current state's description]]>
  31932. </doc>
  31933. </method>
  31934. <doc>
  31935. <![CDATA[Implements the service state model.]]>
  31936. </doc>
  31937. </class>
  31938. <!-- end class org.apache.hadoop.service.ServiceStateModel -->
  31939. </package>
  31940. <package name="org.apache.hadoop.service.launcher">
  31941. <!-- start class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  31942. <class name="AbstractLaunchableService" extends="org.apache.hadoop.service.AbstractService"
  31943. abstract="true"
  31944. static="false" final="false" visibility="public"
  31945. deprecated="not deprecated">
  31946. <implements name="org.apache.hadoop.service.launcher.LaunchableService"/>
  31947. <constructor name="AbstractLaunchableService" type="java.lang.String"
  31948. static="false" final="false" visibility="protected"
  31949. deprecated="not deprecated">
  31950. <doc>
  31951. <![CDATA[Construct an instance with the given name.]]>
  31952. </doc>
  31953. </constructor>
  31954. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  31955. abstract="false" native="false" synchronized="false"
  31956. static="false" final="false" visibility="public"
  31957. deprecated="not deprecated">
  31958. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  31959. <param name="args" type="java.util.List"/>
  31960. <exception name="Exception" type="java.lang.Exception"/>
  31961. <doc>
  31962. <![CDATA[{@inheritDoc}
  31963. <p>
  31964. The base implementation logs all arguments at the debug level,
  31965. then returns the passed in config unchanged.]]>
  31966. </doc>
  31967. </method>
  31968. <method name="execute" return="int"
  31969. abstract="false" native="false" synchronized="false"
  31970. static="false" final="false" visibility="public"
  31971. deprecated="not deprecated">
  31972. <exception name="Exception" type="java.lang.Exception"/>
  31973. <doc>
  31974. <![CDATA[{@inheritDoc}
  31975. <p>
  31976. The action is to signal success by returning the exit code 0.]]>
  31977. </doc>
  31978. </method>
  31979. <doc>
  31980. <![CDATA[Subclass of {@link AbstractService} that provides basic implementations
  31981. of the {@link LaunchableService} methods.]]>
  31982. </doc>
  31983. </class>
  31984. <!-- end class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  31985. <!-- start class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  31986. <class name="HadoopUncaughtExceptionHandler" extends="java.lang.Object"
  31987. abstract="false"
  31988. static="false" final="false" visibility="public"
  31989. deprecated="not deprecated">
  31990. <implements name="java.lang.Thread.UncaughtExceptionHandler"/>
  31991. <constructor name="HadoopUncaughtExceptionHandler" type="java.lang.Thread.UncaughtExceptionHandler"
  31992. static="false" final="false" visibility="public"
  31993. deprecated="not deprecated">
  31994. <doc>
  31995. <![CDATA[Create an instance delegating to the supplied handler if
  31996. the exception is considered "simple".
  31997. @param delegate a delegate exception handler.]]>
  31998. </doc>
  31999. </constructor>
  32000. <constructor name="HadoopUncaughtExceptionHandler"
  32001. static="false" final="false" visibility="public"
  32002. deprecated="not deprecated">
  32003. <doc>
  32004. <![CDATA[Basic exception handler -logs simple exceptions, then continues.]]>
  32005. </doc>
  32006. </constructor>
  32007. <method name="uncaughtException"
  32008. abstract="false" native="false" synchronized="false"
  32009. static="false" final="false" visibility="public"
  32010. deprecated="not deprecated">
  32011. <param name="thread" type="java.lang.Thread"/>
  32012. <param name="exception" type="java.lang.Throwable"/>
  32013. <doc>
  32014. <![CDATA[Uncaught exception handler.
  32015. If an error is raised: shutdown
  32016. The state of the system is unknown at this point -attempting
  32017. a clean shutdown is dangerous. Instead: exit
  32018. @param thread thread that failed
  32019. @param exception the raised exception]]>
  32020. </doc>
  32021. </method>
  32022. <doc>
  32023. <![CDATA[This class is intended to be installed by calling
  32024. {@link Thread#setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler)}
  32025. in the main entry point.
  32026. The base class will always attempt to shut down the process if an Error
  32027. was raised; the behavior on a standard Exception, raised outside
  32028. process shutdown, is simply to log it.
  32029. (Based on the class {@code YarnUncaughtExceptionHandler})]]>
  32030. </doc>
  32031. </class>
  32032. <!-- end class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  32033. <!-- start interface org.apache.hadoop.service.launcher.LaunchableService -->
  32034. <interface name="LaunchableService" abstract="true"
  32035. static="false" final="false" visibility="public"
  32036. deprecated="not deprecated">
  32037. <implements name="org.apache.hadoop.service.Service"/>
  32038. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  32039. abstract="true" native="false" synchronized="false"
  32040. static="false" final="false" visibility="public"
  32041. deprecated="not deprecated">
  32042. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  32043. <param name="args" type="java.util.List"/>
  32044. <exception name="Exception" type="java.lang.Exception"/>
  32045. <doc>
  32046. <![CDATA[Propagate the command line arguments.
  32047. <p>
  32048. This method is called before {@link #init(Configuration)};
  32049. Any non-null configuration that is returned from this operation
  32050. becomes the one that is passed on to that {@link #init(Configuration)}
  32051. operation.
  32052. <p>
  32053. This permits implementations to change the configuration before
  32054. the init operation. As the ServiceLauncher only creates
  32055. an instance of the base {@link Configuration} class, it is
  32056. recommended to instantiate any subclass (such as YarnConfiguration)
  32057. that injects new resources.
  32058. <p>
  32059. @param config the initial configuration build up by the
  32060. service launcher.
  32061. @param args list of arguments passed to the command line
  32062. after any launcher-specific commands have been stripped.
  32063. @return the configuration to init the service with.
  32064. Recommended: pass down the config parameter with any changes
  32065. @throws Exception any problem]]>
  32066. </doc>
  32067. </method>
  32068. <method name="execute" return="int"
  32069. abstract="true" native="false" synchronized="false"
  32070. static="false" final="false" visibility="public"
  32071. deprecated="not deprecated">
  32072. <exception name="Exception" type="java.lang.Exception"/>
  32073. <doc>
  32074. <![CDATA[Run a service. This method is called after {@link Service#start()}.
  32075. <p>
  32076. The return value becomes the exit code of the launched process.
  32077. <p>
  32078. If an exception is raised, the policy is:
  32079. <ol>
  32080. <li>Any subset of {@link org.apache.hadoop.util.ExitUtil.ExitException}:
  32081. the exception is passed up unmodified.
  32082. </li>
  32083. <li>Any exception which implements
  32084. {@link org.apache.hadoop.util.ExitCodeProvider}:
  32085. A new {@link ServiceLaunchException} is created with the exit code
  32086. and message of the thrown exception; the thrown exception becomes the
  32087. cause.</li>
  32088. <li>Any other exception: a new {@link ServiceLaunchException} is created
  32089. with the exit code {@link LauncherExitCodes#EXIT_EXCEPTION_THROWN} and
  32090. the message of the original exception (which becomes the cause).</li>
  32091. </ol>
  32092. @return the exit code
  32093. @throws org.apache.hadoop.util.ExitUtil.ExitException an exception passed
  32094. up as the exit code and error text.
  32095. @throws Exception any exception to report. If it provides an exit code
  32096. this is used in a wrapping exception.]]>
  32097. </doc>
  32098. </method>
  32099. <doc>
  32100. <![CDATA[An interface which services can implement to have their
  32101. execution managed by the ServiceLauncher.
  32102. <p>
  32103. The command line options will be passed down before the
  32104. {@link Service#init(Configuration)} operation is invoked via an
  32105. invocation of {@link LaunchableService#bindArgs(Configuration, List)}
  32106. After the service has been successfully started via {@link Service#start()}
  32107. the {@link LaunchableService#execute()} method is called to execute the
  32108. service. When this method returns, the service launcher will exit, using
  32109. the return code from the method as its exit option.]]>
  32110. </doc>
  32111. </interface>
  32112. <!-- end interface org.apache.hadoop.service.launcher.LaunchableService -->
  32113. <!-- start interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  32114. <interface name="LauncherExitCodes" abstract="true"
  32115. static="false" final="false" visibility="public"
  32116. deprecated="not deprecated">
  32117. <field name="EXIT_SUCCESS" type="int"
  32118. transient="false" volatile="false"
  32119. static="true" final="true" visibility="public"
  32120. deprecated="not deprecated">
  32121. <doc>
  32122. <![CDATA[Success: {@value}.]]>
  32123. </doc>
  32124. </field>
  32125. <field name="EXIT_FAIL" type="int"
  32126. transient="false" volatile="false"
  32127. static="true" final="true" visibility="public"
  32128. deprecated="not deprecated">
  32129. <doc>
  32130. <![CDATA[Generic "false/fail" response: {@value}.
  32131. The operation worked but the result was not "true" from the viewpoint
  32132. of the executed code.]]>
  32133. </doc>
  32134. </field>
  32135. <field name="EXIT_CLIENT_INITIATED_SHUTDOWN" type="int"
  32136. transient="false" volatile="false"
  32137. static="true" final="true" visibility="public"
  32138. deprecated="not deprecated">
  32139. <doc>
  32140. <![CDATA[Exit code when a client requested service termination: {@value}.]]>
  32141. </doc>
  32142. </field>
  32143. <field name="EXIT_TASK_LAUNCH_FAILURE" type="int"
  32144. transient="false" volatile="false"
  32145. static="true" final="true" visibility="public"
  32146. deprecated="not deprecated">
  32147. <doc>
  32148. <![CDATA[Exit code when targets could not be launched: {@value}.]]>
  32149. </doc>
  32150. </field>
  32151. <field name="EXIT_INTERRUPTED" type="int"
  32152. transient="false" volatile="false"
  32153. static="true" final="true" visibility="public"
  32154. deprecated="not deprecated">
  32155. <doc>
  32156. <![CDATA[Exit code when a control-C, kill -3, signal was picked up: {@value}.]]>
  32157. </doc>
  32158. </field>
  32159. <field name="EXIT_OTHER_FAILURE" type="int"
  32160. transient="false" volatile="false"
  32161. static="true" final="true" visibility="public"
  32162. deprecated="not deprecated">
  32163. <doc>
  32164. <![CDATA[Exit code when something happened but we can't be specific: {@value}.]]>
  32165. </doc>
  32166. </field>
  32167. <field name="EXIT_COMMAND_ARGUMENT_ERROR" type="int"
  32168. transient="false" volatile="false"
  32169. static="true" final="true" visibility="public"
  32170. deprecated="not deprecated">
  32171. <doc>
  32172. <![CDATA[Exit code when the command line doesn't parse: {@value}, or
  32173. when it is otherwise invalid.
  32174. <p>
  32175. Approximate HTTP equivalent: {@code 400 Bad Request}]]>
  32176. </doc>
  32177. </field>
  32178. <field name="EXIT_UNAUTHORIZED" type="int"
  32179. transient="false" volatile="false"
  32180. static="true" final="true" visibility="public"
  32181. deprecated="not deprecated">
  32182. <doc>
  32183. <![CDATA[The request requires user authentication: {@value}.
  32184. <p>
  32185. approximate HTTP equivalent: Approximate HTTP equivalent: {@code 401 Unauthorized}]]>
  32186. </doc>
  32187. </field>
  32188. <field name="EXIT_USAGE" type="int"
  32189. transient="false" volatile="false"
  32190. static="true" final="true" visibility="public"
  32191. deprecated="not deprecated">
  32192. <doc>
  32193. <![CDATA[Exit code when a usage message was printed: {@value}.]]>
  32194. </doc>
  32195. </field>
  32196. <field name="EXIT_FORBIDDEN" type="int"
  32197. transient="false" volatile="false"
  32198. static="true" final="true" visibility="public"
  32199. deprecated="not deprecated">
  32200. <doc>
  32201. <![CDATA[Forbidden action: {@value}.
  32202. <p>
  32203. Approximate HTTP equivalent: Approximate HTTP equivalent: {@code 403: Forbidden}]]>
  32204. </doc>
  32205. </field>
  32206. <field name="EXIT_NOT_FOUND" type="int"
  32207. transient="false" volatile="false"
  32208. static="true" final="true" visibility="public"
  32209. deprecated="not deprecated">
  32210. <doc>
  32211. <![CDATA[Something was not found: {@value}.
  32212. <p>
  32213. Approximate HTTP equivalent: {@code 404: Not Found}]]>
  32214. </doc>
  32215. </field>
  32216. <field name="EXIT_OPERATION_NOT_ALLOWED" type="int"
  32217. transient="false" volatile="false"
  32218. static="true" final="true" visibility="public"
  32219. deprecated="not deprecated">
  32220. <doc>
  32221. <![CDATA[The operation is not allowed: {@value}.
  32222. <p>
  32223. Approximate HTTP equivalent: {@code 405: Not allowed}]]>
  32224. </doc>
  32225. </field>
  32226. <field name="EXIT_NOT_ACCEPTABLE" type="int"
  32227. transient="false" volatile="false"
  32228. static="true" final="true" visibility="public"
  32229. deprecated="not deprecated">
  32230. <doc>
  32231. <![CDATA[The command is somehow not acceptable: {@value}.
  32232. <p>
  32233. Approximate HTTP equivalent: {@code 406: Not Acceptable}]]>
  32234. </doc>
  32235. </field>
  32236. <field name="EXIT_CONNECTIVITY_PROBLEM" type="int"
  32237. transient="false" volatile="false"
  32238. static="true" final="true" visibility="public"
  32239. deprecated="not deprecated">
  32240. <doc>
  32241. <![CDATA[Exit code on connectivity problems: {@value}.
  32242. <p>
  32243. Approximate HTTP equivalent: {@code 408: Request Timeout}]]>
  32244. </doc>
  32245. </field>
  32246. <field name="EXIT_BAD_CONFIGURATION" type="int"
  32247. transient="false" volatile="false"
  32248. static="true" final="true" visibility="public"
  32249. deprecated="not deprecated">
  32250. <doc>
  32251. <![CDATA[Exit code when the configurations in valid/incomplete: {@value}.
  32252. <p>
  32253. Approximate HTTP equivalent: {@code 409: Conflict}]]>
  32254. </doc>
  32255. </field>
  32256. <field name="EXIT_EXCEPTION_THROWN" type="int"
  32257. transient="false" volatile="false"
  32258. static="true" final="true" visibility="public"
  32259. deprecated="not deprecated">
  32260. <doc>
  32261. <![CDATA[Exit code when an exception was thrown from the service: {@value}.
  32262. <p>
  32263. Approximate HTTP equivalent: {@code 500 Internal Server Error}]]>
  32264. </doc>
  32265. </field>
  32266. <field name="EXIT_UNIMPLEMENTED" type="int"
  32267. transient="false" volatile="false"
  32268. static="true" final="true" visibility="public"
  32269. deprecated="not deprecated">
  32270. <doc>
  32271. <![CDATA[Unimplemented feature: {@value}.
  32272. <p>
  32273. Approximate HTTP equivalent: {@code 501: Not Implemented}]]>
  32274. </doc>
  32275. </field>
  32276. <field name="EXIT_SERVICE_UNAVAILABLE" type="int"
  32277. transient="false" volatile="false"
  32278. static="true" final="true" visibility="public"
  32279. deprecated="not deprecated">
  32280. <doc>
  32281. <![CDATA[Service Unavailable; it may be available later: {@value}.
  32282. <p>
  32283. Approximate HTTP equivalent: {@code 503 Service Unavailable}]]>
  32284. </doc>
  32285. </field>
  32286. <field name="EXIT_UNSUPPORTED_VERSION" type="int"
  32287. transient="false" volatile="false"
  32288. static="true" final="true" visibility="public"
  32289. deprecated="not deprecated">
  32290. <doc>
  32291. <![CDATA[The application does not support, or refuses to support this
  32292. version: {@value}.
  32293. <p>
  32294. If raised, this is expected to be raised server-side and likely due
  32295. to client/server version incompatibilities.
  32296. <p>
  32297. Approximate HTTP equivalent: {@code 505: Version Not Supported}]]>
  32298. </doc>
  32299. </field>
  32300. <field name="EXIT_SERVICE_CREATION_FAILURE" type="int"
  32301. transient="false" volatile="false"
  32302. static="true" final="true" visibility="public"
  32303. deprecated="not deprecated">
  32304. <doc>
  32305. <![CDATA[The service instance could not be created: {@value}.]]>
  32306. </doc>
  32307. </field>
  32308. <field name="EXIT_SERVICE_LIFECYCLE_EXCEPTION" type="int"
  32309. transient="false" volatile="false"
  32310. static="true" final="true" visibility="public"
  32311. deprecated="not deprecated">
  32312. <doc>
  32313. <![CDATA[The service instance could not be created: {@value}.]]>
  32314. </doc>
  32315. </field>
  32316. <doc>
  32317. <![CDATA[Common Exit codes.
  32318. <p>
  32319. Codes with a YARN prefix are YARN-related.
  32320. <p>
  32321. Many of the exit codes are designed to resemble HTTP error codes,
  32322. squashed into a single byte. e.g 44 , "not found" is the equivalent
  32323. of 404. The various 2XX HTTP error codes aren't followed;
  32324. the Unix standard of "0" for success is used.
  32325. <pre>
  32326. 0-10: general command issues
  32327. 30-39: equivalent to the 3XX responses, where those responses are
  32328. considered errors by the application.
  32329. 40-49: client-side/CLI/config problems
  32330. 50-59: service-side problems.
  32331. 60+ : application specific error codes
  32332. </pre>]]>
  32333. </doc>
  32334. </interface>
  32335. <!-- end interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  32336. <!-- start class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  32337. <class name="ServiceLaunchException" extends="org.apache.hadoop.util.ExitUtil.ExitException"
  32338. abstract="false"
  32339. static="false" final="false" visibility="public"
  32340. deprecated="not deprecated">
  32341. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  32342. <implements name="org.apache.hadoop.service.launcher.LauncherExitCodes"/>
  32343. <constructor name="ServiceLaunchException" type="int, java.lang.Throwable"
  32344. static="false" final="false" visibility="public"
  32345. deprecated="not deprecated">
  32346. <doc>
  32347. <![CDATA[Create an exception with the specific exit code.
  32348. @param exitCode exit code
  32349. @param cause cause of the exception]]>
  32350. </doc>
  32351. </constructor>
  32352. <constructor name="ServiceLaunchException" type="int, java.lang.String"
  32353. static="false" final="false" visibility="public"
  32354. deprecated="not deprecated">
  32355. <doc>
  32356. <![CDATA[Create an exception with the specific exit code and text.
  32357. @param exitCode exit code
  32358. @param message message to use in exception]]>
  32359. </doc>
  32360. </constructor>
  32361. <constructor name="ServiceLaunchException" type="int, java.lang.String, java.lang.Object[]"
  32362. static="false" final="false" visibility="public"
  32363. deprecated="not deprecated">
  32364. <doc>
  32365. <![CDATA[Create a formatted exception.
  32366. <p>
  32367. This uses {@link String#format(String, Object...)}
  32368. to build the formatted exception in the ENGLISH locale.
  32369. <p>
  32370. If the last argument is a throwable, it becomes the cause of the exception.
  32371. It will also be used as a parameter for the format.
  32372. @param exitCode exit code
  32373. @param format format for message to use in exception
  32374. @param args list of arguments]]>
  32375. </doc>
  32376. </constructor>
  32377. <doc>
  32378. <![CDATA[A service launch exception that includes an exit code.
  32379. <p>
  32380. When caught by the ServiceLauncher, it will convert that
  32381. into a process exit code.
  32382. The {@link #ServiceLaunchException(int, String, Object...)} constructor
  32383. generates formatted exceptions.]]>
  32384. </doc>
  32385. </class>
  32386. <!-- end class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  32387. </package>
  32388. <package name="org.apache.hadoop.tools">
  32389. </package>
  32390. <package name="org.apache.hadoop.tools.protocolPB">
  32391. </package>
  32392. <package name="org.apache.hadoop.tracing">
  32393. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfo -->
  32394. <class name="SpanReceiverInfo" extends="java.lang.Object"
  32395. abstract="false"
  32396. static="false" final="false" visibility="public"
  32397. deprecated="not deprecated">
  32398. <method name="getId" return="long"
  32399. abstract="false" native="false" synchronized="false"
  32400. static="false" final="false" visibility="public"
  32401. deprecated="not deprecated">
  32402. </method>
  32403. <method name="getClassName" return="java.lang.String"
  32404. abstract="false" native="false" synchronized="false"
  32405. static="false" final="false" visibility="public"
  32406. deprecated="not deprecated">
  32407. </method>
  32408. </class>
  32409. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfo -->
  32410. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  32411. <class name="SpanReceiverInfoBuilder" extends="java.lang.Object"
  32412. abstract="false"
  32413. static="false" final="false" visibility="public"
  32414. deprecated="not deprecated">
  32415. <constructor name="SpanReceiverInfoBuilder" type="java.lang.String"
  32416. static="false" final="false" visibility="public"
  32417. deprecated="not deprecated">
  32418. </constructor>
  32419. <method name="addConfigurationPair"
  32420. abstract="false" native="false" synchronized="false"
  32421. static="false" final="false" visibility="public"
  32422. deprecated="not deprecated">
  32423. <param name="key" type="java.lang.String"/>
  32424. <param name="value" type="java.lang.String"/>
  32425. </method>
  32426. <method name="build" return="org.apache.hadoop.tracing.SpanReceiverInfo"
  32427. abstract="false" native="false" synchronized="false"
  32428. static="false" final="false" visibility="public"
  32429. deprecated="not deprecated">
  32430. </method>
  32431. </class>
  32432. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  32433. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  32434. <interface name="TraceAdminProtocol" abstract="true"
  32435. static="false" final="false" visibility="public"
  32436. deprecated="not deprecated">
  32437. <method name="listSpanReceivers" return="org.apache.hadoop.tracing.SpanReceiverInfo[]"
  32438. abstract="true" native="false" synchronized="false"
  32439. static="false" final="false" visibility="public"
  32440. deprecated="not deprecated">
  32441. <exception name="IOException" type="java.io.IOException"/>
  32442. <doc>
  32443. <![CDATA[List the currently active trace span receivers.
  32444. @throws IOException On error.]]>
  32445. </doc>
  32446. </method>
  32447. <method name="addSpanReceiver" return="long"
  32448. abstract="true" native="false" synchronized="false"
  32449. static="false" final="false" visibility="public"
  32450. deprecated="not deprecated">
  32451. <param name="desc" type="org.apache.hadoop.tracing.SpanReceiverInfo"/>
  32452. <exception name="IOException" type="java.io.IOException"/>
  32453. <doc>
  32454. <![CDATA[Add a new trace span receiver.
  32455. @param desc The span receiver description.
  32456. @return The ID of the new trace span receiver.
  32457. @throws IOException On error.]]>
  32458. </doc>
  32459. </method>
  32460. <method name="removeSpanReceiver"
  32461. abstract="true" native="false" synchronized="false"
  32462. static="false" final="false" visibility="public"
  32463. deprecated="not deprecated">
  32464. <param name="spanReceiverId" type="long"/>
  32465. <exception name="IOException" type="java.io.IOException"/>
  32466. <doc>
  32467. <![CDATA[Remove a trace span receiver.
  32468. @param spanReceiverId The id of the span receiver to remove.
  32469. @throws IOException On error.]]>
  32470. </doc>
  32471. </method>
  32472. <field name="versionID" type="long"
  32473. transient="false" volatile="false"
  32474. static="true" final="true" visibility="public"
  32475. deprecated="not deprecated">
  32476. </field>
  32477. <doc>
  32478. <![CDATA[Protocol interface that provides tracing.]]>
  32479. </doc>
  32480. </interface>
  32481. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  32482. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  32483. <interface name="TraceAdminProtocolPB" abstract="true"
  32484. static="false" final="false" visibility="public"
  32485. deprecated="not deprecated">
  32486. <implements name="org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService.BlockingInterface"/>
  32487. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  32488. </interface>
  32489. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  32490. </package>
  32491. <package name="org.apache.hadoop.util">
  32492. <!-- start class org.apache.hadoop.util.ApplicationClassLoader -->
  32493. <class name="ApplicationClassLoader" extends="java.net.URLClassLoader"
  32494. abstract="false"
  32495. static="false" final="false" visibility="public"
  32496. deprecated="not deprecated">
  32497. <constructor name="ApplicationClassLoader" type="java.net.URL[], java.lang.ClassLoader, java.util.List"
  32498. static="false" final="false" visibility="public"
  32499. deprecated="not deprecated">
  32500. </constructor>
  32501. <constructor name="ApplicationClassLoader" type="java.lang.String, java.lang.ClassLoader, java.util.List"
  32502. static="false" final="false" visibility="public"
  32503. deprecated="not deprecated">
  32504. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  32505. </constructor>
  32506. <method name="getResource" return="java.net.URL"
  32507. abstract="false" native="false" synchronized="false"
  32508. static="false" final="false" visibility="public"
  32509. deprecated="not deprecated">
  32510. <param name="name" type="java.lang.String"/>
  32511. </method>
  32512. <method name="loadClass" return="java.lang.Class"
  32513. abstract="false" native="false" synchronized="false"
  32514. static="false" final="false" visibility="public"
  32515. deprecated="not deprecated">
  32516. <param name="name" type="java.lang.String"/>
  32517. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  32518. </method>
  32519. <method name="loadClass" return="java.lang.Class"
  32520. abstract="false" native="false" synchronized="true"
  32521. static="false" final="false" visibility="protected"
  32522. deprecated="not deprecated">
  32523. <param name="name" type="java.lang.String"/>
  32524. <param name="resolve" type="boolean"/>
  32525. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  32526. </method>
  32527. <method name="isSystemClass" return="boolean"
  32528. abstract="false" native="false" synchronized="false"
  32529. static="true" final="false" visibility="public"
  32530. deprecated="not deprecated">
  32531. <param name="name" type="java.lang.String"/>
  32532. <param name="systemClasses" type="java.util.List"/>
  32533. <doc>
  32534. <![CDATA[Checks if a class should be included as a system class.
  32535. A class is a system class if and only if it matches one of the positive
  32536. patterns and none of the negative ones.
  32537. @param name the class name to check
  32538. @param systemClasses a list of system class configurations.
  32539. @return true if the class is a system class]]>
  32540. </doc>
  32541. </method>
  32542. <field name="SYSTEM_CLASSES_DEFAULT" type="java.lang.String"
  32543. transient="false" volatile="false"
  32544. static="true" final="true" visibility="public"
  32545. deprecated="not deprecated">
  32546. <doc>
  32547. <![CDATA[Default value of the system classes if the user did not override them.
  32548. JDK classes, hadoop classes and resources, and some select third-party
  32549. classes are considered system classes, and are not loaded by the
  32550. application classloader.]]>
  32551. </doc>
  32552. </field>
  32553. <doc>
  32554. <![CDATA[A {@link URLClassLoader} for application isolation. Classes from the
  32555. application JARs are loaded in preference to the parent loader.]]>
  32556. </doc>
  32557. </class>
  32558. <!-- end class org.apache.hadoop.util.ApplicationClassLoader -->
  32559. <!-- start interface org.apache.hadoop.util.IPList -->
  32560. <interface name="IPList" abstract="true"
  32561. static="false" final="false" visibility="public"
  32562. deprecated="not deprecated">
  32563. <method name="isIn" return="boolean"
  32564. abstract="true" native="false" synchronized="false"
  32565. static="false" final="false" visibility="public"
  32566. deprecated="not deprecated">
  32567. <param name="ipAddress" type="java.lang.String"/>
  32568. <doc>
  32569. <![CDATA[returns true if the ipAddress is in the IPList.
  32570. @param ipAddress
  32571. @return boolean value indicating whether the ipAddress is in the IPList]]>
  32572. </doc>
  32573. </method>
  32574. </interface>
  32575. <!-- end interface org.apache.hadoop.util.IPList -->
  32576. <!-- start interface org.apache.hadoop.util.Progressable -->
  32577. <interface name="Progressable" abstract="true"
  32578. static="false" final="false" visibility="public"
  32579. deprecated="not deprecated">
  32580. <method name="progress"
  32581. abstract="true" native="false" synchronized="false"
  32582. static="false" final="false" visibility="public"
  32583. deprecated="not deprecated">
  32584. <doc>
  32585. <![CDATA[Report progress to the Hadoop framework.]]>
  32586. </doc>
  32587. </method>
  32588. <doc>
  32589. <![CDATA[A facility for reporting progress.
  32590. <p>Clients and/or applications can use the provided <code>Progressable</code>
  32591. to explicitly report progress to the Hadoop framework. This is especially
  32592. important for operations which take significant amount of time since,
  32593. in-lieu of the reported progress, the framework has to assume that an error
  32594. has occurred and time-out the operation.</p>]]>
  32595. </doc>
  32596. </interface>
  32597. <!-- end interface org.apache.hadoop.util.Progressable -->
  32598. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  32599. <class name="PureJavaCrc32" extends="java.lang.Object"
  32600. abstract="false"
  32601. static="false" final="false" visibility="public"
  32602. deprecated="not deprecated">
  32603. <implements name="java.util.zip.Checksum"/>
  32604. <constructor name="PureJavaCrc32"
  32605. static="false" final="false" visibility="public"
  32606. deprecated="not deprecated">
  32607. <doc>
  32608. <![CDATA[Create a new PureJavaCrc32 object.]]>
  32609. </doc>
  32610. </constructor>
  32611. <method name="getValue" return="long"
  32612. abstract="false" native="false" synchronized="false"
  32613. static="false" final="false" visibility="public"
  32614. deprecated="not deprecated">
  32615. </method>
  32616. <method name="reset"
  32617. abstract="false" native="false" synchronized="false"
  32618. static="false" final="false" visibility="public"
  32619. deprecated="not deprecated">
  32620. </method>
  32621. <method name="update"
  32622. abstract="false" native="false" synchronized="false"
  32623. static="false" final="false" visibility="public"
  32624. deprecated="not deprecated">
  32625. <param name="b" type="byte[]"/>
  32626. <param name="offset" type="int"/>
  32627. <param name="len" type="int"/>
  32628. </method>
  32629. <method name="update"
  32630. abstract="false" native="false" synchronized="false"
  32631. static="false" final="true" visibility="public"
  32632. deprecated="not deprecated">
  32633. <param name="b" type="int"/>
  32634. </method>
  32635. <doc>
  32636. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  32637. the same polynomial as the built-in native CRC32.
  32638. This is to avoid the JNI overhead for certain uses of Checksumming
  32639. where many small pieces of data are checksummed in succession.
  32640. The current version is ~10x to 1.8x as fast as Sun's native
  32641. java.util.zip.CRC32 in Java 1.6
  32642. @see java.util.zip.CRC32]]>
  32643. </doc>
  32644. </class>
  32645. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  32646. <!-- start class org.apache.hadoop.util.PureJavaCrc32C -->
  32647. <class name="PureJavaCrc32C" extends="java.lang.Object"
  32648. abstract="false"
  32649. static="false" final="false" visibility="public"
  32650. deprecated="not deprecated">
  32651. <implements name="java.util.zip.Checksum"/>
  32652. <constructor name="PureJavaCrc32C"
  32653. static="false" final="false" visibility="public"
  32654. deprecated="not deprecated">
  32655. <doc>
  32656. <![CDATA[Create a new PureJavaCrc32 object.]]>
  32657. </doc>
  32658. </constructor>
  32659. <method name="getValue" return="long"
  32660. abstract="false" native="false" synchronized="false"
  32661. static="false" final="false" visibility="public"
  32662. deprecated="not deprecated">
  32663. </method>
  32664. <method name="reset"
  32665. abstract="false" native="false" synchronized="false"
  32666. static="false" final="false" visibility="public"
  32667. deprecated="not deprecated">
  32668. </method>
  32669. <method name="update"
  32670. abstract="false" native="false" synchronized="false"
  32671. static="false" final="false" visibility="public"
  32672. deprecated="not deprecated">
  32673. <param name="b" type="byte[]"/>
  32674. <param name="off" type="int"/>
  32675. <param name="len" type="int"/>
  32676. </method>
  32677. <method name="update"
  32678. abstract="false" native="false" synchronized="false"
  32679. static="false" final="true" visibility="public"
  32680. deprecated="not deprecated">
  32681. <param name="b" type="int"/>
  32682. </method>
  32683. <doc>
  32684. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  32685. the CRC32-C polynomial, the same polynomial used by iSCSI
  32686. and implemented on many Intel chipsets supporting SSE4.2.]]>
  32687. </doc>
  32688. </class>
  32689. <!-- end class org.apache.hadoop.util.PureJavaCrc32C -->
  32690. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  32691. <class name="ReflectionUtils" extends="java.lang.Object"
  32692. abstract="false"
  32693. static="false" final="false" visibility="public"
  32694. deprecated="not deprecated">
  32695. <constructor name="ReflectionUtils"
  32696. static="false" final="false" visibility="public"
  32697. deprecated="not deprecated">
  32698. </constructor>
  32699. <method name="setConf"
  32700. abstract="false" native="false" synchronized="false"
  32701. static="true" final="false" visibility="public"
  32702. deprecated="not deprecated">
  32703. <param name="theObject" type="java.lang.Object"/>
  32704. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32705. <doc>
  32706. <![CDATA[Check and set 'configuration' if necessary.
  32707. @param theObject object for which to set configuration
  32708. @param conf Configuration]]>
  32709. </doc>
  32710. </method>
  32711. <method name="newInstance" return="T"
  32712. abstract="false" native="false" synchronized="false"
  32713. static="true" final="false" visibility="public"
  32714. deprecated="not deprecated">
  32715. <param name="theClass" type="java.lang.Class"/>
  32716. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32717. <doc>
  32718. <![CDATA[Create an object for the given class and initialize it from conf
  32719. @param theClass class of which an object is created
  32720. @param conf Configuration
  32721. @return a new object]]>
  32722. </doc>
  32723. </method>
  32724. <method name="setContentionTracing"
  32725. abstract="false" native="false" synchronized="false"
  32726. static="true" final="false" visibility="public"
  32727. deprecated="not deprecated">
  32728. <param name="val" type="boolean"/>
  32729. </method>
  32730. <method name="printThreadInfo"
  32731. abstract="false" native="false" synchronized="true"
  32732. static="true" final="false" visibility="public"
  32733. deprecated="not deprecated">
  32734. <param name="stream" type="java.io.PrintStream"/>
  32735. <param name="title" type="java.lang.String"/>
  32736. <doc>
  32737. <![CDATA[Print all of the thread's information and stack traces.
  32738. @param stream the stream to
  32739. @param title a string title for the stack trace]]>
  32740. </doc>
  32741. </method>
  32742. <method name="logThreadInfo"
  32743. abstract="false" native="false" synchronized="false"
  32744. static="true" final="false" visibility="public"
  32745. deprecated="not deprecated">
  32746. <param name="log" type="org.apache.commons.logging.Log"/>
  32747. <param name="title" type="java.lang.String"/>
  32748. <param name="minInterval" type="long"/>
  32749. <doc>
  32750. <![CDATA[Log the current thread stacks at INFO level.
  32751. @param log the logger that logs the stack trace
  32752. @param title a descriptive title for the call stacks
  32753. @param minInterval the minimum time from the last]]>
  32754. </doc>
  32755. </method>
  32756. <method name="logThreadInfo"
  32757. abstract="false" native="false" synchronized="false"
  32758. static="true" final="false" visibility="public"
  32759. deprecated="not deprecated">
  32760. <param name="log" type="org.slf4j.Logger"/>
  32761. <param name="title" type="java.lang.String"/>
  32762. <param name="minInterval" type="long"/>
  32763. <doc>
  32764. <![CDATA[Log the current thread stacks at INFO level.
  32765. @param log the logger that logs the stack trace
  32766. @param title a descriptive title for the call stacks
  32767. @param minInterval the minimum time from the last]]>
  32768. </doc>
  32769. </method>
  32770. <method name="getClass" return="java.lang.Class"
  32771. abstract="false" native="false" synchronized="false"
  32772. static="true" final="false" visibility="public"
  32773. deprecated="not deprecated">
  32774. <param name="o" type="T"/>
  32775. <doc>
  32776. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  32777. @param o object whose correctly-typed <code>Class</code> is to be obtained
  32778. @return the correctly typed <code>Class</code> of the given object.]]>
  32779. </doc>
  32780. </method>
  32781. <method name="copy" return="T"
  32782. abstract="false" native="false" synchronized="false"
  32783. static="true" final="false" visibility="public"
  32784. deprecated="not deprecated">
  32785. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32786. <param name="src" type="T"/>
  32787. <param name="dst" type="T"/>
  32788. <exception name="IOException" type="java.io.IOException"/>
  32789. <doc>
  32790. <![CDATA[Make a copy of the writable object using serialization to a buffer
  32791. @param src the object to copy from
  32792. @param dst the object to copy into, which is destroyed
  32793. @return dst param (the copy)
  32794. @throws IOException]]>
  32795. </doc>
  32796. </method>
  32797. <method name="cloneWritableInto"
  32798. abstract="false" native="false" synchronized="false"
  32799. static="true" final="false" visibility="public"
  32800. deprecated="not deprecated">
  32801. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  32802. <param name="src" type="org.apache.hadoop.io.Writable"/>
  32803. <exception name="IOException" type="java.io.IOException"/>
  32804. </method>
  32805. <method name="getDeclaredFieldsIncludingInherited" return="java.util.List"
  32806. abstract="false" native="false" synchronized="false"
  32807. static="true" final="false" visibility="public"
  32808. deprecated="not deprecated">
  32809. <param name="clazz" type="java.lang.Class"/>
  32810. <doc>
  32811. <![CDATA[Gets all the declared fields of a class including fields declared in
  32812. superclasses.]]>
  32813. </doc>
  32814. </method>
  32815. <method name="getDeclaredMethodsIncludingInherited" return="java.util.List"
  32816. abstract="false" native="false" synchronized="false"
  32817. static="true" final="false" visibility="public"
  32818. deprecated="not deprecated">
  32819. <param name="clazz" type="java.lang.Class"/>
  32820. <doc>
  32821. <![CDATA[Gets all the declared methods of a class including methods declared in
  32822. superclasses.]]>
  32823. </doc>
  32824. </method>
  32825. <doc>
  32826. <![CDATA[General reflection utils]]>
  32827. </doc>
  32828. </class>
  32829. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  32830. <!-- start class org.apache.hadoop.util.Shell -->
  32831. <class name="Shell" extends="java.lang.Object"
  32832. abstract="true"
  32833. static="false" final="false" visibility="public"
  32834. deprecated="not deprecated">
  32835. <constructor name="Shell"
  32836. static="false" final="false" visibility="protected"
  32837. deprecated="not deprecated">
  32838. <doc>
  32839. <![CDATA[Create an instance with no minimum interval between runs; stderr is
  32840. not merged with stdout.]]>
  32841. </doc>
  32842. </constructor>
  32843. <constructor name="Shell" type="long"
  32844. static="false" final="false" visibility="protected"
  32845. deprecated="not deprecated">
  32846. <doc>
  32847. <![CDATA[Create an instance with a minimum interval between executions; stderr is
  32848. not merged with stdout.
  32849. @param interval interval in milliseconds between command executions.]]>
  32850. </doc>
  32851. </constructor>
  32852. <constructor name="Shell" type="long, boolean"
  32853. static="false" final="false" visibility="protected"
  32854. deprecated="not deprecated">
  32855. <doc>
  32856. <![CDATA[Create a shell instance which can be re-executed when the {@link #run()}
  32857. method is invoked with a given elapsed time between calls.
  32858. @param interval the minimum duration in milliseconds to wait before
  32859. re-executing the command. If set to 0, there is no minimum.
  32860. @param redirectErrorStream should the error stream be merged with
  32861. the normal output stream?]]>
  32862. </doc>
  32863. </constructor>
  32864. <method name="isJava7OrAbove" return="boolean"
  32865. abstract="false" native="false" synchronized="false"
  32866. static="true" final="false" visibility="public"
  32867. deprecated="This call isn't needed any more: please remove uses of it.">
  32868. <doc>
  32869. <![CDATA[query to see if system is Java 7 or later.
  32870. Now that Hadoop requires Java 7 or later, this always returns true.
  32871. @deprecated This call isn't needed any more: please remove uses of it.
  32872. @return true, always.]]>
  32873. </doc>
  32874. </method>
  32875. <method name="isJavaVersionAtLeast" return="boolean"
  32876. abstract="false" native="false" synchronized="false"
  32877. static="true" final="false" visibility="public"
  32878. deprecated="not deprecated">
  32879. <param name="version" type="int"/>
  32880. <doc>
  32881. <![CDATA[Query to see if major version of Java specification of the system
  32882. is equal or greater than the parameter.
  32883. @param version 8, 9, 10 etc.
  32884. @return comparison with system property, always true for 8]]>
  32885. </doc>
  32886. </method>
  32887. <method name="checkWindowsCommandLineLength"
  32888. abstract="false" native="false" synchronized="false"
  32889. static="true" final="false" visibility="public"
  32890. deprecated="not deprecated">
  32891. <param name="commands" type="java.lang.String[]"/>
  32892. <exception name="IOException" type="java.io.IOException"/>
  32893. <doc>
  32894. <![CDATA[Checks if a given command (String[]) fits in the Windows maximum command
  32895. line length Note that the input is expected to already include space
  32896. delimiters, no extra count will be added for delimiters.
  32897. @param commands command parts, including any space delimiters]]>
  32898. </doc>
  32899. </method>
  32900. <method name="getGroupsCommand" return="java.lang.String[]"
  32901. abstract="false" native="false" synchronized="false"
  32902. static="true" final="false" visibility="public"
  32903. deprecated="not deprecated">
  32904. <doc>
  32905. <![CDATA[a Unix command to get the current user's groups list.]]>
  32906. </doc>
  32907. </method>
  32908. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  32909. abstract="false" native="false" synchronized="false"
  32910. static="true" final="false" visibility="public"
  32911. deprecated="not deprecated">
  32912. <param name="user" type="java.lang.String"/>
  32913. <doc>
  32914. <![CDATA[A command to get a given user's groups list.
  32915. If the OS is not WINDOWS, the command will get the user's primary group
  32916. first and finally get the groups list which includes the primary group.
  32917. i.e. the user's primary group will be included twice.]]>
  32918. </doc>
  32919. </method>
  32920. <method name="getGroupsIDForUserCommand" return="java.lang.String[]"
  32921. abstract="false" native="false" synchronized="false"
  32922. static="true" final="false" visibility="public"
  32923. deprecated="not deprecated">
  32924. <param name="user" type="java.lang.String"/>
  32925. <doc>
  32926. <![CDATA[A command to get a given user's group id list.
  32927. The command will get the user's primary group
  32928. first and finally get the groups list which includes the primary group.
  32929. i.e. the user's primary group will be included twice.
  32930. This command does not support Windows and will only return group names.]]>
  32931. </doc>
  32932. </method>
  32933. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  32934. abstract="false" native="false" synchronized="false"
  32935. static="true" final="false" visibility="public"
  32936. deprecated="not deprecated">
  32937. <param name="netgroup" type="java.lang.String"/>
  32938. <doc>
  32939. <![CDATA[A command to get a given netgroup's user list.]]>
  32940. </doc>
  32941. </method>
  32942. <method name="getGetPermissionCommand" return="java.lang.String[]"
  32943. abstract="false" native="false" synchronized="false"
  32944. static="true" final="false" visibility="public"
  32945. deprecated="not deprecated">
  32946. <doc>
  32947. <![CDATA[Return a command to get permission information.]]>
  32948. </doc>
  32949. </method>
  32950. <method name="getSetPermissionCommand" return="java.lang.String[]"
  32951. abstract="false" native="false" synchronized="false"
  32952. static="true" final="false" visibility="public"
  32953. deprecated="not deprecated">
  32954. <param name="perm" type="java.lang.String"/>
  32955. <param name="recursive" type="boolean"/>
  32956. <doc>
  32957. <![CDATA[Return a command to set permission.]]>
  32958. </doc>
  32959. </method>
  32960. <method name="getSetPermissionCommand" return="java.lang.String[]"
  32961. abstract="false" native="false" synchronized="false"
  32962. static="true" final="false" visibility="public"
  32963. deprecated="not deprecated">
  32964. <param name="perm" type="java.lang.String"/>
  32965. <param name="recursive" type="boolean"/>
  32966. <param name="file" type="java.lang.String"/>
  32967. <doc>
  32968. <![CDATA[Return a command to set permission for specific file.
  32969. @param perm String permission to set
  32970. @param recursive boolean true to apply to all sub-directories recursively
  32971. @param file String file to set
  32972. @return String[] containing command and arguments]]>
  32973. </doc>
  32974. </method>
  32975. <method name="getSetOwnerCommand" return="java.lang.String[]"
  32976. abstract="false" native="false" synchronized="false"
  32977. static="true" final="false" visibility="public"
  32978. deprecated="not deprecated">
  32979. <param name="owner" type="java.lang.String"/>
  32980. <doc>
  32981. <![CDATA[Return a command to set owner.]]>
  32982. </doc>
  32983. </method>
  32984. <method name="getSymlinkCommand" return="java.lang.String[]"
  32985. abstract="false" native="false" synchronized="false"
  32986. static="true" final="false" visibility="public"
  32987. deprecated="not deprecated">
  32988. <param name="target" type="java.lang.String"/>
  32989. <param name="link" type="java.lang.String"/>
  32990. <doc>
  32991. <![CDATA[Return a command to create symbolic links.]]>
  32992. </doc>
  32993. </method>
  32994. <method name="getReadlinkCommand" return="java.lang.String[]"
  32995. abstract="false" native="false" synchronized="false"
  32996. static="true" final="false" visibility="public"
  32997. deprecated="not deprecated">
  32998. <param name="link" type="java.lang.String"/>
  32999. <doc>
  33000. <![CDATA[Return a command to read the target of the a symbolic link.]]>
  33001. </doc>
  33002. </method>
  33003. <method name="getCheckProcessIsAliveCommand" return="java.lang.String[]"
  33004. abstract="false" native="false" synchronized="false"
  33005. static="true" final="false" visibility="public"
  33006. deprecated="not deprecated">
  33007. <param name="pid" type="java.lang.String"/>
  33008. <doc>
  33009. <![CDATA[Return a command for determining if process with specified pid is alive.
  33010. @param pid process ID
  33011. @return a <code>kill -0</code> command or equivalent]]>
  33012. </doc>
  33013. </method>
  33014. <method name="getSignalKillCommand" return="java.lang.String[]"
  33015. abstract="false" native="false" synchronized="false"
  33016. static="true" final="false" visibility="public"
  33017. deprecated="not deprecated">
  33018. <param name="code" type="int"/>
  33019. <param name="pid" type="java.lang.String"/>
  33020. <doc>
  33021. <![CDATA[Return a command to send a signal to a given pid.]]>
  33022. </doc>
  33023. </method>
  33024. <method name="getEnvironmentVariableRegex" return="java.lang.String"
  33025. abstract="false" native="false" synchronized="false"
  33026. static="true" final="false" visibility="public"
  33027. deprecated="not deprecated">
  33028. <doc>
  33029. <![CDATA[Return a regular expression string that match environment variables.]]>
  33030. </doc>
  33031. </method>
  33032. <method name="appendScriptExtension" return="java.io.File"
  33033. abstract="false" native="false" synchronized="false"
  33034. static="true" final="false" visibility="public"
  33035. deprecated="not deprecated">
  33036. <param name="parent" type="java.io.File"/>
  33037. <param name="basename" type="java.lang.String"/>
  33038. <doc>
  33039. <![CDATA[Returns a File referencing a script with the given basename, inside the
  33040. given parent directory. The file extension is inferred by platform:
  33041. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  33042. @param parent File parent directory
  33043. @param basename String script file basename
  33044. @return File referencing the script in the directory]]>
  33045. </doc>
  33046. </method>
  33047. <method name="appendScriptExtension" return="java.lang.String"
  33048. abstract="false" native="false" synchronized="false"
  33049. static="true" final="false" visibility="public"
  33050. deprecated="not deprecated">
  33051. <param name="basename" type="java.lang.String"/>
  33052. <doc>
  33053. <![CDATA[Returns a script file name with the given basename.
  33054. The file extension is inferred by platform:
  33055. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  33056. @param basename String script file basename
  33057. @return String script file name]]>
  33058. </doc>
  33059. </method>
  33060. <method name="getRunScriptCommand" return="java.lang.String[]"
  33061. abstract="false" native="false" synchronized="false"
  33062. static="true" final="false" visibility="public"
  33063. deprecated="not deprecated">
  33064. <param name="script" type="java.io.File"/>
  33065. <doc>
  33066. <![CDATA[Returns a command to run the given script. The script interpreter is
  33067. inferred by platform: cmd on Windows or bash otherwise.
  33068. @param script File script to run
  33069. @return String[] command to run the script]]>
  33070. </doc>
  33071. </method>
  33072. <method name="getHadoopHome" return="java.lang.String"
  33073. abstract="false" native="false" synchronized="false"
  33074. static="true" final="false" visibility="public"
  33075. deprecated="not deprecated">
  33076. <exception name="IOException" type="java.io.IOException"/>
  33077. <doc>
  33078. <![CDATA[Get the Hadoop home directory. Raises an exception if not found
  33079. @return the home dir
  33080. @throws IOException if the home directory cannot be located.]]>
  33081. </doc>
  33082. </method>
  33083. <method name="getQualifiedBin" return="java.io.File"
  33084. abstract="false" native="false" synchronized="false"
  33085. static="true" final="false" visibility="public"
  33086. deprecated="not deprecated">
  33087. <param name="executable" type="java.lang.String"/>
  33088. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  33089. <doc>
  33090. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  33091. bin location. This is primarily useful for disambiguating call-outs
  33092. to executable sub-components of Hadoop to avoid clashes with other
  33093. executables that may be in the path. Caveat: this call doesn't
  33094. just format the path to the bin directory. It also checks for file
  33095. existence of the composed path. The output of this call should be
  33096. cached by callers.
  33097. @param executable executable
  33098. @return executable file reference
  33099. @throws FileNotFoundException if the path does not exist]]>
  33100. </doc>
  33101. </method>
  33102. <method name="getQualifiedBinPath" return="java.lang.String"
  33103. abstract="false" native="false" synchronized="false"
  33104. static="true" final="false" visibility="public"
  33105. deprecated="not deprecated">
  33106. <param name="executable" type="java.lang.String"/>
  33107. <exception name="IOException" type="java.io.IOException"/>
  33108. <doc>
  33109. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  33110. bin location. This is primarily useful for disambiguating call-outs
  33111. to executable sub-components of Hadoop to avoid clashes with other
  33112. executables that may be in the path. Caveat: this call doesn't
  33113. just format the path to the bin directory. It also checks for file
  33114. existence of the composed path. The output of this call should be
  33115. cached by callers.
  33116. @param executable executable
  33117. @return executable file reference
  33118. @throws FileNotFoundException if the path does not exist
  33119. @throws IOException on path canonicalization failures]]>
  33120. </doc>
  33121. </method>
  33122. <method name="hasWinutilsPath" return="boolean"
  33123. abstract="false" native="false" synchronized="false"
  33124. static="true" final="false" visibility="public"
  33125. deprecated="not deprecated">
  33126. <doc>
  33127. <![CDATA[Predicate to indicate whether or not the path to winutils is known.
  33128. If true, then {@link #WINUTILS} is non-null, and both
  33129. {@link #getWinUtilsPath()} and {@link #getWinUtilsFile()}
  33130. will successfully return this value. Always false on non-windows systems.
  33131. @return true if there is a valid path to the binary]]>
  33132. </doc>
  33133. </method>
  33134. <method name="getWinUtilsPath" return="java.lang.String"
  33135. abstract="false" native="false" synchronized="false"
  33136. static="true" final="false" visibility="public"
  33137. deprecated="not deprecated">
  33138. <doc>
  33139. <![CDATA[Locate the winutils binary, or fail with a meaningful
  33140. exception and stack trace as an RTE.
  33141. This method is for use in methods which don't explicitly throw
  33142. an <code>IOException</code>.
  33143. @return the path to {@link #WINUTILS_EXE}
  33144. @throws RuntimeException if the path is not resolvable]]>
  33145. </doc>
  33146. </method>
  33147. <method name="getWinUtilsFile" return="java.io.File"
  33148. abstract="false" native="false" synchronized="false"
  33149. static="true" final="false" visibility="public"
  33150. deprecated="not deprecated">
  33151. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  33152. <doc>
  33153. <![CDATA[Get a file reference to winutils.
  33154. Always raises an exception if there isn't one
  33155. @return the file instance referring to the winutils bin.
  33156. @throws FileNotFoundException on any failure to locate that file.]]>
  33157. </doc>
  33158. </method>
  33159. <method name="checkIsBashSupported" return="boolean"
  33160. abstract="false" native="false" synchronized="false"
  33161. static="true" final="false" visibility="public"
  33162. deprecated="not deprecated">
  33163. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  33164. </method>
  33165. <method name="setEnvironment"
  33166. abstract="false" native="false" synchronized="false"
  33167. static="false" final="false" visibility="protected"
  33168. deprecated="not deprecated">
  33169. <param name="env" type="java.util.Map"/>
  33170. <doc>
  33171. <![CDATA[Set the environment for the command.
  33172. @param env Mapping of environment variables]]>
  33173. </doc>
  33174. </method>
  33175. <method name="setWorkingDirectory"
  33176. abstract="false" native="false" synchronized="false"
  33177. static="false" final="false" visibility="protected"
  33178. deprecated="not deprecated">
  33179. <param name="dir" type="java.io.File"/>
  33180. <doc>
  33181. <![CDATA[Set the working directory.
  33182. @param dir The directory where the command will be executed]]>
  33183. </doc>
  33184. </method>
  33185. <method name="run"
  33186. abstract="false" native="false" synchronized="false"
  33187. static="false" final="false" visibility="protected"
  33188. deprecated="not deprecated">
  33189. <exception name="IOException" type="java.io.IOException"/>
  33190. <doc>
  33191. <![CDATA[Check to see if a command needs to be executed and execute if needed.]]>
  33192. </doc>
  33193. </method>
  33194. <method name="getExecString" return="java.lang.String[]"
  33195. abstract="true" native="false" synchronized="false"
  33196. static="false" final="false" visibility="protected"
  33197. deprecated="not deprecated">
  33198. <doc>
  33199. <![CDATA[return an array containing the command name and its parameters.]]>
  33200. </doc>
  33201. </method>
  33202. <method name="parseExecResult"
  33203. abstract="true" native="false" synchronized="false"
  33204. static="false" final="false" visibility="protected"
  33205. deprecated="not deprecated">
  33206. <param name="lines" type="java.io.BufferedReader"/>
  33207. <exception name="IOException" type="java.io.IOException"/>
  33208. <doc>
  33209. <![CDATA[Parse the execution result]]>
  33210. </doc>
  33211. </method>
  33212. <method name="getEnvironment" return="java.lang.String"
  33213. abstract="false" native="false" synchronized="false"
  33214. static="false" final="false" visibility="public"
  33215. deprecated="not deprecated">
  33216. <param name="env" type="java.lang.String"/>
  33217. <doc>
  33218. <![CDATA[Get an environment variable.
  33219. @param env the environment var
  33220. @return the value or null if it was unset.]]>
  33221. </doc>
  33222. </method>
  33223. <method name="getProcess" return="java.lang.Process"
  33224. abstract="false" native="false" synchronized="false"
  33225. static="false" final="false" visibility="public"
  33226. deprecated="not deprecated">
  33227. <doc>
  33228. <![CDATA[get the current sub-process executing the given command.
  33229. @return process executing the command]]>
  33230. </doc>
  33231. </method>
  33232. <method name="getExitCode" return="int"
  33233. abstract="false" native="false" synchronized="false"
  33234. static="false" final="false" visibility="public"
  33235. deprecated="not deprecated">
  33236. <doc>
  33237. <![CDATA[get the exit code.
  33238. @return the exit code of the process]]>
  33239. </doc>
  33240. </method>
  33241. <method name="getWaitingThread" return="java.lang.Thread"
  33242. abstract="false" native="false" synchronized="false"
  33243. static="false" final="false" visibility="public"
  33244. deprecated="not deprecated">
  33245. <doc>
  33246. <![CDATA[get the thread that is waiting on this instance of <code>Shell</code>.
  33247. @return the thread that ran runCommand() that spawned this shell
  33248. or null if no thread is waiting for this shell to complete]]>
  33249. </doc>
  33250. </method>
  33251. <method name="isTimedOut" return="boolean"
  33252. abstract="false" native="false" synchronized="false"
  33253. static="false" final="false" visibility="public"
  33254. deprecated="not deprecated">
  33255. <doc>
  33256. <![CDATA[To check if the passed script to shell command executor timed out or
  33257. not.
  33258. @return if the script timed out.]]>
  33259. </doc>
  33260. </method>
  33261. <method name="execCommand" return="java.lang.String"
  33262. abstract="false" native="false" synchronized="false"
  33263. static="true" final="false" visibility="public"
  33264. deprecated="not deprecated">
  33265. <param name="cmd" type="java.lang.String[]"/>
  33266. <exception name="IOException" type="java.io.IOException"/>
  33267. <doc>
  33268. <![CDATA[Static method to execute a shell command.
  33269. Covers most of the simple cases without requiring the user to implement
  33270. the <code>Shell</code> interface.
  33271. @param cmd shell command to execute.
  33272. @return the output of the executed command.]]>
  33273. </doc>
  33274. </method>
  33275. <method name="execCommand" return="java.lang.String"
  33276. abstract="false" native="false" synchronized="false"
  33277. static="true" final="false" visibility="public"
  33278. deprecated="not deprecated">
  33279. <param name="env" type="java.util.Map"/>
  33280. <param name="cmd" type="java.lang.String[]"/>
  33281. <param name="timeout" type="long"/>
  33282. <exception name="IOException" type="java.io.IOException"/>
  33283. <doc>
  33284. <![CDATA[Static method to execute a shell command.
  33285. Covers most of the simple cases without requiring the user to implement
  33286. the <code>Shell</code> interface.
  33287. @param env the map of environment key=value
  33288. @param cmd shell command to execute.
  33289. @param timeout time in milliseconds after which script should be marked timeout
  33290. @return the output of the executed command.
  33291. @throws IOException on any problem.]]>
  33292. </doc>
  33293. </method>
  33294. <method name="execCommand" return="java.lang.String"
  33295. abstract="false" native="false" synchronized="false"
  33296. static="true" final="false" visibility="public"
  33297. deprecated="not deprecated">
  33298. <param name="env" type="java.util.Map"/>
  33299. <param name="cmd" type="java.lang.String[]"/>
  33300. <exception name="IOException" type="java.io.IOException"/>
  33301. <doc>
  33302. <![CDATA[Static method to execute a shell command.
  33303. Covers most of the simple cases without requiring the user to implement
  33304. the <code>Shell</code> interface.
  33305. @param env the map of environment key=value
  33306. @param cmd shell command to execute.
  33307. @return the output of the executed command.
  33308. @throws IOException on any problem.]]>
  33309. </doc>
  33310. </method>
  33311. <method name="destroyAllShellProcesses"
  33312. abstract="false" native="false" synchronized="false"
  33313. static="true" final="false" visibility="public"
  33314. deprecated="not deprecated">
  33315. <doc>
  33316. <![CDATA[Static method to destroy all running <code>Shell</code> processes.
  33317. Iterates through a map of all currently running <code>Shell</code>
  33318. processes and destroys them one by one. This method is thread safe]]>
  33319. </doc>
  33320. </method>
  33321. <method name="getAllShells" return="java.util.Set"
  33322. abstract="false" native="false" synchronized="false"
  33323. static="true" final="false" visibility="public"
  33324. deprecated="not deprecated">
  33325. <doc>
  33326. <![CDATA[Static method to return a Set of all <code>Shell</code> objects.]]>
  33327. </doc>
  33328. </method>
  33329. <method name="getMemlockLimit" return="java.lang.Long"
  33330. abstract="false" native="false" synchronized="false"
  33331. static="true" final="false" visibility="public"
  33332. deprecated="not deprecated">
  33333. <param name="ulimit" type="java.lang.Long"/>
  33334. <doc>
  33335. <![CDATA[Static method to return the memory lock limit for datanode.
  33336. @param ulimit max value at which memory locked should be capped.
  33337. @return long value specifying the memory lock limit.]]>
  33338. </doc>
  33339. </method>
  33340. <field name="LOG" type="org.slf4j.Logger"
  33341. transient="false" volatile="false"
  33342. static="true" final="true" visibility="public"
  33343. deprecated="not deprecated">
  33344. </field>
  33345. <field name="SYSPROP_HADOOP_HOME_DIR" type="java.lang.String"
  33346. transient="false" volatile="false"
  33347. static="true" final="true" visibility="public"
  33348. deprecated="not deprecated">
  33349. <doc>
  33350. <![CDATA[System property for the Hadoop home directory: {@value}.]]>
  33351. </doc>
  33352. </field>
  33353. <field name="ENV_HADOOP_HOME" type="java.lang.String"
  33354. transient="false" volatile="false"
  33355. static="true" final="true" visibility="public"
  33356. deprecated="not deprecated">
  33357. <doc>
  33358. <![CDATA[Environment variable for Hadoop's home dir: {@value}.]]>
  33359. </doc>
  33360. </field>
  33361. <field name="WINDOWS_MAX_SHELL_LENGTH" type="int"
  33362. transient="false" volatile="false"
  33363. static="true" final="true" visibility="public"
  33364. deprecated="not deprecated">
  33365. <doc>
  33366. <![CDATA[Maximum command line length in Windows
  33367. KB830473 documents this as 8191]]>
  33368. </doc>
  33369. </field>
  33370. <field name="WINDOWS_MAX_SHELL_LENGHT" type="int"
  33371. transient="false" volatile="false"
  33372. static="true" final="true" visibility="public"
  33373. deprecated="use the correctly spelled constant.">
  33374. <doc>
  33375. <![CDATA[mis-spelling of {@link #WINDOWS_MAX_SHELL_LENGTH}.
  33376. @deprecated use the correctly spelled constant.]]>
  33377. </doc>
  33378. </field>
  33379. <field name="USER_NAME_COMMAND" type="java.lang.String"
  33380. transient="false" volatile="false"
  33381. static="true" final="true" visibility="public"
  33382. deprecated="not deprecated">
  33383. <doc>
  33384. <![CDATA[a Unix command to get the current user's name: {@value}.]]>
  33385. </doc>
  33386. </field>
  33387. <field name="WindowsProcessLaunchLock" type="java.lang.Object"
  33388. transient="false" volatile="false"
  33389. static="true" final="true" visibility="public"
  33390. deprecated="not deprecated">
  33391. <doc>
  33392. <![CDATA[Windows <code>CreateProcess</code> synchronization object.]]>
  33393. </doc>
  33394. </field>
  33395. <field name="osType" type="org.apache.hadoop.util.Shell.OSType"
  33396. transient="false" volatile="false"
  33397. static="true" final="true" visibility="public"
  33398. deprecated="not deprecated">
  33399. <doc>
  33400. <![CDATA[Get the type of the operating system, as determined from parsing
  33401. the <code>os.name</code> property.]]>
  33402. </doc>
  33403. </field>
  33404. <field name="WINDOWS" type="boolean"
  33405. transient="false" volatile="false"
  33406. static="true" final="true" visibility="public"
  33407. deprecated="not deprecated">
  33408. </field>
  33409. <field name="SOLARIS" type="boolean"
  33410. transient="false" volatile="false"
  33411. static="true" final="true" visibility="public"
  33412. deprecated="not deprecated">
  33413. </field>
  33414. <field name="MAC" type="boolean"
  33415. transient="false" volatile="false"
  33416. static="true" final="true" visibility="public"
  33417. deprecated="not deprecated">
  33418. </field>
  33419. <field name="FREEBSD" type="boolean"
  33420. transient="false" volatile="false"
  33421. static="true" final="true" visibility="public"
  33422. deprecated="not deprecated">
  33423. </field>
  33424. <field name="LINUX" type="boolean"
  33425. transient="false" volatile="false"
  33426. static="true" final="true" visibility="public"
  33427. deprecated="not deprecated">
  33428. </field>
  33429. <field name="OTHER" type="boolean"
  33430. transient="false" volatile="false"
  33431. static="true" final="true" visibility="public"
  33432. deprecated="not deprecated">
  33433. </field>
  33434. <field name="PPC_64" type="boolean"
  33435. transient="false" volatile="false"
  33436. static="true" final="true" visibility="public"
  33437. deprecated="not deprecated">
  33438. </field>
  33439. <field name="ENV_NAME_REGEX" type="java.lang.String"
  33440. transient="false" volatile="false"
  33441. static="true" final="true" visibility="public"
  33442. deprecated="not deprecated">
  33443. <doc>
  33444. <![CDATA[Regular expression for environment variables: {@value}.]]>
  33445. </doc>
  33446. </field>
  33447. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  33448. transient="false" volatile="false"
  33449. static="true" final="true" visibility="public"
  33450. deprecated="not deprecated">
  33451. <doc>
  33452. <![CDATA[a Unix command to set permission: {@value}.]]>
  33453. </doc>
  33454. </field>
  33455. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  33456. transient="false" volatile="false"
  33457. static="true" final="true" visibility="public"
  33458. deprecated="not deprecated">
  33459. <doc>
  33460. <![CDATA[a Unix command to set owner: {@value}.]]>
  33461. </doc>
  33462. </field>
  33463. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  33464. transient="false" volatile="false"
  33465. static="true" final="true" visibility="public"
  33466. deprecated="not deprecated">
  33467. <doc>
  33468. <![CDATA[a Unix command to set the change user's groups list: {@value}.]]>
  33469. </doc>
  33470. </field>
  33471. <field name="LINK_COMMAND" type="java.lang.String"
  33472. transient="false" volatile="false"
  33473. static="true" final="true" visibility="public"
  33474. deprecated="not deprecated">
  33475. <doc>
  33476. <![CDATA[a Unix command to create a link: {@value}.]]>
  33477. </doc>
  33478. </field>
  33479. <field name="READ_LINK_COMMAND" type="java.lang.String"
  33480. transient="false" volatile="false"
  33481. static="true" final="true" visibility="public"
  33482. deprecated="not deprecated">
  33483. <doc>
  33484. <![CDATA[a Unix command to get a link target: {@value}.]]>
  33485. </doc>
  33486. </field>
  33487. <field name="timeOutInterval" type="long"
  33488. transient="false" volatile="false"
  33489. static="false" final="false" visibility="protected"
  33490. deprecated="not deprecated">
  33491. <doc>
  33492. <![CDATA[Time after which the executing script would be timedout.]]>
  33493. </doc>
  33494. </field>
  33495. <field name="inheritParentEnv" type="boolean"
  33496. transient="false" volatile="false"
  33497. static="false" final="false" visibility="protected"
  33498. deprecated="not deprecated">
  33499. <doc>
  33500. <![CDATA[Indicates if the parent env vars should be inherited or not]]>
  33501. </doc>
  33502. </field>
  33503. <field name="WINUTILS" type="java.lang.String"
  33504. transient="false" volatile="false"
  33505. static="true" final="true" visibility="public"
  33506. deprecated="use one of the exception-raising getter methods,
  33507. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}">
  33508. <doc>
  33509. <![CDATA[Location of winutils as a string; null if not found.
  33510. <p>
  33511. <i>Important: caller must check for this value being null</i>.
  33512. The lack of such checks has led to many support issues being raised.
  33513. <p>
  33514. @deprecated use one of the exception-raising getter methods,
  33515. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}]]>
  33516. </doc>
  33517. </field>
  33518. <field name="isSetsidAvailable" type="boolean"
  33519. transient="false" volatile="false"
  33520. static="true" final="true" visibility="public"
  33521. deprecated="not deprecated">
  33522. <doc>
  33523. <![CDATA[Flag which is true if setsid exists.]]>
  33524. </doc>
  33525. </field>
  33526. <field name="TOKEN_SEPARATOR_REGEX" type="java.lang.String"
  33527. transient="false" volatile="false"
  33528. static="true" final="true" visibility="public"
  33529. deprecated="not deprecated">
  33530. <doc>
  33531. <![CDATA[Token separator regex used to parse Shell tool outputs.]]>
  33532. </doc>
  33533. </field>
  33534. <doc>
  33535. <![CDATA[A base class for running a Shell command.
  33536. <code>Shell</code> can be used to run shell commands like <code>du</code> or
  33537. <code>df</code>. It also offers facilities to gate commands by
  33538. time-intervals.]]>
  33539. </doc>
  33540. </class>
  33541. <!-- end class org.apache.hadoop.util.Shell -->
  33542. <!-- start class org.apache.hadoop.util.ShutdownHookManager -->
  33543. <class name="ShutdownHookManager" extends="java.lang.Object"
  33544. abstract="false"
  33545. static="false" final="true" visibility="public"
  33546. deprecated="not deprecated">
  33547. <method name="get" return="org.apache.hadoop.util.ShutdownHookManager"
  33548. abstract="false" native="false" synchronized="false"
  33549. static="true" final="false" visibility="public"
  33550. deprecated="not deprecated">
  33551. <doc>
  33552. <![CDATA[Return <code>ShutdownHookManager</code> singleton.
  33553. @return <code>ShutdownHookManager</code> singleton.]]>
  33554. </doc>
  33555. </method>
  33556. <method name="addShutdownHook"
  33557. abstract="false" native="false" synchronized="false"
  33558. static="false" final="false" visibility="public"
  33559. deprecated="not deprecated">
  33560. <param name="shutdownHook" type="java.lang.Runnable"/>
  33561. <param name="priority" type="int"/>
  33562. <doc>
  33563. <![CDATA[Adds a shutdownHook with a priority, the higher the priority
  33564. the earlier will run. ShutdownHooks with same priority run
  33565. in a non-deterministic order.
  33566. @param shutdownHook shutdownHook <code>Runnable</code>
  33567. @param priority priority of the shutdownHook.]]>
  33568. </doc>
  33569. </method>
  33570. <method name="addShutdownHook"
  33571. abstract="false" native="false" synchronized="false"
  33572. static="false" final="false" visibility="public"
  33573. deprecated="not deprecated">
  33574. <param name="shutdownHook" type="java.lang.Runnable"/>
  33575. <param name="priority" type="int"/>
  33576. <param name="timeout" type="long"/>
  33577. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  33578. <doc>
  33579. <![CDATA[Adds a shutdownHook with a priority and timeout the higher the priority
  33580. the earlier will run. ShutdownHooks with same priority run
  33581. in a non-deterministic order. The shutdown hook will be terminated if it
  33582. has not been finished in the specified period of time.
  33583. @param shutdownHook shutdownHook <code>Runnable</code>
  33584. @param priority priority of the shutdownHook
  33585. @param timeout timeout of the shutdownHook
  33586. @param unit unit of the timeout <code>TimeUnit</code>]]>
  33587. </doc>
  33588. </method>
  33589. <method name="removeShutdownHook" return="boolean"
  33590. abstract="false" native="false" synchronized="false"
  33591. static="false" final="false" visibility="public"
  33592. deprecated="not deprecated">
  33593. <param name="shutdownHook" type="java.lang.Runnable"/>
  33594. <doc>
  33595. <![CDATA[Removes a shutdownHook.
  33596. @param shutdownHook shutdownHook to remove.
  33597. @return TRUE if the shutdownHook was registered and removed,
  33598. FALSE otherwise.]]>
  33599. </doc>
  33600. </method>
  33601. <method name="hasShutdownHook" return="boolean"
  33602. abstract="false" native="false" synchronized="false"
  33603. static="false" final="false" visibility="public"
  33604. deprecated="not deprecated">
  33605. <param name="shutdownHook" type="java.lang.Runnable"/>
  33606. <doc>
  33607. <![CDATA[Indicates if a shutdownHook is registered or not.
  33608. @param shutdownHook shutdownHook to check if registered.
  33609. @return TRUE/FALSE depending if the shutdownHook is is registered.]]>
  33610. </doc>
  33611. </method>
  33612. <method name="isShutdownInProgress" return="boolean"
  33613. abstract="false" native="false" synchronized="false"
  33614. static="false" final="false" visibility="public"
  33615. deprecated="not deprecated">
  33616. <doc>
  33617. <![CDATA[Indicates if shutdown is in progress or not.
  33618. @return TRUE if the shutdown is in progress, otherwise FALSE.]]>
  33619. </doc>
  33620. </method>
  33621. <method name="clearShutdownHooks"
  33622. abstract="false" native="false" synchronized="false"
  33623. static="false" final="false" visibility="public"
  33624. deprecated="not deprecated">
  33625. <doc>
  33626. <![CDATA[clear all registered shutdownHooks.]]>
  33627. </doc>
  33628. </method>
  33629. <field name="TIMEOUT_MINIMUM" type="long"
  33630. transient="false" volatile="false"
  33631. static="true" final="true" visibility="public"
  33632. deprecated="not deprecated">
  33633. <doc>
  33634. <![CDATA[Minimum shutdown timeout: {@value} second(s).]]>
  33635. </doc>
  33636. </field>
  33637. <field name="TIME_UNIT_DEFAULT" type="java.util.concurrent.TimeUnit"
  33638. transient="false" volatile="false"
  33639. static="true" final="true" visibility="public"
  33640. deprecated="not deprecated">
  33641. <doc>
  33642. <![CDATA[The default time unit used: seconds.]]>
  33643. </doc>
  33644. </field>
  33645. <doc>
  33646. <![CDATA[The <code>ShutdownHookManager</code> enables running shutdownHook
  33647. in a deterministic order, higher priority first.
  33648. <p/>
  33649. The JVM runs ShutdownHooks in a non-deterministic order or in parallel.
  33650. This class registers a single JVM shutdownHook and run all the
  33651. shutdownHooks registered to it (to this class) in order based on their
  33652. priority.
  33653. Unless a hook was registered with a shutdown explicitly set through
  33654. {@link #addShutdownHook(Runnable, int, long, TimeUnit)},
  33655. the shutdown time allocated to it is set by the configuration option
  33656. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT} in
  33657. {@code core-site.xml}, with a default value of
  33658. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT_DEFAULT}
  33659. seconds.]]>
  33660. </doc>
  33661. </class>
  33662. <!-- end class org.apache.hadoop.util.ShutdownHookManager -->
  33663. <!-- start class org.apache.hadoop.util.StringInterner -->
  33664. <class name="StringInterner" extends="java.lang.Object"
  33665. abstract="false"
  33666. static="false" final="false" visibility="public"
  33667. deprecated="not deprecated">
  33668. <constructor name="StringInterner"
  33669. static="false" final="false" visibility="public"
  33670. deprecated="not deprecated">
  33671. </constructor>
  33672. <method name="strongIntern" return="java.lang.String"
  33673. abstract="false" native="false" synchronized="false"
  33674. static="true" final="false" visibility="public"
  33675. deprecated="not deprecated">
  33676. <param name="sample" type="java.lang.String"/>
  33677. <doc>
  33678. <![CDATA[Interns and returns a reference to the representative instance
  33679. for any of a collection of string instances that are equal to each other.
  33680. Retains strong reference to the instance,
  33681. thus preventing it from being garbage-collected.
  33682. @param sample string instance to be interned
  33683. @return strong reference to interned string instance]]>
  33684. </doc>
  33685. </method>
  33686. <method name="weakIntern" return="java.lang.String"
  33687. abstract="false" native="false" synchronized="false"
  33688. static="true" final="false" visibility="public"
  33689. deprecated="not deprecated">
  33690. <param name="sample" type="java.lang.String"/>
  33691. <doc>
  33692. <![CDATA[Interns and returns a reference to the representative instance
  33693. for any of a collection of string instances that are equal to each other.
  33694. Retains weak reference to the instance,
  33695. and so does not prevent it from being garbage-collected.
  33696. @param sample string instance to be interned
  33697. @return weak reference to interned string instance]]>
  33698. </doc>
  33699. </method>
  33700. <method name="internStringsInArray" return="java.lang.String[]"
  33701. abstract="false" native="false" synchronized="false"
  33702. static="true" final="false" visibility="public"
  33703. deprecated="not deprecated">
  33704. <param name="strings" type="java.lang.String[]"/>
  33705. <doc>
  33706. <![CDATA[Interns all the strings in the given array in place,
  33707. returning the same array.]]>
  33708. </doc>
  33709. </method>
  33710. <doc>
  33711. <![CDATA[Provides string interning utility methods. For weak interning,
  33712. we use the standard String.intern() call, that performs very well
  33713. (no problems with PermGen overflowing, etc.) starting from JDK 7.]]>
  33714. </doc>
  33715. </class>
  33716. <!-- end class org.apache.hadoop.util.StringInterner -->
  33717. <!-- start class org.apache.hadoop.util.SysInfo -->
  33718. <class name="SysInfo" extends="java.lang.Object"
  33719. abstract="true"
  33720. static="false" final="false" visibility="public"
  33721. deprecated="not deprecated">
  33722. <constructor name="SysInfo"
  33723. static="false" final="false" visibility="public"
  33724. deprecated="not deprecated">
  33725. </constructor>
  33726. <method name="newInstance" return="org.apache.hadoop.util.SysInfo"
  33727. abstract="false" native="false" synchronized="false"
  33728. static="true" final="false" visibility="public"
  33729. deprecated="not deprecated">
  33730. <doc>
  33731. <![CDATA[Return default OS instance.
  33732. @throws UnsupportedOperationException If cannot determine OS.
  33733. @return Default instance for the detected OS.]]>
  33734. </doc>
  33735. </method>
  33736. <method name="getVirtualMemorySize" return="long"
  33737. abstract="true" native="false" synchronized="false"
  33738. static="false" final="false" visibility="public"
  33739. deprecated="not deprecated">
  33740. <doc>
  33741. <![CDATA[Obtain the total size of the virtual memory present in the system.
  33742. @return virtual memory size in bytes.]]>
  33743. </doc>
  33744. </method>
  33745. <method name="getPhysicalMemorySize" return="long"
  33746. abstract="true" native="false" synchronized="false"
  33747. static="false" final="false" visibility="public"
  33748. deprecated="not deprecated">
  33749. <doc>
  33750. <![CDATA[Obtain the total size of the physical memory present in the system.
  33751. @return physical memory size bytes.]]>
  33752. </doc>
  33753. </method>
  33754. <method name="getAvailableVirtualMemorySize" return="long"
  33755. abstract="true" native="false" synchronized="false"
  33756. static="false" final="false" visibility="public"
  33757. deprecated="not deprecated">
  33758. <doc>
  33759. <![CDATA[Obtain the total size of the available virtual memory present
  33760. in the system.
  33761. @return available virtual memory size in bytes.]]>
  33762. </doc>
  33763. </method>
  33764. <method name="getAvailablePhysicalMemorySize" return="long"
  33765. abstract="true" native="false" synchronized="false"
  33766. static="false" final="false" visibility="public"
  33767. deprecated="not deprecated">
  33768. <doc>
  33769. <![CDATA[Obtain the total size of the available physical memory present
  33770. in the system.
  33771. @return available physical memory size bytes.]]>
  33772. </doc>
  33773. </method>
  33774. <method name="getNumProcessors" return="int"
  33775. abstract="true" native="false" synchronized="false"
  33776. static="false" final="false" visibility="public"
  33777. deprecated="not deprecated">
  33778. <doc>
  33779. <![CDATA[Obtain the total number of logical processors present on the system.
  33780. @return number of logical processors]]>
  33781. </doc>
  33782. </method>
  33783. <method name="getNumCores" return="int"
  33784. abstract="true" native="false" synchronized="false"
  33785. static="false" final="false" visibility="public"
  33786. deprecated="not deprecated">
  33787. <doc>
  33788. <![CDATA[Obtain total number of physical cores present on the system.
  33789. @return number of physical cores]]>
  33790. </doc>
  33791. </method>
  33792. <method name="getCpuFrequency" return="long"
  33793. abstract="true" native="false" synchronized="false"
  33794. static="false" final="false" visibility="public"
  33795. deprecated="not deprecated">
  33796. <doc>
  33797. <![CDATA[Obtain the CPU frequency of on the system.
  33798. @return CPU frequency in kHz]]>
  33799. </doc>
  33800. </method>
  33801. <method name="getCumulativeCpuTime" return="long"
  33802. abstract="true" native="false" synchronized="false"
  33803. static="false" final="false" visibility="public"
  33804. deprecated="not deprecated">
  33805. <doc>
  33806. <![CDATA[Obtain the cumulative CPU time since the system is on.
  33807. @return cumulative CPU time in milliseconds]]>
  33808. </doc>
  33809. </method>
  33810. <method name="getCpuUsagePercentage" return="float"
  33811. abstract="true" native="false" synchronized="false"
  33812. static="false" final="false" visibility="public"
  33813. deprecated="not deprecated">
  33814. <doc>
  33815. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  33816. @return CPU usage as a percentage (from 0 to 100) of available cycles.]]>
  33817. </doc>
  33818. </method>
  33819. <method name="getNumVCoresUsed" return="float"
  33820. abstract="true" native="false" synchronized="false"
  33821. static="false" final="false" visibility="public"
  33822. deprecated="not deprecated">
  33823. <doc>
  33824. <![CDATA[Obtain the number of VCores used. Return -1 if it is unavailable
  33825. @return Number of VCores used a percentage (from 0 to #VCores).]]>
  33826. </doc>
  33827. </method>
  33828. <method name="getNetworkBytesRead" return="long"
  33829. abstract="true" native="false" synchronized="false"
  33830. static="false" final="false" visibility="public"
  33831. deprecated="not deprecated">
  33832. <doc>
  33833. <![CDATA[Obtain the aggregated number of bytes read over the network.
  33834. @return total number of bytes read.]]>
  33835. </doc>
  33836. </method>
  33837. <method name="getNetworkBytesWritten" return="long"
  33838. abstract="true" native="false" synchronized="false"
  33839. static="false" final="false" visibility="public"
  33840. deprecated="not deprecated">
  33841. <doc>
  33842. <![CDATA[Obtain the aggregated number of bytes written to the network.
  33843. @return total number of bytes written.]]>
  33844. </doc>
  33845. </method>
  33846. <method name="getStorageBytesRead" return="long"
  33847. abstract="true" native="false" synchronized="false"
  33848. static="false" final="false" visibility="public"
  33849. deprecated="not deprecated">
  33850. <doc>
  33851. <![CDATA[Obtain the aggregated number of bytes read from disks.
  33852. @return total number of bytes read.]]>
  33853. </doc>
  33854. </method>
  33855. <method name="getStorageBytesWritten" return="long"
  33856. abstract="true" native="false" synchronized="false"
  33857. static="false" final="false" visibility="public"
  33858. deprecated="not deprecated">
  33859. <doc>
  33860. <![CDATA[Obtain the aggregated number of bytes written to disks.
  33861. @return total number of bytes written.]]>
  33862. </doc>
  33863. </method>
  33864. <doc>
  33865. <![CDATA[Plugin to calculate resource information on the system.]]>
  33866. </doc>
  33867. </class>
  33868. <!-- end class org.apache.hadoop.util.SysInfo -->
  33869. <!-- start interface org.apache.hadoop.util.Tool -->
  33870. <interface name="Tool" abstract="true"
  33871. static="false" final="false" visibility="public"
  33872. deprecated="not deprecated">
  33873. <implements name="org.apache.hadoop.conf.Configurable"/>
  33874. <method name="run" return="int"
  33875. abstract="true" native="false" synchronized="false"
  33876. static="false" final="false" visibility="public"
  33877. deprecated="not deprecated">
  33878. <param name="args" type="java.lang.String[]"/>
  33879. <exception name="Exception" type="java.lang.Exception"/>
  33880. <doc>
  33881. <![CDATA[Execute the command with the given arguments.
  33882. @param args command specific arguments.
  33883. @return exit code.
  33884. @throws Exception]]>
  33885. </doc>
  33886. </method>
  33887. <doc>
  33888. <![CDATA[A tool interface that supports handling of generic command-line options.
  33889. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  33890. The tool/application should delegate the handling of
  33891. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  33892. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  33893. and only handle its custom arguments.</p>
  33894. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  33895. <p><blockquote><pre>
  33896. public class MyApp extends Configured implements Tool {
  33897. public int run(String[] args) throws Exception {
  33898. // <code>Configuration</code> processed by <code>ToolRunner</code>
  33899. Configuration conf = getConf();
  33900. // Create a JobConf using the processed <code>conf</code>
  33901. JobConf job = new JobConf(conf, MyApp.class);
  33902. // Process custom command-line options
  33903. Path in = new Path(args[1]);
  33904. Path out = new Path(args[2]);
  33905. // Specify various job-specific parameters
  33906. job.setJobName("my-app");
  33907. job.setInputPath(in);
  33908. job.setOutputPath(out);
  33909. job.setMapperClass(MyMapper.class);
  33910. job.setReducerClass(MyReducer.class);
  33911. // Submit the job, then poll for progress until the job is complete
  33912. RunningJob runningJob = JobClient.runJob(job);
  33913. if (runningJob.isSuccessful()) {
  33914. return 0;
  33915. } else {
  33916. return 1;
  33917. }
  33918. }
  33919. public static void main(String[] args) throws Exception {
  33920. // Let <code>ToolRunner</code> handle generic command-line options
  33921. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  33922. System.exit(res);
  33923. }
  33924. }
  33925. </pre></blockquote></p>
  33926. @see GenericOptionsParser
  33927. @see ToolRunner]]>
  33928. </doc>
  33929. </interface>
  33930. <!-- end interface org.apache.hadoop.util.Tool -->
  33931. <!-- start class org.apache.hadoop.util.ToolRunner -->
  33932. <class name="ToolRunner" extends="java.lang.Object"
  33933. abstract="false"
  33934. static="false" final="false" visibility="public"
  33935. deprecated="not deprecated">
  33936. <constructor name="ToolRunner"
  33937. static="false" final="false" visibility="public"
  33938. deprecated="not deprecated">
  33939. </constructor>
  33940. <method name="run" return="int"
  33941. abstract="false" native="false" synchronized="false"
  33942. static="true" final="false" visibility="public"
  33943. deprecated="not deprecated">
  33944. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33945. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  33946. <param name="args" type="java.lang.String[]"/>
  33947. <exception name="Exception" type="java.lang.Exception"/>
  33948. <doc>
  33949. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  33950. parsing with the given generic arguments. Uses the given
  33951. <code>Configuration</code>, or builds one if null.
  33952. Sets the <code>Tool</code>'s configuration with the possibly modified
  33953. version of the <code>conf</code>.
  33954. @param conf <code>Configuration</code> for the <code>Tool</code>.
  33955. @param tool <code>Tool</code> to run.
  33956. @param args command-line arguments to the tool.
  33957. @return exit code of the {@link Tool#run(String[])} method.]]>
  33958. </doc>
  33959. </method>
  33960. <method name="run" return="int"
  33961. abstract="false" native="false" synchronized="false"
  33962. static="true" final="false" visibility="public"
  33963. deprecated="not deprecated">
  33964. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  33965. <param name="args" type="java.lang.String[]"/>
  33966. <exception name="Exception" type="java.lang.Exception"/>
  33967. <doc>
  33968. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  33969. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  33970. @param tool <code>Tool</code> to run.
  33971. @param args command-line arguments to the tool.
  33972. @return exit code of the {@link Tool#run(String[])} method.]]>
  33973. </doc>
  33974. </method>
  33975. <method name="printGenericCommandUsage"
  33976. abstract="false" native="false" synchronized="false"
  33977. static="true" final="false" visibility="public"
  33978. deprecated="not deprecated">
  33979. <param name="out" type="java.io.PrintStream"/>
  33980. <doc>
  33981. <![CDATA[Prints generic command-line argurments and usage information.
  33982. @param out stream to write usage information to.]]>
  33983. </doc>
  33984. </method>
  33985. <method name="confirmPrompt" return="boolean"
  33986. abstract="false" native="false" synchronized="false"
  33987. static="true" final="false" visibility="public"
  33988. deprecated="not deprecated">
  33989. <param name="prompt" type="java.lang.String"/>
  33990. <exception name="IOException" type="java.io.IOException"/>
  33991. <doc>
  33992. <![CDATA[Print out a prompt to the user, and return true if the user
  33993. responds with "y" or "yes". (case insensitive)]]>
  33994. </doc>
  33995. </method>
  33996. <doc>
  33997. <![CDATA[A utility to help run {@link Tool}s.
  33998. <p><code>ToolRunner</code> can be used to run classes implementing
  33999. <code>Tool</code> interface. It works in conjunction with
  34000. {@link GenericOptionsParser} to parse the
  34001. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  34002. generic hadoop command line arguments</a> and modifies the
  34003. <code>Configuration</code> of the <code>Tool</code>. The
  34004. application-specific options are passed along without being modified.
  34005. </p>
  34006. @see Tool
  34007. @see GenericOptionsParser]]>
  34008. </doc>
  34009. </class>
  34010. <!-- end class org.apache.hadoop.util.ToolRunner -->
  34011. <!-- start class org.apache.hadoop.util.VersionInfo -->
  34012. <class name="VersionInfo" extends="java.lang.Object"
  34013. abstract="false"
  34014. static="false" final="false" visibility="public"
  34015. deprecated="not deprecated">
  34016. <constructor name="VersionInfo" type="java.lang.String"
  34017. static="false" final="false" visibility="protected"
  34018. deprecated="not deprecated">
  34019. </constructor>
  34020. <method name="_getVersion" return="java.lang.String"
  34021. abstract="false" native="false" synchronized="false"
  34022. static="false" final="false" visibility="protected"
  34023. deprecated="not deprecated">
  34024. </method>
  34025. <method name="_getRevision" return="java.lang.String"
  34026. abstract="false" native="false" synchronized="false"
  34027. static="false" final="false" visibility="protected"
  34028. deprecated="not deprecated">
  34029. </method>
  34030. <method name="_getBranch" return="java.lang.String"
  34031. abstract="false" native="false" synchronized="false"
  34032. static="false" final="false" visibility="protected"
  34033. deprecated="not deprecated">
  34034. </method>
  34035. <method name="_getDate" return="java.lang.String"
  34036. abstract="false" native="false" synchronized="false"
  34037. static="false" final="false" visibility="protected"
  34038. deprecated="not deprecated">
  34039. </method>
  34040. <method name="_getUser" return="java.lang.String"
  34041. abstract="false" native="false" synchronized="false"
  34042. static="false" final="false" visibility="protected"
  34043. deprecated="not deprecated">
  34044. </method>
  34045. <method name="_getUrl" return="java.lang.String"
  34046. abstract="false" native="false" synchronized="false"
  34047. static="false" final="false" visibility="protected"
  34048. deprecated="not deprecated">
  34049. </method>
  34050. <method name="_getSrcChecksum" return="java.lang.String"
  34051. abstract="false" native="false" synchronized="false"
  34052. static="false" final="false" visibility="protected"
  34053. deprecated="not deprecated">
  34054. </method>
  34055. <method name="_getBuildVersion" return="java.lang.String"
  34056. abstract="false" native="false" synchronized="false"
  34057. static="false" final="false" visibility="protected"
  34058. deprecated="not deprecated">
  34059. </method>
  34060. <method name="_getProtocVersion" return="java.lang.String"
  34061. abstract="false" native="false" synchronized="false"
  34062. static="false" final="false" visibility="protected"
  34063. deprecated="not deprecated">
  34064. </method>
  34065. <method name="getVersion" return="java.lang.String"
  34066. abstract="false" native="false" synchronized="false"
  34067. static="true" final="false" visibility="public"
  34068. deprecated="not deprecated">
  34069. <doc>
  34070. <![CDATA[Get the Hadoop version.
  34071. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  34072. </doc>
  34073. </method>
  34074. <method name="getRevision" return="java.lang.String"
  34075. abstract="false" native="false" synchronized="false"
  34076. static="true" final="false" visibility="public"
  34077. deprecated="not deprecated">
  34078. <doc>
  34079. <![CDATA[Get the Git commit hash of the repository when compiled.
  34080. @return the commit hash, eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a"]]>
  34081. </doc>
  34082. </method>
  34083. <method name="getBranch" return="java.lang.String"
  34084. abstract="false" native="false" synchronized="false"
  34085. static="true" final="false" visibility="public"
  34086. deprecated="not deprecated">
  34087. <doc>
  34088. <![CDATA[Get the branch on which this originated.
  34089. @return The branch name, e.g. "trunk" or "branches/branch-0.20"]]>
  34090. </doc>
  34091. </method>
  34092. <method name="getDate" return="java.lang.String"
  34093. abstract="false" native="false" synchronized="false"
  34094. static="true" final="false" visibility="public"
  34095. deprecated="not deprecated">
  34096. <doc>
  34097. <![CDATA[The date that Hadoop was compiled.
  34098. @return the compilation date in unix date format]]>
  34099. </doc>
  34100. </method>
  34101. <method name="getUser" return="java.lang.String"
  34102. abstract="false" native="false" synchronized="false"
  34103. static="true" final="false" visibility="public"
  34104. deprecated="not deprecated">
  34105. <doc>
  34106. <![CDATA[The user that compiled Hadoop.
  34107. @return the username of the user]]>
  34108. </doc>
  34109. </method>
  34110. <method name="getUrl" return="java.lang.String"
  34111. abstract="false" native="false" synchronized="false"
  34112. static="true" final="false" visibility="public"
  34113. deprecated="not deprecated">
  34114. <doc>
  34115. <![CDATA[Get the URL for the Hadoop repository.
  34116. @return the URL of the Hadoop repository]]>
  34117. </doc>
  34118. </method>
  34119. <method name="getSrcChecksum" return="java.lang.String"
  34120. abstract="false" native="false" synchronized="false"
  34121. static="true" final="false" visibility="public"
  34122. deprecated="not deprecated">
  34123. <doc>
  34124. <![CDATA[Get the checksum of the source files from which Hadoop was built.
  34125. @return the checksum of the source files]]>
  34126. </doc>
  34127. </method>
  34128. <method name="getBuildVersion" return="java.lang.String"
  34129. abstract="false" native="false" synchronized="false"
  34130. static="true" final="false" visibility="public"
  34131. deprecated="not deprecated">
  34132. <doc>
  34133. <![CDATA[Returns the buildVersion which includes version,
  34134. revision, user and date.
  34135. @return the buildVersion]]>
  34136. </doc>
  34137. </method>
  34138. <method name="getProtocVersion" return="java.lang.String"
  34139. abstract="false" native="false" synchronized="false"
  34140. static="true" final="false" visibility="public"
  34141. deprecated="not deprecated">
  34142. <doc>
  34143. <![CDATA[Returns the protoc version used for the build.
  34144. @return the protoc version]]>
  34145. </doc>
  34146. </method>
  34147. <method name="main"
  34148. abstract="false" native="false" synchronized="false"
  34149. static="true" final="false" visibility="public"
  34150. deprecated="not deprecated">
  34151. <param name="args" type="java.lang.String[]"/>
  34152. </method>
  34153. <doc>
  34154. <![CDATA[This class returns build information about Hadoop components.]]>
  34155. </doc>
  34156. </class>
  34157. <!-- end class org.apache.hadoop.util.VersionInfo -->
  34158. <doc>
  34159. <![CDATA[Common utilities.]]>
  34160. </doc>
  34161. </package>
  34162. <package name="org.apache.hadoop.util.bloom">
  34163. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  34164. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  34165. abstract="false"
  34166. static="false" final="false" visibility="public"
  34167. deprecated="not deprecated">
  34168. <constructor name="BloomFilter"
  34169. static="false" final="false" visibility="public"
  34170. deprecated="not deprecated">
  34171. <doc>
  34172. <![CDATA[Default constructor - use with readFields]]>
  34173. </doc>
  34174. </constructor>
  34175. <constructor name="BloomFilter" type="int, int, int"
  34176. static="false" final="false" visibility="public"
  34177. deprecated="not deprecated">
  34178. <doc>
  34179. <![CDATA[Constructor
  34180. @param vectorSize The vector size of <i>this</i> filter.
  34181. @param nbHash The number of hash function to consider.
  34182. @param hashType type of the hashing function (see
  34183. {@link org.apache.hadoop.util.hash.Hash}).]]>
  34184. </doc>
  34185. </constructor>
  34186. <method name="add"
  34187. abstract="false" native="false" synchronized="false"
  34188. static="false" final="false" visibility="public"
  34189. deprecated="not deprecated">
  34190. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34191. </method>
  34192. <method name="and"
  34193. abstract="false" native="false" synchronized="false"
  34194. static="false" final="false" visibility="public"
  34195. deprecated="not deprecated">
  34196. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34197. </method>
  34198. <method name="membershipTest" return="boolean"
  34199. abstract="false" native="false" synchronized="false"
  34200. static="false" final="false" visibility="public"
  34201. deprecated="not deprecated">
  34202. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34203. </method>
  34204. <method name="not"
  34205. abstract="false" native="false" synchronized="false"
  34206. static="false" final="false" visibility="public"
  34207. deprecated="not deprecated">
  34208. </method>
  34209. <method name="or"
  34210. abstract="false" native="false" synchronized="false"
  34211. static="false" final="false" visibility="public"
  34212. deprecated="not deprecated">
  34213. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34214. </method>
  34215. <method name="xor"
  34216. abstract="false" native="false" synchronized="false"
  34217. static="false" final="false" visibility="public"
  34218. deprecated="not deprecated">
  34219. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34220. </method>
  34221. <method name="toString" return="java.lang.String"
  34222. abstract="false" native="false" synchronized="false"
  34223. static="false" final="false" visibility="public"
  34224. deprecated="not deprecated">
  34225. </method>
  34226. <method name="getVectorSize" return="int"
  34227. abstract="false" native="false" synchronized="false"
  34228. static="false" final="false" visibility="public"
  34229. deprecated="not deprecated">
  34230. <doc>
  34231. <![CDATA[@return size of the the bloomfilter]]>
  34232. </doc>
  34233. </method>
  34234. <method name="write"
  34235. abstract="false" native="false" synchronized="false"
  34236. static="false" final="false" visibility="public"
  34237. deprecated="not deprecated">
  34238. <param name="out" type="java.io.DataOutput"/>
  34239. <exception name="IOException" type="java.io.IOException"/>
  34240. </method>
  34241. <method name="readFields"
  34242. abstract="false" native="false" synchronized="false"
  34243. static="false" final="false" visibility="public"
  34244. deprecated="not deprecated">
  34245. <param name="in" type="java.io.DataInput"/>
  34246. <exception name="IOException" type="java.io.IOException"/>
  34247. </method>
  34248. <doc>
  34249. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  34250. <p>
  34251. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  34252. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  34253. offers for the transmission of set membership information between networked hosts. A sender encodes
  34254. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  34255. representation. Computation and space costs for construction are linear in the number of elements.
  34256. The receiver uses the filter to test whether various elements are members of the set. Though the
  34257. filter will occasionally return a false positive, it will never return a false negative. When creating
  34258. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  34259. <p>
  34260. Originally created by
  34261. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  34262. @see Filter The general behavior of a filter
  34263. @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>]]>
  34264. </doc>
  34265. </class>
  34266. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  34267. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  34268. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  34269. abstract="false"
  34270. static="false" final="true" visibility="public"
  34271. deprecated="not deprecated">
  34272. <constructor name="CountingBloomFilter"
  34273. static="false" final="false" visibility="public"
  34274. deprecated="not deprecated">
  34275. <doc>
  34276. <![CDATA[Default constructor - use with readFields]]>
  34277. </doc>
  34278. </constructor>
  34279. <constructor name="CountingBloomFilter" type="int, int, int"
  34280. static="false" final="false" visibility="public"
  34281. deprecated="not deprecated">
  34282. <doc>
  34283. <![CDATA[Constructor
  34284. @param vectorSize The vector size of <i>this</i> filter.
  34285. @param nbHash The number of hash function to consider.
  34286. @param hashType type of the hashing function (see
  34287. {@link org.apache.hadoop.util.hash.Hash}).]]>
  34288. </doc>
  34289. </constructor>
  34290. <method name="add"
  34291. abstract="false" native="false" synchronized="false"
  34292. static="false" final="false" visibility="public"
  34293. deprecated="not deprecated">
  34294. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34295. </method>
  34296. <method name="delete"
  34297. abstract="false" native="false" synchronized="false"
  34298. static="false" final="false" visibility="public"
  34299. deprecated="not deprecated">
  34300. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34301. <doc>
  34302. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  34303. <p>
  34304. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  34305. @param key The key to remove.]]>
  34306. </doc>
  34307. </method>
  34308. <method name="and"
  34309. abstract="false" native="false" synchronized="false"
  34310. static="false" final="false" visibility="public"
  34311. deprecated="not deprecated">
  34312. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34313. </method>
  34314. <method name="membershipTest" return="boolean"
  34315. abstract="false" native="false" synchronized="false"
  34316. static="false" final="false" visibility="public"
  34317. deprecated="not deprecated">
  34318. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34319. </method>
  34320. <method name="approximateCount" return="int"
  34321. abstract="false" native="false" synchronized="false"
  34322. static="false" final="false" visibility="public"
  34323. deprecated="not deprecated">
  34324. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34325. <doc>
  34326. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  34327. times the key was added to the filter. This allows the filter to be
  34328. used as an approximate <code>key -&gt; count</code> map.
  34329. <p>NOTE: due to the bucket size of this filter, inserting the same
  34330. key more than 15 times will cause an overflow at all filter positions
  34331. associated with this key, and it will significantly increase the error
  34332. rate for this and other keys. For this reason the filter can only be
  34333. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  34334. @param key key to be tested
  34335. @return 0 if the key is not present. Otherwise, a positive value v will
  34336. be returned such that <code>v == count</code> with probability equal to the
  34337. error rate of this filter, and <code>v &gt; count</code> otherwise.
  34338. Additionally, if the filter experienced an underflow as a result of
  34339. {@link #delete(Key)} operation, the return value may be lower than the
  34340. <code>count</code> with the probability of the false negative rate of such
  34341. filter.]]>
  34342. </doc>
  34343. </method>
  34344. <method name="not"
  34345. abstract="false" native="false" synchronized="false"
  34346. static="false" final="false" visibility="public"
  34347. deprecated="not deprecated">
  34348. </method>
  34349. <method name="or"
  34350. abstract="false" native="false" synchronized="false"
  34351. static="false" final="false" visibility="public"
  34352. deprecated="not deprecated">
  34353. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34354. </method>
  34355. <method name="xor"
  34356. abstract="false" native="false" synchronized="false"
  34357. static="false" final="false" visibility="public"
  34358. deprecated="not deprecated">
  34359. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34360. </method>
  34361. <method name="toString" return="java.lang.String"
  34362. abstract="false" native="false" synchronized="false"
  34363. static="false" final="false" visibility="public"
  34364. deprecated="not deprecated">
  34365. </method>
  34366. <method name="write"
  34367. abstract="false" native="false" synchronized="false"
  34368. static="false" final="false" visibility="public"
  34369. deprecated="not deprecated">
  34370. <param name="out" type="java.io.DataOutput"/>
  34371. <exception name="IOException" type="java.io.IOException"/>
  34372. </method>
  34373. <method name="readFields"
  34374. abstract="false" native="false" synchronized="false"
  34375. static="false" final="false" visibility="public"
  34376. deprecated="not deprecated">
  34377. <param name="in" type="java.io.DataInput"/>
  34378. <exception name="IOException" type="java.io.IOException"/>
  34379. </method>
  34380. <doc>
  34381. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  34382. 2000 paper.
  34383. <p>
  34384. A counting Bloom filter is an improvement to standard a Bloom filter as it
  34385. allows dynamic additions and deletions of set membership information. This
  34386. is achieved through the use of a counting vector instead of a bit vector.
  34387. <p>
  34388. Originally created by
  34389. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  34390. @see Filter The general behavior of a filter
  34391. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  34392. </doc>
  34393. </class>
  34394. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  34395. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  34396. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  34397. abstract="false"
  34398. static="false" final="false" visibility="public"
  34399. deprecated="not deprecated">
  34400. <constructor name="DynamicBloomFilter"
  34401. static="false" final="false" visibility="public"
  34402. deprecated="not deprecated">
  34403. <doc>
  34404. <![CDATA[Zero-args constructor for the serialization.]]>
  34405. </doc>
  34406. </constructor>
  34407. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  34408. static="false" final="false" visibility="public"
  34409. deprecated="not deprecated">
  34410. <doc>
  34411. <![CDATA[Constructor.
  34412. <p>
  34413. Builds an empty Dynamic Bloom filter.
  34414. @param vectorSize The number of bits in the vector.
  34415. @param nbHash The number of hash function to consider.
  34416. @param hashType type of the hashing function (see
  34417. {@link org.apache.hadoop.util.hash.Hash}).
  34418. @param nr The threshold for the maximum number of keys to record in a
  34419. dynamic Bloom filter row.]]>
  34420. </doc>
  34421. </constructor>
  34422. <method name="add"
  34423. abstract="false" native="false" synchronized="false"
  34424. static="false" final="false" visibility="public"
  34425. deprecated="not deprecated">
  34426. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34427. </method>
  34428. <method name="and"
  34429. abstract="false" native="false" synchronized="false"
  34430. static="false" final="false" visibility="public"
  34431. deprecated="not deprecated">
  34432. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34433. </method>
  34434. <method name="membershipTest" return="boolean"
  34435. abstract="false" native="false" synchronized="false"
  34436. static="false" final="false" visibility="public"
  34437. deprecated="not deprecated">
  34438. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34439. </method>
  34440. <method name="not"
  34441. abstract="false" native="false" synchronized="false"
  34442. static="false" final="false" visibility="public"
  34443. deprecated="not deprecated">
  34444. </method>
  34445. <method name="or"
  34446. abstract="false" native="false" synchronized="false"
  34447. static="false" final="false" visibility="public"
  34448. deprecated="not deprecated">
  34449. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34450. </method>
  34451. <method name="xor"
  34452. abstract="false" native="false" synchronized="false"
  34453. static="false" final="false" visibility="public"
  34454. deprecated="not deprecated">
  34455. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34456. </method>
  34457. <method name="toString" return="java.lang.String"
  34458. abstract="false" native="false" synchronized="false"
  34459. static="false" final="false" visibility="public"
  34460. deprecated="not deprecated">
  34461. </method>
  34462. <method name="write"
  34463. abstract="false" native="false" synchronized="false"
  34464. static="false" final="false" visibility="public"
  34465. deprecated="not deprecated">
  34466. <param name="out" type="java.io.DataOutput"/>
  34467. <exception name="IOException" type="java.io.IOException"/>
  34468. </method>
  34469. <method name="readFields"
  34470. abstract="false" native="false" synchronized="false"
  34471. static="false" final="false" visibility="public"
  34472. deprecated="not deprecated">
  34473. <param name="in" type="java.io.DataInput"/>
  34474. <exception name="IOException" type="java.io.IOException"/>
  34475. </method>
  34476. <doc>
  34477. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  34478. <p>
  34479. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  34480. each of the <code>s</code> rows is a standard Bloom filter. The creation
  34481. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  34482. bit matrix, i.e., it is composed of a single standard Bloom filter.
  34483. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  34484. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  34485. the cardinality of the set <code>A</code> to record in the filter).
  34486. <p>
  34487. As the size of <code>A</code> grows during the execution of the application,
  34488. several keys must be inserted in the DBF. When inserting a key into the DBF,
  34489. one must first get an active Bloom filter in the matrix. A Bloom filter is
  34490. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  34491. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  34492. If an active Bloom filter is found, the key is inserted and
  34493. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  34494. is no active Bloom filter, a new one is created (i.e., a new row is added to
  34495. the matrix) according to the current size of <code>A</code> and the element
  34496. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  34497. this new Bloom filter is set to one. A given key is said to belong to the
  34498. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  34499. <p>
  34500. Originally created by
  34501. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  34502. @see Filter The general behavior of a filter
  34503. @see BloomFilter A Bloom filter
  34504. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  34505. </doc>
  34506. </class>
  34507. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  34508. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  34509. <class name="HashFunction" extends="java.lang.Object"
  34510. abstract="false"
  34511. static="false" final="true" visibility="public"
  34512. deprecated="not deprecated">
  34513. <constructor name="HashFunction" type="int, int, int"
  34514. static="false" final="false" visibility="public"
  34515. deprecated="not deprecated">
  34516. <doc>
  34517. <![CDATA[Constructor.
  34518. <p>
  34519. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  34520. @param maxValue The maximum highest returned value.
  34521. @param nbHash The number of resulting hashed values.
  34522. @param hashType type of the hashing function (see {@link Hash}).]]>
  34523. </doc>
  34524. </constructor>
  34525. <method name="clear"
  34526. abstract="false" native="false" synchronized="false"
  34527. static="false" final="false" visibility="public"
  34528. deprecated="not deprecated">
  34529. <doc>
  34530. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  34531. </doc>
  34532. </method>
  34533. <method name="hash" return="int[]"
  34534. abstract="false" native="false" synchronized="false"
  34535. static="false" final="false" visibility="public"
  34536. deprecated="not deprecated">
  34537. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  34538. <doc>
  34539. <![CDATA[Hashes a specified key into several integers.
  34540. @param k The specified key.
  34541. @return The array of hashed values.]]>
  34542. </doc>
  34543. </method>
  34544. <doc>
  34545. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  34546. @see Key The general behavior of a key being stored in a filter
  34547. @see Filter The general behavior of a filter]]>
  34548. </doc>
  34549. </class>
  34550. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  34551. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  34552. <interface name="RemoveScheme" abstract="true"
  34553. static="false" final="false" visibility="public"
  34554. deprecated="not deprecated">
  34555. <field name="RANDOM" type="short"
  34556. transient="false" volatile="false"
  34557. static="true" final="true" visibility="public"
  34558. deprecated="not deprecated">
  34559. <doc>
  34560. <![CDATA[Random selection.
  34561. <p>
  34562. The idea is to randomly select a bit to reset.]]>
  34563. </doc>
  34564. </field>
  34565. <field name="MINIMUM_FN" type="short"
  34566. transient="false" volatile="false"
  34567. static="true" final="true" visibility="public"
  34568. deprecated="not deprecated">
  34569. <doc>
  34570. <![CDATA[MinimumFN Selection.
  34571. <p>
  34572. The idea is to select the bit to reset that will generate the minimum
  34573. number of false negative.]]>
  34574. </doc>
  34575. </field>
  34576. <field name="MAXIMUM_FP" type="short"
  34577. transient="false" volatile="false"
  34578. static="true" final="true" visibility="public"
  34579. deprecated="not deprecated">
  34580. <doc>
  34581. <![CDATA[MaximumFP Selection.
  34582. <p>
  34583. The idea is to select the bit to reset that will remove the maximum number
  34584. of false positive.]]>
  34585. </doc>
  34586. </field>
  34587. <field name="RATIO" type="short"
  34588. transient="false" volatile="false"
  34589. static="true" final="true" visibility="public"
  34590. deprecated="not deprecated">
  34591. <doc>
  34592. <![CDATA[Ratio Selection.
  34593. <p>
  34594. The idea is to select the bit to reset that will, at the same time, remove
  34595. the maximum number of false positve while minimizing the amount of false
  34596. negative generated.]]>
  34597. </doc>
  34598. </field>
  34599. <doc>
  34600. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  34601. <p>
  34602. Originally created by
  34603. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  34604. </doc>
  34605. </interface>
  34606. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  34607. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  34608. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  34609. abstract="false"
  34610. static="false" final="true" visibility="public"
  34611. deprecated="not deprecated">
  34612. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  34613. <constructor name="RetouchedBloomFilter"
  34614. static="false" final="false" visibility="public"
  34615. deprecated="not deprecated">
  34616. <doc>
  34617. <![CDATA[Default constructor - use with readFields]]>
  34618. </doc>
  34619. </constructor>
  34620. <constructor name="RetouchedBloomFilter" type="int, int, int"
  34621. static="false" final="false" visibility="public"
  34622. deprecated="not deprecated">
  34623. <doc>
  34624. <![CDATA[Constructor
  34625. @param vectorSize The vector size of <i>this</i> filter.
  34626. @param nbHash The number of hash function to consider.
  34627. @param hashType type of the hashing function (see
  34628. {@link org.apache.hadoop.util.hash.Hash}).]]>
  34629. </doc>
  34630. </constructor>
  34631. <method name="add"
  34632. abstract="false" native="false" synchronized="false"
  34633. static="false" final="false" visibility="public"
  34634. deprecated="not deprecated">
  34635. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34636. </method>
  34637. <method name="addFalsePositive"
  34638. abstract="false" native="false" synchronized="false"
  34639. static="false" final="false" visibility="public"
  34640. deprecated="not deprecated">
  34641. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34642. <doc>
  34643. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  34644. <p>
  34645. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  34646. @param key The false positive key to add.]]>
  34647. </doc>
  34648. </method>
  34649. <method name="addFalsePositive"
  34650. abstract="false" native="false" synchronized="false"
  34651. static="false" final="false" visibility="public"
  34652. deprecated="not deprecated">
  34653. <param name="coll" type="java.util.Collection"/>
  34654. <doc>
  34655. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  34656. @param coll The collection of false positive.]]>
  34657. </doc>
  34658. </method>
  34659. <method name="addFalsePositive"
  34660. abstract="false" native="false" synchronized="false"
  34661. static="false" final="false" visibility="public"
  34662. deprecated="not deprecated">
  34663. <param name="keys" type="java.util.List"/>
  34664. <doc>
  34665. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  34666. @param keys The list of false positive.]]>
  34667. </doc>
  34668. </method>
  34669. <method name="addFalsePositive"
  34670. abstract="false" native="false" synchronized="false"
  34671. static="false" final="false" visibility="public"
  34672. deprecated="not deprecated">
  34673. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  34674. <doc>
  34675. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  34676. @param keys The array of false positive.]]>
  34677. </doc>
  34678. </method>
  34679. <method name="selectiveClearing"
  34680. abstract="false" native="false" synchronized="false"
  34681. static="false" final="false" visibility="public"
  34682. deprecated="not deprecated">
  34683. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  34684. <param name="scheme" type="short"/>
  34685. <doc>
  34686. <![CDATA[Performs the selective clearing for a given key.
  34687. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  34688. @param scheme The selective clearing scheme to apply.]]>
  34689. </doc>
  34690. </method>
  34691. <method name="write"
  34692. abstract="false" native="false" synchronized="false"
  34693. static="false" final="false" visibility="public"
  34694. deprecated="not deprecated">
  34695. <param name="out" type="java.io.DataOutput"/>
  34696. <exception name="IOException" type="java.io.IOException"/>
  34697. </method>
  34698. <method name="readFields"
  34699. abstract="false" native="false" synchronized="false"
  34700. static="false" final="false" visibility="public"
  34701. deprecated="not deprecated">
  34702. <param name="in" type="java.io.DataInput"/>
  34703. <exception name="IOException" type="java.io.IOException"/>
  34704. </method>
  34705. <doc>
  34706. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  34707. <p>
  34708. It allows the removal of selected false positives at the cost of introducing
  34709. random false negatives, and with the benefit of eliminating some random false
  34710. positives at the same time.
  34711. <p>
  34712. Originally created by
  34713. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  34714. @see Filter The general behavior of a filter
  34715. @see BloomFilter A Bloom filter
  34716. @see RemoveScheme The different selective clearing algorithms
  34717. @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>]]>
  34718. </doc>
  34719. </class>
  34720. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  34721. </package>
  34722. <package name="org.apache.hadoop.util.curator">
  34723. </package>
  34724. <package name="org.apache.hadoop.util.hash">
  34725. </package>
  34726. </api>