Apache_Hadoop_Common_3.2.4.xml 1.4 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426
  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 Jul 12 12:50:33 GMT 2022 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="Apache Hadoop Common 3.2.4"
  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.2.4.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar:/maven/com/google/guava/guava/27.0-jre/guava-27.0-jre.jar:/maven/com/google/guava/failureaccess/1.0/failureaccess-1.0.jar:/maven/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/maven/org/checkerframework/checker-qual/2.5.2/checker-qual-2.5.2.jar:/maven/com/google/errorprone/error_prone_annotations/2.2.0/error_prone_annotations-2.2.0.jar:/maven/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar:/maven/org/codehaus/mojo/animal-sniffer-annotations/1.17/animal-sniffer-annotations-1.17.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.13/httpclient-4.5.13.jar:/maven/org/apache/httpcomponents/httpcore/4.4.13/httpcore-4.4.13.jar:/maven/commons-codec/commons-codec/1.11/commons-codec-1.11.jar:/maven/commons-io/commons-io/2.8.0/commons-io-2.8.0.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.4.43.v20210629/jetty-server-9.4.43.v20210629.jar:/maven/org/eclipse/jetty/jetty-http/9.4.43.v20210629/jetty-http-9.4.43.v20210629.jar:/maven/org/eclipse/jetty/jetty-io/9.4.43.v20210629/jetty-io-9.4.43.v20210629.jar:/maven/org/eclipse/jetty/jetty-util/9.4.43.v20210629/jetty-util-9.4.43.v20210629.jar:/maven/org/eclipse/jetty/jetty-servlet/9.4.43.v20210629/jetty-servlet-9.4.43.v20210629.jar:/maven/org/eclipse/jetty/jetty-security/9.4.43.v20210629/jetty-security-9.4.43.v20210629.jar:/maven/org/eclipse/jetty/jetty-webapp/9.4.43.v20210629/jetty-webapp-9.4.43.v20210629.jar:/maven/org/eclipse/jetty/jetty-xml/9.4.43.v20210629/jetty-xml-9.4.43.v20210629.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/ch/qos/reload4j/reload4j/1.2.18.3/reload4j-1.2.18.3.jar:/maven/commons-beanutils/commons-beanutils/1.9.4/commons-beanutils-1.9.4.jar:/maven/org/apache/commons/commons-configuration2/2.1.1/commons-configuration2-2.1.1.jar:/maven/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.jar:/maven/org/apache/commons/commons-text/1.4/commons-text-1.4.jar:/maven/org/slf4j/slf4j-api/1.7.35/slf4j-api-1.7.35.jar:/maven/org/slf4j/slf4j-reload4j/1.7.35/slf4j-reload4j-1.7.35.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.9.0/gson-2.9.0.jar:/build/source/hadoop-common-project/hadoop-auth/target/hadoop-auth-3.2.4.jar:/maven/com/nimbusds/nimbus-jose-jwt/9.8.1/nimbus-jose-jwt-9.8.1.jar:/maven/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar:/maven/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar:/maven/net/minidev/accessors-smart/2.4.7/accessors-smart-2.4.7.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.55/jsch-0.1.55.jar:/maven/org/apache/curator/curator-client/2.13.0/curator-client-2.13.0.jar:/maven/org/apache/curator/curator-recipes/2.13.0/curator-recipes-2.13.0.jar:/maven/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:/maven/org/apache/htrace/htrace-core4/4.1.0-incubating/htrace-core4-4.1.0-incubating.jar:/maven/org/apache/zookeeper/zookeeper/3.4.14/zookeeper-3.4.14.jar:/maven/com/github/spotbugs/spotbugs-annotations/3.1.9/spotbugs-annotations-3.1.9.jar:/maven/org/apache/yetus/audience-annotations/0.5.0/audience-annotations-0.5.0.jar:/maven/io/netty/netty/3.10.6.Final/netty-3.10.6.Final.jar:/maven/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar:/maven/org/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.10.5.1/jackson-databind-2.10.5.1.jar:/maven/com/fasterxml/jackson/core/jackson-annotations/2.10.5/jackson-annotations-2.10.5.jar:/maven/com/fasterxml/jackson/core/jackson-core/2.10.5/jackson-core-2.10.5.jar:/maven/org/codehaus/woodstox/stax2-api/4.2.1/stax2-api-4.2.1.jar:/maven/com/fasterxml/woodstox/woodstox-core/5.3.0/woodstox-core-5.3.0.jar:/maven/dnsjava/dnsjava/2.1.7/dnsjava-2.1.7.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.2.4 -->
  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="getTimeDuration" 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="defaultValue" type="long"/>
  818. <param name="defaultUnit" type="java.util.concurrent.TimeUnit"/>
  819. <param name="returnUnit" type="java.util.concurrent.TimeUnit"/>
  820. <doc>
  821. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  822. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  823. (ms), seconds (s), minutes (m), hours (h), and days (d). If no unit is
  824. provided, the default unit is applied.
  825. @param name Property name
  826. @param defaultValue Value returned if no mapping exists.
  827. @param defaultUnit Default time unit if no valid suffix is provided.
  828. @param returnUnit The unit used for the returned value.
  829. @throws NumberFormatException If the property stripped of its unit is not
  830. a number
  831. @return time duration in given time unit]]>
  832. </doc>
  833. </method>
  834. <method name="getTimeDuration" return="long"
  835. abstract="false" native="false" synchronized="false"
  836. static="false" final="false" visibility="public"
  837. deprecated="not deprecated">
  838. <param name="name" type="java.lang.String"/>
  839. <param name="defaultValue" type="java.lang.String"/>
  840. <param name="defaultUnit" type="java.util.concurrent.TimeUnit"/>
  841. <param name="returnUnit" type="java.util.concurrent.TimeUnit"/>
  842. </method>
  843. <method name="getTimeDurationHelper" return="long"
  844. abstract="false" native="false" synchronized="false"
  845. static="false" final="false" visibility="public"
  846. deprecated="not deprecated">
  847. <param name="name" type="java.lang.String"/>
  848. <param name="vStr" type="java.lang.String"/>
  849. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  850. <doc>
  851. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  852. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  853. (ms), seconds (s), minutes (m), hours (h), and days (d).
  854. @param name Property name
  855. @param vStr The string value with time unit suffix to be converted.
  856. @param unit Unit to convert the stored property, if it exists.]]>
  857. </doc>
  858. </method>
  859. <method name="getTimeDurations" return="long[]"
  860. abstract="false" native="false" synchronized="false"
  861. static="false" final="false" visibility="public"
  862. deprecated="not deprecated">
  863. <param name="name" type="java.lang.String"/>
  864. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  865. </method>
  866. <method name="getStorageSize" return="double"
  867. abstract="false" native="false" synchronized="false"
  868. static="false" final="false" visibility="public"
  869. deprecated="not deprecated">
  870. <param name="name" type="java.lang.String"/>
  871. <param name="defaultValue" type="java.lang.String"/>
  872. <param name="targetUnit" type="org.apache.hadoop.conf.StorageUnit"/>
  873. <doc>
  874. <![CDATA[Gets the Storage Size from the config, or returns the defaultValue. The
  875. unit of return value is specified in target unit.
  876. @param name - Key Name
  877. @param defaultValue - Default Value -- e.g. 100MB
  878. @param targetUnit - The units that we want result to be in.
  879. @return double -- formatted in target Units]]>
  880. </doc>
  881. </method>
  882. <method name="getStorageSize" return="double"
  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="double"/>
  888. <param name="targetUnit" type="org.apache.hadoop.conf.StorageUnit"/>
  889. <doc>
  890. <![CDATA[Gets storage size from a config file.
  891. @param name - Key to read.
  892. @param defaultValue - The default value to return in case the key is
  893. not present.
  894. @param targetUnit - The Storage unit that should be used
  895. for the return value.
  896. @return - double value in the Storage Unit specified.]]>
  897. </doc>
  898. </method>
  899. <method name="setStorageSize"
  900. abstract="false" native="false" synchronized="false"
  901. static="false" final="false" visibility="public"
  902. deprecated="not deprecated">
  903. <param name="name" type="java.lang.String"/>
  904. <param name="value" type="double"/>
  905. <param name="unit" type="org.apache.hadoop.conf.StorageUnit"/>
  906. <doc>
  907. <![CDATA[Sets Storage Size for the specified key.
  908. @param name - Key to set.
  909. @param value - The numeric value to set.
  910. @param unit - Storage Unit to be used.]]>
  911. </doc>
  912. </method>
  913. <method name="getPattern" return="java.util.regex.Pattern"
  914. abstract="false" native="false" synchronized="false"
  915. static="false" final="false" visibility="public"
  916. deprecated="not deprecated">
  917. <param name="name" type="java.lang.String"/>
  918. <param name="defaultValue" type="java.util.regex.Pattern"/>
  919. <doc>
  920. <![CDATA[Get the value of the <code>name</code> property as a <code>Pattern</code>.
  921. If no such property is specified, or if the specified value is not a valid
  922. <code>Pattern</code>, then <code>DefaultValue</code> is returned.
  923. Note that the returned value is NOT trimmed by this method.
  924. @param name property name
  925. @param defaultValue default value
  926. @return property value as a compiled Pattern, or defaultValue]]>
  927. </doc>
  928. </method>
  929. <method name="setPattern"
  930. abstract="false" native="false" synchronized="false"
  931. static="false" final="false" visibility="public"
  932. deprecated="not deprecated">
  933. <param name="name" type="java.lang.String"/>
  934. <param name="pattern" type="java.util.regex.Pattern"/>
  935. <doc>
  936. <![CDATA[Set the given property to <code>Pattern</code>.
  937. If the pattern is passed as null, sets the empty pattern which results in
  938. further calls to getPattern(...) returning the default value.
  939. @param name property name
  940. @param pattern new value]]>
  941. </doc>
  942. </method>
  943. <method name="getPropertySources" return="java.lang.String[]"
  944. abstract="false" native="false" synchronized="true"
  945. static="false" final="false" visibility="public"
  946. deprecated="not deprecated">
  947. <param name="name" type="java.lang.String"/>
  948. <doc>
  949. <![CDATA[Gets information about why a property was set. Typically this is the
  950. path to the resource objects (file, URL, etc.) the property came from, but
  951. it can also indicate that it was set programmatically, or because of the
  952. command line.
  953. @param name - The property name to get the source of.
  954. @return null - If the property or its source wasn't found. Otherwise,
  955. returns a list of the sources of the resource. The older sources are
  956. the first ones in the list. So for example if a configuration is set from
  957. the command line, and then written out to a file that is read back in the
  958. first entry would indicate that it was set from the command line, while
  959. the second one would indicate the file that the new configuration was read
  960. in from.]]>
  961. </doc>
  962. </method>
  963. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  964. abstract="false" native="false" synchronized="false"
  965. static="false" final="false" visibility="public"
  966. deprecated="not deprecated">
  967. <param name="name" type="java.lang.String"/>
  968. <param name="defaultValue" type="java.lang.String"/>
  969. <doc>
  970. <![CDATA[Parse the given attribute as a set of integer ranges
  971. @param name the attribute name
  972. @param defaultValue the default value if it is not set
  973. @return a new set of ranges from the configured value]]>
  974. </doc>
  975. </method>
  976. <method name="getStringCollection" return="java.util.Collection"
  977. abstract="false" native="false" synchronized="false"
  978. static="false" final="false" visibility="public"
  979. deprecated="not deprecated">
  980. <param name="name" type="java.lang.String"/>
  981. <doc>
  982. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  983. a collection of <code>String</code>s.
  984. If no such property is specified then empty collection is returned.
  985. <p>
  986. This is an optimized version of {@link #getStrings(String)}
  987. @param name property name.
  988. @return property value as a collection of <code>String</code>s.]]>
  989. </doc>
  990. </method>
  991. <method name="getStrings" return="java.lang.String[]"
  992. abstract="false" native="false" synchronized="false"
  993. static="false" final="false" visibility="public"
  994. deprecated="not deprecated">
  995. <param name="name" type="java.lang.String"/>
  996. <doc>
  997. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  998. an array of <code>String</code>s.
  999. If no such property is specified then <code>null</code> is returned.
  1000. @param name property name.
  1001. @return property value as an array of <code>String</code>s,
  1002. or <code>null</code>.]]>
  1003. </doc>
  1004. </method>
  1005. <method name="getStrings" return="java.lang.String[]"
  1006. abstract="false" native="false" synchronized="false"
  1007. static="false" final="false" visibility="public"
  1008. deprecated="not deprecated">
  1009. <param name="name" type="java.lang.String"/>
  1010. <param name="defaultValue" type="java.lang.String[]"/>
  1011. <doc>
  1012. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1013. an array of <code>String</code>s.
  1014. If no such property is specified then default value is returned.
  1015. @param name property name.
  1016. @param defaultValue The default value
  1017. @return property value as an array of <code>String</code>s,
  1018. or default value.]]>
  1019. </doc>
  1020. </method>
  1021. <method name="getTrimmedStringCollection" return="java.util.Collection"
  1022. abstract="false" native="false" synchronized="false"
  1023. static="false" final="false" visibility="public"
  1024. deprecated="not deprecated">
  1025. <param name="name" type="java.lang.String"/>
  1026. <doc>
  1027. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1028. a collection of <code>String</code>s, trimmed of the leading and trailing whitespace.
  1029. If no such property is specified then empty <code>Collection</code> is returned.
  1030. @param name property name.
  1031. @return property value as a collection of <code>String</code>s, or empty <code>Collection</code>]]>
  1032. </doc>
  1033. </method>
  1034. <method name="getTrimmedStrings" return="java.lang.String[]"
  1035. abstract="false" native="false" synchronized="false"
  1036. static="false" final="false" visibility="public"
  1037. deprecated="not deprecated">
  1038. <param name="name" type="java.lang.String"/>
  1039. <doc>
  1040. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1041. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  1042. If no such property is specified then an empty array is returned.
  1043. @param name property name.
  1044. @return property value as an array of trimmed <code>String</code>s,
  1045. or empty array.]]>
  1046. </doc>
  1047. </method>
  1048. <method name="getTrimmedStrings" return="java.lang.String[]"
  1049. abstract="false" native="false" synchronized="false"
  1050. static="false" final="false" visibility="public"
  1051. deprecated="not deprecated">
  1052. <param name="name" type="java.lang.String"/>
  1053. <param name="defaultValue" type="java.lang.String[]"/>
  1054. <doc>
  1055. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1056. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  1057. If no such property is specified then default value is returned.
  1058. @param name property name.
  1059. @param defaultValue The default value
  1060. @return property value as an array of trimmed <code>String</code>s,
  1061. or default value.]]>
  1062. </doc>
  1063. </method>
  1064. <method name="setStrings"
  1065. abstract="false" native="false" synchronized="false"
  1066. static="false" final="false" visibility="public"
  1067. deprecated="not deprecated">
  1068. <param name="name" type="java.lang.String"/>
  1069. <param name="values" type="java.lang.String[]"/>
  1070. <doc>
  1071. <![CDATA[Set the array of string values for the <code>name</code> property as
  1072. as comma delimited values.
  1073. @param name property name.
  1074. @param values The values]]>
  1075. </doc>
  1076. </method>
  1077. <method name="getPassword" return="char[]"
  1078. abstract="false" native="false" synchronized="false"
  1079. static="false" final="false" visibility="public"
  1080. deprecated="not deprecated">
  1081. <param name="name" type="java.lang.String"/>
  1082. <exception name="IOException" type="java.io.IOException"/>
  1083. <doc>
  1084. <![CDATA[Get the value for a known password configuration element.
  1085. In order to enable the elimination of clear text passwords in config,
  1086. this method attempts to resolve the property name as an alias through
  1087. the CredentialProvider API and conditionally fallsback to config.
  1088. @param name property name
  1089. @return password]]>
  1090. </doc>
  1091. </method>
  1092. <method name="getPasswordFromCredentialProviders" return="char[]"
  1093. abstract="false" native="false" synchronized="false"
  1094. static="false" final="false" visibility="public"
  1095. deprecated="not deprecated">
  1096. <param name="name" type="java.lang.String"/>
  1097. <exception name="IOException" type="java.io.IOException"/>
  1098. <doc>
  1099. <![CDATA[Try and resolve the provided element name as a credential provider
  1100. alias.
  1101. @param name alias of the provisioned credential
  1102. @return password or null if not found
  1103. @throws IOException]]>
  1104. </doc>
  1105. </method>
  1106. <method name="getPasswordFromConfig" return="char[]"
  1107. abstract="false" native="false" synchronized="false"
  1108. static="false" final="false" visibility="protected"
  1109. deprecated="not deprecated">
  1110. <param name="name" type="java.lang.String"/>
  1111. <doc>
  1112. <![CDATA[Fallback to clear text passwords in configuration.
  1113. @param name
  1114. @return clear text password or null]]>
  1115. </doc>
  1116. </method>
  1117. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  1118. abstract="false" native="false" synchronized="false"
  1119. static="false" final="false" visibility="public"
  1120. deprecated="not deprecated">
  1121. <param name="hostProperty" type="java.lang.String"/>
  1122. <param name="addressProperty" type="java.lang.String"/>
  1123. <param name="defaultAddressValue" type="java.lang.String"/>
  1124. <param name="defaultPort" type="int"/>
  1125. <doc>
  1126. <![CDATA[Get the socket address for <code>hostProperty</code> as a
  1127. <code>InetSocketAddress</code>. If <code>hostProperty</code> is
  1128. <code>null</code>, <code>addressProperty</code> will be used. This
  1129. is useful for cases where we want to differentiate between host
  1130. bind address and address clients should use to establish connection.
  1131. @param hostProperty bind host property name.
  1132. @param addressProperty address property name.
  1133. @param defaultAddressValue the default value
  1134. @param defaultPort the default port
  1135. @return InetSocketAddress]]>
  1136. </doc>
  1137. </method>
  1138. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  1139. abstract="false" native="false" synchronized="false"
  1140. static="false" final="false" visibility="public"
  1141. deprecated="not deprecated">
  1142. <param name="name" type="java.lang.String"/>
  1143. <param name="defaultAddress" type="java.lang.String"/>
  1144. <param name="defaultPort" type="int"/>
  1145. <doc>
  1146. <![CDATA[Get the socket address for <code>name</code> property as a
  1147. <code>InetSocketAddress</code>.
  1148. @param name property name.
  1149. @param defaultAddress the default value
  1150. @param defaultPort the default port
  1151. @return InetSocketAddress]]>
  1152. </doc>
  1153. </method>
  1154. <method name="setSocketAddr"
  1155. abstract="false" native="false" synchronized="false"
  1156. static="false" final="false" visibility="public"
  1157. deprecated="not deprecated">
  1158. <param name="name" type="java.lang.String"/>
  1159. <param name="addr" type="java.net.InetSocketAddress"/>
  1160. <doc>
  1161. <![CDATA[Set the socket address for the <code>name</code> property as
  1162. a <code>host:port</code>.]]>
  1163. </doc>
  1164. </method>
  1165. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1166. abstract="false" native="false" synchronized="false"
  1167. static="false" final="false" visibility="public"
  1168. deprecated="not deprecated">
  1169. <param name="hostProperty" type="java.lang.String"/>
  1170. <param name="addressProperty" type="java.lang.String"/>
  1171. <param name="defaultAddressValue" type="java.lang.String"/>
  1172. <param name="addr" type="java.net.InetSocketAddress"/>
  1173. <doc>
  1174. <![CDATA[Set the socket address a client can use to connect for the
  1175. <code>name</code> property as a <code>host:port</code>. The wildcard
  1176. address is replaced with the local host's address. If the host and address
  1177. properties are configured the host component of the address will be combined
  1178. with the port component of the addr to generate the address. This is to allow
  1179. optional control over which host name is used in multi-home bind-host
  1180. cases where a host can have multiple names
  1181. @param hostProperty the bind-host configuration name
  1182. @param addressProperty the service address configuration name
  1183. @param defaultAddressValue the service default address configuration value
  1184. @param addr InetSocketAddress of the service listener
  1185. @return InetSocketAddress for clients to connect]]>
  1186. </doc>
  1187. </method>
  1188. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1189. abstract="false" native="false" synchronized="false"
  1190. static="false" final="false" visibility="public"
  1191. deprecated="not deprecated">
  1192. <param name="name" type="java.lang.String"/>
  1193. <param name="addr" type="java.net.InetSocketAddress"/>
  1194. <doc>
  1195. <![CDATA[Set the socket address a client can use to connect for the
  1196. <code>name</code> property as a <code>host:port</code>. The wildcard
  1197. address is replaced with the local host's address.
  1198. @param name property name.
  1199. @param addr InetSocketAddress of a listener to store in the given property
  1200. @return InetSocketAddress for clients to connect]]>
  1201. </doc>
  1202. </method>
  1203. <method name="getClassByName" return="java.lang.Class"
  1204. abstract="false" native="false" synchronized="false"
  1205. static="false" final="false" visibility="public"
  1206. deprecated="not deprecated">
  1207. <param name="name" type="java.lang.String"/>
  1208. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  1209. <doc>
  1210. <![CDATA[Load a class by name.
  1211. @param name the class name.
  1212. @return the class object.
  1213. @throws ClassNotFoundException if the class is not found.]]>
  1214. </doc>
  1215. </method>
  1216. <method name="getClassByNameOrNull" 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. <doc>
  1222. <![CDATA[Load a class by name, returning null rather than throwing an exception
  1223. if it couldn't be loaded. This is to avoid the overhead of creating
  1224. an exception.
  1225. @param name the class name
  1226. @return the class object, or null if it could not be found.]]>
  1227. </doc>
  1228. </method>
  1229. <method name="getClasses" return="java.lang.Class[]"
  1230. abstract="false" native="false" synchronized="false"
  1231. static="false" final="false" visibility="public"
  1232. deprecated="not deprecated">
  1233. <param name="name" type="java.lang.String"/>
  1234. <param name="defaultValue" type="java.lang.Class[]"/>
  1235. <doc>
  1236. <![CDATA[Get the value of the <code>name</code> property
  1237. as an array of <code>Class</code>.
  1238. The value of the property specifies a list of comma separated class names.
  1239. If no such property is specified, then <code>defaultValue</code> is
  1240. returned.
  1241. @param name the property name.
  1242. @param defaultValue default value.
  1243. @return property value as a <code>Class[]</code>,
  1244. or <code>defaultValue</code>.]]>
  1245. </doc>
  1246. </method>
  1247. <method name="getClass" return="java.lang.Class"
  1248. abstract="false" native="false" synchronized="false"
  1249. static="false" final="false" visibility="public"
  1250. deprecated="not deprecated">
  1251. <param name="name" type="java.lang.String"/>
  1252. <param name="defaultValue" type="java.lang.Class"/>
  1253. <doc>
  1254. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  1255. If no such property is specified, then <code>defaultValue</code> is
  1256. returned.
  1257. @param name the class name.
  1258. @param defaultValue default value.
  1259. @return property value as a <code>Class</code>,
  1260. or <code>defaultValue</code>.]]>
  1261. </doc>
  1262. </method>
  1263. <method name="getClass" return="java.lang.Class"
  1264. abstract="false" native="false" synchronized="false"
  1265. static="false" final="false" visibility="public"
  1266. deprecated="not deprecated">
  1267. <param name="name" type="java.lang.String"/>
  1268. <param name="defaultValue" type="java.lang.Class"/>
  1269. <param name="xface" type="java.lang.Class"/>
  1270. <doc>
  1271. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  1272. implementing the interface specified by <code>xface</code>.
  1273. If no such property is specified, then <code>defaultValue</code> is
  1274. returned.
  1275. An exception is thrown if the returned class does not implement the named
  1276. interface.
  1277. @param name the class name.
  1278. @param defaultValue default value.
  1279. @param xface the interface implemented by the named class.
  1280. @return property value as a <code>Class</code>,
  1281. or <code>defaultValue</code>.]]>
  1282. </doc>
  1283. </method>
  1284. <method name="getInstances" return="java.util.List"
  1285. abstract="false" native="false" synchronized="false"
  1286. static="false" final="false" visibility="public"
  1287. deprecated="not deprecated">
  1288. <param name="name" type="java.lang.String"/>
  1289. <param name="xface" type="java.lang.Class"/>
  1290. <doc>
  1291. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  1292. of objects implementing the interface specified by <code>xface</code>.
  1293. An exception is thrown if any of the classes does not exist, or if it does
  1294. not implement the named interface.
  1295. @param name the property name.
  1296. @param xface the interface implemented by the classes named by
  1297. <code>name</code>.
  1298. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  1299. </doc>
  1300. </method>
  1301. <method name="setClass"
  1302. abstract="false" native="false" synchronized="false"
  1303. static="false" final="false" visibility="public"
  1304. deprecated="not deprecated">
  1305. <param name="name" type="java.lang.String"/>
  1306. <param name="theClass" type="java.lang.Class"/>
  1307. <param name="xface" type="java.lang.Class"/>
  1308. <doc>
  1309. <![CDATA[Set the value of the <code>name</code> property to the name of a
  1310. <code>theClass</code> implementing the given interface <code>xface</code>.
  1311. An exception is thrown if <code>theClass</code> does not implement the
  1312. interface <code>xface</code>.
  1313. @param name property name.
  1314. @param theClass property value.
  1315. @param xface the interface implemented by the named class.]]>
  1316. </doc>
  1317. </method>
  1318. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  1319. abstract="false" native="false" synchronized="false"
  1320. static="false" final="false" visibility="public"
  1321. deprecated="not deprecated">
  1322. <param name="dirsProp" type="java.lang.String"/>
  1323. <param name="path" type="java.lang.String"/>
  1324. <exception name="IOException" type="java.io.IOException"/>
  1325. <doc>
  1326. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  1327. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1328. then one is chosen based on <i>path</i>'s hash code. If the selected
  1329. directory does not exist, an attempt is made to create it.
  1330. @param dirsProp directory in which to locate the file.
  1331. @param path file-path.
  1332. @return local file under the directory with the given path.]]>
  1333. </doc>
  1334. </method>
  1335. <method name="getFile" return="java.io.File"
  1336. abstract="false" native="false" synchronized="false"
  1337. static="false" final="false" visibility="public"
  1338. deprecated="not deprecated">
  1339. <param name="dirsProp" type="java.lang.String"/>
  1340. <param name="path" type="java.lang.String"/>
  1341. <exception name="IOException" type="java.io.IOException"/>
  1342. <doc>
  1343. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  1344. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1345. then one is chosen based on <i>path</i>'s hash code. If the selected
  1346. directory does not exist, an attempt is made to create it.
  1347. @param dirsProp directory in which to locate the file.
  1348. @param path file-path.
  1349. @return local file under the directory with the given path.]]>
  1350. </doc>
  1351. </method>
  1352. <method name="getResource" return="java.net.URL"
  1353. abstract="false" native="false" synchronized="false"
  1354. static="false" final="false" visibility="public"
  1355. deprecated="not deprecated">
  1356. <param name="name" type="java.lang.String"/>
  1357. <doc>
  1358. <![CDATA[Get the {@link URL} for the named resource.
  1359. @param name resource name.
  1360. @return the url for the named resource.]]>
  1361. </doc>
  1362. </method>
  1363. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  1364. abstract="false" native="false" synchronized="false"
  1365. static="false" final="false" visibility="public"
  1366. deprecated="not deprecated">
  1367. <param name="name" type="java.lang.String"/>
  1368. <doc>
  1369. <![CDATA[Get an input stream attached to the configuration resource with the
  1370. given <code>name</code>.
  1371. @param name configuration resource name.
  1372. @return an input stream attached to the resource.]]>
  1373. </doc>
  1374. </method>
  1375. <method name="getConfResourceAsReader" return="java.io.Reader"
  1376. abstract="false" native="false" synchronized="false"
  1377. static="false" final="false" visibility="public"
  1378. deprecated="not deprecated">
  1379. <param name="name" type="java.lang.String"/>
  1380. <doc>
  1381. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  1382. given <code>name</code>.
  1383. @param name configuration resource name.
  1384. @return a reader attached to the resource.]]>
  1385. </doc>
  1386. </method>
  1387. <method name="getFinalParameters" return="java.util.Set"
  1388. abstract="false" native="false" synchronized="false"
  1389. static="false" final="false" visibility="public"
  1390. deprecated="not deprecated">
  1391. <doc>
  1392. <![CDATA[Get the set of parameters marked final.
  1393. @return final parameter set.]]>
  1394. </doc>
  1395. </method>
  1396. <method name="getProps" return="java.util.Properties"
  1397. abstract="false" native="false" synchronized="true"
  1398. static="false" final="false" visibility="protected"
  1399. deprecated="not deprecated">
  1400. </method>
  1401. <method name="size" return="int"
  1402. abstract="false" native="false" synchronized="false"
  1403. static="false" final="false" visibility="public"
  1404. deprecated="not deprecated">
  1405. <doc>
  1406. <![CDATA[Return the number of keys in the configuration.
  1407. @return number of keys in the configuration.]]>
  1408. </doc>
  1409. </method>
  1410. <method name="clear"
  1411. abstract="false" native="false" synchronized="false"
  1412. static="false" final="false" visibility="public"
  1413. deprecated="not deprecated">
  1414. <doc>
  1415. <![CDATA[Clears all keys from the configuration.]]>
  1416. </doc>
  1417. </method>
  1418. <method name="iterator" return="java.util.Iterator"
  1419. abstract="false" native="false" synchronized="false"
  1420. static="false" final="false" visibility="public"
  1421. deprecated="not deprecated">
  1422. <doc>
  1423. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  1424. key-value pairs in the configuration.
  1425. @return an iterator over the entries.]]>
  1426. </doc>
  1427. </method>
  1428. <method name="getPropsWithPrefix" return="java.util.Map"
  1429. abstract="false" native="false" synchronized="false"
  1430. static="false" final="false" visibility="public"
  1431. deprecated="not deprecated">
  1432. <param name="confPrefix" type="java.lang.String"/>
  1433. <doc>
  1434. <![CDATA[Constructs a mapping of configuration and includes all properties that
  1435. start with the specified configuration prefix. Property names in the
  1436. mapping are trimmed to remove the configuration prefix.
  1437. @param confPrefix configuration prefix
  1438. @return mapping of configuration properties with prefix stripped]]>
  1439. </doc>
  1440. </method>
  1441. <method name="addTags"
  1442. abstract="false" native="false" synchronized="false"
  1443. static="false" final="false" visibility="public"
  1444. deprecated="not deprecated">
  1445. <param name="prop" type="java.util.Properties"/>
  1446. <doc>
  1447. <![CDATA[Add tags defined in HADOOP_TAGS_SYSTEM, HADOOP_TAGS_CUSTOM.
  1448. @param prop]]>
  1449. </doc>
  1450. </method>
  1451. <method name="writeXml"
  1452. abstract="false" native="false" synchronized="false"
  1453. static="false" final="false" visibility="public"
  1454. deprecated="not deprecated">
  1455. <param name="out" type="java.io.OutputStream"/>
  1456. <exception name="IOException" type="java.io.IOException"/>
  1457. <doc>
  1458. <![CDATA[Write out the non-default properties in this configuration to the given
  1459. {@link OutputStream} using UTF-8 encoding.
  1460. @param out the output stream to write to.]]>
  1461. </doc>
  1462. </method>
  1463. <method name="writeXml"
  1464. abstract="false" native="false" synchronized="false"
  1465. static="false" final="false" visibility="public"
  1466. deprecated="not deprecated">
  1467. <param name="out" type="java.io.Writer"/>
  1468. <exception name="IOException" type="java.io.IOException"/>
  1469. </method>
  1470. <method name="writeXml"
  1471. abstract="false" native="false" synchronized="false"
  1472. static="false" final="false" visibility="public"
  1473. deprecated="not deprecated">
  1474. <param name="propertyName" type="java.lang.String"/>
  1475. <param name="out" type="java.io.Writer"/>
  1476. <exception name="IOException" type="java.io.IOException"/>
  1477. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  1478. <doc>
  1479. <![CDATA[Write out the non-default properties in this configuration to the
  1480. given {@link Writer}.
  1481. <li>
  1482. When property name is not empty and the property exists in the
  1483. configuration, this method writes the property and its attributes
  1484. to the {@link Writer}.
  1485. </li>
  1486. <p>
  1487. <li>
  1488. When property name is null or empty, this method writes all the
  1489. configuration properties and their attributes to the {@link Writer}.
  1490. </li>
  1491. <p>
  1492. <li>
  1493. When property name is not empty but the property doesn't exist in
  1494. the configuration, this method throws an {@link IllegalArgumentException}.
  1495. </li>
  1496. <p>
  1497. @param out the writer to write to.]]>
  1498. </doc>
  1499. </method>
  1500. <method name="dumpConfiguration"
  1501. abstract="false" native="false" synchronized="false"
  1502. static="true" final="false" visibility="public"
  1503. deprecated="not deprecated">
  1504. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1505. <param name="propertyName" type="java.lang.String"/>
  1506. <param name="out" type="java.io.Writer"/>
  1507. <exception name="IOException" type="java.io.IOException"/>
  1508. <doc>
  1509. <![CDATA[Writes properties and their attributes (final and resource)
  1510. to the given {@link Writer}.
  1511. <li>
  1512. When propertyName is not empty, and the property exists
  1513. in the configuration, the format of the output would be,
  1514. <pre>
  1515. {
  1516. "property": {
  1517. "key" : "key1",
  1518. "value" : "value1",
  1519. "isFinal" : "key1.isFinal",
  1520. "resource" : "key1.resource"
  1521. }
  1522. }
  1523. </pre>
  1524. </li>
  1525. <li>
  1526. When propertyName is null or empty, it behaves same as
  1527. {@link #dumpConfiguration(Configuration, Writer)}, the
  1528. output would be,
  1529. <pre>
  1530. { "properties" :
  1531. [ { key : "key1",
  1532. value : "value1",
  1533. isFinal : "key1.isFinal",
  1534. resource : "key1.resource" },
  1535. { key : "key2",
  1536. value : "value2",
  1537. isFinal : "ke2.isFinal",
  1538. resource : "key2.resource" }
  1539. ]
  1540. }
  1541. </pre>
  1542. </li>
  1543. <li>
  1544. When propertyName is not empty, and the property is not
  1545. found in the configuration, this method will throw an
  1546. {@link IllegalArgumentException}.
  1547. </li>
  1548. <p>
  1549. @param config the configuration
  1550. @param propertyName property name
  1551. @param out the Writer to write to
  1552. @throws IOException
  1553. @throws IllegalArgumentException when property name is not
  1554. empty and the property is not found in configuration]]>
  1555. </doc>
  1556. </method>
  1557. <method name="dumpConfiguration"
  1558. abstract="false" native="false" synchronized="false"
  1559. static="true" final="false" visibility="public"
  1560. deprecated="not deprecated">
  1561. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1562. <param name="out" type="java.io.Writer"/>
  1563. <exception name="IOException" type="java.io.IOException"/>
  1564. <doc>
  1565. <![CDATA[Writes out all properties and their attributes (final and resource) to
  1566. the given {@link Writer}, the format of the output would be,
  1567. <pre>
  1568. { "properties" :
  1569. [ { key : "key1",
  1570. value : "value1",
  1571. isFinal : "key1.isFinal",
  1572. resource : "key1.resource" },
  1573. { key : "key2",
  1574. value : "value2",
  1575. isFinal : "ke2.isFinal",
  1576. resource : "key2.resource" }
  1577. ]
  1578. }
  1579. </pre>
  1580. It does not output the properties of the configuration object which
  1581. is loaded from an input stream.
  1582. <p>
  1583. @param config the configuration
  1584. @param out the Writer to write to
  1585. @throws IOException]]>
  1586. </doc>
  1587. </method>
  1588. <method name="getClassLoader" return="java.lang.ClassLoader"
  1589. abstract="false" native="false" synchronized="false"
  1590. static="false" final="false" visibility="public"
  1591. deprecated="not deprecated">
  1592. <doc>
  1593. <![CDATA[Get the {@link ClassLoader} for this job.
  1594. @return the correct class loader.]]>
  1595. </doc>
  1596. </method>
  1597. <method name="setClassLoader"
  1598. abstract="false" native="false" synchronized="false"
  1599. static="false" final="false" visibility="public"
  1600. deprecated="not deprecated">
  1601. <param name="classLoader" type="java.lang.ClassLoader"/>
  1602. <doc>
  1603. <![CDATA[Set the class loader that will be used to load the various objects.
  1604. @param classLoader the new class loader.]]>
  1605. </doc>
  1606. </method>
  1607. <method name="toString" return="java.lang.String"
  1608. abstract="false" native="false" synchronized="false"
  1609. static="false" final="false" visibility="public"
  1610. deprecated="not deprecated">
  1611. </method>
  1612. <method name="setQuietMode"
  1613. abstract="false" native="false" synchronized="true"
  1614. static="false" final="false" visibility="public"
  1615. deprecated="not deprecated">
  1616. <param name="quietmode" type="boolean"/>
  1617. <doc>
  1618. <![CDATA[Set the quietness-mode.
  1619. In the quiet-mode, error and informational messages might not be logged.
  1620. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  1621. to turn it off.]]>
  1622. </doc>
  1623. </method>
  1624. <method name="main"
  1625. abstract="false" native="false" synchronized="false"
  1626. static="true" final="false" visibility="public"
  1627. deprecated="not deprecated">
  1628. <param name="args" type="java.lang.String[]"/>
  1629. <exception name="Exception" type="java.lang.Exception"/>
  1630. <doc>
  1631. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  1632. </doc>
  1633. </method>
  1634. <method name="readFields"
  1635. abstract="false" native="false" synchronized="false"
  1636. static="false" final="false" visibility="public"
  1637. deprecated="not deprecated">
  1638. <param name="in" type="java.io.DataInput"/>
  1639. <exception name="IOException" type="java.io.IOException"/>
  1640. </method>
  1641. <method name="write"
  1642. abstract="false" native="false" synchronized="false"
  1643. static="false" final="false" visibility="public"
  1644. deprecated="not deprecated">
  1645. <param name="out" type="java.io.DataOutput"/>
  1646. <exception name="IOException" type="java.io.IOException"/>
  1647. </method>
  1648. <method name="getValByRegex" return="java.util.Map"
  1649. abstract="false" native="false" synchronized="false"
  1650. static="false" final="false" visibility="public"
  1651. deprecated="not deprecated">
  1652. <param name="regex" type="java.lang.String"/>
  1653. <doc>
  1654. <![CDATA[get keys matching the the regex
  1655. @param regex
  1656. @return Map<String,String> with matching keys]]>
  1657. </doc>
  1658. </method>
  1659. <method name="dumpDeprecatedKeys"
  1660. abstract="false" native="false" synchronized="false"
  1661. static="true" final="false" visibility="public"
  1662. deprecated="not deprecated">
  1663. </method>
  1664. <method name="hasWarnedDeprecation" return="boolean"
  1665. abstract="false" native="false" synchronized="false"
  1666. static="true" final="false" visibility="public"
  1667. deprecated="not deprecated">
  1668. <param name="name" type="java.lang.String"/>
  1669. <doc>
  1670. <![CDATA[Returns whether or not a deprecated name has been warned. If the name is not
  1671. deprecated then always return false]]>
  1672. </doc>
  1673. </method>
  1674. <method name="getAllPropertiesByTag" return="java.util.Properties"
  1675. abstract="false" native="false" synchronized="false"
  1676. static="false" final="false" visibility="public"
  1677. deprecated="not deprecated">
  1678. <param name="tag" type="java.lang.String"/>
  1679. <doc>
  1680. <![CDATA[Get all properties belonging to tag.
  1681. @param tag tag
  1682. @return Properties with matching tag]]>
  1683. </doc>
  1684. </method>
  1685. <method name="getAllPropertiesByTags" return="java.util.Properties"
  1686. abstract="false" native="false" synchronized="false"
  1687. static="false" final="false" visibility="public"
  1688. deprecated="not deprecated">
  1689. <param name="tagList" type="java.util.List"/>
  1690. <doc>
  1691. <![CDATA[Get all properties belonging to list of input tags. Calls
  1692. getAllPropertiesByTag internally.
  1693. @param tagList list of input tags
  1694. @return Properties with matching tags]]>
  1695. </doc>
  1696. </method>
  1697. <method name="isPropertyTag" return="boolean"
  1698. abstract="false" native="false" synchronized="false"
  1699. static="false" final="false" visibility="public"
  1700. deprecated="not deprecated">
  1701. <param name="tagStr" type="java.lang.String"/>
  1702. <doc>
  1703. <![CDATA[Get Property tag Enum corresponding to given source.
  1704. @param tagStr String representation of Enum
  1705. @return true if tagStr is a valid tag]]>
  1706. </doc>
  1707. </method>
  1708. <doc>
  1709. <![CDATA[Provides access to configuration parameters.
  1710. <h4 id="Resources">Resources</h4>
  1711. <p>Configurations are specified by resources. A resource contains a set of
  1712. name/value pairs as XML data. Each resource is named by either a
  1713. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  1714. then the classpath is examined for a file with that name. If named by a
  1715. <code>Path</code>, then the local filesystem is examined directly, without
  1716. referring to the classpath.
  1717. <p>Unless explicitly turned off, Hadoop by default specifies two
  1718. resources, loaded in-order from the classpath: <ol>
  1719. <li><tt>
  1720. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  1721. core-default.xml</a></tt>: Read-only defaults for hadoop.</li>
  1722. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  1723. installation.</li>
  1724. </ol>
  1725. Applications may add additional resources, which are loaded
  1726. subsequent to these resources in the order they are added.
  1727. <h4 id="FinalParams">Final Parameters</h4>
  1728. <p>Configuration parameters may be declared <i>final</i>.
  1729. Once a resource declares a value final, no subsequently-loaded
  1730. resource can alter that value.
  1731. For example, one might define a final parameter with:
  1732. <tt><pre>
  1733. &lt;property&gt;
  1734. &lt;name&gt;dfs.hosts.include&lt;/name&gt;
  1735. &lt;value&gt;/etc/hadoop/conf/hosts.include&lt;/value&gt;
  1736. <b>&lt;final&gt;true&lt;/final&gt;</b>
  1737. &lt;/property&gt;</pre></tt>
  1738. Administrators typically define parameters as final in
  1739. <tt>core-site.xml</tt> for values that user applications may not alter.
  1740. <h4 id="VariableExpansion">Variable Expansion</h4>
  1741. <p>Value strings are first processed for <i>variable expansion</i>. The
  1742. available properties are:<ol>
  1743. <li>Other properties defined in this Configuration; and, if a name is
  1744. undefined here,</li>
  1745. <li>Environment variables in {@link System#getenv()} if a name starts with
  1746. "env.", or</li>
  1747. <li>Properties in {@link System#getProperties()}.</li>
  1748. </ol>
  1749. <p>For example, if a configuration resource contains the following property
  1750. definitions:
  1751. <tt><pre>
  1752. &lt;property&gt;
  1753. &lt;name&gt;basedir&lt;/name&gt;
  1754. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  1755. &lt;/property&gt;
  1756. &lt;property&gt;
  1757. &lt;name&gt;tempdir&lt;/name&gt;
  1758. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  1759. &lt;/property&gt;
  1760. &lt;property&gt;
  1761. &lt;name&gt;otherdir&lt;/name&gt;
  1762. &lt;value&gt;${<i>env.BASE_DIR</i>}/other&lt;/value&gt;
  1763. &lt;/property&gt;
  1764. </pre></tt>
  1765. <p>When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  1766. will be resolved to another property in this Configuration, while
  1767. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  1768. of the System property with that name.
  1769. <p>When <tt>conf.get("otherdir")</tt> is called, then <tt>${<i>env.BASE_DIR</i>}</tt>
  1770. will be resolved to the value of the <tt>${<i>BASE_DIR</i>}</tt> environment variable.
  1771. It supports <tt>${<i>env.NAME:-default</i>}</tt> and <tt>${<i>env.NAME-default</i>}</tt> notations.
  1772. The former is resolved to "default" if <tt>${<i>NAME</i>}</tt> environment variable is undefined
  1773. or its value is empty.
  1774. The latter behaves the same way only if <tt>${<i>NAME</i>}</tt> is undefined.
  1775. <p>By default, warnings will be given to any deprecated configuration
  1776. parameters and these are suppressible by configuring
  1777. <tt>log4j.logger.org.apache.hadoop.conf.Configuration.deprecation</tt> in
  1778. log4j.properties file.
  1779. <h4 id="Tags">Tags</h4>
  1780. <p>Optionally we can tag related properties together by using tag
  1781. attributes. System tags are defined by hadoop.tags.system property. Users
  1782. can define there own custom tags in hadoop.tags.custom property.
  1783. <p>For example, we can tag existing property as:
  1784. <tt><pre>
  1785. &lt;property&gt;
  1786. &lt;name&gt;dfs.replication&lt;/name&gt;
  1787. &lt;value&gt;3&lt;/value&gt;
  1788. &lt;tag&gt;HDFS,REQUIRED&lt;/tag&gt;
  1789. &lt;/property&gt;
  1790. &lt;property&gt;
  1791. &lt;name&gt;dfs.data.transfer.protection&lt;/name&gt;
  1792. &lt;value&gt;3&lt;/value&gt;
  1793. &lt;tag&gt;HDFS,SECURITY&lt;/tag&gt;
  1794. &lt;/property&gt;
  1795. </pre></tt>
  1796. <p> Properties marked with tags can be retrieved with <tt>conf
  1797. .getAllPropertiesByTag("HDFS")</tt> or <tt>conf.getAllPropertiesByTags
  1798. (Arrays.asList("YARN","SECURITY"))</tt>.</p>]]>
  1799. </doc>
  1800. </class>
  1801. <!-- end class org.apache.hadoop.conf.Configuration -->
  1802. <!-- start class org.apache.hadoop.conf.Configured -->
  1803. <class name="Configured" extends="java.lang.Object"
  1804. abstract="false"
  1805. static="false" final="false" visibility="public"
  1806. deprecated="not deprecated">
  1807. <implements name="org.apache.hadoop.conf.Configurable"/>
  1808. <constructor name="Configured"
  1809. static="false" final="false" visibility="public"
  1810. deprecated="not deprecated">
  1811. <doc>
  1812. <![CDATA[Construct a Configured.]]>
  1813. </doc>
  1814. </constructor>
  1815. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1816. static="false" final="false" visibility="public"
  1817. deprecated="not deprecated">
  1818. <doc>
  1819. <![CDATA[Construct a Configured.]]>
  1820. </doc>
  1821. </constructor>
  1822. <method name="setConf"
  1823. abstract="false" native="false" synchronized="false"
  1824. static="false" final="false" visibility="public"
  1825. deprecated="not deprecated">
  1826. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1827. </method>
  1828. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1829. abstract="false" native="false" synchronized="false"
  1830. static="false" final="false" visibility="public"
  1831. deprecated="not deprecated">
  1832. </method>
  1833. <doc>
  1834. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1835. </doc>
  1836. </class>
  1837. <!-- end class org.apache.hadoop.conf.Configured -->
  1838. <doc>
  1839. <![CDATA[Configuration of system parameters.]]>
  1840. </doc>
  1841. </package>
  1842. <package name="org.apache.hadoop.crypto">
  1843. </package>
  1844. <package name="org.apache.hadoop.crypto.key">
  1845. <!-- start class org.apache.hadoop.crypto.key.KeyProvider -->
  1846. <class name="KeyProvider" extends="java.lang.Object"
  1847. abstract="true"
  1848. static="false" final="false" visibility="public"
  1849. deprecated="not deprecated">
  1850. <implements name="java.io.Closeable"/>
  1851. <constructor name="KeyProvider" type="org.apache.hadoop.conf.Configuration"
  1852. static="false" final="false" visibility="public"
  1853. deprecated="not deprecated">
  1854. <doc>
  1855. <![CDATA[Constructor.
  1856. @param conf configuration for the provider]]>
  1857. </doc>
  1858. </constructor>
  1859. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1860. abstract="false" native="false" synchronized="false"
  1861. static="false" final="false" visibility="public"
  1862. deprecated="not deprecated">
  1863. <doc>
  1864. <![CDATA[Return the provider configuration.
  1865. @return the provider configuration]]>
  1866. </doc>
  1867. </method>
  1868. <method name="options" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  1869. abstract="false" native="false" synchronized="false"
  1870. static="true" final="false" visibility="public"
  1871. deprecated="not deprecated">
  1872. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1873. <doc>
  1874. <![CDATA[A helper function to create an options object.
  1875. @param conf the configuration to use
  1876. @return a new options object]]>
  1877. </doc>
  1878. </method>
  1879. <method name="isTransient" return="boolean"
  1880. abstract="false" native="false" synchronized="false"
  1881. static="false" final="false" visibility="public"
  1882. deprecated="not deprecated">
  1883. <doc>
  1884. <![CDATA[Indicates whether this provider represents a store
  1885. that is intended for transient use - such as the UserProvider
  1886. is. These providers are generally used to provide access to
  1887. keying material rather than for long term storage.
  1888. @return true if transient, false otherwise]]>
  1889. </doc>
  1890. </method>
  1891. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1892. abstract="true" native="false" synchronized="false"
  1893. static="false" final="false" visibility="public"
  1894. deprecated="not deprecated">
  1895. <param name="versionName" type="java.lang.String"/>
  1896. <exception name="IOException" type="java.io.IOException"/>
  1897. <doc>
  1898. <![CDATA[Get the key material for a specific version of the key. This method is used
  1899. when decrypting data.
  1900. @param versionName the name of a specific version of the key
  1901. @return the key material
  1902. @throws IOException]]>
  1903. </doc>
  1904. </method>
  1905. <method name="getKeys" return="java.util.List"
  1906. abstract="true" native="false" synchronized="false"
  1907. static="false" final="false" visibility="public"
  1908. deprecated="not deprecated">
  1909. <exception name="IOException" type="java.io.IOException"/>
  1910. <doc>
  1911. <![CDATA[Get the key names for all keys.
  1912. @return the list of key names
  1913. @throws IOException]]>
  1914. </doc>
  1915. </method>
  1916. <method name="getKeysMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata[]"
  1917. abstract="false" native="false" synchronized="false"
  1918. static="false" final="false" visibility="public"
  1919. deprecated="not deprecated">
  1920. <param name="names" type="java.lang.String[]"/>
  1921. <exception name="IOException" type="java.io.IOException"/>
  1922. <doc>
  1923. <![CDATA[Get key metadata in bulk.
  1924. @param names the names of the keys to get
  1925. @throws IOException]]>
  1926. </doc>
  1927. </method>
  1928. <method name="getKeyVersions" return="java.util.List"
  1929. abstract="true" native="false" synchronized="false"
  1930. static="false" final="false" visibility="public"
  1931. deprecated="not deprecated">
  1932. <param name="name" type="java.lang.String"/>
  1933. <exception name="IOException" type="java.io.IOException"/>
  1934. <doc>
  1935. <![CDATA[Get the key material for all versions of a specific key name.
  1936. @return the list of key material
  1937. @throws IOException]]>
  1938. </doc>
  1939. </method>
  1940. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1941. abstract="false" native="false" synchronized="false"
  1942. static="false" final="false" visibility="public"
  1943. deprecated="not deprecated">
  1944. <param name="name" type="java.lang.String"/>
  1945. <exception name="IOException" type="java.io.IOException"/>
  1946. <doc>
  1947. <![CDATA[Get the current version of the key, which should be used for encrypting new
  1948. data.
  1949. @param name the base name of the key
  1950. @return the version name of the current version of the key or null if the
  1951. key version doesn't exist
  1952. @throws IOException]]>
  1953. </doc>
  1954. </method>
  1955. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  1956. abstract="true" native="false" synchronized="false"
  1957. static="false" final="false" visibility="public"
  1958. deprecated="not deprecated">
  1959. <param name="name" type="java.lang.String"/>
  1960. <exception name="IOException" type="java.io.IOException"/>
  1961. <doc>
  1962. <![CDATA[Get metadata about the key.
  1963. @param name the basename of the key
  1964. @return the key's metadata or null if the key doesn't exist
  1965. @throws IOException]]>
  1966. </doc>
  1967. </method>
  1968. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1969. abstract="true" native="false" synchronized="false"
  1970. static="false" final="false" visibility="public"
  1971. deprecated="not deprecated">
  1972. <param name="name" type="java.lang.String"/>
  1973. <param name="material" type="byte[]"/>
  1974. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  1975. <exception name="IOException" type="java.io.IOException"/>
  1976. <doc>
  1977. <![CDATA[Create a new key. The given key must not already exist.
  1978. @param name the base name of the key
  1979. @param material the key material for the first version of the key.
  1980. @param options the options for the new key.
  1981. @return the version name of the first version of the key.
  1982. @throws IOException]]>
  1983. </doc>
  1984. </method>
  1985. <method name="generateKey" return="byte[]"
  1986. abstract="false" native="false" synchronized="false"
  1987. static="false" final="false" visibility="protected"
  1988. deprecated="not deprecated">
  1989. <param name="size" type="int"/>
  1990. <param name="algorithm" type="java.lang.String"/>
  1991. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1992. <doc>
  1993. <![CDATA[Generates a key material.
  1994. @param size length of the key.
  1995. @param algorithm algorithm to use for generating the key.
  1996. @return the generated key.
  1997. @throws NoSuchAlgorithmException]]>
  1998. </doc>
  1999. </method>
  2000. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2001. abstract="false" native="false" synchronized="false"
  2002. static="false" final="false" visibility="public"
  2003. deprecated="not deprecated">
  2004. <param name="name" type="java.lang.String"/>
  2005. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  2006. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2007. <exception name="IOException" type="java.io.IOException"/>
  2008. <doc>
  2009. <![CDATA[Create a new key generating the material for it.
  2010. The given key must not already exist.
  2011. <p/>
  2012. This implementation generates the key material and calls the
  2013. {@link #createKey(String, byte[], Options)} method.
  2014. @param name the base name of the key
  2015. @param options the options for the new key.
  2016. @return the version name of the first version of the key.
  2017. @throws IOException
  2018. @throws NoSuchAlgorithmException]]>
  2019. </doc>
  2020. </method>
  2021. <method name="deleteKey"
  2022. abstract="true" native="false" synchronized="false"
  2023. static="false" final="false" visibility="public"
  2024. deprecated="not deprecated">
  2025. <param name="name" type="java.lang.String"/>
  2026. <exception name="IOException" type="java.io.IOException"/>
  2027. <doc>
  2028. <![CDATA[Delete the given key.
  2029. @param name the name of the key to delete
  2030. @throws IOException]]>
  2031. </doc>
  2032. </method>
  2033. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2034. abstract="true" native="false" synchronized="false"
  2035. static="false" final="false" visibility="public"
  2036. deprecated="not deprecated">
  2037. <param name="name" type="java.lang.String"/>
  2038. <param name="material" type="byte[]"/>
  2039. <exception name="IOException" type="java.io.IOException"/>
  2040. <doc>
  2041. <![CDATA[Roll a new version of the given key.
  2042. @param name the basename of the key
  2043. @param material the new key material
  2044. @return the name of the new version of the key
  2045. @throws IOException]]>
  2046. </doc>
  2047. </method>
  2048. <method name="close"
  2049. abstract="false" native="false" synchronized="false"
  2050. static="false" final="false" visibility="public"
  2051. deprecated="not deprecated">
  2052. <exception name="IOException" type="java.io.IOException"/>
  2053. <doc>
  2054. <![CDATA[Can be used by implementing classes to close any resources
  2055. that require closing]]>
  2056. </doc>
  2057. </method>
  2058. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2059. abstract="false" native="false" synchronized="false"
  2060. static="false" final="false" visibility="public"
  2061. deprecated="not deprecated">
  2062. <param name="name" type="java.lang.String"/>
  2063. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2064. <exception name="IOException" type="java.io.IOException"/>
  2065. <doc>
  2066. <![CDATA[Roll a new version of the given key generating the material for it.
  2067. <p/>
  2068. This implementation generates the key material and calls the
  2069. {@link #rollNewVersion(String, byte[])} method.
  2070. @param name the basename of the key
  2071. @return the name of the new version of the key
  2072. @throws IOException]]>
  2073. </doc>
  2074. </method>
  2075. <method name="invalidateCache"
  2076. abstract="false" native="false" synchronized="false"
  2077. static="false" final="false" visibility="public"
  2078. deprecated="not deprecated">
  2079. <param name="name" type="java.lang.String"/>
  2080. <exception name="IOException" type="java.io.IOException"/>
  2081. <doc>
  2082. <![CDATA[Can be used by implementing classes to invalidate the caches. This could be
  2083. used after rollNewVersion to provide a strong guarantee to return the new
  2084. version of the given key.
  2085. @param name the basename of the key
  2086. @throws IOException]]>
  2087. </doc>
  2088. </method>
  2089. <method name="flush"
  2090. abstract="true" native="false" synchronized="false"
  2091. static="false" final="false" visibility="public"
  2092. deprecated="not deprecated">
  2093. <exception name="IOException" type="java.io.IOException"/>
  2094. <doc>
  2095. <![CDATA[Ensures that any changes to the keys are written to persistent store.
  2096. @throws IOException]]>
  2097. </doc>
  2098. </method>
  2099. <method name="getBaseName" return="java.lang.String"
  2100. abstract="false" native="false" synchronized="false"
  2101. static="true" final="false" visibility="public"
  2102. deprecated="not deprecated">
  2103. <param name="versionName" type="java.lang.String"/>
  2104. <exception name="IOException" type="java.io.IOException"/>
  2105. <doc>
  2106. <![CDATA[Split the versionName in to a base name. Converts "/aaa/bbb/3" to
  2107. "/aaa/bbb".
  2108. @param versionName the version name to split
  2109. @return the base name of the key
  2110. @throws IOException]]>
  2111. </doc>
  2112. </method>
  2113. <method name="buildVersionName" return="java.lang.String"
  2114. abstract="false" native="false" synchronized="false"
  2115. static="true" final="false" visibility="protected"
  2116. deprecated="not deprecated">
  2117. <param name="name" type="java.lang.String"/>
  2118. <param name="version" type="int"/>
  2119. <doc>
  2120. <![CDATA[Build a version string from a basename and version number. Converts
  2121. "/aaa/bbb" and 3 to "/aaa/bbb@3".
  2122. @param name the basename of the key
  2123. @param version the version of the key
  2124. @return the versionName of the key.]]>
  2125. </doc>
  2126. </method>
  2127. <method name="findProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2128. abstract="false" native="false" synchronized="false"
  2129. static="true" final="false" visibility="public"
  2130. deprecated="not deprecated">
  2131. <param name="providerList" type="java.util.List"/>
  2132. <param name="keyName" type="java.lang.String"/>
  2133. <exception name="IOException" type="java.io.IOException"/>
  2134. <doc>
  2135. <![CDATA[Find the provider with the given key.
  2136. @param providerList the list of providers
  2137. @param keyName the key name we are looking for
  2138. @return the KeyProvider that has the key]]>
  2139. </doc>
  2140. </method>
  2141. <method name="needsPassword" return="boolean"
  2142. abstract="false" native="false" synchronized="false"
  2143. static="false" final="false" visibility="public"
  2144. deprecated="not deprecated">
  2145. <exception name="IOException" type="java.io.IOException"/>
  2146. <doc>
  2147. <![CDATA[Does this provider require a password? This means that a password is
  2148. required for normal operation, and it has not been found through normal
  2149. means. If true, the password should be provided by the caller using
  2150. setPassword().
  2151. @return Whether or not the provider requires a password
  2152. @throws IOException]]>
  2153. </doc>
  2154. </method>
  2155. <method name="noPasswordWarning" return="java.lang.String"
  2156. abstract="false" native="false" synchronized="false"
  2157. static="false" final="false" visibility="public"
  2158. deprecated="not deprecated">
  2159. <doc>
  2160. <![CDATA[If a password for the provider is needed, but is not provided, this will
  2161. return a warning and instructions for supplying said password to the
  2162. provider.
  2163. @return A warning and instructions for supplying the password]]>
  2164. </doc>
  2165. </method>
  2166. <method name="noPasswordError" return="java.lang.String"
  2167. abstract="false" native="false" synchronized="false"
  2168. static="false" final="false" visibility="public"
  2169. deprecated="not deprecated">
  2170. <doc>
  2171. <![CDATA[If a password for the provider is needed, but is not provided, this will
  2172. return an error message and instructions for supplying said password to
  2173. the provider.
  2174. @return An error message and instructions for supplying the password]]>
  2175. </doc>
  2176. </method>
  2177. <field name="DEFAULT_CIPHER_NAME" type="java.lang.String"
  2178. transient="false" volatile="false"
  2179. static="true" final="true" visibility="public"
  2180. deprecated="not deprecated">
  2181. </field>
  2182. <field name="DEFAULT_CIPHER" type="java.lang.String"
  2183. transient="false" volatile="false"
  2184. static="true" final="true" visibility="public"
  2185. deprecated="not deprecated">
  2186. </field>
  2187. <field name="DEFAULT_BITLENGTH_NAME" type="java.lang.String"
  2188. transient="false" volatile="false"
  2189. static="true" final="true" visibility="public"
  2190. deprecated="not deprecated">
  2191. </field>
  2192. <field name="DEFAULT_BITLENGTH" type="int"
  2193. transient="false" volatile="false"
  2194. static="true" final="true" visibility="public"
  2195. deprecated="not deprecated">
  2196. </field>
  2197. <field name="JCEKS_KEY_SERIALFILTER_DEFAULT" type="java.lang.String"
  2198. transient="false" volatile="false"
  2199. static="true" final="true" visibility="public"
  2200. deprecated="not deprecated">
  2201. </field>
  2202. <field name="JCEKS_KEY_SERIAL_FILTER" type="java.lang.String"
  2203. transient="false" volatile="false"
  2204. static="true" final="true" visibility="public"
  2205. deprecated="not deprecated">
  2206. </field>
  2207. <doc>
  2208. <![CDATA[A provider of secret key material for Hadoop applications. Provides an
  2209. abstraction to separate key storage from users of encryption. It
  2210. is intended to support getting or storing keys in a variety of ways,
  2211. including third party bindings.
  2212. <P/>
  2213. <code>KeyProvider</code> implementations must be thread safe.]]>
  2214. </doc>
  2215. </class>
  2216. <!-- end class org.apache.hadoop.crypto.key.KeyProvider -->
  2217. <!-- start class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2218. <class name="KeyProviderFactory" extends="java.lang.Object"
  2219. abstract="true"
  2220. static="false" final="false" visibility="public"
  2221. deprecated="not deprecated">
  2222. <constructor name="KeyProviderFactory"
  2223. static="false" final="false" visibility="public"
  2224. deprecated="not deprecated">
  2225. </constructor>
  2226. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2227. abstract="true" native="false" synchronized="false"
  2228. static="false" final="false" visibility="public"
  2229. deprecated="not deprecated">
  2230. <param name="providerName" type="java.net.URI"/>
  2231. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2232. <exception name="IOException" type="java.io.IOException"/>
  2233. </method>
  2234. <method name="getProviders" return="java.util.List"
  2235. abstract="false" native="false" synchronized="false"
  2236. static="true" final="false" visibility="public"
  2237. deprecated="not deprecated">
  2238. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2239. <exception name="IOException" type="java.io.IOException"/>
  2240. </method>
  2241. <method name="get" return="org.apache.hadoop.crypto.key.KeyProvider"
  2242. abstract="false" native="false" synchronized="false"
  2243. static="true" final="false" visibility="public"
  2244. deprecated="not deprecated">
  2245. <param name="uri" type="java.net.URI"/>
  2246. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2247. <exception name="IOException" type="java.io.IOException"/>
  2248. <doc>
  2249. <![CDATA[Create a KeyProvider based on a provided URI.
  2250. @param uri key provider URI
  2251. @param conf configuration to initialize the key provider
  2252. @return the key provider for the specified URI, or <code>NULL</code> if
  2253. a provider for the specified URI scheme could not be found.
  2254. @throws IOException thrown if the provider failed to initialize.]]>
  2255. </doc>
  2256. </method>
  2257. <field name="KEY_PROVIDER_PATH" type="java.lang.String"
  2258. transient="false" volatile="false"
  2259. static="true" final="true" visibility="public"
  2260. deprecated="not deprecated">
  2261. </field>
  2262. <doc>
  2263. <![CDATA[A factory to create a list of KeyProvider based on the path given in a
  2264. Configuration. It uses a service loader interface to find the available
  2265. KeyProviders and create them based on the list of URIs.]]>
  2266. </doc>
  2267. </class>
  2268. <!-- end class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2269. </package>
  2270. <package name="org.apache.hadoop.crypto.key.kms">
  2271. </package>
  2272. <package name="org.apache.hadoop.crypto.random">
  2273. </package>
  2274. <package name="org.apache.hadoop.fs">
  2275. <!-- start class org.apache.hadoop.fs.AbstractFileSystem -->
  2276. <class name="AbstractFileSystem" extends="java.lang.Object"
  2277. abstract="true"
  2278. static="false" final="false" visibility="public"
  2279. deprecated="not deprecated">
  2280. <implements name="org.apache.hadoop.fs.PathCapabilities"/>
  2281. <constructor name="AbstractFileSystem" type="java.net.URI, java.lang.String, boolean, int"
  2282. static="false" final="false" visibility="public"
  2283. deprecated="not deprecated">
  2284. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  2285. <doc>
  2286. <![CDATA[Constructor to be called by subclasses.
  2287. @param uri for this file system.
  2288. @param supportedScheme the scheme supported by the implementor
  2289. @param authorityNeeded if true then theURI must have authority, if false
  2290. then the URI must have null authority.
  2291. @throws URISyntaxException <code>uri</code> has syntax error]]>
  2292. </doc>
  2293. </constructor>
  2294. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  2295. abstract="false" native="false" synchronized="false"
  2296. static="false" final="false" visibility="public"
  2297. deprecated="not deprecated">
  2298. </method>
  2299. <method name="isValidName" return="boolean"
  2300. abstract="false" native="false" synchronized="false"
  2301. static="false" final="false" visibility="public"
  2302. deprecated="not deprecated">
  2303. <param name="src" type="java.lang.String"/>
  2304. <doc>
  2305. <![CDATA[Returns true if the specified string is considered valid in the path part
  2306. of a URI by this file system. The default implementation enforces the rules
  2307. of HDFS, but subclasses may override this method to implement specific
  2308. validation rules for specific file systems.
  2309. @param src String source filename to check, path part of the URI
  2310. @return boolean true if the specified string is considered valid]]>
  2311. </doc>
  2312. </method>
  2313. <method name="createFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  2314. abstract="false" native="false" synchronized="false"
  2315. static="true" final="false" visibility="public"
  2316. deprecated="not deprecated">
  2317. <param name="uri" type="java.net.URI"/>
  2318. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2319. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2320. <doc>
  2321. <![CDATA[Create a file system instance for the specified uri using the conf. The
  2322. conf is used to find the class name that implements the file system. The
  2323. conf is also passed to the file system for its configuration.
  2324. @param uri URI of the file system
  2325. @param conf Configuration for the file system
  2326. @return Returns the file system for the given URI
  2327. @throws UnsupportedFileSystemException file system for <code>uri</code> is
  2328. not found]]>
  2329. </doc>
  2330. </method>
  2331. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  2332. abstract="false" native="false" synchronized="true"
  2333. static="true" final="false" visibility="protected"
  2334. deprecated="not deprecated">
  2335. <param name="uri" type="java.net.URI"/>
  2336. <doc>
  2337. <![CDATA[Get the statistics for a particular file system.
  2338. @param uri
  2339. used as key to lookup STATISTICS_TABLE. Only scheme and authority
  2340. part of the uri are used.
  2341. @return a statistics object]]>
  2342. </doc>
  2343. </method>
  2344. <method name="clearStatistics"
  2345. abstract="false" native="false" synchronized="true"
  2346. static="true" final="false" visibility="public"
  2347. deprecated="not deprecated">
  2348. </method>
  2349. <method name="printStatistics"
  2350. abstract="false" native="false" synchronized="true"
  2351. static="true" final="false" visibility="public"
  2352. deprecated="not deprecated">
  2353. <doc>
  2354. <![CDATA[Prints statistics for all file systems.]]>
  2355. </doc>
  2356. </method>
  2357. <method name="getAllStatistics" return="java.util.Map"
  2358. abstract="false" native="false" synchronized="true"
  2359. static="true" final="false" visibility="protected"
  2360. deprecated="not deprecated">
  2361. </method>
  2362. <method name="get" return="org.apache.hadoop.fs.AbstractFileSystem"
  2363. abstract="false" native="false" synchronized="false"
  2364. static="true" final="false" visibility="public"
  2365. deprecated="not deprecated">
  2366. <param name="uri" type="java.net.URI"/>
  2367. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2368. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2369. <doc>
  2370. <![CDATA[The main factory method for creating a file system. Get a file system for
  2371. the URI's scheme and authority. The scheme of the <code>uri</code>
  2372. determines a configuration property name,
  2373. <tt>fs.AbstractFileSystem.<i>scheme</i>.impl</tt> whose value names the
  2374. AbstractFileSystem class.
  2375. The entire URI and conf is passed to the AbstractFileSystem factory method.
  2376. @param uri for the file system to be created.
  2377. @param conf which is passed to the file system impl.
  2378. @return file system for the given URI.
  2379. @throws UnsupportedFileSystemException if the file system for
  2380. <code>uri</code> is not supported.]]>
  2381. </doc>
  2382. </method>
  2383. <method name="checkScheme"
  2384. abstract="false" native="false" synchronized="false"
  2385. static="false" final="false" visibility="public"
  2386. deprecated="not deprecated">
  2387. <param name="uri" type="java.net.URI"/>
  2388. <param name="supportedScheme" type="java.lang.String"/>
  2389. <doc>
  2390. <![CDATA[Check that the Uri's scheme matches
  2391. @param uri
  2392. @param supportedScheme]]>
  2393. </doc>
  2394. </method>
  2395. <method name="getUriDefaultPort" return="int"
  2396. abstract="true" native="false" synchronized="false"
  2397. static="false" final="false" visibility="public"
  2398. deprecated="not deprecated">
  2399. <doc>
  2400. <![CDATA[The default port of this file system.
  2401. @return default port of this file system's Uri scheme
  2402. A uri with a port of -1 => default port;]]>
  2403. </doc>
  2404. </method>
  2405. <method name="getUri" return="java.net.URI"
  2406. abstract="false" native="false" synchronized="false"
  2407. static="false" final="false" visibility="public"
  2408. deprecated="not deprecated">
  2409. <doc>
  2410. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.
  2411. @return the uri of this file system.]]>
  2412. </doc>
  2413. </method>
  2414. <method name="checkPath"
  2415. abstract="false" native="false" synchronized="false"
  2416. static="false" final="false" visibility="public"
  2417. deprecated="not deprecated">
  2418. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2419. <doc>
  2420. <![CDATA[Check that a Path belongs to this FileSystem.
  2421. If the path is fully qualified URI, then its scheme and authority
  2422. matches that of this file system. Otherwise the path must be
  2423. slash-relative name.
  2424. @throws InvalidPathException if the path is invalid]]>
  2425. </doc>
  2426. </method>
  2427. <method name="getUriPath" return="java.lang.String"
  2428. abstract="false" native="false" synchronized="false"
  2429. static="false" final="false" visibility="public"
  2430. deprecated="not deprecated">
  2431. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2432. <doc>
  2433. <![CDATA[Get the path-part of a pathname. Checks that URI matches this file system
  2434. and that the path-part is a valid name.
  2435. @param p path
  2436. @return path-part of the Path p]]>
  2437. </doc>
  2438. </method>
  2439. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2440. abstract="false" native="false" synchronized="false"
  2441. static="false" final="false" visibility="public"
  2442. deprecated="not deprecated">
  2443. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2444. <doc>
  2445. <![CDATA[Make the path fully qualified to this file system
  2446. @param path
  2447. @return the qualified path]]>
  2448. </doc>
  2449. </method>
  2450. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  2451. abstract="false" native="false" synchronized="false"
  2452. static="false" final="false" visibility="public"
  2453. deprecated="not deprecated">
  2454. <doc>
  2455. <![CDATA[Some file systems like LocalFileSystem have an initial workingDir
  2456. that is used as the starting workingDir. For other file systems
  2457. like HDFS there is no built in notion of an initial workingDir.
  2458. @return the initial workingDir if the file system has such a notion
  2459. otherwise return a null.]]>
  2460. </doc>
  2461. </method>
  2462. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  2463. abstract="false" native="false" synchronized="false"
  2464. static="false" final="false" visibility="public"
  2465. deprecated="not deprecated">
  2466. <doc>
  2467. <![CDATA[Return the current user's home directory in this file system.
  2468. The default implementation returns "/user/$USER/".
  2469. @return current user's home directory.]]>
  2470. </doc>
  2471. </method>
  2472. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2473. abstract="true" native="false" synchronized="false"
  2474. static="false" final="false" visibility="public"
  2475. deprecated="use {@link #getServerDefaults(Path)} instead">
  2476. <exception name="IOException" type="java.io.IOException"/>
  2477. <doc>
  2478. <![CDATA[Return a set of server default configuration values.
  2479. @return server default configuration values
  2480. @throws IOException an I/O error occurred
  2481. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  2482. </doc>
  2483. </method>
  2484. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2485. abstract="false" native="false" synchronized="false"
  2486. static="false" final="false" visibility="public"
  2487. deprecated="not deprecated">
  2488. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2489. <exception name="IOException" type="java.io.IOException"/>
  2490. <doc>
  2491. <![CDATA[Return a set of server default configuration values based on path.
  2492. @param f path to fetch server defaults
  2493. @return server default configuration values for path
  2494. @throws IOException an I/O error occurred]]>
  2495. </doc>
  2496. </method>
  2497. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  2498. abstract="false" native="false" synchronized="false"
  2499. static="false" final="false" visibility="public"
  2500. deprecated="not deprecated">
  2501. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2502. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2503. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2504. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2505. <exception name="IOException" type="java.io.IOException"/>
  2506. <doc>
  2507. <![CDATA[Return the fully-qualified path of path f resolving the path
  2508. through any internal symlinks or mount point
  2509. @param p path to be resolved
  2510. @return fully qualified path
  2511. @throws FileNotFoundException, AccessControlException, IOException
  2512. UnresolvedLinkException if symbolic link on path cannot be resolved
  2513. internally]]>
  2514. </doc>
  2515. </method>
  2516. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2517. abstract="false" native="false" synchronized="false"
  2518. static="false" final="true" visibility="public"
  2519. deprecated="not deprecated">
  2520. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2521. <param name="createFlag" type="java.util.EnumSet"/>
  2522. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  2523. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2524. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2525. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2526. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2527. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2528. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2529. <exception name="IOException" type="java.io.IOException"/>
  2530. <doc>
  2531. <![CDATA[The specification of this method matches that of
  2532. {@link FileContext#create(Path, EnumSet, Options.CreateOpts...)} except
  2533. that the Path f must be fully qualified and the permission is absolute
  2534. (i.e. umask has been applied).]]>
  2535. </doc>
  2536. </method>
  2537. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  2538. abstract="true" native="false" synchronized="false"
  2539. static="false" final="false" visibility="public"
  2540. deprecated="not deprecated">
  2541. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2542. <param name="flag" type="java.util.EnumSet"/>
  2543. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2544. <param name="bufferSize" type="int"/>
  2545. <param name="replication" type="short"/>
  2546. <param name="blockSize" type="long"/>
  2547. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2548. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  2549. <param name="createParent" type="boolean"/>
  2550. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2551. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2552. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2553. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2554. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2555. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2556. <exception name="IOException" type="java.io.IOException"/>
  2557. <doc>
  2558. <![CDATA[The specification of this method matches that of
  2559. {@link #create(Path, EnumSet, Options.CreateOpts...)} except that the opts
  2560. have been declared explicitly.]]>
  2561. </doc>
  2562. </method>
  2563. <method name="mkdir"
  2564. abstract="true" native="false" synchronized="false"
  2565. static="false" final="false" visibility="public"
  2566. deprecated="not deprecated">
  2567. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2568. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2569. <param name="createParent" type="boolean"/>
  2570. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2571. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2572. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2573. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2574. <exception name="IOException" type="java.io.IOException"/>
  2575. <doc>
  2576. <![CDATA[The specification of this method matches that of
  2577. {@link FileContext#mkdir(Path, FsPermission, boolean)} except that the Path
  2578. f must be fully qualified and the permission is absolute (i.e.
  2579. umask has been applied).]]>
  2580. </doc>
  2581. </method>
  2582. <method name="delete" return="boolean"
  2583. abstract="true" native="false" synchronized="false"
  2584. static="false" final="false" visibility="public"
  2585. deprecated="not deprecated">
  2586. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2587. <param name="recursive" type="boolean"/>
  2588. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2589. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2590. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2591. <exception name="IOException" type="java.io.IOException"/>
  2592. <doc>
  2593. <![CDATA[The specification of this method matches that of
  2594. {@link FileContext#delete(Path, boolean)} except that Path f must be for
  2595. this file system.]]>
  2596. </doc>
  2597. </method>
  2598. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2599. abstract="false" native="false" synchronized="false"
  2600. static="false" final="false" visibility="public"
  2601. deprecated="not deprecated">
  2602. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2603. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2604. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2605. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2606. <exception name="IOException" type="java.io.IOException"/>
  2607. <doc>
  2608. <![CDATA[The specification of this method matches that of
  2609. {@link FileContext#open(Path)} except that Path f must be for this
  2610. file system.]]>
  2611. </doc>
  2612. </method>
  2613. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2614. abstract="true" native="false" synchronized="false"
  2615. static="false" final="false" visibility="public"
  2616. deprecated="not deprecated">
  2617. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2618. <param name="bufferSize" type="int"/>
  2619. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2620. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2621. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2622. <exception name="IOException" type="java.io.IOException"/>
  2623. <doc>
  2624. <![CDATA[The specification of this method matches that of
  2625. {@link FileContext#open(Path, int)} except that Path f must be for this
  2626. file system.]]>
  2627. </doc>
  2628. </method>
  2629. <method name="truncate" return="boolean"
  2630. abstract="false" native="false" synchronized="false"
  2631. static="false" final="false" visibility="public"
  2632. deprecated="not deprecated">
  2633. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2634. <param name="newLength" type="long"/>
  2635. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2636. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2637. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2638. <exception name="IOException" type="java.io.IOException"/>
  2639. <doc>
  2640. <![CDATA[The specification of this method matches that of
  2641. {@link FileContext#truncate(Path, long)} except that Path f must be for
  2642. this file system.]]>
  2643. </doc>
  2644. </method>
  2645. <method name="setReplication" return="boolean"
  2646. abstract="true" native="false" synchronized="false"
  2647. static="false" final="false" visibility="public"
  2648. deprecated="not deprecated">
  2649. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2650. <param name="replication" type="short"/>
  2651. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2652. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2653. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2654. <exception name="IOException" type="java.io.IOException"/>
  2655. <doc>
  2656. <![CDATA[The specification of this method matches that of
  2657. {@link FileContext#setReplication(Path, short)} except that Path f must be
  2658. for this file system.]]>
  2659. </doc>
  2660. </method>
  2661. <method name="rename"
  2662. abstract="false" native="false" synchronized="false"
  2663. static="false" final="true" visibility="public"
  2664. deprecated="not deprecated">
  2665. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2666. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2667. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  2668. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2669. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2670. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2671. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2672. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2673. <exception name="IOException" type="java.io.IOException"/>
  2674. <doc>
  2675. <![CDATA[The specification of this method matches that of
  2676. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2677. f must be for this file system.]]>
  2678. </doc>
  2679. </method>
  2680. <method name="renameInternal"
  2681. abstract="true" native="false" synchronized="false"
  2682. static="false" final="false" visibility="public"
  2683. deprecated="not deprecated">
  2684. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2685. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2686. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2687. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2688. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2689. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2690. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2691. <exception name="IOException" type="java.io.IOException"/>
  2692. <doc>
  2693. <![CDATA[The specification of this method matches that of
  2694. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2695. f must be for this file system and NO OVERWRITE is performed.
  2696. File systems that do not have a built in overwrite need implement only this
  2697. method and can take advantage of the default impl of the other
  2698. {@link #renameInternal(Path, Path, boolean)}]]>
  2699. </doc>
  2700. </method>
  2701. <method name="renameInternal"
  2702. abstract="false" native="false" synchronized="false"
  2703. static="false" final="false" visibility="public"
  2704. deprecated="not deprecated">
  2705. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2706. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2707. <param name="overwrite" type="boolean"/>
  2708. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2709. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2710. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2711. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2712. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2713. <exception name="IOException" type="java.io.IOException"/>
  2714. <doc>
  2715. <![CDATA[The specification of this method matches that of
  2716. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2717. f must be for this file system.]]>
  2718. </doc>
  2719. </method>
  2720. <method name="supportsSymlinks" return="boolean"
  2721. abstract="false" native="false" synchronized="false"
  2722. static="false" final="false" visibility="public"
  2723. deprecated="not deprecated">
  2724. <doc>
  2725. <![CDATA[Returns true if the file system supports symlinks, false otherwise.
  2726. @return true if filesystem supports symlinks]]>
  2727. </doc>
  2728. </method>
  2729. <method name="createSymlink"
  2730. abstract="false" native="false" synchronized="false"
  2731. static="false" final="false" visibility="public"
  2732. deprecated="not deprecated">
  2733. <param name="target" type="org.apache.hadoop.fs.Path"/>
  2734. <param name="link" type="org.apache.hadoop.fs.Path"/>
  2735. <param name="createParent" type="boolean"/>
  2736. <exception name="IOException" type="java.io.IOException"/>
  2737. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2738. <doc>
  2739. <![CDATA[The specification of this method matches that of
  2740. {@link FileContext#createSymlink(Path, Path, boolean)};]]>
  2741. </doc>
  2742. </method>
  2743. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  2744. abstract="false" native="false" synchronized="false"
  2745. static="false" final="false" visibility="public"
  2746. deprecated="not deprecated">
  2747. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2748. <exception name="IOException" type="java.io.IOException"/>
  2749. <doc>
  2750. <![CDATA[Partially resolves the path. This is used during symlink resolution in
  2751. {@link FSLinkResolver}, and differs from the similarly named method
  2752. {@link FileContext#getLinkTarget(Path)}.
  2753. @throws IOException subclass implementations may throw IOException]]>
  2754. </doc>
  2755. </method>
  2756. <method name="setPermission"
  2757. abstract="true" native="false" synchronized="false"
  2758. static="false" final="false" visibility="public"
  2759. deprecated="not deprecated">
  2760. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2761. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2762. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2763. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2764. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2765. <exception name="IOException" type="java.io.IOException"/>
  2766. <doc>
  2767. <![CDATA[The specification of this method matches that of
  2768. {@link FileContext#setPermission(Path, FsPermission)} except that Path f
  2769. must be for this file system.]]>
  2770. </doc>
  2771. </method>
  2772. <method name="setOwner"
  2773. abstract="true" native="false" synchronized="false"
  2774. static="false" final="false" visibility="public"
  2775. deprecated="not deprecated">
  2776. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2777. <param name="username" type="java.lang.String"/>
  2778. <param name="groupname" type="java.lang.String"/>
  2779. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2780. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2781. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2782. <exception name="IOException" type="java.io.IOException"/>
  2783. <doc>
  2784. <![CDATA[The specification of this method matches that of
  2785. {@link FileContext#setOwner(Path, String, String)} except that Path f must
  2786. be for this file system.]]>
  2787. </doc>
  2788. </method>
  2789. <method name="setTimes"
  2790. abstract="true" native="false" synchronized="false"
  2791. static="false" final="false" visibility="public"
  2792. deprecated="not deprecated">
  2793. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2794. <param name="mtime" type="long"/>
  2795. <param name="atime" type="long"/>
  2796. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2797. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2798. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2799. <exception name="IOException" type="java.io.IOException"/>
  2800. <doc>
  2801. <![CDATA[The specification of this method matches that of
  2802. {@link FileContext#setTimes(Path, long, long)} except that Path f must be
  2803. for this file system.]]>
  2804. </doc>
  2805. </method>
  2806. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  2807. abstract="true" native="false" synchronized="false"
  2808. static="false" final="false" visibility="public"
  2809. deprecated="not deprecated">
  2810. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2811. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2812. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2813. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2814. <exception name="IOException" type="java.io.IOException"/>
  2815. <doc>
  2816. <![CDATA[The specification of this method matches that of
  2817. {@link FileContext#getFileChecksum(Path)} except that Path f must be for
  2818. this file system.]]>
  2819. </doc>
  2820. </method>
  2821. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  2822. abstract="true" native="false" synchronized="false"
  2823. static="false" final="false" visibility="public"
  2824. deprecated="not deprecated">
  2825. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2826. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2827. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2828. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2829. <exception name="IOException" type="java.io.IOException"/>
  2830. <doc>
  2831. <![CDATA[The specification of this method matches that of
  2832. {@link FileContext#getFileStatus(Path)}
  2833. except that an UnresolvedLinkException may be thrown if a symlink is
  2834. encountered in the path.]]>
  2835. </doc>
  2836. </method>
  2837. <method name="msync"
  2838. abstract="false" native="false" synchronized="false"
  2839. static="false" final="false" visibility="public"
  2840. deprecated="not deprecated">
  2841. <exception name="IOException" type="java.io.IOException"/>
  2842. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  2843. <doc>
  2844. <![CDATA[Synchronize client metadata state.
  2845. <p>
  2846. In some FileSystem implementations such as HDFS metadata
  2847. synchronization is essential to guarantee consistency of read requests
  2848. particularly in HA setting.
  2849. @throws IOException
  2850. @throws UnsupportedOperationException]]>
  2851. </doc>
  2852. </method>
  2853. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  2854. abstract="false" native="false" synchronized="false"
  2855. static="false" final="false" visibility="public"
  2856. deprecated="not deprecated">
  2857. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2858. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2859. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2860. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2861. <exception name="IOException" type="java.io.IOException"/>
  2862. <doc>
  2863. <![CDATA[The specification of this method matches that of
  2864. {@link FileContext#getFileLinkStatus(Path)}
  2865. except that an UnresolvedLinkException may be thrown if a symlink is
  2866. encountered in the path leading up to the final path component.
  2867. If the file system does not support symlinks then the behavior is
  2868. equivalent to {@link AbstractFileSystem#getFileStatus(Path)}.]]>
  2869. </doc>
  2870. </method>
  2871. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2872. abstract="true" 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. <param name="start" type="long"/>
  2877. <param name="len" type="long"/>
  2878. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2879. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2880. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2881. <exception name="IOException" type="java.io.IOException"/>
  2882. <doc>
  2883. <![CDATA[The specification of this method matches that of
  2884. {@link FileContext#getFileBlockLocations(Path, long, long)} except that
  2885. Path f must be for this file system.]]>
  2886. </doc>
  2887. </method>
  2888. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2889. abstract="false" native="false" synchronized="false"
  2890. static="false" final="false" visibility="public"
  2891. deprecated="not deprecated">
  2892. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2893. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2894. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2895. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2896. <exception name="IOException" type="java.io.IOException"/>
  2897. <doc>
  2898. <![CDATA[The specification of this method matches that of
  2899. {@link FileContext#getFsStatus(Path)} except that Path f must be for this
  2900. file system.]]>
  2901. </doc>
  2902. </method>
  2903. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2904. abstract="true" native="false" synchronized="false"
  2905. static="false" final="false" visibility="public"
  2906. deprecated="not deprecated">
  2907. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2908. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2909. <exception name="IOException" type="java.io.IOException"/>
  2910. <doc>
  2911. <![CDATA[The specification of this method matches that of
  2912. {@link FileContext#getFsStatus(Path)}.]]>
  2913. </doc>
  2914. </method>
  2915. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  2916. abstract="false" native="false" synchronized="false"
  2917. static="false" final="false" visibility="public"
  2918. deprecated="not deprecated">
  2919. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2920. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2921. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2922. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2923. <exception name="IOException" type="java.io.IOException"/>
  2924. <doc>
  2925. <![CDATA[The specification of this method matches that of
  2926. {@link FileContext#listStatus(Path)} except that Path f must be for this
  2927. file system.]]>
  2928. </doc>
  2929. </method>
  2930. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  2931. abstract="false" native="false" synchronized="false"
  2932. static="false" final="false" visibility="public"
  2933. deprecated="not deprecated">
  2934. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2935. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2936. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2937. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2938. <exception name="IOException" type="java.io.IOException"/>
  2939. <doc>
  2940. <![CDATA[The specification of this method matches that of
  2941. {@link FileContext#listLocatedStatus(Path)} except that Path f
  2942. must be for this file system.
  2943. In HDFS implementation, the BlockLocation of returned LocatedFileStatus
  2944. will have different formats for replicated and erasure coded file. Please
  2945. refer to {@link FileSystem#getFileBlockLocations(FileStatus, long, long)}
  2946. for more details.]]>
  2947. </doc>
  2948. </method>
  2949. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2950. abstract="true" native="false" synchronized="false"
  2951. static="false" final="false" visibility="public"
  2952. deprecated="not deprecated">
  2953. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2954. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2955. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2956. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2957. <exception name="IOException" type="java.io.IOException"/>
  2958. <doc>
  2959. <![CDATA[The specification of this method matches that of
  2960. {@link FileContext.Util#listStatus(Path)} except that Path f must be
  2961. for this file system.]]>
  2962. </doc>
  2963. </method>
  2964. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  2965. abstract="false" native="false" synchronized="false"
  2966. static="false" final="false" visibility="public"
  2967. deprecated="not deprecated">
  2968. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2969. <exception name="IOException" type="java.io.IOException"/>
  2970. <doc>
  2971. <![CDATA[@return an iterator over the corrupt files under the given path
  2972. (may contain duplicates if a file has more than one corrupt block)
  2973. @throws IOException]]>
  2974. </doc>
  2975. </method>
  2976. <method name="setVerifyChecksum"
  2977. abstract="true" native="false" synchronized="false"
  2978. static="false" final="false" visibility="public"
  2979. deprecated="not deprecated">
  2980. <param name="verifyChecksum" type="boolean"/>
  2981. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2982. <exception name="IOException" type="java.io.IOException"/>
  2983. <doc>
  2984. <![CDATA[The specification of this method matches that of
  2985. {@link FileContext#setVerifyChecksum(boolean, Path)} except that Path f
  2986. must be for this file system.]]>
  2987. </doc>
  2988. </method>
  2989. <method name="getCanonicalServiceName" return="java.lang.String"
  2990. abstract="false" native="false" synchronized="false"
  2991. static="false" final="false" visibility="public"
  2992. deprecated="not deprecated">
  2993. <doc>
  2994. <![CDATA[Get a canonical name for this file system.
  2995. @return a URI string that uniquely identifies this file system]]>
  2996. </doc>
  2997. </method>
  2998. <method name="modifyAclEntries"
  2999. abstract="false" native="false" synchronized="false"
  3000. static="false" final="false" visibility="public"
  3001. deprecated="not deprecated">
  3002. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3003. <param name="aclSpec" type="java.util.List"/>
  3004. <exception name="IOException" type="java.io.IOException"/>
  3005. <doc>
  3006. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  3007. entries or modify the permissions on existing ACL entries. All existing
  3008. ACL entries that are not specified in this call are retained without
  3009. changes. (Modifications are merged into the current ACL.)
  3010. @param path Path to modify
  3011. @param aclSpec List<AclEntry> describing modifications
  3012. @throws IOException if an ACL could not be modified]]>
  3013. </doc>
  3014. </method>
  3015. <method name="removeAclEntries"
  3016. abstract="false" native="false" synchronized="false"
  3017. static="false" final="false" visibility="public"
  3018. deprecated="not deprecated">
  3019. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3020. <param name="aclSpec" type="java.util.List"/>
  3021. <exception name="IOException" type="java.io.IOException"/>
  3022. <doc>
  3023. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  3024. retained.
  3025. @param path Path to modify
  3026. @param aclSpec List<AclEntry> describing entries to remove
  3027. @throws IOException if an ACL could not be modified]]>
  3028. </doc>
  3029. </method>
  3030. <method name="removeDefaultAcl"
  3031. abstract="false" native="false" synchronized="false"
  3032. static="false" final="false" visibility="public"
  3033. deprecated="not deprecated">
  3034. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3035. <exception name="IOException" type="java.io.IOException"/>
  3036. <doc>
  3037. <![CDATA[Removes all default ACL entries from files and directories.
  3038. @param path Path to modify
  3039. @throws IOException if an ACL could not be modified]]>
  3040. </doc>
  3041. </method>
  3042. <method name="removeAcl"
  3043. abstract="false" native="false" synchronized="false"
  3044. static="false" final="false" visibility="public"
  3045. deprecated="not deprecated">
  3046. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3047. <exception name="IOException" type="java.io.IOException"/>
  3048. <doc>
  3049. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  3050. for user, group, and others are retained for compatibility with permission
  3051. bits.
  3052. @param path Path to modify
  3053. @throws IOException if an ACL could not be removed]]>
  3054. </doc>
  3055. </method>
  3056. <method name="setAcl"
  3057. abstract="false" native="false" synchronized="false"
  3058. static="false" final="false" visibility="public"
  3059. deprecated="not deprecated">
  3060. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3061. <param name="aclSpec" type="java.util.List"/>
  3062. <exception name="IOException" type="java.io.IOException"/>
  3063. <doc>
  3064. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  3065. entries.
  3066. @param path Path to modify
  3067. @param aclSpec List<AclEntry> describing modifications, must include entries
  3068. for user, group, and others for compatibility with permission bits.
  3069. @throws IOException if an ACL could not be modified]]>
  3070. </doc>
  3071. </method>
  3072. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  3073. abstract="false" native="false" synchronized="false"
  3074. static="false" final="false" visibility="public"
  3075. deprecated="not deprecated">
  3076. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3077. <exception name="IOException" type="java.io.IOException"/>
  3078. <doc>
  3079. <![CDATA[Gets the ACLs of files and directories.
  3080. @param path Path to get
  3081. @return RemoteIterator<AclStatus> which returns each AclStatus
  3082. @throws IOException if an ACL could not be read]]>
  3083. </doc>
  3084. </method>
  3085. <method name="setXAttr"
  3086. abstract="false" native="false" synchronized="false"
  3087. static="false" final="false" visibility="public"
  3088. deprecated="not deprecated">
  3089. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3090. <param name="name" type="java.lang.String"/>
  3091. <param name="value" type="byte[]"/>
  3092. <exception name="IOException" type="java.io.IOException"/>
  3093. <doc>
  3094. <![CDATA[Set an xattr of a file or directory.
  3095. The name must be prefixed with the namespace followed by ".". For example,
  3096. "user.attr".
  3097. <p/>
  3098. Refer to the HDFS extended attributes user documentation for details.
  3099. @param path Path to modify
  3100. @param name xattr name.
  3101. @param value xattr value.
  3102. @throws IOException]]>
  3103. </doc>
  3104. </method>
  3105. <method name="setXAttr"
  3106. abstract="false" native="false" synchronized="false"
  3107. static="false" final="false" visibility="public"
  3108. deprecated="not deprecated">
  3109. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3110. <param name="name" type="java.lang.String"/>
  3111. <param name="value" type="byte[]"/>
  3112. <param name="flag" type="java.util.EnumSet"/>
  3113. <exception name="IOException" type="java.io.IOException"/>
  3114. <doc>
  3115. <![CDATA[Set an xattr of a file or directory.
  3116. The name must be prefixed with the namespace followed by ".". For example,
  3117. "user.attr".
  3118. <p/>
  3119. Refer to the HDFS extended attributes user documentation for details.
  3120. @param path Path to modify
  3121. @param name xattr name.
  3122. @param value xattr value.
  3123. @param flag xattr set flag
  3124. @throws IOException]]>
  3125. </doc>
  3126. </method>
  3127. <method name="getXAttr" return="byte[]"
  3128. abstract="false" native="false" synchronized="false"
  3129. static="false" final="false" visibility="public"
  3130. deprecated="not deprecated">
  3131. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3132. <param name="name" type="java.lang.String"/>
  3133. <exception name="IOException" type="java.io.IOException"/>
  3134. <doc>
  3135. <![CDATA[Get an xattr for a file or directory.
  3136. The name must be prefixed with the namespace followed by ".". For example,
  3137. "user.attr".
  3138. <p/>
  3139. Refer to the HDFS extended attributes user documentation for details.
  3140. @param path Path to get extended attribute
  3141. @param name xattr name.
  3142. @return byte[] xattr value.
  3143. @throws IOException]]>
  3144. </doc>
  3145. </method>
  3146. <method name="getXAttrs" return="java.util.Map"
  3147. abstract="false" native="false" synchronized="false"
  3148. static="false" final="false" visibility="public"
  3149. deprecated="not deprecated">
  3150. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3151. <exception name="IOException" type="java.io.IOException"/>
  3152. <doc>
  3153. <![CDATA[Get all of the xattrs for a file or directory.
  3154. Only those xattrs for which the logged-in user has permissions to view
  3155. are returned.
  3156. <p/>
  3157. Refer to the HDFS extended attributes user documentation for details.
  3158. @param path Path to get extended attributes
  3159. @return Map<String, byte[]> describing the XAttrs of the file or directory
  3160. @throws IOException]]>
  3161. </doc>
  3162. </method>
  3163. <method name="getXAttrs" return="java.util.Map"
  3164. abstract="false" native="false" synchronized="false"
  3165. static="false" final="false" visibility="public"
  3166. deprecated="not deprecated">
  3167. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3168. <param name="names" type="java.util.List"/>
  3169. <exception name="IOException" type="java.io.IOException"/>
  3170. <doc>
  3171. <![CDATA[Get all of the xattrs for a file or directory.
  3172. Only those xattrs for which the logged-in user has permissions to view
  3173. are returned.
  3174. <p/>
  3175. Refer to the HDFS extended attributes user documentation for details.
  3176. @param path Path to get extended attributes
  3177. @param names XAttr names.
  3178. @return Map<String, byte[]> describing the XAttrs of the file or directory
  3179. @throws IOException]]>
  3180. </doc>
  3181. </method>
  3182. <method name="listXAttrs" return="java.util.List"
  3183. abstract="false" native="false" synchronized="false"
  3184. static="false" final="false" visibility="public"
  3185. deprecated="not deprecated">
  3186. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3187. <exception name="IOException" type="java.io.IOException"/>
  3188. <doc>
  3189. <![CDATA[Get all of the xattr names for a file or directory.
  3190. Only the xattr names for which the logged-in user has permissions to view
  3191. are returned.
  3192. <p/>
  3193. Refer to the HDFS extended attributes user documentation for details.
  3194. @param path Path to get extended attributes
  3195. @return Map<String, byte[]> describing the XAttrs of the file or directory
  3196. @throws IOException]]>
  3197. </doc>
  3198. </method>
  3199. <method name="removeXAttr"
  3200. abstract="false" native="false" synchronized="false"
  3201. static="false" final="false" visibility="public"
  3202. deprecated="not deprecated">
  3203. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3204. <param name="name" type="java.lang.String"/>
  3205. <exception name="IOException" type="java.io.IOException"/>
  3206. <doc>
  3207. <![CDATA[Remove an xattr of a file or directory.
  3208. The name must be prefixed with the namespace followed by ".". For example,
  3209. "user.attr".
  3210. <p/>
  3211. Refer to the HDFS extended attributes user documentation for details.
  3212. @param path Path to remove extended attribute
  3213. @param name xattr name
  3214. @throws IOException]]>
  3215. </doc>
  3216. </method>
  3217. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  3218. abstract="false" native="false" synchronized="false"
  3219. static="false" final="false" visibility="public"
  3220. deprecated="not deprecated">
  3221. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3222. <param name="snapshotName" type="java.lang.String"/>
  3223. <exception name="IOException" type="java.io.IOException"/>
  3224. <doc>
  3225. <![CDATA[The specification of this method matches that of
  3226. {@link FileContext#createSnapshot(Path, String)}.]]>
  3227. </doc>
  3228. </method>
  3229. <method name="renameSnapshot"
  3230. abstract="false" native="false" synchronized="false"
  3231. static="false" final="false" visibility="public"
  3232. deprecated="not deprecated">
  3233. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3234. <param name="snapshotOldName" type="java.lang.String"/>
  3235. <param name="snapshotNewName" type="java.lang.String"/>
  3236. <exception name="IOException" type="java.io.IOException"/>
  3237. <doc>
  3238. <![CDATA[The specification of this method matches that of
  3239. {@link FileContext#renameSnapshot(Path, String, String)}.]]>
  3240. </doc>
  3241. </method>
  3242. <method name="deleteSnapshot"
  3243. abstract="false" native="false" synchronized="false"
  3244. static="false" final="false" visibility="public"
  3245. deprecated="not deprecated">
  3246. <param name="snapshotDir" type="org.apache.hadoop.fs.Path"/>
  3247. <param name="snapshotName" type="java.lang.String"/>
  3248. <exception name="IOException" type="java.io.IOException"/>
  3249. <doc>
  3250. <![CDATA[The specification of this method matches that of
  3251. {@link FileContext#deleteSnapshot(Path, String)}.]]>
  3252. </doc>
  3253. </method>
  3254. <method name="satisfyStoragePolicy"
  3255. abstract="false" native="false" synchronized="false"
  3256. static="false" final="false" visibility="public"
  3257. deprecated="not deprecated">
  3258. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3259. <exception name="IOException" type="java.io.IOException"/>
  3260. <doc>
  3261. <![CDATA[Set the source path to satisfy storage policy.
  3262. @param path The source path referring to either a directory or a file.
  3263. @throws IOException]]>
  3264. </doc>
  3265. </method>
  3266. <method name="setStoragePolicy"
  3267. abstract="false" native="false" synchronized="false"
  3268. static="false" final="false" visibility="public"
  3269. deprecated="not deprecated">
  3270. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3271. <param name="policyName" type="java.lang.String"/>
  3272. <exception name="IOException" type="java.io.IOException"/>
  3273. <doc>
  3274. <![CDATA[Set the storage policy for a given file or directory.
  3275. @param path file or directory path.
  3276. @param policyName the name of the target storage policy. The list
  3277. of supported Storage policies can be retrieved
  3278. via {@link #getAllStoragePolicies}.]]>
  3279. </doc>
  3280. </method>
  3281. <method name="unsetStoragePolicy"
  3282. abstract="false" native="false" synchronized="false"
  3283. static="false" final="false" visibility="public"
  3284. deprecated="not deprecated">
  3285. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3286. <exception name="IOException" type="java.io.IOException"/>
  3287. <doc>
  3288. <![CDATA[Unset the storage policy set for a given file or directory.
  3289. @param src file or directory path.
  3290. @throws IOException]]>
  3291. </doc>
  3292. </method>
  3293. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  3294. abstract="false" native="false" synchronized="false"
  3295. static="false" final="false" visibility="public"
  3296. deprecated="not deprecated">
  3297. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3298. <exception name="IOException" type="java.io.IOException"/>
  3299. <doc>
  3300. <![CDATA[Retrieve the storage policy for a given file or directory.
  3301. @param src file or directory path.
  3302. @return storage policy for give file.
  3303. @throws IOException]]>
  3304. </doc>
  3305. </method>
  3306. <method name="getAllStoragePolicies" return="java.util.Collection"
  3307. abstract="false" native="false" synchronized="false"
  3308. static="false" final="false" visibility="public"
  3309. deprecated="not deprecated">
  3310. <exception name="IOException" type="java.io.IOException"/>
  3311. <doc>
  3312. <![CDATA[Retrieve all the storage policies supported by this file system.
  3313. @return all storage policies supported by this filesystem.
  3314. @throws IOException]]>
  3315. </doc>
  3316. </method>
  3317. <method name="hashCode" return="int"
  3318. abstract="false" native="false" synchronized="false"
  3319. static="false" final="false" visibility="public"
  3320. deprecated="not deprecated">
  3321. </method>
  3322. <method name="equals" return="boolean"
  3323. abstract="false" native="false" synchronized="false"
  3324. static="false" final="false" visibility="public"
  3325. deprecated="not deprecated">
  3326. <param name="other" type="java.lang.Object"/>
  3327. </method>
  3328. <method name="hasPathCapability" return="boolean"
  3329. abstract="false" native="false" synchronized="false"
  3330. static="false" final="false" visibility="public"
  3331. deprecated="not deprecated">
  3332. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3333. <param name="capability" type="java.lang.String"/>
  3334. <exception name="IOException" type="java.io.IOException"/>
  3335. </method>
  3336. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3337. transient="false" volatile="false"
  3338. static="false" final="false" visibility="protected"
  3339. deprecated="not deprecated">
  3340. <doc>
  3341. <![CDATA[The statistics for this file system.]]>
  3342. </doc>
  3343. </field>
  3344. <doc>
  3345. <![CDATA[This class provides an interface for implementors of a Hadoop file system
  3346. (analogous to the VFS of Unix). Applications do not access this class;
  3347. instead they access files across all file systems using {@link FileContext}.
  3348. Pathnames passed to AbstractFileSystem can be fully qualified URI that
  3349. matches the "this" file system (ie same scheme and authority)
  3350. or a Slash-relative name that is assumed to be relative
  3351. to the root of the "this" file system .]]>
  3352. </doc>
  3353. </class>
  3354. <!-- end class org.apache.hadoop.fs.AbstractFileSystem -->
  3355. <!-- start class org.apache.hadoop.fs.AvroFSInput -->
  3356. <class name="AvroFSInput" extends="java.lang.Object"
  3357. abstract="false"
  3358. static="false" final="false" visibility="public"
  3359. deprecated="not deprecated">
  3360. <implements name="java.io.Closeable"/>
  3361. <implements name="org.apache.avro.file.SeekableInput"/>
  3362. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FSDataInputStream, long"
  3363. static="false" final="false" visibility="public"
  3364. deprecated="not deprecated">
  3365. <doc>
  3366. <![CDATA[Construct given an {@link FSDataInputStream} and its length.]]>
  3367. </doc>
  3368. </constructor>
  3369. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FileContext, org.apache.hadoop.fs.Path"
  3370. static="false" final="false" visibility="public"
  3371. deprecated="not deprecated">
  3372. <exception name="IOException" type="java.io.IOException"/>
  3373. <doc>
  3374. <![CDATA[Construct given a {@link FileContext} and a {@link Path}.]]>
  3375. </doc>
  3376. </constructor>
  3377. <method name="length" return="long"
  3378. abstract="false" native="false" synchronized="false"
  3379. static="false" final="false" visibility="public"
  3380. deprecated="not deprecated">
  3381. </method>
  3382. <method name="read" return="int"
  3383. abstract="false" native="false" synchronized="false"
  3384. static="false" final="false" visibility="public"
  3385. deprecated="not deprecated">
  3386. <param name="b" type="byte[]"/>
  3387. <param name="off" type="int"/>
  3388. <param name="len" type="int"/>
  3389. <exception name="IOException" type="java.io.IOException"/>
  3390. </method>
  3391. <method name="seek"
  3392. abstract="false" native="false" synchronized="false"
  3393. static="false" final="false" visibility="public"
  3394. deprecated="not deprecated">
  3395. <param name="p" type="long"/>
  3396. <exception name="IOException" type="java.io.IOException"/>
  3397. </method>
  3398. <method name="tell" return="long"
  3399. abstract="false" native="false" synchronized="false"
  3400. static="false" final="false" visibility="public"
  3401. deprecated="not deprecated">
  3402. <exception name="IOException" type="java.io.IOException"/>
  3403. </method>
  3404. <method name="close"
  3405. abstract="false" native="false" synchronized="false"
  3406. static="false" final="false" visibility="public"
  3407. deprecated="not deprecated">
  3408. <exception name="IOException" type="java.io.IOException"/>
  3409. </method>
  3410. <doc>
  3411. <![CDATA[Adapts an {@link FSDataInputStream} to Avro's SeekableInput interface.]]>
  3412. </doc>
  3413. </class>
  3414. <!-- end class org.apache.hadoop.fs.AvroFSInput -->
  3415. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  3416. <class name="BlockLocation" extends="java.lang.Object"
  3417. abstract="false"
  3418. static="false" final="false" visibility="public"
  3419. deprecated="not deprecated">
  3420. <implements name="java.io.Serializable"/>
  3421. <constructor name="BlockLocation"
  3422. static="false" final="false" visibility="public"
  3423. deprecated="not deprecated">
  3424. <doc>
  3425. <![CDATA[Default Constructor]]>
  3426. </doc>
  3427. </constructor>
  3428. <constructor name="BlockLocation" type="org.apache.hadoop.fs.BlockLocation"
  3429. static="false" final="false" visibility="public"
  3430. deprecated="not deprecated">
  3431. <doc>
  3432. <![CDATA[Copy constructor]]>
  3433. </doc>
  3434. </constructor>
  3435. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  3436. static="false" final="false" visibility="public"
  3437. deprecated="not deprecated">
  3438. <doc>
  3439. <![CDATA[Constructor with host, name, offset and length]]>
  3440. </doc>
  3441. </constructor>
  3442. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long, boolean"
  3443. static="false" final="false" visibility="public"
  3444. deprecated="not deprecated">
  3445. <doc>
  3446. <![CDATA[Constructor with host, name, offset, length and corrupt flag]]>
  3447. </doc>
  3448. </constructor>
  3449. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  3450. static="false" final="false" visibility="public"
  3451. deprecated="not deprecated">
  3452. <doc>
  3453. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  3454. </doc>
  3455. </constructor>
  3456. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3457. static="false" final="false" visibility="public"
  3458. deprecated="not deprecated">
  3459. <doc>
  3460. <![CDATA[Constructor with host, name, network topology, offset, length
  3461. and corrupt flag]]>
  3462. </doc>
  3463. </constructor>
  3464. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3465. static="false" final="false" visibility="public"
  3466. deprecated="not deprecated">
  3467. </constructor>
  3468. <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"
  3469. static="false" final="false" visibility="public"
  3470. deprecated="not deprecated">
  3471. </constructor>
  3472. <method name="getHosts" return="java.lang.String[]"
  3473. abstract="false" native="false" synchronized="false"
  3474. static="false" final="false" visibility="public"
  3475. deprecated="not deprecated">
  3476. <exception name="IOException" type="java.io.IOException"/>
  3477. <doc>
  3478. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  3479. </doc>
  3480. </method>
  3481. <method name="getCachedHosts" return="java.lang.String[]"
  3482. abstract="false" native="false" synchronized="false"
  3483. static="false" final="false" visibility="public"
  3484. deprecated="not deprecated">
  3485. <doc>
  3486. <![CDATA[Get the list of hosts (hostname) hosting a cached replica of the block]]>
  3487. </doc>
  3488. </method>
  3489. <method name="getNames" return="java.lang.String[]"
  3490. abstract="false" native="false" synchronized="false"
  3491. static="false" final="false" visibility="public"
  3492. deprecated="not deprecated">
  3493. <exception name="IOException" type="java.io.IOException"/>
  3494. <doc>
  3495. <![CDATA[Get the list of names (IP:xferPort) hosting this block]]>
  3496. </doc>
  3497. </method>
  3498. <method name="getTopologyPaths" return="java.lang.String[]"
  3499. abstract="false" native="false" synchronized="false"
  3500. static="false" final="false" visibility="public"
  3501. deprecated="not deprecated">
  3502. <exception name="IOException" type="java.io.IOException"/>
  3503. <doc>
  3504. <![CDATA[Get the list of network topology paths for each of the hosts.
  3505. The last component of the path is the "name" (IP:xferPort).]]>
  3506. </doc>
  3507. </method>
  3508. <method name="getStorageIds" return="java.lang.String[]"
  3509. abstract="false" native="false" synchronized="false"
  3510. static="false" final="false" visibility="public"
  3511. deprecated="not deprecated">
  3512. <doc>
  3513. <![CDATA[Get the storageID of each replica of the block.]]>
  3514. </doc>
  3515. </method>
  3516. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3517. abstract="false" native="false" synchronized="false"
  3518. static="false" final="false" visibility="public"
  3519. deprecated="not deprecated">
  3520. <doc>
  3521. <![CDATA[Get the storage type of each replica of the block.]]>
  3522. </doc>
  3523. </method>
  3524. <method name="getOffset" return="long"
  3525. abstract="false" native="false" synchronized="false"
  3526. static="false" final="false" visibility="public"
  3527. deprecated="not deprecated">
  3528. <doc>
  3529. <![CDATA[Get the start offset of file associated with this block]]>
  3530. </doc>
  3531. </method>
  3532. <method name="getLength" return="long"
  3533. abstract="false" native="false" synchronized="false"
  3534. static="false" final="false" visibility="public"
  3535. deprecated="not deprecated">
  3536. <doc>
  3537. <![CDATA[Get the length of the block]]>
  3538. </doc>
  3539. </method>
  3540. <method name="isCorrupt" return="boolean"
  3541. abstract="false" native="false" synchronized="false"
  3542. static="false" final="false" visibility="public"
  3543. deprecated="not deprecated">
  3544. <doc>
  3545. <![CDATA[Get the corrupt flag.]]>
  3546. </doc>
  3547. </method>
  3548. <method name="setOffset"
  3549. abstract="false" native="false" synchronized="false"
  3550. static="false" final="false" visibility="public"
  3551. deprecated="not deprecated">
  3552. <param name="offset" type="long"/>
  3553. <doc>
  3554. <![CDATA[Set the start offset of file associated with this block]]>
  3555. </doc>
  3556. </method>
  3557. <method name="setLength"
  3558. abstract="false" native="false" synchronized="false"
  3559. static="false" final="false" visibility="public"
  3560. deprecated="not deprecated">
  3561. <param name="length" type="long"/>
  3562. <doc>
  3563. <![CDATA[Set the length of block]]>
  3564. </doc>
  3565. </method>
  3566. <method name="setCorrupt"
  3567. abstract="false" native="false" synchronized="false"
  3568. static="false" final="false" visibility="public"
  3569. deprecated="not deprecated">
  3570. <param name="corrupt" type="boolean"/>
  3571. <doc>
  3572. <![CDATA[Set the corrupt flag.]]>
  3573. </doc>
  3574. </method>
  3575. <method name="setHosts"
  3576. abstract="false" native="false" synchronized="false"
  3577. static="false" final="false" visibility="public"
  3578. deprecated="not deprecated">
  3579. <param name="hosts" type="java.lang.String[]"/>
  3580. <exception name="IOException" type="java.io.IOException"/>
  3581. <doc>
  3582. <![CDATA[Set the hosts hosting this block]]>
  3583. </doc>
  3584. </method>
  3585. <method name="setCachedHosts"
  3586. abstract="false" native="false" synchronized="false"
  3587. static="false" final="false" visibility="public"
  3588. deprecated="not deprecated">
  3589. <param name="cachedHosts" type="java.lang.String[]"/>
  3590. <doc>
  3591. <![CDATA[Set the hosts hosting a cached replica of this block]]>
  3592. </doc>
  3593. </method>
  3594. <method name="setNames"
  3595. abstract="false" native="false" synchronized="false"
  3596. static="false" final="false" visibility="public"
  3597. deprecated="not deprecated">
  3598. <param name="names" type="java.lang.String[]"/>
  3599. <exception name="IOException" type="java.io.IOException"/>
  3600. <doc>
  3601. <![CDATA[Set the names (host:port) hosting this block]]>
  3602. </doc>
  3603. </method>
  3604. <method name="setTopologyPaths"
  3605. abstract="false" native="false" synchronized="false"
  3606. static="false" final="false" visibility="public"
  3607. deprecated="not deprecated">
  3608. <param name="topologyPaths" type="java.lang.String[]"/>
  3609. <exception name="IOException" type="java.io.IOException"/>
  3610. <doc>
  3611. <![CDATA[Set the network topology paths of the hosts]]>
  3612. </doc>
  3613. </method>
  3614. <method name="setStorageIds"
  3615. abstract="false" native="false" synchronized="false"
  3616. static="false" final="false" visibility="public"
  3617. deprecated="not deprecated">
  3618. <param name="storageIds" type="java.lang.String[]"/>
  3619. </method>
  3620. <method name="setStorageTypes"
  3621. abstract="false" native="false" synchronized="false"
  3622. static="false" final="false" visibility="public"
  3623. deprecated="not deprecated">
  3624. <param name="storageTypes" type="org.apache.hadoop.fs.StorageType[]"/>
  3625. </method>
  3626. <method name="toString" return="java.lang.String"
  3627. abstract="false" native="false" synchronized="false"
  3628. static="false" final="false" visibility="public"
  3629. deprecated="not deprecated">
  3630. </method>
  3631. <doc>
  3632. <![CDATA[Represents the network location of a block, information about the hosts
  3633. that contain block replicas, and other block metadata (E.g. the file
  3634. offset associated with the block, length, whether it is corrupt, etc).
  3635. For a single BlockLocation, it will have different meanings for replicated
  3636. and erasure coded files.
  3637. If the file is 3-replicated, offset and length of a BlockLocation represent
  3638. the absolute value in the file and the hosts are the 3 datanodes that
  3639. holding the replicas. Here is an example:
  3640. <pre>
  3641. BlockLocation(offset: 0, length: BLOCK_SIZE,
  3642. hosts: {"host1:9866", "host2:9866, host3:9866"})
  3643. </pre>
  3644. And if the file is erasure-coded, each BlockLocation represents a logical
  3645. block groups. Value offset is the offset of a block group in the file and
  3646. value length is the total length of a block group. Hosts of a BlockLocation
  3647. are the datanodes that holding all the data blocks and parity blocks of a
  3648. block group.
  3649. Suppose we have a RS_3_2 coded file (3 data units and 2 parity units).
  3650. A BlockLocation example will be like:
  3651. <pre>
  3652. BlockLocation(offset: 0, length: 3 * BLOCK_SIZE, hosts: {"host1:9866",
  3653. "host2:9866","host3:9866","host4:9866","host5:9866"})
  3654. </pre>
  3655. Please refer to
  3656. {@link FileSystem#getFileBlockLocations(FileStatus, long, long)} or
  3657. {@link FileContext#getFileBlockLocations(Path, long, long)}
  3658. for more examples.]]>
  3659. </doc>
  3660. </class>
  3661. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  3662. <!-- start interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  3663. <interface name="BlockStoragePolicySpi" abstract="true"
  3664. static="false" final="false" visibility="public"
  3665. deprecated="not deprecated">
  3666. <method name="getName" return="java.lang.String"
  3667. abstract="true" native="false" synchronized="false"
  3668. static="false" final="false" visibility="public"
  3669. deprecated="not deprecated">
  3670. <doc>
  3671. <![CDATA[Return the name of the storage policy. Policies are uniquely
  3672. identified by name.
  3673. @return the name of the storage policy.]]>
  3674. </doc>
  3675. </method>
  3676. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3677. abstract="true" native="false" synchronized="false"
  3678. static="false" final="false" visibility="public"
  3679. deprecated="not deprecated">
  3680. <doc>
  3681. <![CDATA[Return the preferred storage types associated with this policy. These
  3682. storage types are used sequentially for successive block replicas.
  3683. @return preferred storage types used for placing block replicas.]]>
  3684. </doc>
  3685. </method>
  3686. <method name="getCreationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  3687. abstract="true" native="false" synchronized="false"
  3688. static="false" final="false" visibility="public"
  3689. deprecated="not deprecated">
  3690. <doc>
  3691. <![CDATA[Get the fallback storage types for creating new block replicas. Fallback
  3692. storage types are used if the preferred storage types are not available.
  3693. @return fallback storage types for new block replicas..]]>
  3694. </doc>
  3695. </method>
  3696. <method name="getReplicationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  3697. abstract="true" native="false" synchronized="false"
  3698. static="false" final="false" visibility="public"
  3699. deprecated="not deprecated">
  3700. <doc>
  3701. <![CDATA[Get the fallback storage types for replicating existing block replicas.
  3702. Fallback storage types are used if the preferred storage types are not
  3703. available.
  3704. @return fallback storage types for replicating existing block replicas.]]>
  3705. </doc>
  3706. </method>
  3707. <method name="isCopyOnCreateFile" return="boolean"
  3708. abstract="true" native="false" synchronized="false"
  3709. static="false" final="false" visibility="public"
  3710. deprecated="not deprecated">
  3711. <doc>
  3712. <![CDATA[Returns true if the policy is inherit-only and cannot be changed for
  3713. an existing file.
  3714. @return true if the policy is inherit-only.]]>
  3715. </doc>
  3716. </method>
  3717. <doc>
  3718. <![CDATA[A storage policy specifies the placement of block replicas on specific
  3719. storage types.]]>
  3720. </doc>
  3721. </interface>
  3722. <!-- end interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  3723. <!-- start interface org.apache.hadoop.fs.ByteBufferReadable -->
  3724. <interface name="ByteBufferReadable" abstract="true"
  3725. static="false" final="false" visibility="public"
  3726. deprecated="not deprecated">
  3727. <method name="read" return="int"
  3728. abstract="true" native="false" synchronized="false"
  3729. static="false" final="false" visibility="public"
  3730. deprecated="not deprecated">
  3731. <param name="buf" type="java.nio.ByteBuffer"/>
  3732. <exception name="IOException" type="java.io.IOException"/>
  3733. <doc>
  3734. <![CDATA[Reads up to buf.remaining() bytes into buf. Callers should use
  3735. buf.limit(..) to control the size of the desired read.
  3736. <p/>
  3737. After a successful call, buf.position() will be advanced by the number
  3738. of bytes read and buf.limit() should be unchanged.
  3739. <p/>
  3740. In the case of an exception, the values of buf.position() and buf.limit()
  3741. are undefined, and callers should be prepared to recover from this
  3742. eventuality.
  3743. <p/>
  3744. Many implementations will throw {@link UnsupportedOperationException}, so
  3745. callers that are not confident in support for this method from the
  3746. underlying filesystem should be prepared to handle that exception.
  3747. <p/>
  3748. Implementations should treat 0-length requests as legitimate, and must not
  3749. signal an error upon their receipt.
  3750. @param buf
  3751. the ByteBuffer to receive the results of the read operation.
  3752. @return the number of bytes read, possibly zero, or -1 if
  3753. reach end-of-stream
  3754. @throws IOException
  3755. if there is some error performing the read]]>
  3756. </doc>
  3757. </method>
  3758. <doc>
  3759. <![CDATA[Implementers of this interface provide a read API that writes to a
  3760. ByteBuffer, not a byte[].]]>
  3761. </doc>
  3762. </interface>
  3763. <!-- end interface org.apache.hadoop.fs.ByteBufferReadable -->
  3764. <!-- start interface org.apache.hadoop.fs.CanSetDropBehind -->
  3765. <interface name="CanSetDropBehind" abstract="true"
  3766. static="false" final="false" visibility="public"
  3767. deprecated="not deprecated">
  3768. <method name="setDropBehind"
  3769. abstract="true" native="false" synchronized="false"
  3770. static="false" final="false" visibility="public"
  3771. deprecated="not deprecated">
  3772. <param name="dropCache" type="java.lang.Boolean"/>
  3773. <exception name="IOException" type="java.io.IOException"/>
  3774. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3775. <doc>
  3776. <![CDATA[Configure whether the stream should drop the cache.
  3777. @param dropCache Whether to drop the cache. null means to use the
  3778. default value.
  3779. @throws IOException If there was an error changing the dropBehind
  3780. setting.
  3781. UnsupportedOperationException If this stream doesn't support
  3782. setting the drop-behind.]]>
  3783. </doc>
  3784. </method>
  3785. </interface>
  3786. <!-- end interface org.apache.hadoop.fs.CanSetDropBehind -->
  3787. <!-- start interface org.apache.hadoop.fs.CanSetReadahead -->
  3788. <interface name="CanSetReadahead" abstract="true"
  3789. static="false" final="false" visibility="public"
  3790. deprecated="not deprecated">
  3791. <method name="setReadahead"
  3792. abstract="true" native="false" synchronized="false"
  3793. static="false" final="false" visibility="public"
  3794. deprecated="not deprecated">
  3795. <param name="readahead" type="java.lang.Long"/>
  3796. <exception name="IOException" type="java.io.IOException"/>
  3797. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3798. <doc>
  3799. <![CDATA[Set the readahead on this stream.
  3800. @param readahead The readahead to use. null means to use the default.
  3801. @throws IOException If there was an error changing the dropBehind
  3802. setting.
  3803. UnsupportedOperationException If this stream doesn't support
  3804. setting readahead.]]>
  3805. </doc>
  3806. </method>
  3807. </interface>
  3808. <!-- end interface org.apache.hadoop.fs.CanSetReadahead -->
  3809. <!-- start interface org.apache.hadoop.fs.CanUnbuffer -->
  3810. <interface name="CanUnbuffer" abstract="true"
  3811. static="false" final="false" visibility="public"
  3812. deprecated="not deprecated">
  3813. <method name="unbuffer"
  3814. abstract="true" native="false" synchronized="false"
  3815. static="false" final="false" visibility="public"
  3816. deprecated="not deprecated">
  3817. <doc>
  3818. <![CDATA[Reduce the buffering. This will also free sockets and file descriptors
  3819. held by the stream, if possible.]]>
  3820. </doc>
  3821. </method>
  3822. <doc>
  3823. <![CDATA[FSDataInputStreams implement this interface to indicate that they can clear
  3824. their buffers on request.]]>
  3825. </doc>
  3826. </interface>
  3827. <!-- end interface org.apache.hadoop.fs.CanUnbuffer -->
  3828. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  3829. <class name="ChecksumException" extends="java.io.IOException"
  3830. abstract="false"
  3831. static="false" final="false" visibility="public"
  3832. deprecated="not deprecated">
  3833. <constructor name="ChecksumException" type="java.lang.String, long"
  3834. static="false" final="false" visibility="public"
  3835. deprecated="not deprecated">
  3836. </constructor>
  3837. <method name="getPos" return="long"
  3838. abstract="false" native="false" synchronized="false"
  3839. static="false" final="false" visibility="public"
  3840. deprecated="not deprecated">
  3841. </method>
  3842. <doc>
  3843. <![CDATA[Thrown for checksum errors.]]>
  3844. </doc>
  3845. </class>
  3846. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  3847. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  3848. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  3849. abstract="true"
  3850. static="false" final="false" visibility="public"
  3851. deprecated="not deprecated">
  3852. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  3853. static="false" final="false" visibility="public"
  3854. deprecated="not deprecated">
  3855. </constructor>
  3856. <method name="getApproxChkSumLength" return="double"
  3857. abstract="false" native="false" synchronized="false"
  3858. static="true" final="false" visibility="public"
  3859. deprecated="not deprecated">
  3860. <param name="size" type="long"/>
  3861. </method>
  3862. <method name="setConf"
  3863. abstract="false" native="false" synchronized="false"
  3864. static="false" final="false" visibility="public"
  3865. deprecated="not deprecated">
  3866. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3867. </method>
  3868. <method name="setVerifyChecksum"
  3869. abstract="false" native="false" synchronized="false"
  3870. static="false" final="false" visibility="public"
  3871. deprecated="not deprecated">
  3872. <param name="verifyChecksum" type="boolean"/>
  3873. <doc>
  3874. <![CDATA[Set whether to verify checksum.]]>
  3875. </doc>
  3876. </method>
  3877. <method name="setWriteChecksum"
  3878. abstract="false" native="false" synchronized="false"
  3879. static="false" final="false" visibility="public"
  3880. deprecated="not deprecated">
  3881. <param name="writeChecksum" type="boolean"/>
  3882. </method>
  3883. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  3884. abstract="false" native="false" synchronized="false"
  3885. static="false" final="false" visibility="public"
  3886. deprecated="not deprecated">
  3887. <doc>
  3888. <![CDATA[get the raw file system]]>
  3889. </doc>
  3890. </method>
  3891. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  3892. abstract="false" native="false" synchronized="false"
  3893. static="false" final="false" visibility="public"
  3894. deprecated="not deprecated">
  3895. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3896. <doc>
  3897. <![CDATA[Return the name of the checksum file associated with a file.]]>
  3898. </doc>
  3899. </method>
  3900. <method name="isChecksumFile" return="boolean"
  3901. abstract="false" native="false" synchronized="false"
  3902. static="true" final="false" visibility="public"
  3903. deprecated="not deprecated">
  3904. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3905. <doc>
  3906. <![CDATA[Return true iff file is a checksum file name.]]>
  3907. </doc>
  3908. </method>
  3909. <method name="getChecksumFileLength" return="long"
  3910. abstract="false" native="false" synchronized="false"
  3911. static="false" final="false" visibility="public"
  3912. deprecated="not deprecated">
  3913. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3914. <param name="fileSize" type="long"/>
  3915. <doc>
  3916. <![CDATA[Return the length of the checksum file given the size of the
  3917. actual file.]]>
  3918. </doc>
  3919. </method>
  3920. <method name="getBytesPerSum" return="int"
  3921. abstract="false" native="false" synchronized="false"
  3922. static="false" final="false" visibility="public"
  3923. deprecated="not deprecated">
  3924. <doc>
  3925. <![CDATA[Return the bytes Per Checksum]]>
  3926. </doc>
  3927. </method>
  3928. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3929. abstract="false" native="false" synchronized="false"
  3930. static="false" final="false" visibility="public"
  3931. deprecated="not deprecated">
  3932. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3933. <param name="bufferSize" type="int"/>
  3934. <exception name="IOException" type="java.io.IOException"/>
  3935. <doc>
  3936. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  3937. @param f the file name to open
  3938. @param bufferSize the size of the buffer to be used.]]>
  3939. </doc>
  3940. </method>
  3941. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  3942. abstract="false" native="false" synchronized="false"
  3943. static="false" final="false" visibility="public"
  3944. deprecated="not deprecated">
  3945. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3946. <param name="bufferSize" type="int"/>
  3947. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3948. <exception name="IOException" type="java.io.IOException"/>
  3949. </method>
  3950. <method name="truncate" return="boolean"
  3951. abstract="false" native="false" synchronized="false"
  3952. static="false" final="false" visibility="public"
  3953. deprecated="not deprecated">
  3954. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3955. <param name="newLength" type="long"/>
  3956. <exception name="IOException" type="java.io.IOException"/>
  3957. </method>
  3958. <method name="getChecksumLength" return="long"
  3959. abstract="false" native="false" synchronized="false"
  3960. static="true" final="false" visibility="public"
  3961. deprecated="not deprecated">
  3962. <param name="size" type="long"/>
  3963. <param name="bytesPerSum" type="int"/>
  3964. <doc>
  3965. <![CDATA[Calculated the length of the checksum file in bytes.
  3966. @param size the length of the data file in bytes
  3967. @param bytesPerSum the number of bytes in a checksum block
  3968. @return the number of bytes in the checksum file]]>
  3969. </doc>
  3970. </method>
  3971. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  3972. abstract="false" native="false" synchronized="false"
  3973. static="false" final="false" visibility="public"
  3974. deprecated="not deprecated">
  3975. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3976. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3977. <param name="overwrite" type="boolean"/>
  3978. <param name="bufferSize" type="int"/>
  3979. <param name="replication" type="short"/>
  3980. <param name="blockSize" type="long"/>
  3981. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3982. <exception name="IOException" type="java.io.IOException"/>
  3983. </method>
  3984. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  3985. abstract="false" native="false" synchronized="false"
  3986. static="false" final="false" visibility="public"
  3987. deprecated="not deprecated">
  3988. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3989. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3990. <param name="overwrite" type="boolean"/>
  3991. <param name="bufferSize" type="int"/>
  3992. <param name="replication" type="short"/>
  3993. <param name="blockSize" type="long"/>
  3994. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3995. <exception name="IOException" type="java.io.IOException"/>
  3996. </method>
  3997. <method name="setPermission"
  3998. abstract="false" native="false" synchronized="false"
  3999. static="false" final="false" visibility="public"
  4000. deprecated="not deprecated">
  4001. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4002. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4003. <exception name="IOException" type="java.io.IOException"/>
  4004. </method>
  4005. <method name="setOwner"
  4006. abstract="false" native="false" synchronized="false"
  4007. static="false" final="false" visibility="public"
  4008. deprecated="not deprecated">
  4009. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4010. <param name="username" type="java.lang.String"/>
  4011. <param name="groupname" type="java.lang.String"/>
  4012. <exception name="IOException" type="java.io.IOException"/>
  4013. </method>
  4014. <method name="setAcl"
  4015. abstract="false" native="false" synchronized="false"
  4016. static="false" final="false" visibility="public"
  4017. deprecated="not deprecated">
  4018. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4019. <param name="aclSpec" type="java.util.List"/>
  4020. <exception name="IOException" type="java.io.IOException"/>
  4021. </method>
  4022. <method name="modifyAclEntries"
  4023. abstract="false" native="false" synchronized="false"
  4024. static="false" final="false" visibility="public"
  4025. deprecated="not deprecated">
  4026. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4027. <param name="aclSpec" type="java.util.List"/>
  4028. <exception name="IOException" type="java.io.IOException"/>
  4029. </method>
  4030. <method name="removeAcl"
  4031. abstract="false" native="false" synchronized="false"
  4032. static="false" final="false" visibility="public"
  4033. deprecated="not deprecated">
  4034. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4035. <exception name="IOException" type="java.io.IOException"/>
  4036. </method>
  4037. <method name="removeAclEntries"
  4038. abstract="false" native="false" synchronized="false"
  4039. static="false" final="false" visibility="public"
  4040. deprecated="not deprecated">
  4041. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4042. <param name="aclSpec" type="java.util.List"/>
  4043. <exception name="IOException" type="java.io.IOException"/>
  4044. </method>
  4045. <method name="removeDefaultAcl"
  4046. abstract="false" native="false" synchronized="false"
  4047. static="false" final="false" visibility="public"
  4048. deprecated="not deprecated">
  4049. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4050. <exception name="IOException" type="java.io.IOException"/>
  4051. </method>
  4052. <method name="setReplication" return="boolean"
  4053. abstract="false" native="false" synchronized="false"
  4054. static="false" final="false" visibility="public"
  4055. deprecated="not deprecated">
  4056. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4057. <param name="replication" type="short"/>
  4058. <exception name="IOException" type="java.io.IOException"/>
  4059. <doc>
  4060. <![CDATA[Set replication for an existing file.
  4061. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  4062. @param src file name
  4063. @param replication new replication
  4064. @throws IOException
  4065. @return true if successful;
  4066. false if file does not exist or is a directory]]>
  4067. </doc>
  4068. </method>
  4069. <method name="rename" return="boolean"
  4070. abstract="false" native="false" synchronized="false"
  4071. static="false" final="false" visibility="public"
  4072. deprecated="not deprecated">
  4073. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4074. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4075. <exception name="IOException" type="java.io.IOException"/>
  4076. <doc>
  4077. <![CDATA[Rename files/dirs]]>
  4078. </doc>
  4079. </method>
  4080. <method name="delete" return="boolean"
  4081. abstract="false" native="false" synchronized="false"
  4082. static="false" final="false" visibility="public"
  4083. deprecated="not deprecated">
  4084. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4085. <param name="recursive" type="boolean"/>
  4086. <exception name="IOException" type="java.io.IOException"/>
  4087. <doc>
  4088. <![CDATA[Implement the delete(Path, boolean) in checksum
  4089. file system.]]>
  4090. </doc>
  4091. </method>
  4092. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4093. abstract="false" native="false" synchronized="false"
  4094. static="false" final="false" visibility="public"
  4095. deprecated="not deprecated">
  4096. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4097. <exception name="IOException" type="java.io.IOException"/>
  4098. <doc>
  4099. <![CDATA[List the statuses of the files/directories in the given path if the path is
  4100. a directory.
  4101. @param f
  4102. given path
  4103. @return the statuses of the files/directories in the given path
  4104. @throws IOException]]>
  4105. </doc>
  4106. </method>
  4107. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  4108. abstract="false" native="false" synchronized="false"
  4109. static="false" final="false" visibility="public"
  4110. deprecated="not deprecated">
  4111. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4112. <exception name="IOException" type="java.io.IOException"/>
  4113. </method>
  4114. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  4115. abstract="false" native="false" synchronized="false"
  4116. static="false" final="false" visibility="public"
  4117. deprecated="not deprecated">
  4118. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4119. <exception name="IOException" type="java.io.IOException"/>
  4120. <doc>
  4121. <![CDATA[List the statuses of the files/directories in the given path if the path is
  4122. a directory.
  4123. @param f
  4124. given path
  4125. @return the statuses of the files/directories in the given patch
  4126. @throws IOException]]>
  4127. </doc>
  4128. </method>
  4129. <method name="mkdirs" return="boolean"
  4130. abstract="false" native="false" synchronized="false"
  4131. static="false" final="false" visibility="public"
  4132. deprecated="not deprecated">
  4133. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4134. <exception name="IOException" type="java.io.IOException"/>
  4135. </method>
  4136. <method name="copyFromLocalFile"
  4137. abstract="false" native="false" synchronized="false"
  4138. static="false" final="false" visibility="public"
  4139. deprecated="not deprecated">
  4140. <param name="delSrc" type="boolean"/>
  4141. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4142. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4143. <exception name="IOException" type="java.io.IOException"/>
  4144. </method>
  4145. <method name="copyToLocalFile"
  4146. abstract="false" native="false" synchronized="false"
  4147. static="false" final="false" visibility="public"
  4148. deprecated="not deprecated">
  4149. <param name="delSrc" type="boolean"/>
  4150. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4151. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4152. <exception name="IOException" type="java.io.IOException"/>
  4153. <doc>
  4154. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4155. Copy it from FS control to the local dst name.]]>
  4156. </doc>
  4157. </method>
  4158. <method name="copyToLocalFile"
  4159. abstract="false" native="false" synchronized="false"
  4160. static="false" final="false" visibility="public"
  4161. deprecated="not deprecated">
  4162. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4163. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4164. <param name="copyCrc" type="boolean"/>
  4165. <exception name="IOException" type="java.io.IOException"/>
  4166. <doc>
  4167. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4168. Copy it from FS control to the local dst name.
  4169. If src and dst are directories, the copyCrc parameter
  4170. determines whether to copy CRC files.]]>
  4171. </doc>
  4172. </method>
  4173. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4174. abstract="false" native="false" synchronized="false"
  4175. static="false" final="false" visibility="public"
  4176. deprecated="not deprecated">
  4177. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4178. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4179. <exception name="IOException" type="java.io.IOException"/>
  4180. </method>
  4181. <method name="completeLocalOutput"
  4182. abstract="false" native="false" synchronized="false"
  4183. static="false" final="false" visibility="public"
  4184. deprecated="not deprecated">
  4185. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4186. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4187. <exception name="IOException" type="java.io.IOException"/>
  4188. </method>
  4189. <method name="reportChecksumFailure" return="boolean"
  4190. abstract="false" native="false" synchronized="false"
  4191. static="false" final="false" visibility="public"
  4192. deprecated="not deprecated">
  4193. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4194. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  4195. <param name="inPos" type="long"/>
  4196. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  4197. <param name="sumsPos" type="long"/>
  4198. <doc>
  4199. <![CDATA[Report a checksum error to the file system.
  4200. @param f the file name containing the error
  4201. @param in the stream open on the file
  4202. @param inPos the position of the beginning of the bad data in the file
  4203. @param sums the stream open on the checksum file
  4204. @param sumsPos the position of the beginning of the bad data in the checksum file
  4205. @return if retry is necessary]]>
  4206. </doc>
  4207. </method>
  4208. <method name="hasPathCapability" return="boolean"
  4209. abstract="false" native="false" synchronized="false"
  4210. static="false" final="false" visibility="public"
  4211. deprecated="not deprecated">
  4212. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4213. <param name="capability" type="java.lang.String"/>
  4214. <exception name="IOException" type="java.io.IOException"/>
  4215. <doc>
  4216. <![CDATA[Disable those operations which the checksummed FS blocks.
  4217. {@inheritDoc}]]>
  4218. </doc>
  4219. </method>
  4220. <doc>
  4221. <![CDATA[Abstract Checksumed FileSystem.
  4222. It provide a basic implementation of a Checksumed FileSystem,
  4223. which creates a checksum file for each raw file.
  4224. It generates & verifies checksums at the client side.]]>
  4225. </doc>
  4226. </class>
  4227. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  4228. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  4229. <class name="CommonConfigurationKeysPublic" extends="java.lang.Object"
  4230. abstract="false"
  4231. static="false" final="false" visibility="public"
  4232. deprecated="not deprecated">
  4233. <constructor name="CommonConfigurationKeysPublic"
  4234. static="false" final="false" visibility="public"
  4235. deprecated="not deprecated">
  4236. </constructor>
  4237. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY" type="java.lang.String"
  4238. transient="false" volatile="false"
  4239. static="true" final="true" visibility="public"
  4240. deprecated="not deprecated">
  4241. <doc>
  4242. <![CDATA[@see
  4243. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4244. core-default.xml</a>]]>
  4245. </doc>
  4246. </field>
  4247. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_DEFAULT" type="int"
  4248. transient="false" volatile="false"
  4249. static="true" final="true" visibility="public"
  4250. deprecated="not deprecated">
  4251. <doc>
  4252. <![CDATA[Default value for NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY]]>
  4253. </doc>
  4254. </field>
  4255. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  4256. transient="false" volatile="false"
  4257. static="true" final="true" visibility="public"
  4258. deprecated="not deprecated">
  4259. <doc>
  4260. <![CDATA[@see
  4261. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4262. core-default.xml</a>]]>
  4263. </doc>
  4264. </field>
  4265. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  4266. transient="false" volatile="false"
  4267. static="true" final="true" visibility="public"
  4268. deprecated="not deprecated">
  4269. <doc>
  4270. <![CDATA[Default value for FS_DEFAULT_NAME_KEY]]>
  4271. </doc>
  4272. </field>
  4273. <field name="FS_DF_INTERVAL_KEY" type="java.lang.String"
  4274. transient="false" volatile="false"
  4275. static="true" final="true" visibility="public"
  4276. deprecated="not deprecated">
  4277. <doc>
  4278. <![CDATA[@see
  4279. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4280. core-default.xml</a>]]>
  4281. </doc>
  4282. </field>
  4283. <field name="FS_DF_INTERVAL_DEFAULT" type="long"
  4284. transient="false" volatile="false"
  4285. static="true" final="true" visibility="public"
  4286. deprecated="not deprecated">
  4287. <doc>
  4288. <![CDATA[Default value for FS_DF_INTERVAL_KEY]]>
  4289. </doc>
  4290. </field>
  4291. <field name="FS_DU_INTERVAL_KEY" type="java.lang.String"
  4292. transient="false" volatile="false"
  4293. static="true" final="true" visibility="public"
  4294. deprecated="not deprecated">
  4295. <doc>
  4296. <![CDATA[@see
  4297. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4298. core-default.xml</a>]]>
  4299. </doc>
  4300. </field>
  4301. <field name="FS_DU_INTERVAL_DEFAULT" type="long"
  4302. transient="false" volatile="false"
  4303. static="true" final="true" visibility="public"
  4304. deprecated="not deprecated">
  4305. <doc>
  4306. <![CDATA[Default value for FS_DU_INTERVAL_KEY]]>
  4307. </doc>
  4308. </field>
  4309. <field name="FS_GETSPACEUSED_CLASSNAME" 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_GETSPACEUSED_JITTER_KEY" type="java.lang.String"
  4320. transient="false" volatile="false"
  4321. static="true" final="true" visibility="public"
  4322. deprecated="not deprecated">
  4323. <doc>
  4324. <![CDATA[@see
  4325. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4326. core-default.xml</a>]]>
  4327. </doc>
  4328. </field>
  4329. <field name="FS_GETSPACEUSED_JITTER_DEFAULT" type="long"
  4330. transient="false" volatile="false"
  4331. static="true" final="true" visibility="public"
  4332. deprecated="not deprecated">
  4333. <doc>
  4334. <![CDATA[Default value for FS_GETSPACEUSED_JITTER_KEY]]>
  4335. </doc>
  4336. </field>
  4337. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_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_CLIENT_RESOLVE_REMOTE_SYMLINKS_DEFAULT" type="boolean"
  4348. transient="false" volatile="false"
  4349. static="true" final="true" visibility="public"
  4350. deprecated="not deprecated">
  4351. <doc>
  4352. <![CDATA[Default value for FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY]]>
  4353. </doc>
  4354. </field>
  4355. <field name="NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4356. transient="false" volatile="false"
  4357. static="true" final="true" visibility="public"
  4358. deprecated="not deprecated">
  4359. <doc>
  4360. <![CDATA[@see
  4361. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4362. core-default.xml</a>]]>
  4363. </doc>
  4364. </field>
  4365. <field name="NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY" type="java.lang.String"
  4366. transient="false" volatile="false"
  4367. static="true" final="true" visibility="public"
  4368. deprecated="not deprecated">
  4369. <doc>
  4370. <![CDATA[@see
  4371. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4372. core-default.xml</a>]]>
  4373. </doc>
  4374. </field>
  4375. <field name="NET_TOPOLOGY_IMPL_KEY" 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="NET_TOPOLOGY_TABLE_MAPPING_FILE_KEY" type="java.lang.String"
  4386. transient="false" volatile="false"
  4387. static="true" final="true" visibility="public"
  4388. deprecated="not deprecated">
  4389. <doc>
  4390. <![CDATA[@see
  4391. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4392. core-default.xml</a>]]>
  4393. </doc>
  4394. </field>
  4395. <field name="NET_DEPENDENCY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4396. transient="false" volatile="false"
  4397. static="true" final="true" visibility="public"
  4398. deprecated="not deprecated">
  4399. </field>
  4400. <field name="FS_TRASH_CHECKPOINT_INTERVAL_KEY" type="java.lang.String"
  4401. transient="false" volatile="false"
  4402. static="true" final="true" visibility="public"
  4403. deprecated="not deprecated">
  4404. <doc>
  4405. <![CDATA[@see
  4406. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4407. core-default.xml</a>]]>
  4408. </doc>
  4409. </field>
  4410. <field name="FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT" type="long"
  4411. transient="false" volatile="false"
  4412. static="true" final="true" visibility="public"
  4413. deprecated="not deprecated">
  4414. <doc>
  4415. <![CDATA[Default value for FS_TRASH_CHECKPOINT_INTERVAL_KEY]]>
  4416. </doc>
  4417. </field>
  4418. <field name="FS_PROTECTED_DIRECTORIES" type="java.lang.String"
  4419. transient="false" volatile="false"
  4420. static="true" final="true" visibility="public"
  4421. deprecated="not deprecated">
  4422. <doc>
  4423. <![CDATA[Directories that cannot be removed unless empty, even by an
  4424. administrator.]]>
  4425. </doc>
  4426. </field>
  4427. <field name="FS_LOCAL_BLOCK_SIZE_DEFAULT" type="long"
  4428. transient="false" volatile="false"
  4429. static="true" final="true" visibility="public"
  4430. deprecated="not deprecated">
  4431. <doc>
  4432. <![CDATA[Not used anywhere, looks like default value for FS_LOCAL_BLOCK_SIZE]]>
  4433. </doc>
  4434. </field>
  4435. <field name="FS_AUTOMATIC_CLOSE_KEY" type="java.lang.String"
  4436. transient="false" volatile="false"
  4437. static="true" final="true" visibility="public"
  4438. deprecated="not deprecated">
  4439. <doc>
  4440. <![CDATA[@see
  4441. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4442. core-default.xml</a>]]>
  4443. </doc>
  4444. </field>
  4445. <field name="FS_AUTOMATIC_CLOSE_DEFAULT" type="boolean"
  4446. transient="false" volatile="false"
  4447. static="true" final="true" visibility="public"
  4448. deprecated="not deprecated">
  4449. <doc>
  4450. <![CDATA[Default value for FS_AUTOMATIC_CLOSE_KEY]]>
  4451. </doc>
  4452. </field>
  4453. <field name="FS_FILE_IMPL_KEY" type="java.lang.String"
  4454. transient="false" volatile="false"
  4455. static="true" final="true" visibility="public"
  4456. deprecated="not deprecated">
  4457. <doc>
  4458. <![CDATA[@see
  4459. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4460. core-default.xml</a>]]>
  4461. </doc>
  4462. </field>
  4463. <field name="FS_FTP_HOST_KEY" type="java.lang.String"
  4464. transient="false" volatile="false"
  4465. static="true" final="true" visibility="public"
  4466. deprecated="not deprecated">
  4467. <doc>
  4468. <![CDATA[@see
  4469. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4470. core-default.xml</a>]]>
  4471. </doc>
  4472. </field>
  4473. <field name="FS_FTP_HOST_PORT_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="FS_TRASH_INTERVAL_KEY" type="java.lang.String"
  4484. transient="false" volatile="false"
  4485. static="true" final="true" visibility="public"
  4486. deprecated="not deprecated">
  4487. <doc>
  4488. <![CDATA[@see
  4489. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4490. core-default.xml</a>]]>
  4491. </doc>
  4492. </field>
  4493. <field name="FS_TRASH_INTERVAL_DEFAULT" type="long"
  4494. transient="false" volatile="false"
  4495. static="true" final="true" visibility="public"
  4496. deprecated="not deprecated">
  4497. <doc>
  4498. <![CDATA[Default value for FS_TRASH_INTERVAL_KEY]]>
  4499. </doc>
  4500. </field>
  4501. <field name="FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED" type="java.lang.String"
  4502. transient="false" volatile="false"
  4503. static="true" final="true" visibility="public"
  4504. deprecated="not deprecated">
  4505. <doc>
  4506. <![CDATA[@see
  4507. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4508. core-default.xml</a>]]>
  4509. </doc>
  4510. </field>
  4511. <field name="FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED_DEFAULT" type="boolean"
  4512. transient="false" volatile="false"
  4513. static="true" final="true" visibility="public"
  4514. deprecated="not deprecated">
  4515. <doc>
  4516. <![CDATA[Default value for FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED.]]>
  4517. </doc>
  4518. </field>
  4519. <field name="IO_MAPFILE_BLOOM_SIZE_KEY" type="java.lang.String"
  4520. transient="false" volatile="false"
  4521. static="true" final="true" visibility="public"
  4522. deprecated="not deprecated">
  4523. <doc>
  4524. <![CDATA[@see
  4525. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4526. core-default.xml</a>]]>
  4527. </doc>
  4528. </field>
  4529. <field name="IO_MAPFILE_BLOOM_SIZE_DEFAULT" type="int"
  4530. transient="false" volatile="false"
  4531. static="true" final="true" visibility="public"
  4532. deprecated="not deprecated">
  4533. <doc>
  4534. <![CDATA[Default value for IO_MAPFILE_BLOOM_SIZE_KEY]]>
  4535. </doc>
  4536. </field>
  4537. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_KEY" type="java.lang.String"
  4538. transient="false" volatile="false"
  4539. static="true" final="true" visibility="public"
  4540. deprecated="not deprecated">
  4541. <doc>
  4542. <![CDATA[@see
  4543. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4544. core-default.xml</a>]]>
  4545. </doc>
  4546. </field>
  4547. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_DEFAULT" type="float"
  4548. transient="false" volatile="false"
  4549. static="true" final="true" visibility="public"
  4550. deprecated="not deprecated">
  4551. <doc>
  4552. <![CDATA[Default value for IO_MAPFILE_BLOOM_ERROR_RATE_KEY]]>
  4553. </doc>
  4554. </field>
  4555. <field name="IO_COMPRESSION_CODEC_LZO_CLASS_KEY" type="java.lang.String"
  4556. transient="false" volatile="false"
  4557. static="true" final="true" visibility="public"
  4558. deprecated="not deprecated">
  4559. <doc>
  4560. <![CDATA[Codec class that implements Lzo compression algorithm]]>
  4561. </doc>
  4562. </field>
  4563. <field name="IO_MAP_INDEX_INTERVAL_KEY" type="java.lang.String"
  4564. transient="false" volatile="false"
  4565. static="true" final="true" visibility="public"
  4566. deprecated="not deprecated">
  4567. <doc>
  4568. <![CDATA[@see
  4569. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4570. core-default.xml</a>]]>
  4571. </doc>
  4572. </field>
  4573. <field name="IO_MAP_INDEX_INTERVAL_DEFAULT" type="int"
  4574. transient="false" volatile="false"
  4575. static="true" final="true" visibility="public"
  4576. deprecated="not deprecated">
  4577. <doc>
  4578. <![CDATA[Default value for IO_MAP_INDEX_INTERVAL_DEFAULT]]>
  4579. </doc>
  4580. </field>
  4581. <field name="IO_MAP_INDEX_SKIP_KEY" type="java.lang.String"
  4582. transient="false" volatile="false"
  4583. static="true" final="true" visibility="public"
  4584. deprecated="not deprecated">
  4585. <doc>
  4586. <![CDATA[@see
  4587. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4588. core-default.xml</a>]]>
  4589. </doc>
  4590. </field>
  4591. <field name="IO_MAP_INDEX_SKIP_DEFAULT" type="int"
  4592. transient="false" volatile="false"
  4593. static="true" final="true" visibility="public"
  4594. deprecated="not deprecated">
  4595. <doc>
  4596. <![CDATA[Default value for IO_MAP_INDEX_SKIP_KEY]]>
  4597. </doc>
  4598. </field>
  4599. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY" type="java.lang.String"
  4600. transient="false" volatile="false"
  4601. static="true" final="true" visibility="public"
  4602. deprecated="not deprecated">
  4603. <doc>
  4604. <![CDATA[@see
  4605. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4606. core-default.xml</a>]]>
  4607. </doc>
  4608. </field>
  4609. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_DEFAULT" type="int"
  4610. transient="false" volatile="false"
  4611. static="true" final="true" visibility="public"
  4612. deprecated="not deprecated">
  4613. <doc>
  4614. <![CDATA[Default value for IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY]]>
  4615. </doc>
  4616. </field>
  4617. <field name="IO_FILE_BUFFER_SIZE_KEY" type="java.lang.String"
  4618. transient="false" volatile="false"
  4619. static="true" final="true" visibility="public"
  4620. deprecated="not deprecated">
  4621. <doc>
  4622. <![CDATA[@see
  4623. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4624. core-default.xml</a>]]>
  4625. </doc>
  4626. </field>
  4627. <field name="IO_FILE_BUFFER_SIZE_DEFAULT" type="int"
  4628. transient="false" volatile="false"
  4629. static="true" final="true" visibility="public"
  4630. deprecated="not deprecated">
  4631. <doc>
  4632. <![CDATA[Default value for IO_FILE_BUFFER_SIZE_KEY]]>
  4633. </doc>
  4634. </field>
  4635. <field name="IO_SKIP_CHECKSUM_ERRORS_KEY" type="java.lang.String"
  4636. transient="false" volatile="false"
  4637. static="true" final="true" visibility="public"
  4638. deprecated="not deprecated">
  4639. <doc>
  4640. <![CDATA[@see
  4641. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4642. core-default.xml</a>]]>
  4643. </doc>
  4644. </field>
  4645. <field name="IO_SKIP_CHECKSUM_ERRORS_DEFAULT" type="boolean"
  4646. transient="false" volatile="false"
  4647. static="true" final="true" visibility="public"
  4648. deprecated="not deprecated">
  4649. <doc>
  4650. <![CDATA[Default value for IO_SKIP_CHECKSUM_ERRORS_KEY]]>
  4651. </doc>
  4652. </field>
  4653. <field name="IO_SORT_MB_KEY" type="java.lang.String"
  4654. transient="false" volatile="false"
  4655. static="true" final="true" visibility="public"
  4656. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.mb
  4657. in mapred-default.xml
  4658. See https://issues.apache.org/jira/browse/HADOOP-6801
  4659. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4660. instead, see {@link #SEQ_IO_SORT_MB_KEY}.">
  4661. <doc>
  4662. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.mb
  4663. in mapred-default.xml
  4664. See https://issues.apache.org/jira/browse/HADOOP-6801
  4665. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4666. instead, see {@link #SEQ_IO_SORT_MB_KEY}.]]>
  4667. </doc>
  4668. </field>
  4669. <field name="IO_SORT_MB_DEFAULT" type="int"
  4670. transient="false" volatile="false"
  4671. static="true" final="true" visibility="public"
  4672. deprecated="not deprecated">
  4673. <doc>
  4674. <![CDATA[Default value for {@link #IO_SORT_MB_KEY}.]]>
  4675. </doc>
  4676. </field>
  4677. <field name="IO_SORT_FACTOR_KEY" type="java.lang.String"
  4678. transient="false" volatile="false"
  4679. static="true" final="true" visibility="public"
  4680. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.factor
  4681. in mapred-default.xml
  4682. See https://issues.apache.org/jira/browse/HADOOP-6801
  4683. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4684. instead, see {@link #SEQ_IO_SORT_FACTOR_KEY}.">
  4685. <doc>
  4686. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.factor
  4687. in mapred-default.xml
  4688. See https://issues.apache.org/jira/browse/HADOOP-6801
  4689. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4690. instead, see {@link #SEQ_IO_SORT_FACTOR_KEY}.]]>
  4691. </doc>
  4692. </field>
  4693. <field name="IO_SORT_FACTOR_DEFAULT" type="int"
  4694. transient="false" volatile="false"
  4695. static="true" final="true" visibility="public"
  4696. deprecated="not deprecated">
  4697. <doc>
  4698. <![CDATA[Default value for {@link #IO_SORT_FACTOR_KEY}.]]>
  4699. </doc>
  4700. </field>
  4701. <field name="SEQ_IO_SORT_MB_KEY" type="java.lang.String"
  4702. transient="false" volatile="false"
  4703. static="true" final="true" visibility="public"
  4704. deprecated="not deprecated">
  4705. <doc>
  4706. <![CDATA[@see
  4707. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4708. core-default.xml</a>]]>
  4709. </doc>
  4710. </field>
  4711. <field name="SEQ_IO_SORT_MB_DEFAULT" type="int"
  4712. transient="false" volatile="false"
  4713. static="true" final="true" visibility="public"
  4714. deprecated="not deprecated">
  4715. <doc>
  4716. <![CDATA[Default value for {@link #SEQ_IO_SORT_MB_KEY}.]]>
  4717. </doc>
  4718. </field>
  4719. <field name="SEQ_IO_SORT_FACTOR_KEY" type="java.lang.String"
  4720. transient="false" volatile="false"
  4721. static="true" final="true" visibility="public"
  4722. deprecated="not deprecated">
  4723. <doc>
  4724. <![CDATA[@see
  4725. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4726. core-default.xml</a>]]>
  4727. </doc>
  4728. </field>
  4729. <field name="SEQ_IO_SORT_FACTOR_DEFAULT" type="int"
  4730. transient="false" volatile="false"
  4731. static="true" final="true" visibility="public"
  4732. deprecated="not deprecated">
  4733. <doc>
  4734. <![CDATA[Default value for {@link #SEQ_IO_SORT_FACTOR_KEY}.]]>
  4735. </doc>
  4736. </field>
  4737. <field name="IO_SERIALIZATIONS_KEY" type="java.lang.String"
  4738. transient="false" volatile="false"
  4739. static="true" final="true" visibility="public"
  4740. deprecated="not deprecated">
  4741. <doc>
  4742. <![CDATA[@see
  4743. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4744. core-default.xml</a>]]>
  4745. </doc>
  4746. </field>
  4747. <field name="TFILE_IO_CHUNK_SIZE_KEY" type="java.lang.String"
  4748. transient="false" volatile="false"
  4749. static="true" final="true" visibility="public"
  4750. deprecated="not deprecated">
  4751. <doc>
  4752. <![CDATA[@see
  4753. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4754. core-default.xml</a>]]>
  4755. </doc>
  4756. </field>
  4757. <field name="TFILE_IO_CHUNK_SIZE_DEFAULT" type="int"
  4758. transient="false" volatile="false"
  4759. static="true" final="true" visibility="public"
  4760. deprecated="not deprecated">
  4761. <doc>
  4762. <![CDATA[Default value for TFILE_IO_CHUNK_SIZE_DEFAULT]]>
  4763. </doc>
  4764. </field>
  4765. <field name="TFILE_FS_INPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  4766. transient="false" volatile="false"
  4767. static="true" final="true" visibility="public"
  4768. deprecated="not deprecated">
  4769. <doc>
  4770. <![CDATA[@see
  4771. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4772. core-default.xml</a>]]>
  4773. </doc>
  4774. </field>
  4775. <field name="TFILE_FS_INPUT_BUFFER_SIZE_DEFAULT" type="int"
  4776. transient="false" volatile="false"
  4777. static="true" final="true" visibility="public"
  4778. deprecated="not deprecated">
  4779. <doc>
  4780. <![CDATA[Default value for TFILE_FS_INPUT_BUFFER_SIZE_KEY]]>
  4781. </doc>
  4782. </field>
  4783. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  4784. transient="false" volatile="false"
  4785. static="true" final="true" visibility="public"
  4786. deprecated="not deprecated">
  4787. <doc>
  4788. <![CDATA[@see
  4789. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4790. core-default.xml</a>]]>
  4791. </doc>
  4792. </field>
  4793. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_DEFAULT" type="int"
  4794. transient="false" volatile="false"
  4795. static="true" final="true" visibility="public"
  4796. deprecated="not deprecated">
  4797. <doc>
  4798. <![CDATA[Default value for TFILE_FS_OUTPUT_BUFFER_SIZE_KEY]]>
  4799. </doc>
  4800. </field>
  4801. <field name="HADOOP_CALLER_CONTEXT_ENABLED_KEY" type="java.lang.String"
  4802. transient="false" volatile="false"
  4803. static="true" final="true" visibility="public"
  4804. deprecated="not deprecated">
  4805. </field>
  4806. <field name="HADOOP_CALLER_CONTEXT_ENABLED_DEFAULT" type="boolean"
  4807. transient="false" volatile="false"
  4808. static="true" final="true" visibility="public"
  4809. deprecated="not deprecated">
  4810. </field>
  4811. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_KEY" type="java.lang.String"
  4812. transient="false" volatile="false"
  4813. static="true" final="true" visibility="public"
  4814. deprecated="not deprecated">
  4815. </field>
  4816. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_DEFAULT" type="int"
  4817. transient="false" volatile="false"
  4818. static="true" final="true" visibility="public"
  4819. deprecated="not deprecated">
  4820. </field>
  4821. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_KEY" type="java.lang.String"
  4822. transient="false" volatile="false"
  4823. static="true" final="true" visibility="public"
  4824. deprecated="not deprecated">
  4825. </field>
  4826. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_DEFAULT" type="int"
  4827. transient="false" volatile="false"
  4828. static="true" final="true" visibility="public"
  4829. deprecated="not deprecated">
  4830. </field>
  4831. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY" type="java.lang.String"
  4832. transient="false" volatile="false"
  4833. static="true" final="true" visibility="public"
  4834. deprecated="not deprecated">
  4835. <doc>
  4836. <![CDATA[@see
  4837. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4838. core-default.xml</a>]]>
  4839. </doc>
  4840. </field>
  4841. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_DEFAULT" type="int"
  4842. transient="false" volatile="false"
  4843. static="true" final="true" visibility="public"
  4844. deprecated="not deprecated">
  4845. <doc>
  4846. <![CDATA[Default value for IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY]]>
  4847. </doc>
  4848. </field>
  4849. <field name="IPC_CLIENT_CONNECT_TIMEOUT_KEY" type="java.lang.String"
  4850. transient="false" volatile="false"
  4851. static="true" final="true" visibility="public"
  4852. deprecated="not deprecated">
  4853. <doc>
  4854. <![CDATA[@see
  4855. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4856. core-default.xml</a>]]>
  4857. </doc>
  4858. </field>
  4859. <field name="IPC_CLIENT_CONNECT_TIMEOUT_DEFAULT" type="int"
  4860. transient="false" volatile="false"
  4861. static="true" final="true" visibility="public"
  4862. deprecated="not deprecated">
  4863. <doc>
  4864. <![CDATA[Default value for IPC_CLIENT_CONNECT_TIMEOUT_KEY]]>
  4865. </doc>
  4866. </field>
  4867. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  4868. transient="false" volatile="false"
  4869. static="true" final="true" visibility="public"
  4870. deprecated="not deprecated">
  4871. <doc>
  4872. <![CDATA[@see
  4873. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4874. core-default.xml</a>]]>
  4875. </doc>
  4876. </field>
  4877. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  4878. transient="false" volatile="false"
  4879. static="true" final="true" visibility="public"
  4880. deprecated="not deprecated">
  4881. <doc>
  4882. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_KEY]]>
  4883. </doc>
  4884. </field>
  4885. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY" type="java.lang.String"
  4886. transient="false" volatile="false"
  4887. static="true" final="true" visibility="public"
  4888. deprecated="not deprecated">
  4889. <doc>
  4890. <![CDATA[@see
  4891. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4892. core-default.xml</a>]]>
  4893. </doc>
  4894. </field>
  4895. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_DEFAULT" type="int"
  4896. transient="false" volatile="false"
  4897. static="true" final="true" visibility="public"
  4898. deprecated="not deprecated">
  4899. <doc>
  4900. <![CDATA[Default value for IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY]]>
  4901. </doc>
  4902. </field>
  4903. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY" type="java.lang.String"
  4904. transient="false" volatile="false"
  4905. static="true" final="true" visibility="public"
  4906. deprecated="not deprecated">
  4907. <doc>
  4908. <![CDATA[@see
  4909. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4910. core-default.xml</a>]]>
  4911. </doc>
  4912. </field>
  4913. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_DEFAULT" type="int"
  4914. transient="false" volatile="false"
  4915. static="true" final="true" visibility="public"
  4916. deprecated="not deprecated">
  4917. <doc>
  4918. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY]]>
  4919. </doc>
  4920. </field>
  4921. <field name="IPC_CLIENT_TCPNODELAY_KEY" type="java.lang.String"
  4922. transient="false" volatile="false"
  4923. static="true" final="true" visibility="public"
  4924. deprecated="not deprecated">
  4925. <doc>
  4926. <![CDATA[@see
  4927. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4928. core-default.xml</a>]]>
  4929. </doc>
  4930. </field>
  4931. <field name="IPC_CLIENT_TCPNODELAY_DEFAULT" type="boolean"
  4932. transient="false" volatile="false"
  4933. static="true" final="true" visibility="public"
  4934. deprecated="not deprecated">
  4935. <doc>
  4936. <![CDATA[Default value for IPC_CLIENT_TCPNODELAY_KEY]]>
  4937. </doc>
  4938. </field>
  4939. <field name="IPC_CLIENT_LOW_LATENCY" type="java.lang.String"
  4940. transient="false" volatile="false"
  4941. static="true" final="true" visibility="public"
  4942. deprecated="not deprecated">
  4943. <doc>
  4944. <![CDATA[Enable low-latency connections from the client]]>
  4945. </doc>
  4946. </field>
  4947. <field name="IPC_CLIENT_LOW_LATENCY_DEFAULT" type="boolean"
  4948. transient="false" volatile="false"
  4949. static="true" final="true" visibility="public"
  4950. deprecated="not deprecated">
  4951. <doc>
  4952. <![CDATA[Default value of IPC_CLIENT_LOW_LATENCY]]>
  4953. </doc>
  4954. </field>
  4955. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_KEY" type="java.lang.String"
  4956. transient="false" volatile="false"
  4957. static="true" final="true" visibility="public"
  4958. deprecated="not deprecated">
  4959. <doc>
  4960. <![CDATA[@see
  4961. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4962. core-default.xml</a>]]>
  4963. </doc>
  4964. </field>
  4965. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_DEFAULT" type="int"
  4966. transient="false" volatile="false"
  4967. static="true" final="true" visibility="public"
  4968. deprecated="not deprecated">
  4969. <doc>
  4970. <![CDATA[Default value for IPC_SERVER_LISTEN_QUEUE_SIZE_KEY]]>
  4971. </doc>
  4972. </field>
  4973. <field name="IPC_CLIENT_KILL_MAX_KEY" type="java.lang.String"
  4974. transient="false" volatile="false"
  4975. static="true" final="true" visibility="public"
  4976. deprecated="not deprecated">
  4977. <doc>
  4978. <![CDATA[@see
  4979. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4980. core-default.xml</a>]]>
  4981. </doc>
  4982. </field>
  4983. <field name="IPC_CLIENT_KILL_MAX_DEFAULT" type="int"
  4984. transient="false" volatile="false"
  4985. static="true" final="true" visibility="public"
  4986. deprecated="not deprecated">
  4987. <doc>
  4988. <![CDATA[Default value for IPC_CLIENT_KILL_MAX_KEY]]>
  4989. </doc>
  4990. </field>
  4991. <field name="IPC_CLIENT_IDLETHRESHOLD_KEY" type="java.lang.String"
  4992. transient="false" volatile="false"
  4993. static="true" final="true" visibility="public"
  4994. deprecated="not deprecated">
  4995. <doc>
  4996. <![CDATA[@see
  4997. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4998. core-default.xml</a>]]>
  4999. </doc>
  5000. </field>
  5001. <field name="IPC_CLIENT_IDLETHRESHOLD_DEFAULT" type="int"
  5002. transient="false" volatile="false"
  5003. static="true" final="true" visibility="public"
  5004. deprecated="not deprecated">
  5005. <doc>
  5006. <![CDATA[Default value for IPC_CLIENT_IDLETHRESHOLD_DEFAULT]]>
  5007. </doc>
  5008. </field>
  5009. <field name="IPC_SERVER_TCPNODELAY_KEY" type="java.lang.String"
  5010. transient="false" volatile="false"
  5011. static="true" final="true" visibility="public"
  5012. deprecated="not deprecated">
  5013. <doc>
  5014. <![CDATA[@see
  5015. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5016. core-default.xml</a>]]>
  5017. </doc>
  5018. </field>
  5019. <field name="IPC_SERVER_TCPNODELAY_DEFAULT" type="boolean"
  5020. transient="false" volatile="false"
  5021. static="true" final="true" visibility="public"
  5022. deprecated="not deprecated">
  5023. <doc>
  5024. <![CDATA[Default value for IPC_SERVER_TCPNODELAY_KEY]]>
  5025. </doc>
  5026. </field>
  5027. <field name="IPC_SERVER_MAX_CONNECTIONS_KEY" type="java.lang.String"
  5028. transient="false" volatile="false"
  5029. static="true" final="true" visibility="public"
  5030. deprecated="not deprecated">
  5031. <doc>
  5032. <![CDATA[@see
  5033. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5034. core-default.xml</a>]]>
  5035. </doc>
  5036. </field>
  5037. <field name="IPC_SERVER_MAX_CONNECTIONS_DEFAULT" type="int"
  5038. transient="false" volatile="false"
  5039. static="true" final="true" visibility="public"
  5040. deprecated="not deprecated">
  5041. <doc>
  5042. <![CDATA[Default value for IPC_SERVER_MAX_CONNECTIONS_KEY]]>
  5043. </doc>
  5044. </field>
  5045. <field name="IPC_SERVER_LOG_SLOW_RPC" type="java.lang.String"
  5046. transient="false" volatile="false"
  5047. static="true" final="true" visibility="public"
  5048. deprecated="not deprecated">
  5049. <doc>
  5050. <![CDATA[Logs if a RPC is really slow compared to rest of RPCs.]]>
  5051. </doc>
  5052. </field>
  5053. <field name="IPC_SERVER_LOG_SLOW_RPC_DEFAULT" type="boolean"
  5054. transient="false" volatile="false"
  5055. static="true" final="true" visibility="public"
  5056. deprecated="not deprecated">
  5057. </field>
  5058. <field name="IPC_SERVER_PURGE_INTERVAL_MINUTES_KEY" type="java.lang.String"
  5059. transient="false" volatile="false"
  5060. static="true" final="true" visibility="public"
  5061. deprecated="not deprecated">
  5062. </field>
  5063. <field name="IPC_SERVER_PURGE_INTERVAL_MINUTES_DEFAULT" type="int"
  5064. transient="false" volatile="false"
  5065. static="true" final="true" visibility="public"
  5066. deprecated="not deprecated">
  5067. </field>
  5068. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_KEY" type="java.lang.String"
  5069. transient="false" volatile="false"
  5070. static="true" final="true" visibility="public"
  5071. deprecated="not deprecated">
  5072. <doc>
  5073. <![CDATA[@see
  5074. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5075. core-default.xml</a>]]>
  5076. </doc>
  5077. </field>
  5078. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_DEFAULT" type="java.lang.String"
  5079. transient="false" volatile="false"
  5080. static="true" final="true" visibility="public"
  5081. deprecated="not deprecated">
  5082. </field>
  5083. <field name="HADOOP_SOCKS_SERVER_KEY" type="java.lang.String"
  5084. transient="false" volatile="false"
  5085. static="true" final="true" visibility="public"
  5086. deprecated="not deprecated">
  5087. <doc>
  5088. <![CDATA[@see
  5089. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5090. core-default.xml</a>]]>
  5091. </doc>
  5092. </field>
  5093. <field name="HADOOP_UTIL_HASH_TYPE_KEY" type="java.lang.String"
  5094. transient="false" volatile="false"
  5095. static="true" final="true" visibility="public"
  5096. deprecated="not deprecated">
  5097. <doc>
  5098. <![CDATA[@see
  5099. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5100. core-default.xml</a>]]>
  5101. </doc>
  5102. </field>
  5103. <field name="HADOOP_UTIL_HASH_TYPE_DEFAULT" type="java.lang.String"
  5104. transient="false" volatile="false"
  5105. static="true" final="true" visibility="public"
  5106. deprecated="not deprecated">
  5107. <doc>
  5108. <![CDATA[Default value for HADOOP_UTIL_HASH_TYPE_KEY]]>
  5109. </doc>
  5110. </field>
  5111. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  5112. transient="false" volatile="false"
  5113. static="true" final="true" visibility="public"
  5114. deprecated="not deprecated">
  5115. <doc>
  5116. <![CDATA[@see
  5117. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5118. core-default.xml</a>]]>
  5119. </doc>
  5120. </field>
  5121. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS" type="java.lang.String"
  5122. transient="false" volatile="false"
  5123. static="true" final="true" visibility="public"
  5124. deprecated="not deprecated">
  5125. <doc>
  5126. <![CDATA[@see
  5127. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5128. core-default.xml</a>]]>
  5129. </doc>
  5130. </field>
  5131. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS_DEFAULT" type="long"
  5132. transient="false" volatile="false"
  5133. static="true" final="true" visibility="public"
  5134. deprecated="not deprecated">
  5135. <doc>
  5136. <![CDATA[@see
  5137. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5138. core-default.xml</a>]]>
  5139. </doc>
  5140. </field>
  5141. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS" type="java.lang.String"
  5142. transient="false" volatile="false"
  5143. static="true" final="true" visibility="public"
  5144. deprecated="not deprecated">
  5145. <doc>
  5146. <![CDATA[@see
  5147. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5148. core-default.xml</a>]]>
  5149. </doc>
  5150. </field>
  5151. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS_DEFAULT" type="long"
  5152. transient="false" volatile="false"
  5153. static="true" final="true" visibility="public"
  5154. deprecated="not deprecated">
  5155. <doc>
  5156. <![CDATA[@see
  5157. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5158. core-default.xml</a>]]>
  5159. </doc>
  5160. </field>
  5161. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS" type="java.lang.String"
  5162. transient="false" volatile="false"
  5163. static="true" final="true" visibility="public"
  5164. deprecated="not deprecated">
  5165. <doc>
  5166. <![CDATA[@see
  5167. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5168. core-default.xml</a>]]>
  5169. </doc>
  5170. </field>
  5171. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS_DEFAULT" type="long"
  5172. transient="false" volatile="false"
  5173. static="true" final="true" visibility="public"
  5174. deprecated="not deprecated">
  5175. </field>
  5176. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD" type="java.lang.String"
  5177. transient="false" volatile="false"
  5178. static="true" final="true" visibility="public"
  5179. deprecated="not deprecated">
  5180. <doc>
  5181. <![CDATA[@see
  5182. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5183. core-default.xml</a>]]>
  5184. </doc>
  5185. </field>
  5186. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_DEFAULT" type="boolean"
  5187. transient="false" volatile="false"
  5188. static="true" final="true" visibility="public"
  5189. deprecated="not deprecated">
  5190. <doc>
  5191. <![CDATA[@see
  5192. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5193. core-default.xml</a>]]>
  5194. </doc>
  5195. </field>
  5196. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS" type="java.lang.String"
  5197. transient="false" volatile="false"
  5198. static="true" final="true" visibility="public"
  5199. deprecated="not deprecated">
  5200. <doc>
  5201. <![CDATA[@see
  5202. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5203. core-default.xml</a>]]>
  5204. </doc>
  5205. </field>
  5206. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS_DEFAULT" type="int"
  5207. transient="false" volatile="false"
  5208. static="true" final="true" visibility="public"
  5209. deprecated="not deprecated">
  5210. <doc>
  5211. <![CDATA[@see
  5212. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5213. core-default.xml</a>]]>
  5214. </doc>
  5215. </field>
  5216. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY" type="java.lang.String"
  5217. transient="false" volatile="false"
  5218. static="true" final="true" visibility="public"
  5219. deprecated="not deprecated">
  5220. <doc>
  5221. <![CDATA[@see
  5222. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5223. core-default.xml</a>]]>
  5224. </doc>
  5225. </field>
  5226. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS" type="java.lang.String"
  5227. transient="false" volatile="false"
  5228. static="true" final="true" visibility="public"
  5229. deprecated="use
  5230. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY}
  5231. instead.">
  5232. <doc>
  5233. <![CDATA[@deprecated use
  5234. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY}
  5235. instead.]]>
  5236. </doc>
  5237. </field>
  5238. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT" type="long"
  5239. transient="false" volatile="false"
  5240. static="true" final="true" visibility="public"
  5241. deprecated="not deprecated">
  5242. <doc>
  5243. <![CDATA[@see
  5244. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5245. core-default.xml</a>]]>
  5246. </doc>
  5247. </field>
  5248. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS_DEFAULT" type="long"
  5249. transient="false" volatile="false"
  5250. static="true" final="true" visibility="public"
  5251. deprecated="use
  5252. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT}
  5253. instead.">
  5254. <doc>
  5255. <![CDATA[@deprecated use
  5256. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT}
  5257. instead.]]>
  5258. </doc>
  5259. </field>
  5260. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  5261. transient="false" volatile="false"
  5262. static="true" final="true" visibility="public"
  5263. deprecated="not deprecated">
  5264. <doc>
  5265. <![CDATA[@see
  5266. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5267. core-default.xml</a>]]>
  5268. </doc>
  5269. </field>
  5270. <field name="HADOOP_SECURITY_AUTHORIZATION" 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_INSTRUMENTATION_REQUIRES_ADMIN" type="java.lang.String"
  5281. transient="false" volatile="false"
  5282. static="true" final="true" visibility="public"
  5283. deprecated="not deprecated">
  5284. <doc>
  5285. <![CDATA[@see
  5286. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5287. core-default.xml</a>]]>
  5288. </doc>
  5289. </field>
  5290. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  5291. transient="false" volatile="false"
  5292. static="true" final="true" visibility="public"
  5293. deprecated="not deprecated">
  5294. <doc>
  5295. <![CDATA[@see
  5296. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5297. core-default.xml</a>]]>
  5298. </doc>
  5299. </field>
  5300. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL" type="java.lang.String"
  5301. transient="false" volatile="false"
  5302. static="true" final="true" visibility="public"
  5303. deprecated="not deprecated">
  5304. <doc>
  5305. <![CDATA[@see
  5306. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5307. core-default.xml</a>]]>
  5308. </doc>
  5309. </field>
  5310. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL_MECHANISM" type="java.lang.String"
  5311. transient="false" volatile="false"
  5312. static="true" final="true" visibility="public"
  5313. deprecated="not deprecated">
  5314. <doc>
  5315. <![CDATA[@see
  5316. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5317. core-default.xml</a>]]>
  5318. </doc>
  5319. </field>
  5320. <field name="HADOOP_SECURITY_DNS_INTERFACE_KEY" type="java.lang.String"
  5321. transient="false" volatile="false"
  5322. static="true" final="true" visibility="public"
  5323. deprecated="not deprecated">
  5324. <doc>
  5325. <![CDATA[@see
  5326. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5327. core-default.xml</a>]]>
  5328. </doc>
  5329. </field>
  5330. <field name="HADOOP_SECURITY_DNS_NAMESERVER_KEY" type="java.lang.String"
  5331. transient="false" volatile="false"
  5332. static="true" final="true" visibility="public"
  5333. deprecated="not deprecated">
  5334. <doc>
  5335. <![CDATA[@see
  5336. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5337. core-default.xml</a>]]>
  5338. </doc>
  5339. </field>
  5340. <field name="HADOOP_TOKEN_FILES" type="java.lang.String"
  5341. transient="false" volatile="false"
  5342. static="true" final="true" visibility="public"
  5343. deprecated="not deprecated">
  5344. <doc>
  5345. <![CDATA[@see
  5346. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5347. core-default.xml</a>]]>
  5348. </doc>
  5349. </field>
  5350. <field name="HADOOP_HTTP_AUTHENTICATION_TYPE" type="java.lang.String"
  5351. transient="false" volatile="false"
  5352. static="true" final="true" visibility="public"
  5353. deprecated="not deprecated">
  5354. </field>
  5355. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN" type="java.lang.String"
  5356. transient="false" volatile="false"
  5357. static="true" final="true" visibility="public"
  5358. deprecated="not deprecated">
  5359. <doc>
  5360. <![CDATA[@see
  5361. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5362. core-default.xml</a>]]>
  5363. </doc>
  5364. </field>
  5365. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN_DEFAULT" type="int"
  5366. transient="false" volatile="false"
  5367. static="true" final="true" visibility="public"
  5368. deprecated="not deprecated">
  5369. <doc>
  5370. <![CDATA[Default value for HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN]]>
  5371. </doc>
  5372. </field>
  5373. <field name="HADOOP_RPC_PROTECTION" type="java.lang.String"
  5374. transient="false" volatile="false"
  5375. static="true" final="true" visibility="public"
  5376. deprecated="not deprecated">
  5377. <doc>
  5378. <![CDATA[@see
  5379. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5380. core-default.xml</a>]]>
  5381. </doc>
  5382. </field>
  5383. <field name="HADOOP_SECURITY_SASL_PROPS_RESOLVER_CLASS" type="java.lang.String"
  5384. transient="false" volatile="false"
  5385. static="true" final="true" visibility="public"
  5386. deprecated="not deprecated">
  5387. <doc>
  5388. <![CDATA[Class to override Sasl Properties for a connection]]>
  5389. </doc>
  5390. </field>
  5391. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_KEY_PREFIX" type="java.lang.String"
  5392. transient="false" volatile="false"
  5393. static="true" final="true" visibility="public"
  5394. deprecated="not deprecated">
  5395. </field>
  5396. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_KEY" type="java.lang.String"
  5397. transient="false" volatile="false"
  5398. static="true" final="true" visibility="public"
  5399. deprecated="not deprecated">
  5400. </field>
  5401. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_DEFAULT" type="java.lang.String"
  5402. transient="false" volatile="false"
  5403. static="true" final="true" visibility="public"
  5404. deprecated="not deprecated">
  5405. </field>
  5406. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_KEY" type="java.lang.String"
  5407. transient="false" volatile="false"
  5408. static="true" final="true" visibility="public"
  5409. deprecated="not deprecated">
  5410. <doc>
  5411. <![CDATA[@see
  5412. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5413. core-default.xml</a>]]>
  5414. </doc>
  5415. </field>
  5416. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_DEFAULT" type="java.lang.String"
  5417. transient="false" volatile="false"
  5418. static="true" final="true" visibility="public"
  5419. deprecated="not deprecated">
  5420. </field>
  5421. <field name="HADOOP_SECURITY_CRYPTO_JCE_PROVIDER_KEY" type="java.lang.String"
  5422. transient="false" volatile="false"
  5423. static="true" final="true" visibility="public"
  5424. deprecated="not deprecated">
  5425. <doc>
  5426. <![CDATA[@see
  5427. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5428. core-default.xml</a>]]>
  5429. </doc>
  5430. </field>
  5431. <field name="HADOOP_SECURITY_CRYPTO_JCEKS_KEY_SERIALFILTER" 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="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY" type="java.lang.String"
  5442. transient="false" volatile="false"
  5443. static="true" final="true" visibility="public"
  5444. deprecated="not deprecated">
  5445. <doc>
  5446. <![CDATA[@see
  5447. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5448. core-default.xml</a>]]>
  5449. </doc>
  5450. </field>
  5451. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_DEFAULT" type="int"
  5452. transient="false" volatile="false"
  5453. static="true" final="true" visibility="public"
  5454. deprecated="not deprecated">
  5455. <doc>
  5456. <![CDATA[Defalt value for HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY]]>
  5457. </doc>
  5458. </field>
  5459. <field name="HADOOP_SECURITY_IMPERSONATION_PROVIDER_CLASS" type="java.lang.String"
  5460. transient="false" volatile="false"
  5461. static="true" final="true" visibility="public"
  5462. deprecated="not deprecated">
  5463. <doc>
  5464. <![CDATA[Class to override Impersonation provider]]>
  5465. </doc>
  5466. </field>
  5467. <field name="HADOOP_SECURITY_KEY_PROVIDER_PATH" type="java.lang.String"
  5468. transient="false" volatile="false"
  5469. static="true" final="true" visibility="public"
  5470. deprecated="not deprecated">
  5471. <doc>
  5472. <![CDATA[@see
  5473. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5474. core-default.xml</a>]]>
  5475. </doc>
  5476. </field>
  5477. <field name="HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_KEY" type="java.lang.String"
  5478. transient="false" volatile="false"
  5479. static="true" final="true" visibility="public"
  5480. deprecated="not deprecated">
  5481. <doc>
  5482. <![CDATA[@see
  5483. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5484. core-default.xml</a>]]>
  5485. </doc>
  5486. </field>
  5487. <field name="HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_DEFAULT" type="int"
  5488. transient="false" volatile="false"
  5489. static="true" final="true" visibility="public"
  5490. deprecated="not deprecated">
  5491. <doc>
  5492. <![CDATA[Defalt value for HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_KEY.]]>
  5493. </doc>
  5494. </field>
  5495. <field name="HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY" type="java.lang.String"
  5496. transient="false" volatile="false"
  5497. static="true" final="true" visibility="public"
  5498. deprecated="not deprecated">
  5499. <doc>
  5500. <![CDATA[@see
  5501. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5502. core-default.xml</a>]]>
  5503. </doc>
  5504. </field>
  5505. <field name="HADOOP_SECURITY_KEY_DEFAULT_CIPHER_DEFAULT" type="java.lang.String"
  5506. transient="false" volatile="false"
  5507. static="true" final="true" visibility="public"
  5508. deprecated="not deprecated">
  5509. <doc>
  5510. <![CDATA[Defalt value for HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY.]]>
  5511. </doc>
  5512. </field>
  5513. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE" type="java.lang.String"
  5514. transient="false" volatile="false"
  5515. static="true" final="true" visibility="public"
  5516. deprecated="not deprecated">
  5517. <doc>
  5518. <![CDATA[@see
  5519. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5520. core-default.xml</a>]]>
  5521. </doc>
  5522. </field>
  5523. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE_DEFAULT" type="int"
  5524. transient="false" volatile="false"
  5525. static="true" final="true" visibility="public"
  5526. deprecated="not deprecated">
  5527. <doc>
  5528. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_SIZE]]>
  5529. </doc>
  5530. </field>
  5531. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK" type="java.lang.String"
  5532. transient="false" volatile="false"
  5533. static="true" final="true" visibility="public"
  5534. deprecated="not deprecated">
  5535. <doc>
  5536. <![CDATA[@see
  5537. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5538. core-default.xml</a>]]>
  5539. </doc>
  5540. </field>
  5541. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK_DEFAULT" type="float"
  5542. transient="false" volatile="false"
  5543. static="true" final="true" visibility="public"
  5544. deprecated="not deprecated">
  5545. <doc>
  5546. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK]]>
  5547. </doc>
  5548. </field>
  5549. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS" type="java.lang.String"
  5550. transient="false" volatile="false"
  5551. static="true" final="true" visibility="public"
  5552. deprecated="not deprecated">
  5553. <doc>
  5554. <![CDATA[@see
  5555. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5556. core-default.xml</a>]]>
  5557. </doc>
  5558. </field>
  5559. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT" type="int"
  5560. transient="false" volatile="false"
  5561. static="true" final="true" visibility="public"
  5562. deprecated="not deprecated">
  5563. <doc>
  5564. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_NUM_REFILL_THREADS]]>
  5565. </doc>
  5566. </field>
  5567. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_MS" type="java.lang.String"
  5568. transient="false" volatile="false"
  5569. static="true" final="true" visibility="public"
  5570. deprecated="not deprecated">
  5571. <doc>
  5572. <![CDATA[@see
  5573. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5574. core-default.xml</a>]]>
  5575. </doc>
  5576. </field>
  5577. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_DEFAULT" type="int"
  5578. transient="false" volatile="false"
  5579. static="true" final="true" visibility="public"
  5580. deprecated="not deprecated">
  5581. <doc>
  5582. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_EXPIRY (12 hrs)]]>
  5583. </doc>
  5584. </field>
  5585. <field name="KMS_CLIENT_TIMEOUT_SECONDS" type="java.lang.String"
  5586. transient="false" volatile="false"
  5587. static="true" final="true" visibility="public"
  5588. deprecated="not deprecated">
  5589. <doc>
  5590. <![CDATA[@see
  5591. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5592. core-default.xml</a>]]>
  5593. </doc>
  5594. </field>
  5595. <field name="KMS_CLIENT_TIMEOUT_DEFAULT" type="int"
  5596. transient="false" volatile="false"
  5597. static="true" final="true" visibility="public"
  5598. deprecated="not deprecated">
  5599. </field>
  5600. <field name="KMS_CLIENT_FAILOVER_MAX_RETRIES_KEY" type="java.lang.String"
  5601. transient="false" volatile="false"
  5602. static="true" final="true" visibility="public"
  5603. deprecated="not deprecated">
  5604. <doc>
  5605. <![CDATA[Default value is the number of providers specified.]]>
  5606. </doc>
  5607. </field>
  5608. <field name="KMS_CLIENT_FAILOVER_SLEEP_BASE_MILLIS_KEY" type="java.lang.String"
  5609. transient="false" volatile="false"
  5610. static="true" final="true" visibility="public"
  5611. deprecated="not deprecated">
  5612. <doc>
  5613. <![CDATA[@see
  5614. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5615. core-default.xml</a>]]>
  5616. </doc>
  5617. </field>
  5618. <field name="KMS_CLIENT_FAILOVER_SLEEP_BASE_MILLIS_DEFAULT" type="int"
  5619. transient="false" volatile="false"
  5620. static="true" final="true" visibility="public"
  5621. deprecated="not deprecated">
  5622. <doc>
  5623. <![CDATA[Default value is 100 ms.]]>
  5624. </doc>
  5625. </field>
  5626. <field name="KMS_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_KEY" type="java.lang.String"
  5627. transient="false" volatile="false"
  5628. static="true" final="true" visibility="public"
  5629. deprecated="not deprecated">
  5630. <doc>
  5631. <![CDATA[@see
  5632. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5633. core-default.xml</a>]]>
  5634. </doc>
  5635. </field>
  5636. <field name="KMS_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_DEFAULT" type="int"
  5637. transient="false" volatile="false"
  5638. static="true" final="true" visibility="public"
  5639. deprecated="not deprecated">
  5640. <doc>
  5641. <![CDATA[Default value is 2 secs.]]>
  5642. </doc>
  5643. </field>
  5644. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY" type="java.lang.String"
  5645. transient="false" volatile="false"
  5646. static="true" final="true" visibility="public"
  5647. deprecated="not deprecated">
  5648. <doc>
  5649. <![CDATA[@see
  5650. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5651. core-default.xml</a>]]>
  5652. </doc>
  5653. </field>
  5654. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_DEFAULT" type="java.lang.String"
  5655. transient="false" volatile="false"
  5656. static="true" final="true" visibility="public"
  5657. deprecated="not deprecated">
  5658. <doc>
  5659. <![CDATA[Defalt value for HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY]]>
  5660. </doc>
  5661. </field>
  5662. <field name="HADOOP_SECURITY_SECURE_RANDOM_IMPL_KEY" type="java.lang.String"
  5663. transient="false" volatile="false"
  5664. static="true" final="true" visibility="public"
  5665. deprecated="not deprecated">
  5666. <doc>
  5667. <![CDATA[@see
  5668. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5669. core-default.xml</a>]]>
  5670. </doc>
  5671. </field>
  5672. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_KEY" type="java.lang.String"
  5673. transient="false" volatile="false"
  5674. static="true" final="true" visibility="public"
  5675. deprecated="not deprecated">
  5676. <doc>
  5677. <![CDATA[@see
  5678. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5679. core-default.xml</a>]]>
  5680. </doc>
  5681. </field>
  5682. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_DEFAULT" type="java.lang.String"
  5683. transient="false" volatile="false"
  5684. static="true" final="true" visibility="public"
  5685. deprecated="not deprecated">
  5686. </field>
  5687. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_KEY" type="java.lang.String"
  5688. transient="false" volatile="false"
  5689. static="true" final="true" visibility="public"
  5690. deprecated="not deprecated">
  5691. <doc>
  5692. <![CDATA[@see
  5693. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5694. core-default.xml</a>]]>
  5695. </doc>
  5696. </field>
  5697. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_DEFAULT" type="boolean"
  5698. transient="false" volatile="false"
  5699. static="true" final="true" visibility="public"
  5700. deprecated="not deprecated">
  5701. </field>
  5702. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES" type="java.lang.String"
  5703. transient="false" volatile="false"
  5704. static="true" final="true" visibility="public"
  5705. deprecated="not deprecated">
  5706. <doc>
  5707. <![CDATA[@see
  5708. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5709. core-default.xml</a>]]>
  5710. </doc>
  5711. </field>
  5712. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES_DEFAULT" type="long"
  5713. transient="false" volatile="false"
  5714. static="true" final="true" visibility="public"
  5715. deprecated="not deprecated">
  5716. </field>
  5717. <field name="HADOOP_HTTP_LOGS_ENABLED" type="java.lang.String"
  5718. transient="false" volatile="false"
  5719. static="true" final="true" visibility="public"
  5720. deprecated="not deprecated">
  5721. <doc>
  5722. <![CDATA[@see
  5723. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5724. core-default.xml</a>]]>
  5725. </doc>
  5726. </field>
  5727. <field name="HADOOP_HTTP_LOGS_ENABLED_DEFAULT" type="boolean"
  5728. transient="false" volatile="false"
  5729. static="true" final="true" visibility="public"
  5730. deprecated="not deprecated">
  5731. <doc>
  5732. <![CDATA[Defalt value for HADOOP_HTTP_LOGS_ENABLED]]>
  5733. </doc>
  5734. </field>
  5735. <field name="HADOOP_SECURITY_CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  5736. transient="false" volatile="false"
  5737. static="true" final="true" visibility="public"
  5738. deprecated="not deprecated">
  5739. <doc>
  5740. <![CDATA[@see
  5741. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5742. core-default.xml</a>]]>
  5743. </doc>
  5744. </field>
  5745. <field name="HADOOP_SECURITY_CREDENTIAL_CLEAR_TEXT_FALLBACK" type="java.lang.String"
  5746. transient="false" volatile="false"
  5747. static="true" final="true" visibility="public"
  5748. deprecated="not deprecated">
  5749. <doc>
  5750. <![CDATA[@see
  5751. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5752. core-default.xml</a>]]>
  5753. </doc>
  5754. </field>
  5755. <field name="HADOOP_SECURITY_CREDENTIAL_CLEAR_TEXT_FALLBACK_DEFAULT" type="boolean"
  5756. transient="false" volatile="false"
  5757. static="true" final="true" visibility="public"
  5758. deprecated="not deprecated">
  5759. </field>
  5760. <field name="HADOOP_SECURITY_CREDENTIAL_PASSWORD_FILE_KEY" type="java.lang.String"
  5761. transient="false" volatile="false"
  5762. static="true" final="true" visibility="public"
  5763. deprecated="not deprecated">
  5764. <doc>
  5765. <![CDATA[@see
  5766. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5767. core-default.xml</a>]]>
  5768. </doc>
  5769. </field>
  5770. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS" type="java.lang.String"
  5771. transient="false" volatile="false"
  5772. static="true" final="true" visibility="public"
  5773. deprecated="not deprecated">
  5774. <doc>
  5775. <![CDATA[@see
  5776. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5777. core-default.xml</a>]]>
  5778. </doc>
  5779. </field>
  5780. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS_DEFAULT" type="java.lang.String"
  5781. transient="false" volatile="false"
  5782. static="true" final="true" visibility="public"
  5783. deprecated="not deprecated">
  5784. </field>
  5785. <field name="HADOOP_SYSTEM_TAGS" type="java.lang.String"
  5786. transient="false" volatile="false"
  5787. static="true" final="true" visibility="public"
  5788. deprecated="Please use
  5789. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_SYSTEM} instead
  5790. See https://issues.apache.org/jira/browse/HADOOP-15474">
  5791. <doc>
  5792. <![CDATA[@deprecated Please use
  5793. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_SYSTEM} instead
  5794. See https://issues.apache.org/jira/browse/HADOOP-15474]]>
  5795. </doc>
  5796. </field>
  5797. <field name="HADOOP_CUSTOM_TAGS" type="java.lang.String"
  5798. transient="false" volatile="false"
  5799. static="true" final="true" visibility="public"
  5800. deprecated="Please use
  5801. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_CUSTOM} instead
  5802. See https://issues.apache.org/jira/browse/HADOOP-15474">
  5803. <doc>
  5804. <![CDATA[@deprecated Please use
  5805. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_CUSTOM} instead
  5806. See https://issues.apache.org/jira/browse/HADOOP-15474]]>
  5807. </doc>
  5808. </field>
  5809. <field name="HADOOP_TAGS_SYSTEM" type="java.lang.String"
  5810. transient="false" volatile="false"
  5811. static="true" final="true" visibility="public"
  5812. deprecated="not deprecated">
  5813. </field>
  5814. <field name="HADOOP_TAGS_CUSTOM" type="java.lang.String"
  5815. transient="false" volatile="false"
  5816. static="true" final="true" visibility="public"
  5817. deprecated="not deprecated">
  5818. </field>
  5819. <field name="SERVICE_SHUTDOWN_TIMEOUT" type="java.lang.String"
  5820. transient="false" volatile="false"
  5821. static="true" final="true" visibility="public"
  5822. deprecated="not deprecated">
  5823. <doc>
  5824. <![CDATA[Configuration option for the shutdown hook manager shutdown time:
  5825. {@value}.]]>
  5826. </doc>
  5827. </field>
  5828. <field name="SERVICE_SHUTDOWN_TIMEOUT_DEFAULT" type="long"
  5829. transient="false" volatile="false"
  5830. static="true" final="true" visibility="public"
  5831. deprecated="not deprecated">
  5832. <doc>
  5833. <![CDATA[Default shutdown hook timeout: {@value} seconds.]]>
  5834. </doc>
  5835. </field>
  5836. <field name="HADOOP_HTTP_IDLE_TIMEOUT_MS_KEY" type="java.lang.String"
  5837. transient="false" volatile="false"
  5838. static="true" final="true" visibility="public"
  5839. deprecated="not deprecated">
  5840. <doc>
  5841. <![CDATA[@see
  5842. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5843. core-default.xml</a>]]>
  5844. </doc>
  5845. </field>
  5846. <field name="HADOOP_HTTP_IDLE_TIMEOUT_MS_DEFAULT" type="int"
  5847. transient="false" volatile="false"
  5848. static="true" final="true" visibility="public"
  5849. deprecated="not deprecated">
  5850. </field>
  5851. <doc>
  5852. <![CDATA[This class contains constants for configuration keys used
  5853. in the common code.
  5854. It includes all publicly documented configuration keys. In general
  5855. this class should not be used directly (use CommonConfigurationKeys
  5856. instead)]]>
  5857. </doc>
  5858. </class>
  5859. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  5860. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  5861. <class name="ContentSummary" extends="org.apache.hadoop.fs.QuotaUsage"
  5862. abstract="false"
  5863. static="false" final="false" visibility="public"
  5864. deprecated="not deprecated">
  5865. <implements name="org.apache.hadoop.io.Writable"/>
  5866. <constructor name="ContentSummary"
  5867. static="false" final="false" visibility="public"
  5868. deprecated="not deprecated">
  5869. <doc>
  5870. <![CDATA[Constructor deprecated by ContentSummary.Builder]]>
  5871. </doc>
  5872. </constructor>
  5873. <constructor name="ContentSummary" type="long, long, long"
  5874. static="false" final="false" visibility="public"
  5875. deprecated="not deprecated">
  5876. <doc>
  5877. <![CDATA[Constructor, deprecated by ContentSummary.Builder
  5878. This constructor implicitly set spaceConsumed the same as length.
  5879. spaceConsumed and length must be set explicitly with
  5880. ContentSummary.Builder]]>
  5881. </doc>
  5882. </constructor>
  5883. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  5884. static="false" final="false" visibility="public"
  5885. deprecated="not deprecated">
  5886. <doc>
  5887. <![CDATA[Constructor, deprecated by ContentSummary.Builder]]>
  5888. </doc>
  5889. </constructor>
  5890. <method name="getLength" return="long"
  5891. abstract="false" native="false" synchronized="false"
  5892. static="false" final="false" visibility="public"
  5893. deprecated="not deprecated">
  5894. <doc>
  5895. <![CDATA[@return the length]]>
  5896. </doc>
  5897. </method>
  5898. <method name="getSnapshotLength" return="long"
  5899. abstract="false" native="false" synchronized="false"
  5900. static="false" final="false" visibility="public"
  5901. deprecated="not deprecated">
  5902. </method>
  5903. <method name="getDirectoryCount" return="long"
  5904. abstract="false" native="false" synchronized="false"
  5905. static="false" final="false" visibility="public"
  5906. deprecated="not deprecated">
  5907. <doc>
  5908. <![CDATA[@return the directory count]]>
  5909. </doc>
  5910. </method>
  5911. <method name="getSnapshotDirectoryCount" return="long"
  5912. abstract="false" native="false" synchronized="false"
  5913. static="false" final="false" visibility="public"
  5914. deprecated="not deprecated">
  5915. </method>
  5916. <method name="getFileCount" return="long"
  5917. abstract="false" native="false" synchronized="false"
  5918. static="false" final="false" visibility="public"
  5919. deprecated="not deprecated">
  5920. <doc>
  5921. <![CDATA[@return the file count]]>
  5922. </doc>
  5923. </method>
  5924. <method name="getSnapshotFileCount" return="long"
  5925. abstract="false" native="false" synchronized="false"
  5926. static="false" final="false" visibility="public"
  5927. deprecated="not deprecated">
  5928. </method>
  5929. <method name="getSnapshotSpaceConsumed" return="long"
  5930. abstract="false" native="false" synchronized="false"
  5931. static="false" final="false" visibility="public"
  5932. deprecated="not deprecated">
  5933. </method>
  5934. <method name="getErasureCodingPolicy" return="java.lang.String"
  5935. abstract="false" native="false" synchronized="false"
  5936. static="false" final="false" visibility="public"
  5937. deprecated="not deprecated">
  5938. </method>
  5939. <method name="equals" return="boolean"
  5940. abstract="false" native="false" synchronized="false"
  5941. static="false" final="false" visibility="public"
  5942. deprecated="not deprecated">
  5943. <param name="to" type="java.lang.Object"/>
  5944. </method>
  5945. <method name="hashCode" return="int"
  5946. abstract="false" native="false" synchronized="false"
  5947. static="false" final="false" visibility="public"
  5948. deprecated="not deprecated">
  5949. </method>
  5950. <method name="getHeader" return="java.lang.String"
  5951. abstract="false" native="false" synchronized="false"
  5952. static="true" final="false" visibility="public"
  5953. deprecated="not deprecated">
  5954. <param name="qOption" type="boolean"/>
  5955. <doc>
  5956. <![CDATA[Return the header of the output.
  5957. if qOption is false, output directory count, file count, and content size;
  5958. if qOption is true, output quota and remaining quota as well.
  5959. @param qOption a flag indicating if quota needs to be printed or not
  5960. @return the header of the output]]>
  5961. </doc>
  5962. </method>
  5963. <method name="getHeaderFields" return="java.lang.String[]"
  5964. abstract="false" native="false" synchronized="false"
  5965. static="true" final="false" visibility="public"
  5966. deprecated="not deprecated">
  5967. <doc>
  5968. <![CDATA[Returns the names of the fields from the summary header.
  5969. @return names of fields as displayed in the header]]>
  5970. </doc>
  5971. </method>
  5972. <method name="getQuotaHeaderFields" return="java.lang.String[]"
  5973. abstract="false" native="false" synchronized="false"
  5974. static="true" final="false" visibility="public"
  5975. deprecated="not deprecated">
  5976. <doc>
  5977. <![CDATA[Returns the names of the fields used in the quota summary.
  5978. @return names of quota fields as displayed in the header]]>
  5979. </doc>
  5980. </method>
  5981. <method name="toString" return="java.lang.String"
  5982. abstract="false" native="false" synchronized="false"
  5983. static="false" final="false" visibility="public"
  5984. deprecated="not deprecated">
  5985. </method>
  5986. <method name="toString" return="java.lang.String"
  5987. abstract="false" native="false" synchronized="false"
  5988. static="false" final="false" visibility="public"
  5989. deprecated="not deprecated">
  5990. <param name="qOption" type="boolean"/>
  5991. <doc>
  5992. <![CDATA[Return the string representation of the object in the output format.
  5993. if qOption is false, output directory count, file count, and content size;
  5994. if qOption is true, output quota and remaining quota as well.
  5995. @param qOption a flag indicating if quota needs to be printed or not
  5996. @return the string representation of the object]]>
  5997. </doc>
  5998. </method>
  5999. <method name="toString" return="java.lang.String"
  6000. abstract="false" native="false" synchronized="false"
  6001. static="false" final="false" visibility="public"
  6002. deprecated="not deprecated">
  6003. <param name="qOption" type="boolean"/>
  6004. <param name="hOption" type="boolean"/>
  6005. <doc>
  6006. <![CDATA[Return the string representation of the object in the output format.
  6007. For description of the options,
  6008. @see #toString(boolean, boolean, boolean, boolean, List)
  6009. @param qOption a flag indicating if quota needs to be printed or not
  6010. @param hOption a flag indicating if human readable output if to be used
  6011. @return the string representation of the object]]>
  6012. </doc>
  6013. </method>
  6014. <method name="toString" return="java.lang.String"
  6015. abstract="false" native="false" synchronized="false"
  6016. static="false" final="false" visibility="public"
  6017. deprecated="not deprecated">
  6018. <param name="qOption" type="boolean"/>
  6019. <param name="hOption" type="boolean"/>
  6020. <param name="xOption" type="boolean"/>
  6021. <doc>
  6022. <![CDATA[Return the string representation of the object in the output format.
  6023. For description of the options,
  6024. @see #toString(boolean, boolean, boolean, boolean, List)
  6025. @param qOption a flag indicating if quota needs to be printed or not
  6026. @param hOption a flag indicating if human readable output is to be used
  6027. @param xOption a flag indicating if calculation from snapshots is to be
  6028. included in the output
  6029. @return the string representation of the object]]>
  6030. </doc>
  6031. </method>
  6032. <method name="toString" return="java.lang.String"
  6033. abstract="false" native="false" synchronized="false"
  6034. static="false" final="false" visibility="public"
  6035. deprecated="not deprecated">
  6036. <param name="qOption" type="boolean"/>
  6037. <param name="hOption" type="boolean"/>
  6038. <param name="tOption" type="boolean"/>
  6039. <param name="types" type="java.util.List"/>
  6040. <doc>
  6041. <![CDATA[Return the string representation of the object in the output format.
  6042. For description of the options,
  6043. @see #toString(boolean, boolean, boolean, boolean, List)
  6044. @param qOption a flag indicating if quota needs to be printed or not
  6045. @param hOption a flag indicating if human readable output if to be used
  6046. @param tOption a flag indicating if display quota by storage types
  6047. @param types Storage types to display
  6048. @return the string representation of the object]]>
  6049. </doc>
  6050. </method>
  6051. <method name="toString" return="java.lang.String"
  6052. abstract="false" native="false" synchronized="false"
  6053. static="false" final="false" visibility="public"
  6054. deprecated="not deprecated">
  6055. <param name="qOption" type="boolean"/>
  6056. <param name="hOption" type="boolean"/>
  6057. <param name="tOption" type="boolean"/>
  6058. <param name="xOption" type="boolean"/>
  6059. <param name="types" type="java.util.List"/>
  6060. <doc>
  6061. <![CDATA[Return the string representation of the object in the output format.
  6062. if qOption is false, output directory count, file count, and content size;
  6063. if qOption is true, output quota and remaining quota as well.
  6064. if hOption is false, file sizes are returned in bytes
  6065. if hOption is true, file sizes are returned in human readable
  6066. if tOption is true, display the quota by storage types
  6067. if tOption is false, same logic with #toString(boolean,boolean)
  6068. if xOption is false, output includes the calculation from snapshots
  6069. if xOption is true, output excludes the calculation from snapshots
  6070. @param qOption a flag indicating if quota needs to be printed or not
  6071. @param hOption a flag indicating if human readable output is to be used
  6072. @param tOption a flag indicating if display quota by storage types
  6073. @param xOption a flag indicating if calculation from snapshots is to be
  6074. included in the output
  6075. @param types Storage types to display
  6076. @return the string representation of the object]]>
  6077. </doc>
  6078. </method>
  6079. <doc>
  6080. <![CDATA[Store the summary of a content (a directory or a file).]]>
  6081. </doc>
  6082. </class>
  6083. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  6084. <!-- start class org.apache.hadoop.fs.CreateFlag -->
  6085. <class name="CreateFlag" extends="java.lang.Enum"
  6086. abstract="false"
  6087. static="false" final="true" visibility="public"
  6088. deprecated="not deprecated">
  6089. <method name="values" return="org.apache.hadoop.fs.CreateFlag[]"
  6090. abstract="false" native="false" synchronized="false"
  6091. static="true" final="false" visibility="public"
  6092. deprecated="not deprecated">
  6093. </method>
  6094. <method name="valueOf" return="org.apache.hadoop.fs.CreateFlag"
  6095. abstract="false" native="false" synchronized="false"
  6096. static="true" final="false" visibility="public"
  6097. deprecated="not deprecated">
  6098. <param name="name" type="java.lang.String"/>
  6099. </method>
  6100. <method name="validate"
  6101. abstract="false" native="false" synchronized="false"
  6102. static="true" final="false" visibility="public"
  6103. deprecated="not deprecated">
  6104. <param name="flag" type="java.util.EnumSet"/>
  6105. <doc>
  6106. <![CDATA[Validate the CreateFlag and throw exception if it is invalid
  6107. @param flag set of CreateFlag
  6108. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  6109. </doc>
  6110. </method>
  6111. <method name="validate"
  6112. abstract="false" native="false" synchronized="false"
  6113. static="true" final="false" visibility="public"
  6114. deprecated="not deprecated">
  6115. <param name="path" type="java.lang.Object"/>
  6116. <param name="pathExists" type="boolean"/>
  6117. <param name="flag" type="java.util.EnumSet"/>
  6118. <exception name="IOException" type="java.io.IOException"/>
  6119. <doc>
  6120. <![CDATA[Validate the CreateFlag for create operation
  6121. @param path Object representing the path; usually String or {@link Path}
  6122. @param pathExists pass true if the path exists in the file system
  6123. @param flag set of CreateFlag
  6124. @throws IOException on error
  6125. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  6126. </doc>
  6127. </method>
  6128. <method name="validateForAppend"
  6129. abstract="false" native="false" synchronized="false"
  6130. static="true" final="false" visibility="public"
  6131. deprecated="not deprecated">
  6132. <param name="flag" type="java.util.EnumSet"/>
  6133. <doc>
  6134. <![CDATA[Validate the CreateFlag for the append operation. The flag must contain
  6135. APPEND, and cannot contain OVERWRITE.]]>
  6136. </doc>
  6137. </method>
  6138. <doc>
  6139. <![CDATA[CreateFlag specifies the file create semantic. Users can combine flags like: <br>
  6140. <code>
  6141. EnumSet.of(CreateFlag.CREATE, CreateFlag.APPEND)
  6142. <code>
  6143. <p>
  6144. Use the CreateFlag as follows:
  6145. <ol>
  6146. <li> CREATE - to create a file if it does not exist,
  6147. else throw FileAlreadyExists.</li>
  6148. <li> APPEND - to append to a file if it exists,
  6149. else throw FileNotFoundException.</li>
  6150. <li> OVERWRITE - to truncate a file if it exists,
  6151. else throw FileNotFoundException.</li>
  6152. <li> CREATE|APPEND - to create a file if it does not exist,
  6153. else append to an existing file.</li>
  6154. <li> CREATE|OVERWRITE - to create a file if it does not exist,
  6155. else overwrite an existing file.</li>
  6156. <li> SYNC_BLOCK - to force closed blocks to the disk device.
  6157. In addition {@link Syncable#hsync()} should be called after each write,
  6158. if true synchronous behavior is required.</li>
  6159. <li> LAZY_PERSIST - Create the block on transient storage (RAM) if
  6160. available.</li>
  6161. <li> APPEND_NEWBLOCK - Append data to a new block instead of end of the last
  6162. partial block.</li>
  6163. </ol>
  6164. Following combinations are not valid and will result in
  6165. {@link HadoopIllegalArgumentException}:
  6166. <ol>
  6167. <li> APPEND|OVERWRITE</li>
  6168. <li> CREATE|APPEND|OVERWRITE</li>
  6169. </ol>]]>
  6170. </doc>
  6171. </class>
  6172. <!-- end class org.apache.hadoop.fs.CreateFlag -->
  6173. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  6174. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  6175. abstract="false"
  6176. static="false" final="false" visibility="public"
  6177. deprecated="not deprecated">
  6178. <constructor name="FileAlreadyExistsException"
  6179. static="false" final="false" visibility="public"
  6180. deprecated="not deprecated">
  6181. </constructor>
  6182. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  6183. static="false" final="false" visibility="public"
  6184. deprecated="not deprecated">
  6185. </constructor>
  6186. <doc>
  6187. <![CDATA[Used when target file already exists for any operation and
  6188. is not configured to be overwritten.]]>
  6189. </doc>
  6190. </class>
  6191. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  6192. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  6193. <class name="FileChecksum" extends="java.lang.Object"
  6194. abstract="true"
  6195. static="false" final="false" visibility="public"
  6196. deprecated="not deprecated">
  6197. <implements name="org.apache.hadoop.io.Writable"/>
  6198. <constructor name="FileChecksum"
  6199. static="false" final="false" visibility="public"
  6200. deprecated="not deprecated">
  6201. </constructor>
  6202. <method name="getAlgorithmName" return="java.lang.String"
  6203. abstract="true" native="false" synchronized="false"
  6204. static="false" final="false" visibility="public"
  6205. deprecated="not deprecated">
  6206. <doc>
  6207. <![CDATA[The checksum algorithm name]]>
  6208. </doc>
  6209. </method>
  6210. <method name="getLength" return="int"
  6211. abstract="true" native="false" synchronized="false"
  6212. static="false" final="false" visibility="public"
  6213. deprecated="not deprecated">
  6214. <doc>
  6215. <![CDATA[The length of the checksum in bytes]]>
  6216. </doc>
  6217. </method>
  6218. <method name="getBytes" return="byte[]"
  6219. abstract="true" native="false" synchronized="false"
  6220. static="false" final="false" visibility="public"
  6221. deprecated="not deprecated">
  6222. <doc>
  6223. <![CDATA[The value of the checksum in bytes]]>
  6224. </doc>
  6225. </method>
  6226. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  6227. abstract="false" native="false" synchronized="false"
  6228. static="false" final="false" visibility="public"
  6229. deprecated="not deprecated">
  6230. </method>
  6231. <method name="equals" return="boolean"
  6232. abstract="false" native="false" synchronized="false"
  6233. static="false" final="false" visibility="public"
  6234. deprecated="not deprecated">
  6235. <param name="other" type="java.lang.Object"/>
  6236. <doc>
  6237. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  6238. </doc>
  6239. </method>
  6240. <method name="hashCode" return="int"
  6241. abstract="false" native="false" synchronized="false"
  6242. static="false" final="false" visibility="public"
  6243. deprecated="not deprecated">
  6244. </method>
  6245. <doc>
  6246. <![CDATA[An abstract class representing file checksums for files.]]>
  6247. </doc>
  6248. </class>
  6249. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  6250. <!-- start class org.apache.hadoop.fs.FileContext -->
  6251. <class name="FileContext" extends="java.lang.Object"
  6252. abstract="false"
  6253. static="false" final="false" visibility="public"
  6254. deprecated="not deprecated">
  6255. <implements name="org.apache.hadoop.fs.PathCapabilities"/>
  6256. <method name="getFSofPath" return="org.apache.hadoop.fs.AbstractFileSystem"
  6257. abstract="false" native="false" synchronized="false"
  6258. static="false" final="false" visibility="protected"
  6259. deprecated="not deprecated">
  6260. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  6261. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6262. <exception name="IOException" type="java.io.IOException"/>
  6263. <doc>
  6264. <![CDATA[Get the file system of supplied path.
  6265. @param absOrFqPath - absolute or fully qualified path
  6266. @return the file system of the path
  6267. @throws UnsupportedFileSystemException If the file system for
  6268. <code>absOrFqPath</code> is not supported.
  6269. @throws IOException If the file system for <code>absOrFqPath</code> could
  6270. not be instantiated.]]>
  6271. </doc>
  6272. </method>
  6273. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6274. abstract="false" native="false" synchronized="false"
  6275. static="true" final="false" visibility="public"
  6276. deprecated="not deprecated">
  6277. <param name="defFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6278. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6279. <doc>
  6280. <![CDATA[Create a FileContext with specified FS as default using the specified
  6281. config.
  6282. @param defFS
  6283. @param aConf
  6284. @return new FileContext with specified FS as default.]]>
  6285. </doc>
  6286. </method>
  6287. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6288. abstract="false" native="false" synchronized="false"
  6289. static="true" final="false" visibility="protected"
  6290. deprecated="not deprecated">
  6291. <param name="defaultFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6292. <doc>
  6293. <![CDATA[Create a FileContext for specified file system using the default config.
  6294. @param defaultFS
  6295. @return a FileContext with the specified AbstractFileSystem
  6296. as the default FS.]]>
  6297. </doc>
  6298. </method>
  6299. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6300. abstract="false" native="false" synchronized="false"
  6301. static="true" final="false" visibility="public"
  6302. deprecated="not deprecated">
  6303. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6304. <doc>
  6305. <![CDATA[Create a FileContext using the default config read from the
  6306. $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
  6307. from core-defaults.xml in the release jar.
  6308. @throws UnsupportedFileSystemException If the file system from the default
  6309. configuration is not supported]]>
  6310. </doc>
  6311. </method>
  6312. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6313. abstract="false" native="false" synchronized="false"
  6314. static="true" final="false" visibility="public"
  6315. deprecated="not deprecated">
  6316. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6317. <doc>
  6318. <![CDATA[@return a FileContext for the local file system using the default config.
  6319. @throws UnsupportedFileSystemException If the file system for
  6320. {@link FsConstants#LOCAL_FS_URI} is not supported.]]>
  6321. </doc>
  6322. </method>
  6323. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6324. abstract="false" native="false" synchronized="false"
  6325. static="true" final="false" visibility="public"
  6326. deprecated="not deprecated">
  6327. <param name="defaultFsUri" type="java.net.URI"/>
  6328. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6329. <doc>
  6330. <![CDATA[Create a FileContext for specified URI using the default config.
  6331. @param defaultFsUri
  6332. @return a FileContext with the specified URI as the default FS.
  6333. @throws UnsupportedFileSystemException If the file system for
  6334. <code>defaultFsUri</code> is not supported]]>
  6335. </doc>
  6336. </method>
  6337. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6338. abstract="false" native="false" synchronized="false"
  6339. static="true" final="false" visibility="public"
  6340. deprecated="not deprecated">
  6341. <param name="defaultFsUri" type="java.net.URI"/>
  6342. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6343. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6344. <doc>
  6345. <![CDATA[Create a FileContext for specified default URI using the specified config.
  6346. @param defaultFsUri
  6347. @param aConf
  6348. @return new FileContext for specified uri
  6349. @throws UnsupportedFileSystemException If the file system with specified is
  6350. not supported
  6351. @throws RuntimeException If the file system specified is supported but
  6352. could not be instantiated, or if login fails.]]>
  6353. </doc>
  6354. </method>
  6355. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6356. abstract="false" native="false" synchronized="false"
  6357. static="true" final="false" visibility="public"
  6358. deprecated="not deprecated">
  6359. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6360. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6361. <doc>
  6362. <![CDATA[Create a FileContext using the passed config. Generally it is better to use
  6363. {@link #getFileContext(URI, Configuration)} instead of this one.
  6364. @param aConf
  6365. @return new FileContext
  6366. @throws UnsupportedFileSystemException If file system in the config
  6367. is not supported]]>
  6368. </doc>
  6369. </method>
  6370. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6371. abstract="false" native="false" synchronized="false"
  6372. static="true" final="false" visibility="public"
  6373. deprecated="not deprecated">
  6374. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6375. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6376. <doc>
  6377. <![CDATA[@param aConf - from which the FileContext is configured
  6378. @return a FileContext for the local file system using the specified config.
  6379. @throws UnsupportedFileSystemException If default file system in the config
  6380. is not supported]]>
  6381. </doc>
  6382. </method>
  6383. <method name="setWorkingDirectory"
  6384. abstract="false" native="false" synchronized="false"
  6385. static="false" final="false" visibility="public"
  6386. deprecated="not deprecated">
  6387. <param name="newWDir" type="org.apache.hadoop.fs.Path"/>
  6388. <exception name="IOException" type="java.io.IOException"/>
  6389. <doc>
  6390. <![CDATA[Set the working directory for wd-relative names (such a "foo/bar"). Working
  6391. directory feature is provided by simply prefixing relative names with the
  6392. working dir. Note this is different from Unix where the wd is actually set
  6393. to the inode. Hence setWorkingDir does not follow symlinks etc. This works
  6394. better in a distributed environment that has multiple independent roots.
  6395. {@link #getWorkingDirectory()} should return what setWorkingDir() set.
  6396. @param newWDir new working directory
  6397. @throws IOException
  6398. <br>
  6399. NewWdir can be one of:
  6400. <ul>
  6401. <li>relative path: "foo/bar";</li>
  6402. <li>absolute without scheme: "/foo/bar"</li>
  6403. <li>fully qualified with scheme: "xx://auth/foo/bar"</li>
  6404. </ul>
  6405. <br>
  6406. Illegal WDs:
  6407. <ul>
  6408. <li>relative with scheme: "xx:foo/bar"</li>
  6409. <li>non existent directory</li>
  6410. </ul>]]>
  6411. </doc>
  6412. </method>
  6413. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6414. abstract="false" native="false" synchronized="false"
  6415. static="false" final="false" visibility="public"
  6416. deprecated="not deprecated">
  6417. <doc>
  6418. <![CDATA[Gets the working directory for wd-relative names (such a "foo/bar").]]>
  6419. </doc>
  6420. </method>
  6421. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  6422. abstract="false" native="false" synchronized="false"
  6423. static="false" final="false" visibility="public"
  6424. deprecated="not deprecated">
  6425. <doc>
  6426. <![CDATA[Gets the ugi in the file-context
  6427. @return UserGroupInformation]]>
  6428. </doc>
  6429. </method>
  6430. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6431. abstract="false" native="false" synchronized="false"
  6432. static="false" final="false" visibility="public"
  6433. deprecated="not deprecated">
  6434. <doc>
  6435. <![CDATA[Return the current user's home directory in this file system.
  6436. The default implementation returns "/user/$USER/".
  6437. @return the home directory]]>
  6438. </doc>
  6439. </method>
  6440. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  6441. abstract="false" native="false" synchronized="false"
  6442. static="false" final="false" visibility="public"
  6443. deprecated="not deprecated">
  6444. <doc>
  6445. <![CDATA[@return the umask of this FileContext]]>
  6446. </doc>
  6447. </method>
  6448. <method name="setUMask"
  6449. abstract="false" native="false" synchronized="false"
  6450. static="false" final="false" visibility="public"
  6451. deprecated="not deprecated">
  6452. <param name="newUmask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6453. <doc>
  6454. <![CDATA[Set umask to the supplied parameter.
  6455. @param newUmask the new umask]]>
  6456. </doc>
  6457. </method>
  6458. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  6459. abstract="false" native="false" synchronized="false"
  6460. static="false" final="false" visibility="public"
  6461. deprecated="not deprecated">
  6462. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6463. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6464. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  6465. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6466. <exception name="IOException" type="java.io.IOException"/>
  6467. <doc>
  6468. <![CDATA[Resolve the path following any symlinks or mount points
  6469. @param f to be resolved
  6470. @return fully qualified resolved path
  6471. @throws FileNotFoundException If <code>f</code> does not exist
  6472. @throws AccessControlException if access denied
  6473. @throws IOException If an IO Error occurred
  6474. Exceptions applicable to file systems accessed over RPC:
  6475. @throws RpcClientException If an exception occurred in the RPC client
  6476. @throws RpcServerException If an exception occurred in the RPC server
  6477. @throws UnexpectedServerException If server implementation throws
  6478. undeclared exception to RPC server
  6479. RuntimeExceptions:
  6480. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6481. </doc>
  6482. </method>
  6483. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6484. abstract="false" native="false" synchronized="false"
  6485. static="false" final="false" visibility="public"
  6486. deprecated="not deprecated">
  6487. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6488. <doc>
  6489. <![CDATA[Make the path fully qualified if it is isn't.
  6490. A Fully-qualified path has scheme and authority specified and an absolute
  6491. path.
  6492. Use the default file system and working dir in this FileContext to qualify.
  6493. @param path
  6494. @return qualified path]]>
  6495. </doc>
  6496. </method>
  6497. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6498. abstract="false" native="false" synchronized="false"
  6499. static="false" final="false" visibility="public"
  6500. deprecated="not deprecated">
  6501. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6502. <param name="createFlag" type="java.util.EnumSet"/>
  6503. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  6504. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6505. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6506. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6507. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6508. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6509. <exception name="IOException" type="java.io.IOException"/>
  6510. <doc>
  6511. <![CDATA[Create or overwrite file on indicated path and returns an output stream for
  6512. writing into the file.
  6513. @param f the file name to open
  6514. @param createFlag gives the semantics of create; see {@link CreateFlag}
  6515. @param opts file creation options; see {@link Options.CreateOpts}.
  6516. <ul>
  6517. <li>Progress - to report progress on the operation - default null
  6518. <li>Permission - umask is applied against permission: default is
  6519. FsPermissions:getDefault()
  6520. <li>CreateParent - create missing parent path; default is to not
  6521. to create parents
  6522. <li>The defaults for the following are SS defaults of the file
  6523. server implementing the target path. Not all parameters make sense
  6524. for all kinds of file system - eg. localFS ignores Blocksize,
  6525. replication, checksum
  6526. <ul>
  6527. <li>BufferSize - buffersize used in FSDataOutputStream
  6528. <li>Blocksize - block size for file blocks
  6529. <li>ReplicationFactor - replication for blocks
  6530. <li>ChecksumParam - Checksum parameters. server default is used
  6531. if not specified.
  6532. </ul>
  6533. </ul>
  6534. @return {@link FSDataOutputStream} for created file
  6535. @throws AccessControlException If access is denied
  6536. @throws FileAlreadyExistsException If file <code>f</code> already exists
  6537. @throws FileNotFoundException If parent of <code>f</code> does not exist
  6538. and <code>createParent</code> is false
  6539. @throws ParentNotDirectoryException If parent of <code>f</code> is not a
  6540. directory.
  6541. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6542. not supported
  6543. @throws IOException If an I/O error occurred
  6544. Exceptions applicable to file systems accessed over RPC:
  6545. @throws RpcClientException If an exception occurred in the RPC client
  6546. @throws RpcServerException If an exception occurred in the RPC server
  6547. @throws UnexpectedServerException If server implementation throws
  6548. undeclared exception to RPC server
  6549. RuntimeExceptions:
  6550. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6551. </doc>
  6552. </method>
  6553. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  6554. abstract="false" native="false" synchronized="false"
  6555. static="false" final="false" visibility="public"
  6556. deprecated="not deprecated">
  6557. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6558. <exception name="IOException" type="java.io.IOException"/>
  6559. <doc>
  6560. <![CDATA[Create a {@link FSDataOutputStreamBuilder} for creating or overwriting
  6561. a file on indicated path.
  6562. @param f the file path to create builder for.
  6563. @return {@link FSDataOutputStreamBuilder} to build a
  6564. {@link FSDataOutputStream}.
  6565. Upon {@link FSDataOutputStreamBuilder#build()} being invoked,
  6566. builder parameters will be verified by {@link FileContext} and
  6567. {@link AbstractFileSystem#create}. And filesystem states will be modified.
  6568. Client should expect {@link FSDataOutputStreamBuilder#build()} throw the
  6569. same exceptions as create(Path, EnumSet, CreateOpts...).]]>
  6570. </doc>
  6571. </method>
  6572. <method name="mkdir"
  6573. abstract="false" native="false" synchronized="false"
  6574. static="false" final="false" visibility="public"
  6575. deprecated="not deprecated">
  6576. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6577. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6578. <param name="createParent" type="boolean"/>
  6579. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6580. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6581. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6582. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6583. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6584. <exception name="IOException" type="java.io.IOException"/>
  6585. <doc>
  6586. <![CDATA[Make(create) a directory and all the non-existent parents.
  6587. @param dir - the dir to make
  6588. @param permission - permissions is set permission&~umask
  6589. @param createParent - if true then missing parent dirs are created if false
  6590. then parent must exist
  6591. @throws AccessControlException If access is denied
  6592. @throws FileAlreadyExistsException If directory <code>dir</code> already
  6593. exists
  6594. @throws FileNotFoundException If parent of <code>dir</code> does not exist
  6595. and <code>createParent</code> is false
  6596. @throws ParentNotDirectoryException If parent of <code>dir</code> is not a
  6597. directory
  6598. @throws UnsupportedFileSystemException If file system for <code>dir</code>
  6599. 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 UnexpectedServerException If server implementation throws
  6604. undeclared exception to RPC server
  6605. RuntimeExceptions:
  6606. @throws InvalidPathException If path <code>dir</code> is not valid]]>
  6607. </doc>
  6608. </method>
  6609. <method name="delete" return="boolean"
  6610. abstract="false" native="false" synchronized="false"
  6611. static="false" final="false" visibility="public"
  6612. deprecated="not deprecated">
  6613. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6614. <param name="recursive" type="boolean"/>
  6615. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6616. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6617. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6618. <exception name="IOException" type="java.io.IOException"/>
  6619. <doc>
  6620. <![CDATA[Delete a file.
  6621. @param f the path to delete.
  6622. @param recursive if path is a directory and set to
  6623. true, the directory is deleted else throws an exception. In
  6624. case of a file the recursive can be set to either true or false.
  6625. @throws AccessControlException If access is denied
  6626. @throws FileNotFoundException If <code>f</code> does not exist
  6627. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6628. not supported
  6629. @throws IOException If an I/O error occurred
  6630. Exceptions applicable to file systems accessed over RPC:
  6631. @throws RpcClientException If an exception occurred in the RPC client
  6632. @throws RpcServerException If an exception occurred in the RPC server
  6633. @throws UnexpectedServerException If server implementation throws
  6634. undeclared exception to RPC server
  6635. RuntimeExceptions:
  6636. @throws InvalidPathException If path <code>f</code> is invalid]]>
  6637. </doc>
  6638. </method>
  6639. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6640. abstract="false" native="false" synchronized="false"
  6641. static="false" final="false" visibility="public"
  6642. deprecated="not deprecated">
  6643. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6644. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6645. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6646. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6647. <exception name="IOException" type="java.io.IOException"/>
  6648. <doc>
  6649. <![CDATA[Opens an FSDataInputStream at the indicated Path using
  6650. default buffersize.
  6651. @param f the file name to open
  6652. @throws AccessControlException If access is denied
  6653. @throws FileNotFoundException If file <code>f</code> does not exist
  6654. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6655. is not supported
  6656. @throws IOException If an I/O error occurred
  6657. Exceptions applicable to file systems accessed over RPC:
  6658. @throws RpcClientException If an exception occurred in the RPC client
  6659. @throws RpcServerException If an exception occurred in the RPC server
  6660. @throws UnexpectedServerException If server implementation throws
  6661. undeclared exception to RPC server]]>
  6662. </doc>
  6663. </method>
  6664. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6665. abstract="false" native="false" synchronized="false"
  6666. static="false" final="false" visibility="public"
  6667. deprecated="not deprecated">
  6668. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6669. <param name="bufferSize" type="int"/>
  6670. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6671. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6672. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6673. <exception name="IOException" type="java.io.IOException"/>
  6674. <doc>
  6675. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  6676. @param f the file name to open
  6677. @param bufferSize the size of the buffer to be used.
  6678. @throws AccessControlException If access is denied
  6679. @throws FileNotFoundException If file <code>f</code> does not exist
  6680. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6681. not supported
  6682. @throws IOException If an I/O error occurred
  6683. Exceptions applicable to file systems accessed over RPC:
  6684. @throws RpcClientException If an exception occurred in the RPC client
  6685. @throws RpcServerException If an exception occurred in the RPC server
  6686. @throws UnexpectedServerException If server implementation throws
  6687. undeclared exception to RPC server]]>
  6688. </doc>
  6689. </method>
  6690. <method name="truncate" return="boolean"
  6691. abstract="false" native="false" synchronized="false"
  6692. static="false" final="false" visibility="public"
  6693. deprecated="not deprecated">
  6694. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6695. <param name="newLength" type="long"/>
  6696. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6697. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6698. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6699. <exception name="IOException" type="java.io.IOException"/>
  6700. <doc>
  6701. <![CDATA[Truncate the file in the indicated path to the indicated size.
  6702. <ul>
  6703. <li>Fails if path is a directory.
  6704. <li>Fails if path does not exist.
  6705. <li>Fails if path is not closed.
  6706. <li>Fails if new size is greater than current size.
  6707. </ul>
  6708. @param f The path to the file to be truncated
  6709. @param newLength The size the file is to be truncated to
  6710. @return <code>true</code> if the file has been truncated to the desired
  6711. <code>newLength</code> and is immediately available to be reused for
  6712. write operations such as <code>append</code>, or
  6713. <code>false</code> if a background process of adjusting the length of
  6714. the last block has been started, and clients should wait for it to
  6715. complete before proceeding with further file updates.
  6716. @throws AccessControlException If access is denied
  6717. @throws FileNotFoundException If file <code>f</code> does not exist
  6718. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6719. not supported
  6720. @throws IOException If an I/O error occurred
  6721. Exceptions applicable to file systems accessed over RPC:
  6722. @throws RpcClientException If an exception occurred in the RPC client
  6723. @throws RpcServerException If an exception occurred in the RPC server
  6724. @throws UnexpectedServerException If server implementation throws
  6725. undeclared exception to RPC server]]>
  6726. </doc>
  6727. </method>
  6728. <method name="setReplication" return="boolean"
  6729. abstract="false" native="false" synchronized="false"
  6730. static="false" final="false" visibility="public"
  6731. deprecated="not deprecated">
  6732. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6733. <param name="replication" type="short"/>
  6734. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6735. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6736. <exception name="IOException" type="java.io.IOException"/>
  6737. <doc>
  6738. <![CDATA[Set replication for an existing file.
  6739. @param f file name
  6740. @param replication new replication
  6741. @return true if successful
  6742. @throws AccessControlException If access is denied
  6743. @throws FileNotFoundException If file <code>f</code> does not exist
  6744. @throws IOException If an I/O error occurred
  6745. Exceptions applicable to file systems accessed over RPC:
  6746. @throws RpcClientException If an exception occurred in the RPC client
  6747. @throws RpcServerException If an exception occurred in the RPC server
  6748. @throws UnexpectedServerException If server implementation throws
  6749. undeclared exception to RPC server]]>
  6750. </doc>
  6751. </method>
  6752. <method name="rename"
  6753. abstract="false" native="false" synchronized="false"
  6754. static="false" final="false" visibility="public"
  6755. deprecated="not deprecated">
  6756. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6757. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6758. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  6759. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6760. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6761. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6762. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6763. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6764. <exception name="IOException" type="java.io.IOException"/>
  6765. <doc>
  6766. <![CDATA[Renames Path src to Path dst
  6767. <ul>
  6768. <li
  6769. <li>Fails if src is a file and dst is a directory.
  6770. <li>Fails if src is a directory and dst is a file.
  6771. <li>Fails if the parent of dst does not exist or is a file.
  6772. </ul>
  6773. <p>
  6774. If OVERWRITE option is not passed as an argument, rename fails if the dst
  6775. already exists.
  6776. <p>
  6777. If OVERWRITE option is passed as an argument, rename overwrites the dst if
  6778. it is a file or an empty directory. Rename fails if dst is a non-empty
  6779. directory.
  6780. <p>
  6781. Note that atomicity of rename is dependent on the file system
  6782. implementation. Please refer to the file system documentation for details
  6783. <p>
  6784. @param src path to be renamed
  6785. @param dst new path after rename
  6786. @throws AccessControlException If access is denied
  6787. @throws FileAlreadyExistsException If <code>dst</code> already exists and
  6788. <code>options</options> has {@link Options.Rename#OVERWRITE}
  6789. option false.
  6790. @throws FileNotFoundException If <code>src</code> does not exist
  6791. @throws ParentNotDirectoryException If parent of <code>dst</code> is not a
  6792. directory
  6793. @throws UnsupportedFileSystemException If file system for <code>src</code>
  6794. and <code>dst</code> is not supported
  6795. @throws IOException If an I/O error occurred
  6796. Exceptions applicable to file systems accessed over RPC:
  6797. @throws RpcClientException If an exception occurred in the RPC client
  6798. @throws RpcServerException If an exception occurred in the RPC server
  6799. @throws UnexpectedServerException If server implementation throws
  6800. undeclared exception to RPC server]]>
  6801. </doc>
  6802. </method>
  6803. <method name="setPermission"
  6804. abstract="false" native="false" synchronized="false"
  6805. static="false" final="false" visibility="public"
  6806. deprecated="not deprecated">
  6807. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6808. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6809. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6810. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6811. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6812. <exception name="IOException" type="java.io.IOException"/>
  6813. <doc>
  6814. <![CDATA[Set permission of a path.
  6815. @param f
  6816. @param permission - the new absolute permission (umask is not applied)
  6817. @throws AccessControlException If access is denied
  6818. @throws FileNotFoundException If <code>f</code> does not exist
  6819. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6820. is not supported
  6821. @throws IOException If an I/O error occurred
  6822. Exceptions applicable to file systems accessed over RPC:
  6823. @throws RpcClientException If an exception occurred in the RPC client
  6824. @throws RpcServerException If an exception occurred in the RPC server
  6825. @throws UnexpectedServerException If server implementation throws
  6826. undeclared exception to RPC server]]>
  6827. </doc>
  6828. </method>
  6829. <method name="setOwner"
  6830. abstract="false" native="false" synchronized="false"
  6831. static="false" final="false" visibility="public"
  6832. deprecated="not deprecated">
  6833. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6834. <param name="username" type="java.lang.String"/>
  6835. <param name="groupname" type="java.lang.String"/>
  6836. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6837. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6838. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6839. <exception name="IOException" type="java.io.IOException"/>
  6840. <doc>
  6841. <![CDATA[Set owner of a path (i.e. a file or a directory). The parameters username
  6842. and groupname cannot both be null.
  6843. @param f The path
  6844. @param username If it is null, the original username remains unchanged.
  6845. @param groupname If it is null, the original groupname remains unchanged.
  6846. @throws AccessControlException If access is denied
  6847. @throws FileNotFoundException If <code>f</code> does not exist
  6848. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6849. not supported
  6850. @throws IOException If an I/O error occurred
  6851. Exceptions applicable to file systems accessed over RPC:
  6852. @throws RpcClientException If an exception occurred in the RPC client
  6853. @throws RpcServerException If an exception occurred in the RPC server
  6854. @throws UnexpectedServerException If server implementation throws
  6855. undeclared exception to RPC server
  6856. RuntimeExceptions:
  6857. @throws HadoopIllegalArgumentException If <code>username</code> or
  6858. <code>groupname</code> is invalid.]]>
  6859. </doc>
  6860. </method>
  6861. <method name="setTimes"
  6862. abstract="false" native="false" synchronized="false"
  6863. static="false" final="false" visibility="public"
  6864. deprecated="not deprecated">
  6865. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6866. <param name="mtime" type="long"/>
  6867. <param name="atime" type="long"/>
  6868. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6869. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6870. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6871. <exception name="IOException" type="java.io.IOException"/>
  6872. <doc>
  6873. <![CDATA[Set access time of a file.
  6874. @param f The path
  6875. @param mtime Set the modification time of this file.
  6876. The number of milliseconds since epoch (Jan 1, 1970).
  6877. A value of -1 means that this call should not set modification time.
  6878. @param atime Set the access time of this file.
  6879. The number of milliseconds since Jan 1, 1970.
  6880. A value of -1 means that this call should not set access time.
  6881. @throws AccessControlException If access is denied
  6882. @throws FileNotFoundException If <code>f</code> does not exist
  6883. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6884. not supported
  6885. @throws IOException If an I/O error occurred
  6886. Exceptions applicable to file systems accessed over RPC:
  6887. @throws RpcClientException If an exception occurred in the RPC client
  6888. @throws RpcServerException If an exception occurred in the RPC server
  6889. @throws UnexpectedServerException If server implementation throws
  6890. undeclared exception to RPC server]]>
  6891. </doc>
  6892. </method>
  6893. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  6894. abstract="false" native="false" synchronized="false"
  6895. static="false" final="false" visibility="public"
  6896. deprecated="not deprecated">
  6897. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6898. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6899. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6900. <exception name="IOException" type="java.io.IOException"/>
  6901. <doc>
  6902. <![CDATA[Get the checksum of a file.
  6903. @param f file path
  6904. @return The file checksum. The default return value is null,
  6905. which indicates that no checksum algorithm is implemented
  6906. in the corresponding FileSystem.
  6907. @throws AccessControlException If access is denied
  6908. @throws FileNotFoundException If <code>f</code> does not exist
  6909. @throws IOException If an I/O error occurred
  6910. Exceptions applicable to file systems accessed over RPC:
  6911. @throws RpcClientException If an exception occurred in the RPC client
  6912. @throws RpcServerException If an exception occurred in the RPC server
  6913. @throws UnexpectedServerException If server implementation throws
  6914. undeclared exception to RPC server]]>
  6915. </doc>
  6916. </method>
  6917. <method name="setVerifyChecksum"
  6918. abstract="false" native="false" synchronized="false"
  6919. static="false" final="false" visibility="public"
  6920. deprecated="not deprecated">
  6921. <param name="verifyChecksum" type="boolean"/>
  6922. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6923. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6924. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6925. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6926. <exception name="IOException" type="java.io.IOException"/>
  6927. <doc>
  6928. <![CDATA[Set the verify checksum flag for the file system denoted by the path.
  6929. This is only applicable if the
  6930. corresponding FileSystem supports checksum. By default doesn't do anything.
  6931. @param verifyChecksum
  6932. @param f set the verifyChecksum for the Filesystem containing this path
  6933. @throws AccessControlException If access is denied
  6934. @throws FileNotFoundException If <code>f</code> does not exist
  6935. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6936. not supported
  6937. @throws IOException If an I/O error occurred
  6938. Exceptions applicable to file systems accessed over RPC:
  6939. @throws RpcClientException If an exception occurred in the RPC client
  6940. @throws RpcServerException If an exception occurred in the RPC server
  6941. @throws UnexpectedServerException If server implementation throws
  6942. undeclared exception to RPC server]]>
  6943. </doc>
  6944. </method>
  6945. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6946. abstract="false" native="false" synchronized="false"
  6947. static="false" final="false" visibility="public"
  6948. deprecated="not deprecated">
  6949. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6950. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6951. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6952. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6953. <exception name="IOException" type="java.io.IOException"/>
  6954. <doc>
  6955. <![CDATA[Return a file status object that represents the path.
  6956. @param f The path we want information from
  6957. @return a FileStatus object
  6958. @throws AccessControlException If access is denied
  6959. @throws FileNotFoundException If <code>f</code> does not exist
  6960. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6961. not supported
  6962. @throws IOException If an I/O error occurred
  6963. Exceptions applicable to file systems accessed over RPC:
  6964. @throws RpcClientException If an exception occurred in the RPC client
  6965. @throws RpcServerException If an exception occurred in the RPC server
  6966. @throws UnexpectedServerException If server implementation throws
  6967. undeclared exception to RPC server]]>
  6968. </doc>
  6969. </method>
  6970. <method name="msync"
  6971. abstract="false" native="false" synchronized="false"
  6972. static="false" final="false" visibility="public"
  6973. deprecated="not deprecated">
  6974. <exception name="IOException" type="java.io.IOException"/>
  6975. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  6976. <doc>
  6977. <![CDATA[Synchronize client metadata state.
  6978. @throws IOException
  6979. @throws UnsupportedOperationException]]>
  6980. </doc>
  6981. </method>
  6982. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  6983. abstract="false" native="false" synchronized="false"
  6984. static="false" final="false" visibility="public"
  6985. deprecated="not deprecated">
  6986. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6987. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6988. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6989. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6990. <exception name="IOException" type="java.io.IOException"/>
  6991. <doc>
  6992. <![CDATA[Return a file status object that represents the path. If the path
  6993. refers to a symlink then the FileStatus of the symlink is returned.
  6994. The behavior is equivalent to #getFileStatus() if the underlying
  6995. file system does not support symbolic links.
  6996. @param f The path we want information from.
  6997. @return A FileStatus object
  6998. @throws AccessControlException If access is denied
  6999. @throws FileNotFoundException If <code>f</code> does not exist
  7000. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7001. not supported
  7002. @throws IOException If an I/O error occurred]]>
  7003. </doc>
  7004. </method>
  7005. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  7006. abstract="false" native="false" synchronized="false"
  7007. static="false" final="false" visibility="public"
  7008. deprecated="not deprecated">
  7009. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7010. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7011. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7012. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7013. <exception name="IOException" type="java.io.IOException"/>
  7014. <doc>
  7015. <![CDATA[Returns the target of the given symbolic link as it was specified
  7016. when the link was created. Links in the path leading up to the
  7017. final path component are resolved transparently.
  7018. @param f the path to return the target of
  7019. @return The un-interpreted target of the symbolic link.
  7020. @throws AccessControlException If access is denied
  7021. @throws FileNotFoundException If path <code>f</code> does not exist
  7022. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7023. not supported
  7024. @throws IOException If the given path does not refer to a symlink
  7025. or an I/O error occurred]]>
  7026. </doc>
  7027. </method>
  7028. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  7029. abstract="false" native="false" synchronized="false"
  7030. static="false" final="false" visibility="public"
  7031. deprecated="not deprecated">
  7032. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7033. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7034. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7035. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7036. <exception name="IOException" type="java.io.IOException"/>
  7037. <doc>
  7038. <![CDATA[Returns a status object describing the use and capacity of the
  7039. file system denoted by the Parh argument p.
  7040. If the file system has multiple partitions, the
  7041. use and capacity of the partition pointed to by the specified
  7042. path is reflected.
  7043. @param f Path for which status should be obtained. null means the
  7044. root partition of the default file system.
  7045. @return a FsStatus object
  7046. @throws AccessControlException If access is denied
  7047. @throws FileNotFoundException If <code>f</code> does not exist
  7048. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7049. not supported
  7050. @throws IOException If an I/O error occurred
  7051. Exceptions applicable to file systems accessed over RPC:
  7052. @throws RpcClientException If an exception occurred in the RPC client
  7053. @throws RpcServerException If an exception occurred in the RPC server
  7054. @throws UnexpectedServerException If server implementation throws
  7055. undeclared exception to RPC server]]>
  7056. </doc>
  7057. </method>
  7058. <method name="createSymlink"
  7059. abstract="false" native="false" synchronized="false"
  7060. static="false" final="false" visibility="public"
  7061. deprecated="not deprecated">
  7062. <param name="target" type="org.apache.hadoop.fs.Path"/>
  7063. <param name="link" type="org.apache.hadoop.fs.Path"/>
  7064. <param name="createParent" type="boolean"/>
  7065. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7066. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  7067. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7068. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  7069. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7070. <exception name="IOException" type="java.io.IOException"/>
  7071. <doc>
  7072. <![CDATA[Creates a symbolic link to an existing file. An exception is thrown if
  7073. the symlink exits, the user does not have permission to create symlink,
  7074. or the underlying file system does not support symlinks.
  7075. Symlink permissions are ignored, access to a symlink is determined by
  7076. the permissions of the symlink target.
  7077. Symlinks in paths leading up to the final path component are resolved
  7078. transparently. If the final path component refers to a symlink some
  7079. functions operate on the symlink itself, these are:
  7080. - delete(f) and deleteOnExit(f) - Deletes the symlink.
  7081. - rename(src, dst) - If src refers to a symlink, the symlink is
  7082. renamed. If dst refers to a symlink, the symlink is over-written.
  7083. - getLinkTarget(f) - Returns the target of the symlink.
  7084. - getFileLinkStatus(f) - Returns a FileStatus object describing
  7085. the symlink.
  7086. Some functions, create() and mkdir(), expect the final path component
  7087. does not exist. If they are given a path that refers to a symlink that
  7088. does exist they behave as if the path referred to an existing file or
  7089. directory. All other functions fully resolve, ie follow, the symlink.
  7090. These are: open, setReplication, setOwner, setTimes, setWorkingDirectory,
  7091. setPermission, getFileChecksum, setVerifyChecksum, getFileBlockLocations,
  7092. getFsStatus, getFileStatus, exists, and listStatus.
  7093. Symlink targets are stored as given to createSymlink, assuming the
  7094. underlying file system is capable of storing a fully qualified URI.
  7095. Dangling symlinks are permitted. FileContext supports four types of
  7096. symlink targets, and resolves them as follows
  7097. <pre>
  7098. Given a path referring to a symlink of form:
  7099. <---X--->
  7100. fs://host/A/B/link
  7101. <-----Y----->
  7102. In this path X is the scheme and authority that identify the file system,
  7103. and Y is the path leading up to the final path component "link". If Y is
  7104. a symlink itself then let Y' be the target of Y and X' be the scheme and
  7105. authority of Y'. Symlink targets may:
  7106. 1. Fully qualified URIs
  7107. fs://hostX/A/B/file Resolved according to the target file system.
  7108. 2. Partially qualified URIs (eg scheme but no host)
  7109. fs:///A/B/file Resolved according to the target file system. Eg resolving
  7110. a symlink to hdfs:///A results in an exception because
  7111. HDFS URIs must be fully qualified, while a symlink to
  7112. file:///A will not since Hadoop's local file systems
  7113. require partially qualified URIs.
  7114. 3. Relative paths
  7115. path Resolves to [Y'][path]. Eg if Y resolves to hdfs://host/A and path
  7116. is "../B/file" then [Y'][path] is hdfs://host/B/file
  7117. 4. Absolute paths
  7118. path Resolves to [X'][path]. Eg if Y resolves hdfs://host/A/B and path
  7119. is "/file" then [X][path] is hdfs://host/file
  7120. </pre>
  7121. @param target the target of the symbolic link
  7122. @param link the path to be created that points to target
  7123. @param createParent if true then missing parent dirs are created if
  7124. false then parent must exist
  7125. @throws AccessControlException If access is denied
  7126. @throws FileAlreadyExistsException If file <code>linkcode> already exists
  7127. @throws FileNotFoundException If <code>target</code> does not exist
  7128. @throws ParentNotDirectoryException If parent of <code>link</code> is not a
  7129. directory.
  7130. @throws UnsupportedFileSystemException If file system for
  7131. <code>target</code> or <code>link</code> is not supported
  7132. @throws IOException If an I/O error occurred]]>
  7133. </doc>
  7134. </method>
  7135. <method name="listStatus" return="org.apache.hadoop.fs.RemoteIterator"
  7136. abstract="false" native="false" synchronized="false"
  7137. static="false" final="false" visibility="public"
  7138. deprecated="not deprecated">
  7139. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7140. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7141. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7142. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7143. <exception name="IOException" type="java.io.IOException"/>
  7144. <doc>
  7145. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7146. a directory.
  7147. @param f is the path
  7148. @return an iterator that traverses statuses of the files/directories
  7149. in the given path
  7150. @throws AccessControlException If access is denied
  7151. @throws FileNotFoundException If <code>f</code> does not exist
  7152. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7153. not supported
  7154. @throws IOException If an I/O error occurred
  7155. Exceptions applicable to file systems accessed over RPC:
  7156. @throws RpcClientException If an exception occurred in the RPC client
  7157. @throws RpcServerException If an exception occurred in the RPC server
  7158. @throws UnexpectedServerException If server implementation throws
  7159. undeclared exception to RPC server]]>
  7160. </doc>
  7161. </method>
  7162. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  7163. abstract="false" native="false" synchronized="false"
  7164. static="false" final="false" visibility="public"
  7165. deprecated="not deprecated">
  7166. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7167. <exception name="IOException" type="java.io.IOException"/>
  7168. <doc>
  7169. <![CDATA[@return an iterator over the corrupt files under the given path
  7170. (may contain duplicates if a file has more than one corrupt block)
  7171. @throws IOException]]>
  7172. </doc>
  7173. </method>
  7174. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  7175. abstract="false" native="false" synchronized="false"
  7176. static="false" final="false" visibility="public"
  7177. deprecated="not deprecated">
  7178. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7179. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7180. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7181. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7182. <exception name="IOException" type="java.io.IOException"/>
  7183. <doc>
  7184. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7185. a directory.
  7186. Return the file's status and block locations If the path is a file.
  7187. If a returned status is a file, it contains the file's block locations.
  7188. @param f is the path
  7189. @return an iterator that traverses statuses of the files/directories
  7190. in the given path
  7191. If any IO exception (for example the input directory gets deleted while
  7192. listing is being executed), next() or hasNext() of the returned iterator
  7193. may throw a RuntimeException with the io exception as the cause.
  7194. @throws AccessControlException If access is denied
  7195. @throws FileNotFoundException If <code>f</code> does not exist
  7196. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7197. not supported
  7198. @throws IOException If an I/O error occurred
  7199. Exceptions applicable to file systems accessed over RPC:
  7200. @throws RpcClientException If an exception occurred in the RPC client
  7201. @throws RpcServerException If an exception occurred in the RPC server
  7202. @throws UnexpectedServerException If server implementation throws
  7203. undeclared exception to RPC server]]>
  7204. </doc>
  7205. </method>
  7206. <method name="deleteOnExit" return="boolean"
  7207. abstract="false" native="false" synchronized="false"
  7208. static="false" final="false" visibility="public"
  7209. deprecated="not deprecated">
  7210. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7211. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7212. <exception name="IOException" type="java.io.IOException"/>
  7213. <doc>
  7214. <![CDATA[Mark a path to be deleted on JVM shutdown.
  7215. @param f the existing path to delete.
  7216. @return true if deleteOnExit is successful, otherwise false.
  7217. @throws AccessControlException If access is denied
  7218. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7219. not supported
  7220. @throws IOException If an I/O error occurred
  7221. Exceptions applicable to file systems accessed over RPC:
  7222. @throws RpcClientException If an exception occurred in the RPC client
  7223. @throws RpcServerException If an exception occurred in the RPC server
  7224. @throws UnexpectedServerException If server implementation throws
  7225. undeclared exception to RPC server]]>
  7226. </doc>
  7227. </method>
  7228. <method name="util" return="org.apache.hadoop.fs.FileContext.Util"
  7229. abstract="false" native="false" synchronized="false"
  7230. static="false" final="false" visibility="public"
  7231. deprecated="not deprecated">
  7232. </method>
  7233. <method name="resolve" return="org.apache.hadoop.fs.Path"
  7234. abstract="false" native="false" synchronized="false"
  7235. static="false" final="false" visibility="protected"
  7236. deprecated="not deprecated">
  7237. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7238. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7239. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  7240. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7241. <exception name="IOException" type="java.io.IOException"/>
  7242. <doc>
  7243. <![CDATA[Resolves all symbolic links in the specified path.
  7244. Returns the new path object.]]>
  7245. </doc>
  7246. </method>
  7247. <method name="resolveIntermediate" return="org.apache.hadoop.fs.Path"
  7248. abstract="false" native="false" synchronized="false"
  7249. static="false" final="false" visibility="protected"
  7250. deprecated="not deprecated">
  7251. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7252. <exception name="IOException" type="java.io.IOException"/>
  7253. <doc>
  7254. <![CDATA[Resolves all symbolic links in the specified path leading up
  7255. to, but not including the final path component.
  7256. @param f path to resolve
  7257. @return the new path object.]]>
  7258. </doc>
  7259. </method>
  7260. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  7261. abstract="false" native="false" synchronized="false"
  7262. static="true" final="false" visibility="public"
  7263. deprecated="not deprecated">
  7264. <param name="uri" type="java.net.URI"/>
  7265. <doc>
  7266. <![CDATA[Get the statistics for a particular file system
  7267. @param uri
  7268. the uri to lookup the statistics. Only scheme and authority part
  7269. of the uri are used as the key to store and lookup.
  7270. @return a statistics object]]>
  7271. </doc>
  7272. </method>
  7273. <method name="clearStatistics"
  7274. abstract="false" native="false" synchronized="false"
  7275. static="true" final="false" visibility="public"
  7276. deprecated="not deprecated">
  7277. <doc>
  7278. <![CDATA[Clears all the statistics stored in AbstractFileSystem, for all the file
  7279. systems.]]>
  7280. </doc>
  7281. </method>
  7282. <method name="printStatistics"
  7283. abstract="false" native="false" synchronized="false"
  7284. static="true" final="false" visibility="public"
  7285. deprecated="not deprecated">
  7286. <doc>
  7287. <![CDATA[Prints the statistics to standard output. File System is identified by the
  7288. scheme and authority.]]>
  7289. </doc>
  7290. </method>
  7291. <method name="getAllStatistics" return="java.util.Map"
  7292. abstract="false" native="false" synchronized="false"
  7293. static="true" final="false" visibility="public"
  7294. deprecated="not deprecated">
  7295. <doc>
  7296. <![CDATA[@return Map of uri and statistics for each filesystem instantiated. The uri
  7297. consists of scheme and authority for the filesystem.]]>
  7298. </doc>
  7299. </method>
  7300. <method name="modifyAclEntries"
  7301. abstract="false" native="false" synchronized="false"
  7302. static="false" final="false" visibility="public"
  7303. deprecated="not deprecated">
  7304. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7305. <param name="aclSpec" type="java.util.List"/>
  7306. <exception name="IOException" type="java.io.IOException"/>
  7307. <doc>
  7308. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  7309. entries or modify the permissions on existing ACL entries. All existing
  7310. ACL entries that are not specified in this call are retained without
  7311. changes. (Modifications are merged into the current ACL.)
  7312. @param path Path to modify
  7313. @param aclSpec List<AclEntry> describing modifications
  7314. @throws IOException if an ACL could not be modified]]>
  7315. </doc>
  7316. </method>
  7317. <method name="removeAclEntries"
  7318. abstract="false" native="false" synchronized="false"
  7319. static="false" final="false" visibility="public"
  7320. deprecated="not deprecated">
  7321. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7322. <param name="aclSpec" type="java.util.List"/>
  7323. <exception name="IOException" type="java.io.IOException"/>
  7324. <doc>
  7325. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  7326. retained.
  7327. @param path Path to modify
  7328. @param aclSpec List<AclEntry> describing entries to remove
  7329. @throws IOException if an ACL could not be modified]]>
  7330. </doc>
  7331. </method>
  7332. <method name="removeDefaultAcl"
  7333. abstract="false" native="false" synchronized="false"
  7334. static="false" final="false" visibility="public"
  7335. deprecated="not deprecated">
  7336. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7337. <exception name="IOException" type="java.io.IOException"/>
  7338. <doc>
  7339. <![CDATA[Removes all default ACL entries from files and directories.
  7340. @param path Path to modify
  7341. @throws IOException if an ACL could not be modified]]>
  7342. </doc>
  7343. </method>
  7344. <method name="removeAcl"
  7345. abstract="false" native="false" synchronized="false"
  7346. static="false" final="false" visibility="public"
  7347. deprecated="not deprecated">
  7348. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7349. <exception name="IOException" type="java.io.IOException"/>
  7350. <doc>
  7351. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  7352. for user, group, and others are retained for compatibility with permission
  7353. bits.
  7354. @param path Path to modify
  7355. @throws IOException if an ACL could not be removed]]>
  7356. </doc>
  7357. </method>
  7358. <method name="setAcl"
  7359. abstract="false" native="false" synchronized="false"
  7360. static="false" final="false" visibility="public"
  7361. deprecated="not deprecated">
  7362. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7363. <param name="aclSpec" type="java.util.List"/>
  7364. <exception name="IOException" type="java.io.IOException"/>
  7365. <doc>
  7366. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  7367. entries.
  7368. @param path Path to modify
  7369. @param aclSpec List<AclEntry> describing modifications, must include entries
  7370. for user, group, and others for compatibility with permission bits.
  7371. @throws IOException if an ACL could not be modified]]>
  7372. </doc>
  7373. </method>
  7374. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  7375. abstract="false" native="false" synchronized="false"
  7376. static="false" final="false" visibility="public"
  7377. deprecated="not deprecated">
  7378. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7379. <exception name="IOException" type="java.io.IOException"/>
  7380. <doc>
  7381. <![CDATA[Gets the ACLs of files and directories.
  7382. @param path Path to get
  7383. @return RemoteIterator<AclStatus> which returns each AclStatus
  7384. @throws IOException if an ACL could not be read]]>
  7385. </doc>
  7386. </method>
  7387. <method name="setXAttr"
  7388. abstract="false" native="false" synchronized="false"
  7389. static="false" final="false" visibility="public"
  7390. deprecated="not deprecated">
  7391. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7392. <param name="name" type="java.lang.String"/>
  7393. <param name="value" type="byte[]"/>
  7394. <exception name="IOException" type="java.io.IOException"/>
  7395. <doc>
  7396. <![CDATA[Set an xattr of a file or directory.
  7397. The name must be prefixed with the namespace followed by ".". For example,
  7398. "user.attr".
  7399. <p/>
  7400. Refer to the HDFS extended attributes user documentation for details.
  7401. @param path Path to modify
  7402. @param name xattr name.
  7403. @param value xattr value.
  7404. @throws IOException]]>
  7405. </doc>
  7406. </method>
  7407. <method name="setXAttr"
  7408. abstract="false" native="false" synchronized="false"
  7409. static="false" final="false" visibility="public"
  7410. deprecated="not deprecated">
  7411. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7412. <param name="name" type="java.lang.String"/>
  7413. <param name="value" type="byte[]"/>
  7414. <param name="flag" type="java.util.EnumSet"/>
  7415. <exception name="IOException" type="java.io.IOException"/>
  7416. <doc>
  7417. <![CDATA[Set an xattr of a file or directory.
  7418. The name must be prefixed with the namespace followed by ".". For example,
  7419. "user.attr".
  7420. <p/>
  7421. Refer to the HDFS extended attributes user documentation for details.
  7422. @param path Path to modify
  7423. @param name xattr name.
  7424. @param value xattr value.
  7425. @param flag xattr set flag
  7426. @throws IOException]]>
  7427. </doc>
  7428. </method>
  7429. <method name="getXAttr" return="byte[]"
  7430. abstract="false" native="false" synchronized="false"
  7431. static="false" final="false" visibility="public"
  7432. deprecated="not deprecated">
  7433. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7434. <param name="name" type="java.lang.String"/>
  7435. <exception name="IOException" type="java.io.IOException"/>
  7436. <doc>
  7437. <![CDATA[Get an xattr for a file or directory.
  7438. The name must be prefixed with the namespace followed by ".". For example,
  7439. "user.attr".
  7440. <p/>
  7441. Refer to the HDFS extended attributes user documentation for details.
  7442. @param path Path to get extended attribute
  7443. @param name xattr name.
  7444. @return byte[] xattr value.
  7445. @throws IOException]]>
  7446. </doc>
  7447. </method>
  7448. <method name="getXAttrs" return="java.util.Map"
  7449. abstract="false" native="false" synchronized="false"
  7450. static="false" final="false" visibility="public"
  7451. deprecated="not deprecated">
  7452. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7453. <exception name="IOException" type="java.io.IOException"/>
  7454. <doc>
  7455. <![CDATA[Get all of the xattrs for a file or directory.
  7456. Only those xattrs for which the logged-in user has permissions to view
  7457. are returned.
  7458. <p/>
  7459. Refer to the HDFS extended attributes user documentation for details.
  7460. @param path Path to get extended attributes
  7461. @return Map<String, byte[]> describing the XAttrs of the file or directory
  7462. @throws IOException]]>
  7463. </doc>
  7464. </method>
  7465. <method name="getXAttrs" return="java.util.Map"
  7466. abstract="false" native="false" synchronized="false"
  7467. static="false" final="false" visibility="public"
  7468. deprecated="not deprecated">
  7469. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7470. <param name="names" type="java.util.List"/>
  7471. <exception name="IOException" type="java.io.IOException"/>
  7472. <doc>
  7473. <![CDATA[Get all of the xattrs for a file or directory.
  7474. Only those xattrs for which the logged-in user has permissions to view
  7475. are returned.
  7476. <p/>
  7477. Refer to the HDFS extended attributes user documentation for details.
  7478. @param path Path to get extended attributes
  7479. @param names XAttr names.
  7480. @return Map<String, byte[]> describing the XAttrs of the file or directory
  7481. @throws IOException]]>
  7482. </doc>
  7483. </method>
  7484. <method name="removeXAttr"
  7485. abstract="false" native="false" synchronized="false"
  7486. static="false" final="false" visibility="public"
  7487. deprecated="not deprecated">
  7488. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7489. <param name="name" type="java.lang.String"/>
  7490. <exception name="IOException" type="java.io.IOException"/>
  7491. <doc>
  7492. <![CDATA[Remove an xattr of a file or directory.
  7493. The name must be prefixed with the namespace followed by ".". For example,
  7494. "user.attr".
  7495. <p/>
  7496. Refer to the HDFS extended attributes user documentation for details.
  7497. @param path Path to remove extended attribute
  7498. @param name xattr name
  7499. @throws IOException]]>
  7500. </doc>
  7501. </method>
  7502. <method name="listXAttrs" return="java.util.List"
  7503. abstract="false" native="false" synchronized="false"
  7504. static="false" final="false" visibility="public"
  7505. deprecated="not deprecated">
  7506. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7507. <exception name="IOException" type="java.io.IOException"/>
  7508. <doc>
  7509. <![CDATA[Get all of the xattr names for a file or directory.
  7510. Only those xattr names which the logged-in user has permissions to view
  7511. are returned.
  7512. <p/>
  7513. Refer to the HDFS extended attributes user documentation for details.
  7514. @param path Path to get extended attributes
  7515. @return List<String> of the XAttr names of the file or directory
  7516. @throws IOException]]>
  7517. </doc>
  7518. </method>
  7519. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  7520. abstract="false" native="false" synchronized="false"
  7521. static="false" final="true" visibility="public"
  7522. deprecated="not deprecated">
  7523. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7524. <exception name="IOException" type="java.io.IOException"/>
  7525. <doc>
  7526. <![CDATA[Create a snapshot with a default name.
  7527. @param path The directory where snapshots will be taken.
  7528. @return the snapshot path.
  7529. @throws IOException If an I/O error occurred
  7530. <p>Exceptions applicable to file systems accessed over RPC:
  7531. @throws RpcClientException If an exception occurred in the RPC client
  7532. @throws RpcServerException If an exception occurred in the RPC server
  7533. @throws UnexpectedServerException If server implementation throws
  7534. undeclared exception to RPC server]]>
  7535. </doc>
  7536. </method>
  7537. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  7538. abstract="false" native="false" synchronized="false"
  7539. static="false" final="false" visibility="public"
  7540. deprecated="not deprecated">
  7541. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7542. <param name="snapshotName" type="java.lang.String"/>
  7543. <exception name="IOException" type="java.io.IOException"/>
  7544. <doc>
  7545. <![CDATA[Create a snapshot.
  7546. @param path The directory where snapshots will be taken.
  7547. @param snapshotName The name of the snapshot
  7548. @return the snapshot path.
  7549. @throws IOException If an I/O error occurred
  7550. <p>Exceptions applicable to file systems accessed over RPC:
  7551. @throws RpcClientException If an exception occurred in the RPC client
  7552. @throws RpcServerException If an exception occurred in the RPC server
  7553. @throws UnexpectedServerException If server implementation throws
  7554. undeclared exception to RPC server]]>
  7555. </doc>
  7556. </method>
  7557. <method name="renameSnapshot"
  7558. abstract="false" native="false" synchronized="false"
  7559. static="false" final="false" visibility="public"
  7560. deprecated="not deprecated">
  7561. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7562. <param name="snapshotOldName" type="java.lang.String"/>
  7563. <param name="snapshotNewName" type="java.lang.String"/>
  7564. <exception name="IOException" type="java.io.IOException"/>
  7565. <doc>
  7566. <![CDATA[Rename a snapshot.
  7567. @param path The directory path where the snapshot was taken
  7568. @param snapshotOldName Old name of the snapshot
  7569. @param snapshotNewName New name of the snapshot
  7570. @throws IOException If an I/O error occurred
  7571. <p>Exceptions applicable to file systems accessed over RPC:
  7572. @throws RpcClientException If an exception occurred in the RPC client
  7573. @throws RpcServerException If an exception occurred in the RPC server
  7574. @throws UnexpectedServerException If server implementation throws
  7575. undeclared exception to RPC server]]>
  7576. </doc>
  7577. </method>
  7578. <method name="deleteSnapshot"
  7579. abstract="false" native="false" synchronized="false"
  7580. static="false" final="false" visibility="public"
  7581. deprecated="not deprecated">
  7582. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7583. <param name="snapshotName" type="java.lang.String"/>
  7584. <exception name="IOException" type="java.io.IOException"/>
  7585. <doc>
  7586. <![CDATA[Delete a snapshot of a directory.
  7587. @param path The directory that the to-be-deleted snapshot belongs to
  7588. @param snapshotName The name of the snapshot
  7589. @throws IOException If an I/O error occurred
  7590. <p>Exceptions applicable to file systems accessed over RPC:
  7591. @throws RpcClientException If an exception occurred in the RPC client
  7592. @throws RpcServerException If an exception occurred in the RPC server
  7593. @throws UnexpectedServerException If server implementation throws
  7594. undeclared exception to RPC server]]>
  7595. </doc>
  7596. </method>
  7597. <method name="satisfyStoragePolicy"
  7598. abstract="false" native="false" synchronized="false"
  7599. static="false" final="false" visibility="public"
  7600. deprecated="not deprecated">
  7601. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7602. <exception name="IOException" type="java.io.IOException"/>
  7603. <doc>
  7604. <![CDATA[Set the source path to satisfy storage policy.
  7605. @param path The source path referring to either a directory or a file.
  7606. @throws IOException]]>
  7607. </doc>
  7608. </method>
  7609. <method name="setStoragePolicy"
  7610. abstract="false" native="false" synchronized="false"
  7611. static="false" final="false" visibility="public"
  7612. deprecated="not deprecated">
  7613. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7614. <param name="policyName" type="java.lang.String"/>
  7615. <exception name="IOException" type="java.io.IOException"/>
  7616. <doc>
  7617. <![CDATA[Set the storage policy for a given file or directory.
  7618. @param path file or directory path.
  7619. @param policyName the name of the target storage policy. The list
  7620. of supported Storage policies can be retrieved
  7621. via {@link #getAllStoragePolicies}.]]>
  7622. </doc>
  7623. </method>
  7624. <method name="unsetStoragePolicy"
  7625. abstract="false" native="false" synchronized="false"
  7626. static="false" final="false" visibility="public"
  7627. deprecated="not deprecated">
  7628. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7629. <exception name="IOException" type="java.io.IOException"/>
  7630. <doc>
  7631. <![CDATA[Unset the storage policy set for a given file or directory.
  7632. @param src file or directory path.
  7633. @throws IOException]]>
  7634. </doc>
  7635. </method>
  7636. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  7637. abstract="false" native="false" synchronized="false"
  7638. static="false" final="false" visibility="public"
  7639. deprecated="not deprecated">
  7640. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7641. <exception name="IOException" type="java.io.IOException"/>
  7642. <doc>
  7643. <![CDATA[Query the effective storage policy ID for the given file or directory.
  7644. @param path file or directory path.
  7645. @return storage policy for give file.
  7646. @throws IOException]]>
  7647. </doc>
  7648. </method>
  7649. <method name="getAllStoragePolicies" return="java.util.Collection"
  7650. abstract="false" native="false" synchronized="false"
  7651. static="false" final="false" visibility="public"
  7652. deprecated="not deprecated">
  7653. <exception name="IOException" type="java.io.IOException"/>
  7654. <doc>
  7655. <![CDATA[Retrieve all the storage policies supported by this file system.
  7656. @return all storage policies supported by this filesystem.
  7657. @throws IOException]]>
  7658. </doc>
  7659. </method>
  7660. <method name="hasPathCapability" return="boolean"
  7661. abstract="false" native="false" synchronized="false"
  7662. static="false" final="false" visibility="public"
  7663. deprecated="not deprecated">
  7664. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7665. <param name="capability" type="java.lang.String"/>
  7666. <exception name="IOException" type="java.io.IOException"/>
  7667. <doc>
  7668. <![CDATA[Return the path capabilities of the bonded {@code AbstractFileSystem}.
  7669. @param path path to query the capability of.
  7670. @param capability string to query the stream support for.
  7671. @return true iff the capability is supported under that FS.
  7672. @throws IOException path resolution or other IO failure
  7673. @throws IllegalArgumentException invalid arguments]]>
  7674. </doc>
  7675. </method>
  7676. <field name="LOG" type="org.slf4j.Logger"
  7677. transient="false" volatile="false"
  7678. static="true" final="true" visibility="public"
  7679. deprecated="not deprecated">
  7680. </field>
  7681. <field name="DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7682. transient="false" volatile="false"
  7683. static="true" final="true" visibility="public"
  7684. deprecated="not deprecated">
  7685. <doc>
  7686. <![CDATA[Default permission for directory and symlink
  7687. In previous versions, this default permission was also used to
  7688. create files, so files created end up with ugo+x permission.
  7689. See HADOOP-9155 for detail.
  7690. Two new constants are added to solve this, please use
  7691. {@link FileContext#DIR_DEFAULT_PERM} for directory, and use
  7692. {@link FileContext#FILE_DEFAULT_PERM} for file.
  7693. This constant is kept for compatibility.]]>
  7694. </doc>
  7695. </field>
  7696. <field name="DIR_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7697. transient="false" volatile="false"
  7698. static="true" final="true" visibility="public"
  7699. deprecated="not deprecated">
  7700. <doc>
  7701. <![CDATA[Default permission for directory]]>
  7702. </doc>
  7703. </field>
  7704. <field name="FILE_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7705. transient="false" volatile="false"
  7706. static="true" final="true" visibility="public"
  7707. deprecated="not deprecated">
  7708. <doc>
  7709. <![CDATA[Default permission for file]]>
  7710. </doc>
  7711. </field>
  7712. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  7713. transient="false" volatile="false"
  7714. static="true" final="true" visibility="public"
  7715. deprecated="not deprecated">
  7716. <doc>
  7717. <![CDATA[Priority of the FileContext shutdown hook.]]>
  7718. </doc>
  7719. </field>
  7720. <doc>
  7721. <![CDATA[The FileContext class provides an interface for users of the Hadoop
  7722. file system. It exposes a number of file system operations, e.g. create,
  7723. open, list.
  7724. <h2>Path Names</h2>
  7725. The Hadoop file system supports a URI namespace and URI names. This enables
  7726. multiple types of file systems to be referenced using fully-qualified URIs.
  7727. Two common Hadoop file system implementations are
  7728. <ul>
  7729. <li>the local file system: file:///path
  7730. <li>the HDFS file system: hdfs://nnAddress:nnPort/path
  7731. </ul>
  7732. The Hadoop file system also supports additional naming schemes besides URIs.
  7733. Hadoop has the concept of a <i>default file system</i>, which implies a
  7734. default URI scheme and authority. This enables <i>slash-relative names</i>
  7735. relative to the default FS, which are more convenient for users and
  7736. application writers. The default FS is typically set by the user's
  7737. environment, though it can also be manually specified.
  7738. <p>
  7739. Hadoop also supports <i>working-directory-relative</i> names, which are paths
  7740. relative to the current working directory (similar to Unix). The working
  7741. directory can be in a different file system than the default FS.
  7742. <p>
  7743. Thus, Hadoop path names can be specified as one of the following:
  7744. <ul>
  7745. <li>a fully-qualified URI: scheme://authority/path (e.g.
  7746. hdfs://nnAddress:nnPort/foo/bar)
  7747. <li>a slash-relative name: path relative to the default file system (e.g.
  7748. /foo/bar)
  7749. <li>a working-directory-relative name: path relative to the working dir (e.g.
  7750. foo/bar)
  7751. </ul>
  7752. Relative paths with scheme (scheme:foo/bar) are illegal.
  7753. <h2>Role of FileContext and Configuration Defaults</h2>
  7754. The FileContext is the analogue of per-process file-related state in Unix. It
  7755. contains two properties:
  7756. <ul>
  7757. <li>the default file system (for resolving slash-relative names)
  7758. <li>the umask (for file permissions)
  7759. </ul>
  7760. In general, these properties are obtained from the default configuration file
  7761. in the user's environment (see {@link Configuration}).
  7762. Further file system properties are specified on the server-side. File system
  7763. operations default to using these server-side defaults unless otherwise
  7764. specified.
  7765. <p>
  7766. The file system related server-side defaults are:
  7767. <ul>
  7768. <li> the home directory (default is "/user/userName")
  7769. <li> the initial wd (only for local fs)
  7770. <li> replication factor
  7771. <li> block size
  7772. <li> buffer size
  7773. <li> encryptDataTransfer
  7774. <li> checksum option. (checksumType and bytesPerChecksum)
  7775. </ul>
  7776. <h2>Example Usage</h2>
  7777. Example 1: use the default config read from the $HADOOP_CONFIG/core.xml.
  7778. Unspecified values come from core-defaults.xml in the release jar.
  7779. <ul>
  7780. <li> myFContext = FileContext.getFileContext(); // uses the default config
  7781. // which has your default FS
  7782. <li> myFContext.create(path, ...);
  7783. <li> myFContext.setWorkingDir(path);
  7784. <li> myFContext.open (path, ...);
  7785. <li>...
  7786. </ul>
  7787. Example 2: Get a FileContext with a specific URI as the default FS
  7788. <ul>
  7789. <li> myFContext = FileContext.getFileContext(URI);
  7790. <li> myFContext.create(path, ...);
  7791. <li>...
  7792. </ul>
  7793. Example 3: FileContext with local file system as the default
  7794. <ul>
  7795. <li> myFContext = FileContext.getLocalFSFileContext();
  7796. <li> myFContext.create(path, ...);
  7797. <li> ...
  7798. </ul>
  7799. Example 4: Use a specific config, ignoring $HADOOP_CONFIG
  7800. Generally you should not need use a config unless you are doing
  7801. <ul>
  7802. <li> configX = someConfigSomeOnePassedToYou;
  7803. <li> myFContext = getFileContext(configX); // configX is not changed,
  7804. // is passed down
  7805. <li> myFContext.create(path, ...);
  7806. <li>...
  7807. </ul>]]>
  7808. </doc>
  7809. </class>
  7810. <!-- end class org.apache.hadoop.fs.FileContext -->
  7811. <!-- start class org.apache.hadoop.fs.FileStatus -->
  7812. <class name="FileStatus" extends="java.lang.Object"
  7813. abstract="false"
  7814. static="false" final="false" visibility="public"
  7815. deprecated="not deprecated">
  7816. <implements name="org.apache.hadoop.io.Writable"/>
  7817. <implements name="java.lang.Comparable"/>
  7818. <implements name="java.io.Serializable"/>
  7819. <implements name="java.io.ObjectInputValidation"/>
  7820. <constructor name="FileStatus"
  7821. static="false" final="false" visibility="public"
  7822. deprecated="not deprecated">
  7823. </constructor>
  7824. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  7825. static="false" final="false" visibility="public"
  7826. deprecated="not deprecated">
  7827. </constructor>
  7828. <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"
  7829. static="false" final="false" visibility="public"
  7830. deprecated="not deprecated">
  7831. <doc>
  7832. <![CDATA[Constructor for file systems on which symbolic links are not supported]]>
  7833. </doc>
  7834. </constructor>
  7835. <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"
  7836. static="false" final="false" visibility="public"
  7837. deprecated="not deprecated">
  7838. </constructor>
  7839. <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"
  7840. static="false" final="false" visibility="public"
  7841. deprecated="not deprecated">
  7842. </constructor>
  7843. <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"
  7844. static="false" final="false" visibility="public"
  7845. deprecated="not deprecated">
  7846. </constructor>
  7847. <constructor name="FileStatus" type="org.apache.hadoop.fs.FileStatus"
  7848. static="false" final="false" visibility="public"
  7849. deprecated="not deprecated">
  7850. <exception name="IOException" type="java.io.IOException"/>
  7851. <doc>
  7852. <![CDATA[Copy constructor.
  7853. @param other FileStatus to copy]]>
  7854. </doc>
  7855. </constructor>
  7856. <method name="attributes" return="java.util.Set"
  7857. abstract="false" native="false" synchronized="false"
  7858. static="true" final="false" visibility="public"
  7859. deprecated="not deprecated">
  7860. <param name="acl" type="boolean"/>
  7861. <param name="crypt" type="boolean"/>
  7862. <param name="ec" type="boolean"/>
  7863. <param name="sn" type="boolean"/>
  7864. <doc>
  7865. <![CDATA[Convert boolean attributes to a set of flags.
  7866. @param acl See {@link AttrFlags#HAS_ACL}.
  7867. @param crypt See {@link AttrFlags#HAS_CRYPT}.
  7868. @param ec See {@link AttrFlags#HAS_EC}.
  7869. @param sn See {@link AttrFlags#SNAPSHOT_ENABLED}.
  7870. @return converted set of flags.]]>
  7871. </doc>
  7872. </method>
  7873. <method name="getLen" return="long"
  7874. abstract="false" native="false" synchronized="false"
  7875. static="false" final="false" visibility="public"
  7876. deprecated="not deprecated">
  7877. <doc>
  7878. <![CDATA[Get the length of this file, in bytes.
  7879. @return the length of this file, in bytes.]]>
  7880. </doc>
  7881. </method>
  7882. <method name="isFile" return="boolean"
  7883. abstract="false" native="false" synchronized="false"
  7884. static="false" final="false" visibility="public"
  7885. deprecated="not deprecated">
  7886. <doc>
  7887. <![CDATA[Is this a file?
  7888. @return true if this is a file]]>
  7889. </doc>
  7890. </method>
  7891. <method name="isDirectory" return="boolean"
  7892. abstract="false" native="false" synchronized="false"
  7893. static="false" final="false" visibility="public"
  7894. deprecated="not deprecated">
  7895. <doc>
  7896. <![CDATA[Is this a directory?
  7897. @return true if this is a directory]]>
  7898. </doc>
  7899. </method>
  7900. <method name="isDir" return="boolean"
  7901. abstract="false" native="false" synchronized="false"
  7902. static="false" final="true" visibility="public"
  7903. deprecated="Use {@link FileStatus#isFile()},
  7904. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7905. instead.">
  7906. <doc>
  7907. <![CDATA[Old interface, instead use the explicit {@link FileStatus#isFile()},
  7908. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7909. @return true if this is a directory.
  7910. @deprecated Use {@link FileStatus#isFile()},
  7911. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7912. instead.]]>
  7913. </doc>
  7914. </method>
  7915. <method name="isSymlink" return="boolean"
  7916. abstract="false" native="false" synchronized="false"
  7917. static="false" final="false" visibility="public"
  7918. deprecated="not deprecated">
  7919. <doc>
  7920. <![CDATA[Is this a symbolic link?
  7921. @return true if this is a symbolic link]]>
  7922. </doc>
  7923. </method>
  7924. <method name="getBlockSize" return="long"
  7925. abstract="false" native="false" synchronized="false"
  7926. static="false" final="false" visibility="public"
  7927. deprecated="not deprecated">
  7928. <doc>
  7929. <![CDATA[Get the block size of the file.
  7930. @return the number of bytes]]>
  7931. </doc>
  7932. </method>
  7933. <method name="getReplication" return="short"
  7934. abstract="false" native="false" synchronized="false"
  7935. static="false" final="false" visibility="public"
  7936. deprecated="not deprecated">
  7937. <doc>
  7938. <![CDATA[Get the replication factor of a file.
  7939. @return the replication factor of a file.]]>
  7940. </doc>
  7941. </method>
  7942. <method name="getModificationTime" return="long"
  7943. abstract="false" native="false" synchronized="false"
  7944. static="false" final="false" visibility="public"
  7945. deprecated="not deprecated">
  7946. <doc>
  7947. <![CDATA[Get the modification time of the file.
  7948. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  7949. </doc>
  7950. </method>
  7951. <method name="getAccessTime" return="long"
  7952. abstract="false" native="false" synchronized="false"
  7953. static="false" final="false" visibility="public"
  7954. deprecated="not deprecated">
  7955. <doc>
  7956. <![CDATA[Get the access time of the file.
  7957. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  7958. </doc>
  7959. </method>
  7960. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7961. abstract="false" native="false" synchronized="false"
  7962. static="false" final="false" visibility="public"
  7963. deprecated="not deprecated">
  7964. <doc>
  7965. <![CDATA[Get FsPermission associated with the file.
  7966. @return permission. If a filesystem does not have a notion of permissions
  7967. or if permissions could not be determined, then default
  7968. permissions equivalent of "rwxrwxrwx" is returned.]]>
  7969. </doc>
  7970. </method>
  7971. <method name="hasAcl" return="boolean"
  7972. abstract="false" native="false" synchronized="false"
  7973. static="false" final="false" visibility="public"
  7974. deprecated="not deprecated">
  7975. <doc>
  7976. <![CDATA[Tell whether the underlying file or directory has ACLs set.
  7977. @return true if the underlying file or directory has ACLs set.]]>
  7978. </doc>
  7979. </method>
  7980. <method name="isEncrypted" return="boolean"
  7981. abstract="false" native="false" synchronized="false"
  7982. static="false" final="false" visibility="public"
  7983. deprecated="not deprecated">
  7984. <doc>
  7985. <![CDATA[Tell whether the underlying file or directory is encrypted or not.
  7986. @return true if the underlying file is encrypted.]]>
  7987. </doc>
  7988. </method>
  7989. <method name="isErasureCoded" return="boolean"
  7990. abstract="false" native="false" synchronized="false"
  7991. static="false" final="false" visibility="public"
  7992. deprecated="not deprecated">
  7993. <doc>
  7994. <![CDATA[Tell whether the underlying file or directory is erasure coded or not.
  7995. @return true if the underlying file or directory is erasure coded.]]>
  7996. </doc>
  7997. </method>
  7998. <method name="isSnapshotEnabled" return="boolean"
  7999. abstract="false" native="false" synchronized="false"
  8000. static="false" final="false" visibility="public"
  8001. deprecated="not deprecated">
  8002. <doc>
  8003. <![CDATA[Check if directory is Snapshot enabled or not.
  8004. @return true if directory is snapshot enabled]]>
  8005. </doc>
  8006. </method>
  8007. <method name="getOwner" return="java.lang.String"
  8008. abstract="false" native="false" synchronized="false"
  8009. static="false" final="false" visibility="public"
  8010. deprecated="not deprecated">
  8011. <doc>
  8012. <![CDATA[Get the owner of the file.
  8013. @return owner of the file. The string could be empty if there is no
  8014. notion of owner of a file in a filesystem or if it could not
  8015. be determined (rare).]]>
  8016. </doc>
  8017. </method>
  8018. <method name="getGroup" return="java.lang.String"
  8019. abstract="false" native="false" synchronized="false"
  8020. static="false" final="false" visibility="public"
  8021. deprecated="not deprecated">
  8022. <doc>
  8023. <![CDATA[Get the group associated with the file.
  8024. @return group for the file. The string could be empty if there is no
  8025. notion of group of a file in a filesystem or if it could not
  8026. be determined (rare).]]>
  8027. </doc>
  8028. </method>
  8029. <method name="getPath" return="org.apache.hadoop.fs.Path"
  8030. abstract="false" native="false" synchronized="false"
  8031. static="false" final="false" visibility="public"
  8032. deprecated="not deprecated">
  8033. </method>
  8034. <method name="setPath"
  8035. abstract="false" native="false" synchronized="false"
  8036. static="false" final="false" visibility="public"
  8037. deprecated="not deprecated">
  8038. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8039. </method>
  8040. <method name="setPermission"
  8041. abstract="false" native="false" synchronized="false"
  8042. static="false" final="false" visibility="protected"
  8043. deprecated="not deprecated">
  8044. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8045. <doc>
  8046. <![CDATA[Sets permission.
  8047. @param permission if permission is null, default value is set]]>
  8048. </doc>
  8049. </method>
  8050. <method name="setOwner"
  8051. abstract="false" native="false" synchronized="false"
  8052. static="false" final="false" visibility="protected"
  8053. deprecated="not deprecated">
  8054. <param name="owner" type="java.lang.String"/>
  8055. <doc>
  8056. <![CDATA[Sets owner.
  8057. @param owner if it is null, default value is set]]>
  8058. </doc>
  8059. </method>
  8060. <method name="setGroup"
  8061. abstract="false" native="false" synchronized="false"
  8062. static="false" final="false" visibility="protected"
  8063. deprecated="not deprecated">
  8064. <param name="group" type="java.lang.String"/>
  8065. <doc>
  8066. <![CDATA[Sets group.
  8067. @param group if it is null, default value is set]]>
  8068. </doc>
  8069. </method>
  8070. <method name="getSymlink" return="org.apache.hadoop.fs.Path"
  8071. abstract="false" native="false" synchronized="false"
  8072. static="false" final="false" visibility="public"
  8073. deprecated="not deprecated">
  8074. <exception name="IOException" type="java.io.IOException"/>
  8075. <doc>
  8076. <![CDATA[@return The contents of the symbolic link.]]>
  8077. </doc>
  8078. </method>
  8079. <method name="setSymlink"
  8080. abstract="false" native="false" synchronized="false"
  8081. static="false" final="false" visibility="public"
  8082. deprecated="not deprecated">
  8083. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8084. </method>
  8085. <method name="compareTo" return="int"
  8086. abstract="false" native="false" synchronized="false"
  8087. static="false" final="false" visibility="public"
  8088. deprecated="not deprecated">
  8089. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  8090. <doc>
  8091. <![CDATA[Compare this FileStatus to another FileStatus
  8092. @param o the FileStatus to be compared.
  8093. @return a negative integer, zero, or a positive integer as this object
  8094. is less than, equal to, or greater than the specified object.]]>
  8095. </doc>
  8096. </method>
  8097. <method name="compareTo" return="int"
  8098. abstract="false" native="false" synchronized="false"
  8099. static="false" final="false" visibility="public"
  8100. deprecated="not deprecated">
  8101. <param name="o" type="java.lang.Object"/>
  8102. <doc>
  8103. <![CDATA[Compare this FileStatus to another FileStatus.
  8104. This method was added back by HADOOP-14683 to keep binary compatibility.
  8105. @param o the FileStatus to be compared.
  8106. @return a negative integer, zero, or a positive integer as this object
  8107. is less than, equal to, or greater than the specified object.
  8108. @throws ClassCastException if the specified object is not FileStatus]]>
  8109. </doc>
  8110. </method>
  8111. <method name="equals" return="boolean"
  8112. abstract="false" native="false" synchronized="false"
  8113. static="false" final="false" visibility="public"
  8114. deprecated="not deprecated">
  8115. <param name="o" type="java.lang.Object"/>
  8116. <doc>
  8117. <![CDATA[Compare if this object is equal to another object
  8118. @param o the object to be compared.
  8119. @return true if two file status has the same path name; false if not.]]>
  8120. </doc>
  8121. </method>
  8122. <method name="hashCode" return="int"
  8123. abstract="false" native="false" synchronized="false"
  8124. static="false" final="false" visibility="public"
  8125. deprecated="not deprecated">
  8126. <doc>
  8127. <![CDATA[Returns a hash code value for the object, which is defined as
  8128. the hash code of the path name.
  8129. @return a hash code value for the path name.]]>
  8130. </doc>
  8131. </method>
  8132. <method name="toString" return="java.lang.String"
  8133. abstract="false" native="false" synchronized="false"
  8134. static="false" final="false" visibility="public"
  8135. deprecated="not deprecated">
  8136. </method>
  8137. <method name="readFields"
  8138. abstract="false" native="false" synchronized="false"
  8139. static="false" final="false" visibility="public"
  8140. deprecated="Use the {@link PBHelper} and protobuf serialization directly.">
  8141. <param name="in" type="java.io.DataInput"/>
  8142. <exception name="IOException" type="java.io.IOException"/>
  8143. <doc>
  8144. <![CDATA[Read instance encoded as protobuf from stream.
  8145. @param in Input stream
  8146. @see PBHelper#convert(FileStatus)
  8147. @deprecated Use the {@link PBHelper} and protobuf serialization directly.]]>
  8148. </doc>
  8149. </method>
  8150. <method name="write"
  8151. abstract="false" native="false" synchronized="false"
  8152. static="false" final="false" visibility="public"
  8153. deprecated="Use the {@link PBHelper} and protobuf serialization directly.">
  8154. <param name="out" type="java.io.DataOutput"/>
  8155. <exception name="IOException" type="java.io.IOException"/>
  8156. <doc>
  8157. <![CDATA[Write instance encoded as protobuf to stream.
  8158. @param out Output stream
  8159. @see PBHelper#convert(FileStatus)
  8160. @deprecated Use the {@link PBHelper} and protobuf serialization directly.]]>
  8161. </doc>
  8162. </method>
  8163. <method name="validateObject"
  8164. abstract="false" native="false" synchronized="false"
  8165. static="false" final="false" visibility="public"
  8166. deprecated="not deprecated">
  8167. <exception name="InvalidObjectException" type="java.io.InvalidObjectException"/>
  8168. </method>
  8169. <field name="NONE" type="java.util.Set"
  8170. transient="false" volatile="false"
  8171. static="true" final="true" visibility="public"
  8172. deprecated="not deprecated">
  8173. <doc>
  8174. <![CDATA[Shared, empty set of attributes (a common case for FileStatus).]]>
  8175. </doc>
  8176. </field>
  8177. <doc>
  8178. <![CDATA[Interface that represents the client side information for a file.]]>
  8179. </doc>
  8180. </class>
  8181. <!-- end class org.apache.hadoop.fs.FileStatus -->
  8182. <!-- start class org.apache.hadoop.fs.FileSystem -->
  8183. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  8184. abstract="true"
  8185. static="false" final="false" visibility="public"
  8186. deprecated="not deprecated">
  8187. <implements name="java.io.Closeable"/>
  8188. <implements name="org.apache.hadoop.security.token.DelegationTokenIssuer"/>
  8189. <implements name="org.apache.hadoop.fs.PathCapabilities"/>
  8190. <constructor name="FileSystem"
  8191. static="false" final="false" visibility="protected"
  8192. deprecated="not deprecated">
  8193. </constructor>
  8194. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8195. abstract="false" native="false" synchronized="false"
  8196. static="true" final="false" visibility="public"
  8197. deprecated="not deprecated">
  8198. <param name="uri" type="java.net.URI"/>
  8199. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8200. <param name="user" type="java.lang.String"/>
  8201. <exception name="IOException" type="java.io.IOException"/>
  8202. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8203. <doc>
  8204. <![CDATA[Get a FileSystem instance based on the uri, the passed in
  8205. configuration and the user.
  8206. @param uri of the filesystem
  8207. @param conf the configuration to use
  8208. @param user to perform the get as
  8209. @return the filesystem instance
  8210. @throws IOException failure to load
  8211. @throws InterruptedException If the {@code UGI.doAs()} call was
  8212. somehow interrupted.]]>
  8213. </doc>
  8214. </method>
  8215. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8216. abstract="false" native="false" synchronized="false"
  8217. static="true" final="false" visibility="public"
  8218. deprecated="not deprecated">
  8219. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8220. <exception name="IOException" type="java.io.IOException"/>
  8221. <doc>
  8222. <![CDATA[Returns the configured FileSystem implementation.
  8223. @param conf the configuration to use]]>
  8224. </doc>
  8225. </method>
  8226. <method name="getDefaultUri" return="java.net.URI"
  8227. abstract="false" native="false" synchronized="false"
  8228. static="true" final="false" visibility="public"
  8229. deprecated="not deprecated">
  8230. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8231. <doc>
  8232. <![CDATA[Get the default FileSystem URI from a configuration.
  8233. @param conf the configuration to use
  8234. @return the uri of the default filesystem]]>
  8235. </doc>
  8236. </method>
  8237. <method name="setDefaultUri"
  8238. abstract="false" native="false" synchronized="false"
  8239. static="true" final="false" visibility="public"
  8240. deprecated="not deprecated">
  8241. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8242. <param name="uri" type="java.net.URI"/>
  8243. <doc>
  8244. <![CDATA[Set the default FileSystem URI in a configuration.
  8245. @param conf the configuration to alter
  8246. @param uri the new default filesystem uri]]>
  8247. </doc>
  8248. </method>
  8249. <method name="setDefaultUri"
  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. <param name="uri" type="java.lang.String"/>
  8255. <doc>
  8256. <![CDATA[Set the default FileSystem URI in a configuration.
  8257. @param conf the configuration to alter
  8258. @param uri the new default filesystem uri]]>
  8259. </doc>
  8260. </method>
  8261. <method name="initialize"
  8262. abstract="false" native="false" synchronized="false"
  8263. static="false" final="false" visibility="public"
  8264. deprecated="not deprecated">
  8265. <param name="name" type="java.net.URI"/>
  8266. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8267. <exception name="IOException" type="java.io.IOException"/>
  8268. <doc>
  8269. <![CDATA[Initialize a FileSystem.
  8270. Called after the new FileSystem instance is constructed, and before it
  8271. is ready for use.
  8272. FileSystem implementations overriding this method MUST forward it to
  8273. their superclass, though the order in which it is done, and whether
  8274. to alter the configuration before the invocation are options of the
  8275. subclass.
  8276. @param name a URI whose authority section names the host, port, etc.
  8277. for this FileSystem
  8278. @param conf the configuration
  8279. @throws IOException on any failure to initialize this instance.
  8280. @throws IllegalArgumentException if the URI is considered invalid.]]>
  8281. </doc>
  8282. </method>
  8283. <method name="getScheme" return="java.lang.String"
  8284. abstract="false" native="false" synchronized="false"
  8285. static="false" final="false" visibility="public"
  8286. deprecated="not deprecated">
  8287. <doc>
  8288. <![CDATA[Return the protocol scheme for this FileSystem.
  8289. <p>
  8290. This implementation throws an <code>UnsupportedOperationException</code>.
  8291. @return the protocol scheme for this FileSystem.
  8292. @throws UnsupportedOperationException if the operation is unsupported
  8293. (default).]]>
  8294. </doc>
  8295. </method>
  8296. <method name="getUri" return="java.net.URI"
  8297. abstract="true" native="false" synchronized="false"
  8298. static="false" final="false" visibility="public"
  8299. deprecated="not deprecated">
  8300. <doc>
  8301. <![CDATA[Returns a URI which identifies this FileSystem.
  8302. @return the URI of this filesystem.]]>
  8303. </doc>
  8304. </method>
  8305. <method name="getCanonicalUri" return="java.net.URI"
  8306. abstract="false" native="false" synchronized="false"
  8307. static="false" final="false" visibility="protected"
  8308. deprecated="not deprecated">
  8309. <doc>
  8310. <![CDATA[Return a canonicalized form of this FileSystem's URI.
  8311. The default implementation simply calls {@link #canonicalizeUri(URI)}
  8312. on the filesystem's own URI, so subclasses typically only need to
  8313. implement that method.
  8314. @see #canonicalizeUri(URI)]]>
  8315. </doc>
  8316. </method>
  8317. <method name="canonicalizeUri" return="java.net.URI"
  8318. abstract="false" native="false" synchronized="false"
  8319. static="false" final="false" visibility="protected"
  8320. deprecated="not deprecated">
  8321. <param name="uri" type="java.net.URI"/>
  8322. <doc>
  8323. <![CDATA[Canonicalize the given URI.
  8324. This is implementation-dependent, and may for example consist of
  8325. canonicalizing the hostname using DNS and adding the default
  8326. port if not specified.
  8327. The default implementation simply fills in the default port if
  8328. not specified and if {@link #getDefaultPort()} returns a
  8329. default port.
  8330. @return URI
  8331. @see NetUtils#getCanonicalUri(URI, int)]]>
  8332. </doc>
  8333. </method>
  8334. <method name="getDefaultPort" return="int"
  8335. abstract="false" native="false" synchronized="false"
  8336. static="false" final="false" visibility="protected"
  8337. deprecated="not deprecated">
  8338. <doc>
  8339. <![CDATA[Get the default port for this FileSystem.
  8340. @return the default port or 0 if there isn't one]]>
  8341. </doc>
  8342. </method>
  8343. <method name="getFSofPath" return="org.apache.hadoop.fs.FileSystem"
  8344. abstract="false" native="false" synchronized="false"
  8345. static="true" final="false" visibility="protected"
  8346. deprecated="not deprecated">
  8347. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  8348. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8349. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8350. <exception name="IOException" type="java.io.IOException"/>
  8351. </method>
  8352. <method name="getCanonicalServiceName" return="java.lang.String"
  8353. abstract="false" native="false" synchronized="false"
  8354. static="false" final="false" visibility="public"
  8355. deprecated="not deprecated">
  8356. <doc>
  8357. <![CDATA[Get a canonical service name for this FileSystem.
  8358. The token cache is the only user of the canonical service name,
  8359. and uses it to lookup this FileSystem's service tokens.
  8360. If the file system provides a token of its own then it must have a
  8361. canonical name, otherwise the canonical name can be null.
  8362. Default implementation: If the FileSystem has child file systems
  8363. (such as an embedded file system) then it is assumed that the FS has no
  8364. tokens of its own and hence returns a null name; otherwise a service
  8365. name is built using Uri and port.
  8366. @return a service string that uniquely identifies this file system, null
  8367. if the filesystem does not implement tokens
  8368. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  8369. </doc>
  8370. </method>
  8371. <method name="getName" return="java.lang.String"
  8372. abstract="false" native="false" synchronized="false"
  8373. static="false" final="false" visibility="public"
  8374. deprecated="call {@link #getUri()} instead.">
  8375. <doc>
  8376. <![CDATA[@deprecated call {@link #getUri()} instead.]]>
  8377. </doc>
  8378. </method>
  8379. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  8380. abstract="false" native="false" synchronized="false"
  8381. static="true" final="false" visibility="public"
  8382. deprecated="call {@link #get(URI, Configuration)} instead.">
  8383. <param name="name" type="java.lang.String"/>
  8384. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8385. <exception name="IOException" type="java.io.IOException"/>
  8386. <doc>
  8387. <![CDATA[@deprecated call {@link #get(URI, Configuration)} instead.]]>
  8388. </doc>
  8389. </method>
  8390. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8391. abstract="false" native="false" synchronized="false"
  8392. static="true" final="false" visibility="public"
  8393. deprecated="not deprecated">
  8394. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8395. <exception name="IOException" type="java.io.IOException"/>
  8396. <doc>
  8397. <![CDATA[Get the local FileSystem.
  8398. @param conf the configuration to configure the FileSystem with
  8399. if it is newly instantiated.
  8400. @return a LocalFileSystem
  8401. @throws IOException if somehow the local FS cannot be instantiated.]]>
  8402. </doc>
  8403. </method>
  8404. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8405. abstract="false" native="false" synchronized="false"
  8406. static="true" final="false" visibility="public"
  8407. deprecated="not deprecated">
  8408. <param name="uri" type="java.net.URI"/>
  8409. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8410. <exception name="IOException" type="java.io.IOException"/>
  8411. <doc>
  8412. <![CDATA[Get a FileSystem for this URI's scheme and authority.
  8413. <ol>
  8414. <li>
  8415. If the configuration has the property
  8416. {@code "fs.$SCHEME.impl.disable.cache"} set to true,
  8417. a new instance will be created, initialized with the supplied URI and
  8418. configuration, then returned without being cached.
  8419. </li>
  8420. <li>
  8421. If the there is a cached FS instance matching the same URI, it will
  8422. be returned.
  8423. </li>
  8424. <li>
  8425. Otherwise: a new FS instance will be created, initialized with the
  8426. configuration and URI, cached and returned to the caller.
  8427. </li>
  8428. </ol>
  8429. @throws IOException if the FileSystem cannot be instantiated.]]>
  8430. </doc>
  8431. </method>
  8432. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8433. abstract="false" native="false" synchronized="false"
  8434. static="true" final="false" visibility="public"
  8435. deprecated="not deprecated">
  8436. <param name="uri" type="java.net.URI"/>
  8437. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8438. <param name="user" type="java.lang.String"/>
  8439. <exception name="IOException" type="java.io.IOException"/>
  8440. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8441. <doc>
  8442. <![CDATA[Returns the FileSystem for this URI's scheme and authority and the
  8443. given user. Internally invokes {@link #newInstance(URI, Configuration)}
  8444. @param uri of the filesystem
  8445. @param conf the configuration to use
  8446. @param user to perform the get as
  8447. @return filesystem instance
  8448. @throws IOException if the FileSystem cannot be instantiated.
  8449. @throws InterruptedException If the {@code UGI.doAs()} call was
  8450. somehow interrupted.]]>
  8451. </doc>
  8452. </method>
  8453. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8454. abstract="false" native="false" synchronized="false"
  8455. static="true" final="false" visibility="public"
  8456. deprecated="not deprecated">
  8457. <param name="uri" type="java.net.URI"/>
  8458. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  8459. <exception name="IOException" type="java.io.IOException"/>
  8460. <doc>
  8461. <![CDATA[Returns the FileSystem for this URI's scheme and authority.
  8462. The entire URI is passed to the FileSystem instance's initialize method.
  8463. This always returns a new FileSystem object.
  8464. @param uri FS URI
  8465. @param config configuration to use
  8466. @return the new FS instance
  8467. @throws IOException FS creation or initialization failure.]]>
  8468. </doc>
  8469. </method>
  8470. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8471. abstract="false" native="false" synchronized="false"
  8472. static="true" final="false" visibility="public"
  8473. deprecated="not deprecated">
  8474. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8475. <exception name="IOException" type="java.io.IOException"/>
  8476. <doc>
  8477. <![CDATA[Returns a unique configured FileSystem implementation for the default
  8478. filesystem of the supplied configuration.
  8479. This always returns a new FileSystem object.
  8480. @param conf the configuration to use
  8481. @return the new FS instance
  8482. @throws IOException FS creation or initialization failure.]]>
  8483. </doc>
  8484. </method>
  8485. <method name="newInstanceLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8486. abstract="false" native="false" synchronized="false"
  8487. static="true" final="false" visibility="public"
  8488. deprecated="not deprecated">
  8489. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8490. <exception name="IOException" type="java.io.IOException"/>
  8491. <doc>
  8492. <![CDATA[Get a unique local FileSystem object.
  8493. @param conf the configuration to configure the FileSystem with
  8494. @return a new LocalFileSystem object.
  8495. @throws IOException FS creation or initialization failure.]]>
  8496. </doc>
  8497. </method>
  8498. <method name="closeAll"
  8499. abstract="false" native="false" synchronized="false"
  8500. static="true" final="false" visibility="public"
  8501. deprecated="not deprecated">
  8502. <exception name="IOException" type="java.io.IOException"/>
  8503. <doc>
  8504. <![CDATA[Close all cached FileSystem instances. After this operation, they
  8505. may not be used in any operations.
  8506. @throws IOException a problem arose closing one or more filesystem.]]>
  8507. </doc>
  8508. </method>
  8509. <method name="closeAllForUGI"
  8510. abstract="false" native="false" synchronized="false"
  8511. static="true" final="false" visibility="public"
  8512. deprecated="not deprecated">
  8513. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  8514. <exception name="IOException" type="java.io.IOException"/>
  8515. <doc>
  8516. <![CDATA[Close all cached FileSystem instances for a given UGI.
  8517. Be sure those filesystems are not used anymore.
  8518. @param ugi user group info to close
  8519. @throws IOException a problem arose closing one or more filesystem.]]>
  8520. </doc>
  8521. </method>
  8522. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  8523. abstract="false" native="false" synchronized="false"
  8524. static="false" final="false" visibility="public"
  8525. deprecated="not deprecated">
  8526. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8527. <doc>
  8528. <![CDATA[Qualify a path to one which uses this FileSystem and, if relative,
  8529. made absolute.
  8530. @param path to qualify.
  8531. @return this path if it contains a scheme and authority and is absolute, or
  8532. a new path that includes a path and authority and is fully qualified
  8533. @see Path#makeQualified(URI, Path)
  8534. @throws IllegalArgumentException if the path has a schema/URI different
  8535. from this FileSystem.]]>
  8536. </doc>
  8537. </method>
  8538. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8539. abstract="false" native="false" synchronized="false"
  8540. static="true" final="false" visibility="public"
  8541. deprecated="not deprecated">
  8542. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8543. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8544. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8545. <exception name="IOException" type="java.io.IOException"/>
  8546. <doc>
  8547. <![CDATA[Create a file with the provided permission.
  8548. The permission of the file is set to be the provided permission as in
  8549. setPermission, not permission&~umask
  8550. The HDFS implementation is implemented using two RPCs.
  8551. It is understood that it is inefficient,
  8552. but the implementation is thread-safe. The other option is to change the
  8553. value of umask in configuration to be 0, but it is not thread-safe.
  8554. @param fs FileSystem
  8555. @param file the name of the file to be created
  8556. @param permission the permission of the file
  8557. @return an output stream
  8558. @throws IOException IO failure]]>
  8559. </doc>
  8560. </method>
  8561. <method name="mkdirs" return="boolean"
  8562. abstract="false" native="false" synchronized="false"
  8563. static="true" final="false" visibility="public"
  8564. deprecated="not deprecated">
  8565. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8566. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8567. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8568. <exception name="IOException" type="java.io.IOException"/>
  8569. <doc>
  8570. <![CDATA[Create a directory with the provided permission.
  8571. The permission of the directory is set to be the provided permission as in
  8572. setPermission, not permission&~umask
  8573. @see #create(FileSystem, Path, FsPermission)
  8574. @param fs FileSystem handle
  8575. @param dir the name of the directory to be created
  8576. @param permission the permission of the directory
  8577. @return true if the directory creation succeeds; false otherwise
  8578. @throws IOException A problem creating the directories.]]>
  8579. </doc>
  8580. </method>
  8581. <method name="checkPath"
  8582. abstract="false" native="false" synchronized="false"
  8583. static="false" final="false" visibility="protected"
  8584. deprecated="not deprecated">
  8585. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8586. <doc>
  8587. <![CDATA[Check that a Path belongs to this FileSystem.
  8588. The base implementation performs case insensitive equality checks
  8589. of the URIs' schemes and authorities. Subclasses may implement slightly
  8590. different checks.
  8591. @param path to check
  8592. @throws IllegalArgumentException if the path is not considered to be
  8593. part of this FileSystem.]]>
  8594. </doc>
  8595. </method>
  8596. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8597. abstract="false" native="false" synchronized="false"
  8598. static="false" final="false" visibility="public"
  8599. deprecated="not deprecated">
  8600. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  8601. <param name="start" type="long"/>
  8602. <param name="len" type="long"/>
  8603. <exception name="IOException" type="java.io.IOException"/>
  8604. <doc>
  8605. <![CDATA[Return an array containing hostnames, offset and size of
  8606. portions of the given file. For nonexistent
  8607. file or regions, {@code null} is returned.
  8608. <pre>
  8609. if f == null :
  8610. result = null
  8611. elif f.getLen() <= start:
  8612. result = []
  8613. else result = [ locations(FS, b) for b in blocks(FS, p, s, s+l)]
  8614. </pre>
  8615. This call is most helpful with and distributed filesystem
  8616. where the hostnames of machines that contain blocks of the given file
  8617. can be determined.
  8618. The default implementation returns an array containing one element:
  8619. <pre>
  8620. BlockLocation( { "localhost:9866" }, { "localhost" }, 0, file.getLen())
  8621. </pre>
  8622. In HDFS, if file is three-replicated, the returned array contains
  8623. elements like:
  8624. <pre>
  8625. BlockLocation(offset: 0, length: BLOCK_SIZE,
  8626. hosts: {"host1:9866", "host2:9866, host3:9866"})
  8627. BlockLocation(offset: BLOCK_SIZE, length: BLOCK_SIZE,
  8628. hosts: {"host2:9866", "host3:9866, host4:9866"})
  8629. </pre>
  8630. And if a file is erasure-coded, the returned BlockLocation are logical
  8631. block groups.
  8632. Suppose we have a RS_3_2 coded file (3 data units and 2 parity units).
  8633. 1. If the file size is less than one stripe size, say 2 * CELL_SIZE, then
  8634. there will be one BlockLocation returned, with 0 offset, actual file size
  8635. and 4 hosts (2 data blocks and 2 parity blocks) hosting the actual blocks.
  8636. 3. If the file size is less than one group size but greater than one
  8637. stripe size, then there will be one BlockLocation returned, with 0 offset,
  8638. actual file size with 5 hosts (3 data blocks and 2 parity blocks) hosting
  8639. the actual blocks.
  8640. 4. If the file size is greater than one group size, 3 * BLOCK_SIZE + 123
  8641. for example, then the result will be like:
  8642. <pre>
  8643. BlockLocation(offset: 0, length: 3 * BLOCK_SIZE, hosts: {"host1:9866",
  8644. "host2:9866","host3:9866","host4:9866","host5:9866"})
  8645. BlockLocation(offset: 3 * BLOCK_SIZE, length: 123, hosts: {"host1:9866",
  8646. "host4:9866", "host5:9866"})
  8647. </pre>
  8648. @param file FilesStatus to get data from
  8649. @param start offset into the given file
  8650. @param len length for which to get locations for
  8651. @throws IOException IO failure]]>
  8652. </doc>
  8653. </method>
  8654. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8655. abstract="false" native="false" synchronized="false"
  8656. static="false" final="false" visibility="public"
  8657. deprecated="not deprecated">
  8658. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8659. <param name="start" type="long"/>
  8660. <param name="len" type="long"/>
  8661. <exception name="IOException" type="java.io.IOException"/>
  8662. <doc>
  8663. <![CDATA[Return an array containing hostnames, offset and size of
  8664. portions of the given file. For a nonexistent
  8665. file or regions, {@code null} is returned.
  8666. This call is most helpful with location-aware distributed
  8667. filesystems, where it returns hostnames of machines that
  8668. contain the given file.
  8669. A FileSystem will normally return the equivalent result
  8670. of passing the {@code FileStatus} of the path to
  8671. {@link #getFileBlockLocations(FileStatus, long, long)}
  8672. @param p path is used to identify an FS since an FS could have
  8673. another FS that it could be delegating the call to
  8674. @param start offset into the given file
  8675. @param len length for which to get locations for
  8676. @throws FileNotFoundException when the path does not exist
  8677. @throws IOException IO failure]]>
  8678. </doc>
  8679. </method>
  8680. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8681. abstract="false" native="false" synchronized="false"
  8682. static="false" final="false" visibility="public"
  8683. deprecated="use {@link #getServerDefaults(Path)} instead">
  8684. <exception name="IOException" type="java.io.IOException"/>
  8685. <doc>
  8686. <![CDATA[Return a set of server default configuration values.
  8687. @return server default configuration values
  8688. @throws IOException IO failure
  8689. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  8690. </doc>
  8691. </method>
  8692. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8693. abstract="false" native="false" synchronized="false"
  8694. static="false" final="false" visibility="public"
  8695. deprecated="not deprecated">
  8696. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8697. <exception name="IOException" type="java.io.IOException"/>
  8698. <doc>
  8699. <![CDATA[Return a set of server default configuration values.
  8700. @param p path is used to identify an FS since an FS could have
  8701. another FS that it could be delegating the call to
  8702. @return server default configuration values
  8703. @throws IOException IO failure]]>
  8704. </doc>
  8705. </method>
  8706. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  8707. abstract="false" native="false" synchronized="false"
  8708. static="false" final="false" visibility="public"
  8709. deprecated="not deprecated">
  8710. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8711. <exception name="IOException" type="java.io.IOException"/>
  8712. <doc>
  8713. <![CDATA[Return the fully-qualified path of path, resolving the path
  8714. through any symlinks or mount point.
  8715. @param p path to be resolved
  8716. @return fully qualified path
  8717. @throws FileNotFoundException if the path is not present
  8718. @throws IOException for any other error]]>
  8719. </doc>
  8720. </method>
  8721. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8722. abstract="true" native="false" synchronized="false"
  8723. static="false" final="false" visibility="public"
  8724. deprecated="not deprecated">
  8725. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8726. <param name="bufferSize" type="int"/>
  8727. <exception name="IOException" type="java.io.IOException"/>
  8728. <doc>
  8729. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8730. @param f the file name to open
  8731. @param bufferSize the size of the buffer to be used.
  8732. @throws IOException IO failure]]>
  8733. </doc>
  8734. </method>
  8735. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8736. abstract="false" native="false" synchronized="false"
  8737. static="false" final="false" visibility="public"
  8738. deprecated="not deprecated">
  8739. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8740. <exception name="IOException" type="java.io.IOException"/>
  8741. <doc>
  8742. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8743. @param f the file to open
  8744. @throws IOException IO failure]]>
  8745. </doc>
  8746. </method>
  8747. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8748. abstract="false" native="false" synchronized="false"
  8749. static="false" final="false" visibility="public"
  8750. deprecated="not deprecated">
  8751. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  8752. <exception name="IOException" type="java.io.IOException"/>
  8753. <doc>
  8754. <![CDATA[Open an FSDataInputStream matching the PathHandle instance. The
  8755. implementation may encode metadata in PathHandle to address the
  8756. resource directly and verify that the resource referenced
  8757. satisfies constraints specified at its construciton.
  8758. @param fd PathHandle object returned by the FS authority.
  8759. @throws InvalidPathHandleException If {@link PathHandle} constraints are
  8760. not satisfied
  8761. @throws IOException IO failure
  8762. @throws UnsupportedOperationException If {@link #open(PathHandle, int)}
  8763. not overridden by subclass]]>
  8764. </doc>
  8765. </method>
  8766. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8767. abstract="false" native="false" synchronized="false"
  8768. static="false" final="false" visibility="public"
  8769. deprecated="not deprecated">
  8770. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  8771. <param name="bufferSize" type="int"/>
  8772. <exception name="IOException" type="java.io.IOException"/>
  8773. <doc>
  8774. <![CDATA[Open an FSDataInputStream matching the PathHandle instance. The
  8775. implementation may encode metadata in PathHandle to address the
  8776. resource directly and verify that the resource referenced
  8777. satisfies constraints specified at its construciton.
  8778. @param fd PathHandle object returned by the FS authority.
  8779. @param bufferSize the size of the buffer to use
  8780. @throws InvalidPathHandleException If {@link PathHandle} constraints are
  8781. not satisfied
  8782. @throws IOException IO failure
  8783. @throws UnsupportedOperationException If not overridden by subclass]]>
  8784. </doc>
  8785. </method>
  8786. <method name="getPathHandle" return="org.apache.hadoop.fs.PathHandle"
  8787. abstract="false" native="false" synchronized="false"
  8788. static="false" final="true" visibility="public"
  8789. deprecated="not deprecated">
  8790. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  8791. <param name="opt" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  8792. <doc>
  8793. <![CDATA[Create a durable, serializable handle to the referent of the given
  8794. entity.
  8795. @param stat Referent in the target FileSystem
  8796. @param opt If absent, assume {@link HandleOpt#path()}.
  8797. @throws IllegalArgumentException If the FileStatus does not belong to
  8798. this FileSystem
  8799. @throws UnsupportedOperationException If {@link #createPathHandle}
  8800. not overridden by subclass.
  8801. @throws UnsupportedOperationException If this FileSystem cannot enforce
  8802. the specified constraints.]]>
  8803. </doc>
  8804. </method>
  8805. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  8806. abstract="false" native="false" synchronized="false"
  8807. static="false" final="false" visibility="protected"
  8808. deprecated="not deprecated">
  8809. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  8810. <param name="opt" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  8811. <doc>
  8812. <![CDATA[Hook to implement support for {@link PathHandle} operations.
  8813. @param stat Referent in the target FileSystem
  8814. @param opt Constraints that determine the validity of the
  8815. {@link PathHandle} reference.]]>
  8816. </doc>
  8817. </method>
  8818. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8819. abstract="false" native="false" synchronized="false"
  8820. static="false" final="false" visibility="public"
  8821. deprecated="not deprecated">
  8822. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8823. <exception name="IOException" type="java.io.IOException"/>
  8824. <doc>
  8825. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8826. Files are overwritten by default.
  8827. @param f the file to create
  8828. @throws IOException IO failure]]>
  8829. </doc>
  8830. </method>
  8831. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8832. abstract="false" native="false" synchronized="false"
  8833. static="false" final="false" visibility="public"
  8834. deprecated="not deprecated">
  8835. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8836. <param name="overwrite" type="boolean"/>
  8837. <exception name="IOException" type="java.io.IOException"/>
  8838. <doc>
  8839. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8840. @param f the file to create
  8841. @param overwrite if a file with this name already exists, then if true,
  8842. the file will be overwritten, and if false an exception will be thrown.
  8843. @throws IOException IO failure]]>
  8844. </doc>
  8845. </method>
  8846. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8847. abstract="false" native="false" synchronized="false"
  8848. static="false" final="false" visibility="public"
  8849. deprecated="not deprecated">
  8850. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8851. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8852. <exception name="IOException" type="java.io.IOException"/>
  8853. <doc>
  8854. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8855. reporting.
  8856. Files are overwritten by default.
  8857. @param f the file to create
  8858. @param progress to report progress
  8859. @throws IOException IO failure]]>
  8860. </doc>
  8861. </method>
  8862. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8863. abstract="false" native="false" synchronized="false"
  8864. static="false" final="false" visibility="public"
  8865. deprecated="not deprecated">
  8866. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8867. <param name="replication" type="short"/>
  8868. <exception name="IOException" type="java.io.IOException"/>
  8869. <doc>
  8870. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8871. Files are overwritten by default.
  8872. @param f the file to create
  8873. @param replication the replication factor
  8874. @throws IOException IO failure]]>
  8875. </doc>
  8876. </method>
  8877. <method name="create" 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="replication" type="short"/>
  8883. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8884. <exception name="IOException" type="java.io.IOException"/>
  8885. <doc>
  8886. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8887. reporting.
  8888. Files are overwritten by default.
  8889. @param f the file to create
  8890. @param replication the replication factor
  8891. @param progress to report progress
  8892. @throws IOException IO failure]]>
  8893. </doc>
  8894. </method>
  8895. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8896. abstract="false" native="false" synchronized="false"
  8897. static="false" final="false" visibility="public"
  8898. deprecated="not deprecated">
  8899. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8900. <param name="overwrite" type="boolean"/>
  8901. <param name="bufferSize" type="int"/>
  8902. <exception name="IOException" type="java.io.IOException"/>
  8903. <doc>
  8904. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8905. @param f the file to create
  8906. @param overwrite if a path with this name already exists, then if true,
  8907. the file will be overwritten, and if false an error will be thrown.
  8908. @param bufferSize the size of the buffer to be used.
  8909. @throws IOException IO failure]]>
  8910. </doc>
  8911. </method>
  8912. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8913. abstract="false" native="false" synchronized="false"
  8914. static="false" final="false" visibility="public"
  8915. deprecated="not deprecated">
  8916. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8917. <param name="overwrite" type="boolean"/>
  8918. <param name="bufferSize" type="int"/>
  8919. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8920. <exception name="IOException" type="java.io.IOException"/>
  8921. <doc>
  8922. <![CDATA[Create an {@link FSDataOutputStream} at the indicated Path
  8923. with write-progress reporting.
  8924. The frequency of callbacks is implementation-specific; it may be "none".
  8925. @param f the path of the file to open
  8926. @param overwrite if a file with this name already exists, then if true,
  8927. the file will be overwritten, and if false an error will be thrown.
  8928. @param bufferSize the size of the buffer to be used.
  8929. @throws IOException IO failure]]>
  8930. </doc>
  8931. </method>
  8932. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8933. abstract="false" native="false" synchronized="false"
  8934. static="false" final="false" visibility="public"
  8935. deprecated="not deprecated">
  8936. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8937. <param name="overwrite" type="boolean"/>
  8938. <param name="bufferSize" type="int"/>
  8939. <param name="replication" type="short"/>
  8940. <param name="blockSize" type="long"/>
  8941. <exception name="IOException" type="java.io.IOException"/>
  8942. <doc>
  8943. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8944. @param f the file name to open
  8945. @param overwrite if a file with this name already exists, then if true,
  8946. the file will be overwritten, and if false an error will be thrown.
  8947. @param bufferSize the size of the buffer to be used.
  8948. @param replication required block replication for the file.
  8949. @throws IOException IO failure]]>
  8950. </doc>
  8951. </method>
  8952. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8953. abstract="false" native="false" synchronized="false"
  8954. static="false" final="false" visibility="public"
  8955. deprecated="not deprecated">
  8956. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8957. <param name="overwrite" type="boolean"/>
  8958. <param name="bufferSize" type="int"/>
  8959. <param name="replication" type="short"/>
  8960. <param name="blockSize" type="long"/>
  8961. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8962. <exception name="IOException" type="java.io.IOException"/>
  8963. <doc>
  8964. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8965. reporting.
  8966. @param f the file name to open
  8967. @param overwrite if a file with this name already exists, then if true,
  8968. the file will be overwritten, and if false an error will be thrown.
  8969. @param bufferSize the size of the buffer to be used.
  8970. @param replication required block replication for the file.
  8971. @throws IOException IO failure]]>
  8972. </doc>
  8973. </method>
  8974. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8975. abstract="true" native="false" synchronized="false"
  8976. static="false" final="false" visibility="public"
  8977. deprecated="not deprecated">
  8978. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8979. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8980. <param name="overwrite" type="boolean"/>
  8981. <param name="bufferSize" type="int"/>
  8982. <param name="replication" type="short"/>
  8983. <param name="blockSize" type="long"/>
  8984. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8985. <exception name="IOException" type="java.io.IOException"/>
  8986. <doc>
  8987. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8988. reporting.
  8989. @param f the file name to open
  8990. @param permission file permission
  8991. @param overwrite if a file with this name already exists, then if true,
  8992. the file will be overwritten, and if false an error will be thrown.
  8993. @param bufferSize the size of the buffer to be used.
  8994. @param replication required block replication for the file.
  8995. @param blockSize block size
  8996. @param progress the progress reporter
  8997. @throws IOException IO failure
  8998. @see #setPermission(Path, FsPermission)]]>
  8999. </doc>
  9000. </method>
  9001. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9002. abstract="false" native="false" synchronized="false"
  9003. static="false" final="false" visibility="public"
  9004. deprecated="not deprecated">
  9005. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9006. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9007. <param name="flags" type="java.util.EnumSet"/>
  9008. <param name="bufferSize" type="int"/>
  9009. <param name="replication" type="short"/>
  9010. <param name="blockSize" type="long"/>
  9011. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9012. <exception name="IOException" type="java.io.IOException"/>
  9013. <doc>
  9014. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9015. reporting.
  9016. @param f the file name to open
  9017. @param permission file permission
  9018. @param flags {@link CreateFlag}s to use for this stream.
  9019. @param bufferSize the size of the buffer to be used.
  9020. @param replication required block replication for the file.
  9021. @param blockSize block size
  9022. @param progress the progress reporter
  9023. @throws IOException IO failure
  9024. @see #setPermission(Path, FsPermission)]]>
  9025. </doc>
  9026. </method>
  9027. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9028. abstract="false" native="false" synchronized="false"
  9029. static="false" final="false" visibility="public"
  9030. deprecated="not deprecated">
  9031. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9032. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9033. <param name="flags" type="java.util.EnumSet"/>
  9034. <param name="bufferSize" type="int"/>
  9035. <param name="replication" type="short"/>
  9036. <param name="blockSize" type="long"/>
  9037. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9038. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  9039. <exception name="IOException" type="java.io.IOException"/>
  9040. <doc>
  9041. <![CDATA[Create an FSDataOutputStream at the indicated Path with a custom
  9042. checksum option.
  9043. @param f the file name to open
  9044. @param permission file permission
  9045. @param flags {@link CreateFlag}s to use for this stream.
  9046. @param bufferSize the size of the buffer to be used.
  9047. @param replication required block replication for the file.
  9048. @param blockSize block size
  9049. @param progress the progress reporter
  9050. @param checksumOpt checksum parameter. If null, the values
  9051. found in conf will be used.
  9052. @throws IOException IO failure
  9053. @see #setPermission(Path, FsPermission)]]>
  9054. </doc>
  9055. </method>
  9056. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  9057. abstract="false" native="false" synchronized="false"
  9058. static="false" final="false" visibility="protected"
  9059. deprecated="not deprecated">
  9060. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9061. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9062. <param name="flag" type="java.util.EnumSet"/>
  9063. <param name="bufferSize" type="int"/>
  9064. <param name="replication" type="short"/>
  9065. <param name="blockSize" type="long"/>
  9066. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9067. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  9068. <exception name="IOException" type="java.io.IOException"/>
  9069. <doc>
  9070. <![CDATA[This create has been added to support the FileContext that processes
  9071. the permission with umask before calling this method.
  9072. This a temporary method added to support the transition from FileSystem
  9073. to FileContext for user applications.
  9074. @throws IOException IO failure]]>
  9075. </doc>
  9076. </method>
  9077. <method name="primitiveMkdir" return="boolean"
  9078. abstract="false" native="false" synchronized="false"
  9079. static="false" final="false" visibility="protected"
  9080. deprecated="not deprecated">
  9081. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9082. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9083. <exception name="IOException" type="java.io.IOException"/>
  9084. <doc>
  9085. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  9086. It has been added to support the FileContext that processes the permission
  9087. with umask before calling this method.
  9088. This a temporary method added to support the transition from FileSystem
  9089. to FileContext for user applications.
  9090. @param f path
  9091. @param absolutePermission permissions
  9092. @return true if the directory was actually created.
  9093. @throws IOException IO failure
  9094. @see #mkdirs(Path, FsPermission)]]>
  9095. </doc>
  9096. </method>
  9097. <method name="primitiveMkdir"
  9098. abstract="false" native="false" synchronized="false"
  9099. static="false" final="false" visibility="protected"
  9100. deprecated="not deprecated">
  9101. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9102. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9103. <param name="createParent" type="boolean"/>
  9104. <exception name="IOException" type="java.io.IOException"/>
  9105. <doc>
  9106. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  9107. It has been added to support the FileContext that processes the permission
  9108. with umask before calling this method.
  9109. This a temporary method added to support the transition from FileSystem
  9110. to FileContext for user applications.]]>
  9111. </doc>
  9112. </method>
  9113. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9114. abstract="false" native="false" synchronized="false"
  9115. static="false" final="false" visibility="public"
  9116. deprecated="not deprecated">
  9117. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9118. <param name="overwrite" type="boolean"/>
  9119. <param name="bufferSize" type="int"/>
  9120. <param name="replication" type="short"/>
  9121. <param name="blockSize" type="long"/>
  9122. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9123. <exception name="IOException" type="java.io.IOException"/>
  9124. <doc>
  9125. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9126. reporting. Same as create(), except fails if parent directory doesn't
  9127. already exist.
  9128. @param f the file name to open
  9129. @param overwrite if a file with this name already exists, then if true,
  9130. the file will be overwritten, and if false an error will be thrown.
  9131. @param bufferSize the size of the buffer to be used.
  9132. @param replication required block replication for the file.
  9133. @param blockSize block size
  9134. @param progress the progress reporter
  9135. @throws IOException IO failure
  9136. @see #setPermission(Path, FsPermission)]]>
  9137. </doc>
  9138. </method>
  9139. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9140. abstract="false" native="false" synchronized="false"
  9141. static="false" final="false" visibility="public"
  9142. deprecated="not deprecated">
  9143. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9144. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9145. <param name="overwrite" type="boolean"/>
  9146. <param name="bufferSize" type="int"/>
  9147. <param name="replication" type="short"/>
  9148. <param name="blockSize" type="long"/>
  9149. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9150. <exception name="IOException" type="java.io.IOException"/>
  9151. <doc>
  9152. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9153. reporting. Same as create(), except fails if parent directory doesn't
  9154. already exist.
  9155. @param f the file name to open
  9156. @param permission file permission
  9157. @param overwrite if a file with this name already exists, then if true,
  9158. the file will be overwritten, and if false an error will be thrown.
  9159. @param bufferSize the size of the buffer to be used.
  9160. @param replication required block replication for the file.
  9161. @param blockSize block size
  9162. @param progress the progress reporter
  9163. @throws IOException IO failure
  9164. @see #setPermission(Path, FsPermission)]]>
  9165. </doc>
  9166. </method>
  9167. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9168. abstract="false" native="false" synchronized="false"
  9169. static="false" final="false" visibility="public"
  9170. deprecated="not deprecated">
  9171. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9172. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9173. <param name="flags" type="java.util.EnumSet"/>
  9174. <param name="bufferSize" type="int"/>
  9175. <param name="replication" type="short"/>
  9176. <param name="blockSize" type="long"/>
  9177. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9178. <exception name="IOException" type="java.io.IOException"/>
  9179. <doc>
  9180. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9181. reporting. Same as create(), except fails if parent directory doesn't
  9182. already exist.
  9183. @param f the file name to open
  9184. @param permission file permission
  9185. @param flags {@link CreateFlag}s to use for this stream.
  9186. @param bufferSize the size of the buffer to be used.
  9187. @param replication required block replication for the file.
  9188. @param blockSize block size
  9189. @param progress the progress reporter
  9190. @throws IOException IO failure
  9191. @see #setPermission(Path, FsPermission)]]>
  9192. </doc>
  9193. </method>
  9194. <method name="createNewFile" return="boolean"
  9195. abstract="false" native="false" synchronized="false"
  9196. static="false" final="false" visibility="public"
  9197. deprecated="not deprecated">
  9198. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9199. <exception name="IOException" type="java.io.IOException"/>
  9200. <doc>
  9201. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  9202. create fails, or if it already existed, return false.
  9203. <i>Important: the default implementation is not atomic</i>
  9204. @param f path to use for create
  9205. @throws IOException IO failure]]>
  9206. </doc>
  9207. </method>
  9208. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9209. abstract="false" native="false" synchronized="false"
  9210. static="false" final="false" visibility="public"
  9211. deprecated="not deprecated">
  9212. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9213. <exception name="IOException" type="java.io.IOException"/>
  9214. <doc>
  9215. <![CDATA[Append to an existing file (optional operation).
  9216. Same as
  9217. {@code append(f, getConf().getInt(IO_FILE_BUFFER_SIZE_KEY,
  9218. IO_FILE_BUFFER_SIZE_DEFAULT), null)}
  9219. @param f the existing file to be appended.
  9220. @throws IOException IO failure
  9221. @throws UnsupportedOperationException if the operation is unsupported
  9222. (default).]]>
  9223. </doc>
  9224. </method>
  9225. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9226. abstract="false" native="false" synchronized="false"
  9227. static="false" final="false" visibility="public"
  9228. deprecated="not deprecated">
  9229. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9230. <param name="bufferSize" type="int"/>
  9231. <exception name="IOException" type="java.io.IOException"/>
  9232. <doc>
  9233. <![CDATA[Append to an existing file (optional operation).
  9234. Same as append(f, bufferSize, null).
  9235. @param f the existing file to be appended.
  9236. @param bufferSize the size of the buffer to be used.
  9237. @throws IOException IO failure
  9238. @throws UnsupportedOperationException if the operation is unsupported
  9239. (default).]]>
  9240. </doc>
  9241. </method>
  9242. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9243. abstract="true" native="false" synchronized="false"
  9244. static="false" final="false" visibility="public"
  9245. deprecated="not deprecated">
  9246. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9247. <param name="bufferSize" type="int"/>
  9248. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9249. <exception name="IOException" type="java.io.IOException"/>
  9250. <doc>
  9251. <![CDATA[Append to an existing file (optional operation).
  9252. @param f the existing file to be appended.
  9253. @param bufferSize the size of the buffer to be used.
  9254. @param progress for reporting progress if it is not null.
  9255. @throws IOException IO failure
  9256. @throws UnsupportedOperationException if the operation is unsupported
  9257. (default).]]>
  9258. </doc>
  9259. </method>
  9260. <method name="concat"
  9261. abstract="false" native="false" synchronized="false"
  9262. static="false" final="false" visibility="public"
  9263. deprecated="not deprecated">
  9264. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  9265. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  9266. <exception name="IOException" type="java.io.IOException"/>
  9267. <doc>
  9268. <![CDATA[Concat existing files together.
  9269. @param trg the path to the target destination.
  9270. @param psrcs the paths to the sources to use for the concatenation.
  9271. @throws IOException IO failure
  9272. @throws UnsupportedOperationException if the operation is unsupported
  9273. (default).]]>
  9274. </doc>
  9275. </method>
  9276. <method name="getReplication" return="short"
  9277. abstract="false" native="false" synchronized="false"
  9278. static="false" final="false" visibility="public"
  9279. deprecated="Use {@link #getFileStatus(Path)} instead">
  9280. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9281. <exception name="IOException" type="java.io.IOException"/>
  9282. <doc>
  9283. <![CDATA[Get the replication factor.
  9284. @deprecated Use {@link #getFileStatus(Path)} instead
  9285. @param src file name
  9286. @return file replication
  9287. @throws FileNotFoundException if the path does not resolve.
  9288. @throws IOException an IO failure]]>
  9289. </doc>
  9290. </method>
  9291. <method name="setReplication" return="boolean"
  9292. abstract="false" native="false" synchronized="false"
  9293. static="false" final="false" visibility="public"
  9294. deprecated="not deprecated">
  9295. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9296. <param name="replication" type="short"/>
  9297. <exception name="IOException" type="java.io.IOException"/>
  9298. <doc>
  9299. <![CDATA[Set the replication for an existing file.
  9300. If a filesystem does not support replication, it will always
  9301. return true: the check for a file existing may be bypassed.
  9302. This is the default behavior.
  9303. @param src file name
  9304. @param replication new replication
  9305. @throws IOException
  9306. @return true if successful, or the feature in unsupported;
  9307. false if replication is supported but the file does not exist,
  9308. or is a directory]]>
  9309. </doc>
  9310. </method>
  9311. <method name="rename" return="boolean"
  9312. abstract="true" native="false" synchronized="false"
  9313. static="false" final="false" visibility="public"
  9314. deprecated="not deprecated">
  9315. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9316. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9317. <exception name="IOException" type="java.io.IOException"/>
  9318. <doc>
  9319. <![CDATA[Renames Path src to Path dst.
  9320. @param src path to be renamed
  9321. @param dst new path after rename
  9322. @throws IOException on failure
  9323. @return true if rename is successful]]>
  9324. </doc>
  9325. </method>
  9326. <method name="rename"
  9327. abstract="false" native="false" synchronized="false"
  9328. static="false" final="false" visibility="protected"
  9329. deprecated="not deprecated">
  9330. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9331. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9332. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  9333. <exception name="IOException" type="java.io.IOException"/>
  9334. <doc>
  9335. <![CDATA[Renames Path src to Path dst
  9336. <ul>
  9337. <li>Fails if src is a file and dst is a directory.</li>
  9338. <li>Fails if src is a directory and dst is a file.</li>
  9339. <li>Fails if the parent of dst does not exist or is a file.</li>
  9340. </ul>
  9341. <p>
  9342. If OVERWRITE option is not passed as an argument, rename fails
  9343. if the dst already exists.
  9344. <p>
  9345. If OVERWRITE option is passed as an argument, rename overwrites
  9346. the dst if it is a file or an empty directory. Rename fails if dst is
  9347. a non-empty directory.
  9348. <p>
  9349. Note that atomicity of rename is dependent on the file system
  9350. implementation. Please refer to the file system documentation for
  9351. details. This default implementation is non atomic.
  9352. <p>
  9353. This method is deprecated since it is a temporary method added to
  9354. support the transition from FileSystem to FileContext for user
  9355. applications.
  9356. @param src path to be renamed
  9357. @param dst new path after rename
  9358. @throws FileNotFoundException src path does not exist, or the parent
  9359. path of dst does not exist.
  9360. @throws FileAlreadyExistsException dest path exists and is a file
  9361. @throws ParentNotDirectoryException if the parent path of dest is not
  9362. a directory
  9363. @throws IOException on failure]]>
  9364. </doc>
  9365. </method>
  9366. <method name="truncate" return="boolean"
  9367. abstract="false" native="false" synchronized="false"
  9368. static="false" final="false" visibility="public"
  9369. deprecated="not deprecated">
  9370. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9371. <param name="newLength" type="long"/>
  9372. <exception name="IOException" type="java.io.IOException"/>
  9373. <doc>
  9374. <![CDATA[Truncate the file in the indicated path to the indicated size.
  9375. <ul>
  9376. <li>Fails if path is a directory.</li>
  9377. <li>Fails if path does not exist.</li>
  9378. <li>Fails if path is not closed.</li>
  9379. <li>Fails if new size is greater than current size.</li>
  9380. </ul>
  9381. @param f The path to the file to be truncated
  9382. @param newLength The size the file is to be truncated to
  9383. @return <code>true</code> if the file has been truncated to the desired
  9384. <code>newLength</code> and is immediately available to be reused for
  9385. write operations such as <code>append</code>, or
  9386. <code>false</code> if a background process of adjusting the length of
  9387. the last block has been started, and clients should wait for it to
  9388. complete before proceeding with further file updates.
  9389. @throws IOException IO failure
  9390. @throws UnsupportedOperationException if the operation is unsupported
  9391. (default).]]>
  9392. </doc>
  9393. </method>
  9394. <method name="delete" return="boolean"
  9395. abstract="false" native="false" synchronized="false"
  9396. static="false" final="false" visibility="public"
  9397. deprecated="Use {@link #delete(Path, boolean)} instead.">
  9398. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9399. <exception name="IOException" type="java.io.IOException"/>
  9400. <doc>
  9401. <![CDATA[Delete a file/directory.
  9402. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  9403. </doc>
  9404. </method>
  9405. <method name="delete" return="boolean"
  9406. abstract="true" native="false" synchronized="false"
  9407. static="false" final="false" visibility="public"
  9408. deprecated="not deprecated">
  9409. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9410. <param name="recursive" type="boolean"/>
  9411. <exception name="IOException" type="java.io.IOException"/>
  9412. <doc>
  9413. <![CDATA[Delete a file.
  9414. @param f the path to delete.
  9415. @param recursive if path is a directory and set to
  9416. true, the directory is deleted else throws an exception. In
  9417. case of a file the recursive can be set to either true or false.
  9418. @return true if delete is successful else false.
  9419. @throws IOException IO failure]]>
  9420. </doc>
  9421. </method>
  9422. <method name="deleteOnExit" return="boolean"
  9423. abstract="false" native="false" synchronized="false"
  9424. static="false" final="false" visibility="public"
  9425. deprecated="not deprecated">
  9426. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9427. <exception name="IOException" type="java.io.IOException"/>
  9428. <doc>
  9429. <![CDATA[Mark a path to be deleted when its FileSystem is closed.
  9430. When the JVM shuts down cleanly, all cached FileSystem objects will be
  9431. closed automatically. These the marked paths will be deleted as a result.
  9432. If a FileSystem instance is not cached, i.e. has been created with
  9433. {@link #createFileSystem(URI, Configuration)}, then the paths will
  9434. be deleted in when {@link #close()} is called on that instance.
  9435. The path must exist in the filesystem at the time of the method call;
  9436. it does not have to exist at the time of JVM shutdown.
  9437. Notes
  9438. <ol>
  9439. <li>Clean shutdown of the JVM cannot be guaranteed.</li>
  9440. <li>The time to shut down a FileSystem will depends on the number of
  9441. files to delete. For filesystems where the cost of checking
  9442. for the existence of a file/directory and the actual delete operation
  9443. (for example: object stores) is high, the time to shutdown the JVM can be
  9444. significantly extended by over-use of this feature.</li>
  9445. <li>Connectivity problems with a remote filesystem may delay shutdown
  9446. further, and may cause the files to not be deleted.</li>
  9447. </ol>
  9448. @param f the path to delete.
  9449. @return true if deleteOnExit is successful, otherwise false.
  9450. @throws IOException IO failure]]>
  9451. </doc>
  9452. </method>
  9453. <method name="cancelDeleteOnExit" return="boolean"
  9454. abstract="false" native="false" synchronized="false"
  9455. static="false" final="false" visibility="public"
  9456. deprecated="not deprecated">
  9457. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9458. <doc>
  9459. <![CDATA[Cancel the scheduled deletion of the path when the FileSystem is closed.
  9460. @param f the path to cancel deletion
  9461. @return true if the path was found in the delete-on-exit list.]]>
  9462. </doc>
  9463. </method>
  9464. <method name="processDeleteOnExit"
  9465. abstract="false" native="false" synchronized="false"
  9466. static="false" final="false" visibility="protected"
  9467. deprecated="not deprecated">
  9468. <doc>
  9469. <![CDATA[Delete all paths that were marked as delete-on-exit. This recursively
  9470. deletes all files and directories in the specified paths.
  9471. The time to process this operation is {@code O(paths)}, with the actual
  9472. time dependent on the time for existence and deletion operations to
  9473. complete, successfully or not.]]>
  9474. </doc>
  9475. </method>
  9476. <method name="exists" return="boolean"
  9477. abstract="false" native="false" synchronized="false"
  9478. static="false" final="false" visibility="public"
  9479. deprecated="not deprecated">
  9480. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9481. <exception name="IOException" type="java.io.IOException"/>
  9482. <doc>
  9483. <![CDATA[Check if a path exists.
  9484. It is highly discouraged to call this method back to back with other
  9485. {@link #getFileStatus(Path)} calls, as this will involve multiple redundant
  9486. RPC calls in HDFS.
  9487. @param f source path
  9488. @return true if the path exists
  9489. @throws IOException IO failure]]>
  9490. </doc>
  9491. </method>
  9492. <method name="isDirectory" return="boolean"
  9493. abstract="false" native="false" synchronized="false"
  9494. static="false" final="false" visibility="public"
  9495. deprecated="Use {@link #getFileStatus(Path)} instead">
  9496. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9497. <exception name="IOException" type="java.io.IOException"/>
  9498. <doc>
  9499. <![CDATA[True iff the named path is a directory.
  9500. Note: Avoid using this method. Instead reuse the FileStatus
  9501. returned by getFileStatus() or listStatus() methods.
  9502. @param f path to check
  9503. @throws IOException IO failure
  9504. @deprecated Use {@link #getFileStatus(Path)} instead]]>
  9505. </doc>
  9506. </method>
  9507. <method name="isFile" return="boolean"
  9508. abstract="false" native="false" synchronized="false"
  9509. static="false" final="false" visibility="public"
  9510. deprecated="Use {@link #getFileStatus(Path)} instead">
  9511. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9512. <exception name="IOException" type="java.io.IOException"/>
  9513. <doc>
  9514. <![CDATA[True iff the named path is a regular file.
  9515. Note: Avoid using this method. Instead reuse the FileStatus
  9516. returned by {@link #getFileStatus(Path)} or listStatus() methods.
  9517. @param f path to check
  9518. @throws IOException IO failure
  9519. @deprecated Use {@link #getFileStatus(Path)} instead]]>
  9520. </doc>
  9521. </method>
  9522. <method name="getLength" return="long"
  9523. abstract="false" native="false" synchronized="false"
  9524. static="false" final="false" visibility="public"
  9525. deprecated="Use {@link #getFileStatus(Path)} instead.">
  9526. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9527. <exception name="IOException" type="java.io.IOException"/>
  9528. <doc>
  9529. <![CDATA[The number of bytes in a file.
  9530. @return the number of bytes; 0 for a directory
  9531. @deprecated Use {@link #getFileStatus(Path)} instead.
  9532. @throws FileNotFoundException if the path does not resolve
  9533. @throws IOException IO failure]]>
  9534. </doc>
  9535. </method>
  9536. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  9537. abstract="false" native="false" synchronized="false"
  9538. static="false" final="false" visibility="public"
  9539. deprecated="not deprecated">
  9540. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9541. <exception name="IOException" type="java.io.IOException"/>
  9542. <doc>
  9543. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.
  9544. @param f path to use
  9545. @throws FileNotFoundException if the path does not resolve
  9546. @throws IOException IO failure]]>
  9547. </doc>
  9548. </method>
  9549. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  9550. abstract="false" native="false" synchronized="false"
  9551. static="false" final="false" visibility="public"
  9552. deprecated="not deprecated">
  9553. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9554. <exception name="IOException" type="java.io.IOException"/>
  9555. <doc>
  9556. <![CDATA[Return the {@link QuotaUsage} of a given {@link Path}.
  9557. @param f path to use
  9558. @return the quota usage
  9559. @throws IOException IO failure]]>
  9560. </doc>
  9561. </method>
  9562. <method name="setQuota"
  9563. abstract="false" native="false" synchronized="false"
  9564. static="false" final="false" visibility="public"
  9565. deprecated="not deprecated">
  9566. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9567. <param name="namespaceQuota" type="long"/>
  9568. <param name="storagespaceQuota" type="long"/>
  9569. <exception name="IOException" type="java.io.IOException"/>
  9570. <doc>
  9571. <![CDATA[Set quota for the given {@link Path}.
  9572. @param src the target path to set quota for
  9573. @param namespaceQuota the namespace quota (i.e., # of files/directories)
  9574. to set
  9575. @param storagespaceQuota the storage space quota to set
  9576. @throws IOException IO failure]]>
  9577. </doc>
  9578. </method>
  9579. <method name="setQuotaByStorageType"
  9580. abstract="false" native="false" synchronized="false"
  9581. static="false" final="false" visibility="public"
  9582. deprecated="not deprecated">
  9583. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9584. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  9585. <param name="quota" type="long"/>
  9586. <exception name="IOException" type="java.io.IOException"/>
  9587. <doc>
  9588. <![CDATA[Set per storage type quota for the given {@link Path}.
  9589. @param src the target path to set storage type quota for
  9590. @param type the storage type to set
  9591. @param quota the quota to set for the given storage type
  9592. @throws IOException IO failure]]>
  9593. </doc>
  9594. </method>
  9595. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9596. abstract="true" native="false" synchronized="false"
  9597. static="false" final="false" visibility="public"
  9598. deprecated="not deprecated">
  9599. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9600. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9601. <exception name="IOException" type="java.io.IOException"/>
  9602. <doc>
  9603. <![CDATA[List the statuses of the files/directories in the given path if the path is
  9604. a directory.
  9605. <p>
  9606. Does not guarantee to return the List of files/directories status in a
  9607. sorted order.
  9608. <p>
  9609. Will not return null. Expect IOException upon access error.
  9610. @param f given path
  9611. @return the statuses of the files/directories in the given patch
  9612. @throws FileNotFoundException when the path does not exist
  9613. @throws IOException see specific implementation]]>
  9614. </doc>
  9615. </method>
  9616. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  9617. abstract="false" native="false" synchronized="false"
  9618. static="false" final="false" visibility="public"
  9619. deprecated="not deprecated">
  9620. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9621. <exception name="IOException" type="java.io.IOException"/>
  9622. <doc>
  9623. <![CDATA[List corrupted file blocks.
  9624. @return an iterator over the corrupt files under the given path
  9625. (may contain duplicates if a file has more than one corrupt block)
  9626. @throws UnsupportedOperationException if the operation is unsupported
  9627. (default).
  9628. @throws IOException IO failure]]>
  9629. </doc>
  9630. </method>
  9631. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  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. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9637. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9638. <exception name="IOException" type="java.io.IOException"/>
  9639. <doc>
  9640. <![CDATA[Filter files/directories in the given path using the user-supplied path
  9641. filter.
  9642. <p>
  9643. Does not guarantee to return the List of files/directories status in a
  9644. sorted order.
  9645. @param f
  9646. a path name
  9647. @param filter
  9648. the user-supplied path filter
  9649. @return an array of FileStatus objects for the files under the given path
  9650. after applying the filter
  9651. @throws FileNotFoundException when the path does not exist
  9652. @throws IOException see specific implementation]]>
  9653. </doc>
  9654. </method>
  9655. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9656. abstract="false" native="false" synchronized="false"
  9657. static="false" final="false" visibility="public"
  9658. deprecated="not deprecated">
  9659. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  9660. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9661. <exception name="IOException" type="java.io.IOException"/>
  9662. <doc>
  9663. <![CDATA[Filter files/directories in the given list of paths using default
  9664. path filter.
  9665. <p>
  9666. Does not guarantee to return the List of files/directories status in a
  9667. sorted order.
  9668. @param files
  9669. a list of paths
  9670. @return a list of statuses for the files under the given paths after
  9671. applying the filter default Path filter
  9672. @throws FileNotFoundException when the path does not exist
  9673. @throws IOException see specific implementation]]>
  9674. </doc>
  9675. </method>
  9676. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9677. abstract="false" native="false" synchronized="false"
  9678. static="false" final="false" visibility="public"
  9679. deprecated="not deprecated">
  9680. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  9681. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9682. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9683. <exception name="IOException" type="java.io.IOException"/>
  9684. <doc>
  9685. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  9686. path filter.
  9687. <p>
  9688. Does not guarantee to return the List of files/directories status in a
  9689. sorted order.
  9690. @param files
  9691. a list of paths
  9692. @param filter
  9693. the user-supplied path filter
  9694. @return a list of statuses for the files under the given paths after
  9695. applying the filter
  9696. @throws FileNotFoundException when the path does not exist
  9697. @throws IOException see specific implementation]]>
  9698. </doc>
  9699. </method>
  9700. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9701. abstract="false" native="false" synchronized="false"
  9702. static="false" final="false" visibility="public"
  9703. deprecated="not deprecated">
  9704. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  9705. <exception name="IOException" type="java.io.IOException"/>
  9706. <doc>
  9707. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  9708. files. Results are sorted by their names.
  9709. <p>
  9710. A filename pattern is composed of <i>regular</i> characters and
  9711. <i>special pattern matching</i> characters, which are:
  9712. <dl>
  9713. <dd>
  9714. <dl>
  9715. <p>
  9716. <dt> <tt> ? </tt>
  9717. <dd> Matches any single character.
  9718. <p>
  9719. <dt> <tt> * </tt>
  9720. <dd> Matches zero or more characters.
  9721. <p>
  9722. <dt> <tt> [<i>abc</i>] </tt>
  9723. <dd> Matches a single character from character set
  9724. <tt>{<i>a,b,c</i>}</tt>.
  9725. <p>
  9726. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  9727. <dd> Matches a single character from the character range
  9728. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  9729. lexicographically less than or equal to character <tt><i>b</i></tt>.
  9730. <p>
  9731. <dt> <tt> [^<i>a</i>] </tt>
  9732. <dd> Matches a single character that is not from character set or range
  9733. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  9734. immediately to the right of the opening bracket.
  9735. <p>
  9736. <dt> <tt> \<i>c</i> </tt>
  9737. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  9738. <p>
  9739. <dt> <tt> {ab,cd} </tt>
  9740. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  9741. <p>
  9742. <dt> <tt> {ab,c{de,fh}} </tt>
  9743. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  9744. </dl>
  9745. </dd>
  9746. </dl>
  9747. @param pathPattern a glob specifying a path pattern
  9748. @return an array of paths that match the path pattern
  9749. @throws IOException IO failure]]>
  9750. </doc>
  9751. </method>
  9752. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9753. abstract="false" native="false" synchronized="false"
  9754. static="false" final="false" visibility="public"
  9755. deprecated="not deprecated">
  9756. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  9757. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9758. <exception name="IOException" type="java.io.IOException"/>
  9759. <doc>
  9760. <![CDATA[Return an array of {@link FileStatus} objects whose path names match
  9761. {@code pathPattern} and is accepted by the user-supplied path filter.
  9762. Results are sorted by their path names.
  9763. @param pathPattern a glob specifying the path pattern
  9764. @param filter a user-supplied path filter
  9765. @return null if {@code pathPattern} has no glob and the path does not exist
  9766. an empty array if {@code pathPattern} has a glob and no path
  9767. matches it else an array of {@link FileStatus} objects matching the
  9768. pattern
  9769. @throws IOException if any I/O error occurs when fetching file status]]>
  9770. </doc>
  9771. </method>
  9772. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9773. abstract="false" native="false" synchronized="false"
  9774. static="false" final="false" visibility="public"
  9775. deprecated="not deprecated">
  9776. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9777. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9778. <exception name="IOException" type="java.io.IOException"/>
  9779. <doc>
  9780. <![CDATA[List the statuses of the files/directories in the given path if the path is
  9781. a directory.
  9782. Return the file's status and block locations If the path is a file.
  9783. If a returned status is a file, it contains the file's block locations.
  9784. @param f is the path
  9785. @return an iterator that traverses statuses of the files/directories
  9786. in the given path
  9787. @throws FileNotFoundException If <code>f</code> does not exist
  9788. @throws IOException If an I/O error occurred]]>
  9789. </doc>
  9790. </method>
  9791. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9792. abstract="false" native="false" synchronized="false"
  9793. static="false" final="false" visibility="protected"
  9794. deprecated="not deprecated">
  9795. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9796. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9797. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9798. <exception name="IOException" type="java.io.IOException"/>
  9799. <doc>
  9800. <![CDATA[List a directory.
  9801. The returned results include its block location if it is a file
  9802. The results are filtered by the given path filter
  9803. @param f a path
  9804. @param filter a path filter
  9805. @return an iterator that traverses statuses of the files/directories
  9806. in the given path
  9807. @throws FileNotFoundException if <code>f</code> does not exist
  9808. @throws IOException if any I/O error occurred]]>
  9809. </doc>
  9810. </method>
  9811. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  9812. abstract="false" native="false" synchronized="false"
  9813. static="false" final="false" visibility="public"
  9814. deprecated="not deprecated">
  9815. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9816. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9817. <exception name="IOException" type="java.io.IOException"/>
  9818. <doc>
  9819. <![CDATA[Returns a remote iterator so that followup calls are made on demand
  9820. while consuming the entries. Each FileSystem implementation should
  9821. override this method and provide a more efficient implementation, if
  9822. possible.
  9823. Does not guarantee to return the iterator that traverses statuses
  9824. of the files in a sorted order.
  9825. @param p target path
  9826. @return remote iterator
  9827. @throws FileNotFoundException if <code>p</code> does not exist
  9828. @throws IOException if any I/O error occurred]]>
  9829. </doc>
  9830. </method>
  9831. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  9832. abstract="false" native="false" synchronized="false"
  9833. static="false" final="false" visibility="public"
  9834. deprecated="not deprecated">
  9835. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9836. <param name="recursive" type="boolean"/>
  9837. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9838. <exception name="IOException" type="java.io.IOException"/>
  9839. <doc>
  9840. <![CDATA[List the statuses and block locations of the files in the given path.
  9841. Does not guarantee to return the iterator that traverses statuses
  9842. of the files in a sorted order.
  9843. <pre>
  9844. If the path is a directory,
  9845. if recursive is false, returns files in the directory;
  9846. if recursive is true, return files in the subtree rooted at the path.
  9847. If the path is a file, return the file's status and block locations.
  9848. </pre>
  9849. @param f is the path
  9850. @param recursive if the subdirectories need to be traversed recursively
  9851. @return an iterator that traverses statuses of the files
  9852. @throws FileNotFoundException when the path does not exist;
  9853. @throws IOException see specific implementation]]>
  9854. </doc>
  9855. </method>
  9856. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  9857. abstract="false" native="false" synchronized="false"
  9858. static="false" final="false" visibility="public"
  9859. deprecated="not deprecated">
  9860. <doc>
  9861. <![CDATA[Return the current user's home directory in this FileSystem.
  9862. The default implementation returns {@code "/user/$USER/"}.]]>
  9863. </doc>
  9864. </method>
  9865. <method name="setWorkingDirectory"
  9866. abstract="true" native="false" synchronized="false"
  9867. static="false" final="false" visibility="public"
  9868. deprecated="not deprecated">
  9869. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  9870. <doc>
  9871. <![CDATA[Set the current working directory for the given FileSystem. All relative
  9872. paths will be resolved relative to it.
  9873. @param new_dir Path of new working directory]]>
  9874. </doc>
  9875. </method>
  9876. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9877. abstract="true" native="false" synchronized="false"
  9878. static="false" final="false" visibility="public"
  9879. deprecated="not deprecated">
  9880. <doc>
  9881. <![CDATA[Get the current working directory for the given FileSystem
  9882. @return the directory pathname]]>
  9883. </doc>
  9884. </method>
  9885. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9886. abstract="false" native="false" synchronized="false"
  9887. static="false" final="false" visibility="protected"
  9888. deprecated="not deprecated">
  9889. <doc>
  9890. <![CDATA[Note: with the new FileContext class, getWorkingDirectory()
  9891. will be removed.
  9892. The working directory is implemented in FileContext.
  9893. Some FileSystems like LocalFileSystem have an initial workingDir
  9894. that we use as the starting workingDir. For other file systems
  9895. like HDFS there is no built in notion of an initial workingDir.
  9896. @return if there is built in notion of workingDir then it
  9897. is returned; else a null is returned.]]>
  9898. </doc>
  9899. </method>
  9900. <method name="mkdirs" return="boolean"
  9901. abstract="false" native="false" synchronized="false"
  9902. static="false" final="false" visibility="public"
  9903. deprecated="not deprecated">
  9904. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9905. <exception name="IOException" type="java.io.IOException"/>
  9906. <doc>
  9907. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.
  9908. @param f path
  9909. @return true if the directory was created
  9910. @throws IOException IO failure]]>
  9911. </doc>
  9912. </method>
  9913. <method name="mkdirs" return="boolean"
  9914. abstract="true" native="false" synchronized="false"
  9915. static="false" final="false" visibility="public"
  9916. deprecated="not deprecated">
  9917. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9918. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9919. <exception name="IOException" type="java.io.IOException"/>
  9920. <doc>
  9921. <![CDATA[Make the given file and all non-existent parents into
  9922. directories. Has roughly the semantics of Unix @{code mkdir -p}.
  9923. Existence of the directory hierarchy is not an error.
  9924. @param f path to create
  9925. @param permission to apply to f
  9926. @throws IOException IO failure]]>
  9927. </doc>
  9928. </method>
  9929. <method name="copyFromLocalFile"
  9930. abstract="false" native="false" synchronized="false"
  9931. static="false" final="false" visibility="public"
  9932. deprecated="not deprecated">
  9933. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9934. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9935. <exception name="IOException" type="java.io.IOException"/>
  9936. <doc>
  9937. <![CDATA[The src file is on the local disk. Add it to filesystem at
  9938. the given dst name and the source is kept intact afterwards
  9939. @param src path
  9940. @param dst path
  9941. @throws IOException IO failure]]>
  9942. </doc>
  9943. </method>
  9944. <method name="moveFromLocalFile"
  9945. abstract="false" native="false" synchronized="false"
  9946. static="false" final="false" visibility="public"
  9947. deprecated="not deprecated">
  9948. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9949. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9950. <exception name="IOException" type="java.io.IOException"/>
  9951. <doc>
  9952. <![CDATA[The src files is on the local disk. Add it to filesystem at
  9953. the given dst name, removing the source afterwards.
  9954. @param srcs source paths
  9955. @param dst path
  9956. @throws IOException IO failure]]>
  9957. </doc>
  9958. </method>
  9959. <method name="moveFromLocalFile"
  9960. abstract="false" native="false" synchronized="false"
  9961. static="false" final="false" visibility="public"
  9962. deprecated="not deprecated">
  9963. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9964. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9965. <exception name="IOException" type="java.io.IOException"/>
  9966. <doc>
  9967. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  9968. the given dst name, removing the source afterwards.
  9969. @param src local path
  9970. @param dst path
  9971. @throws IOException IO failure]]>
  9972. </doc>
  9973. </method>
  9974. <method name="copyFromLocalFile"
  9975. abstract="false" native="false" synchronized="false"
  9976. static="false" final="false" visibility="public"
  9977. deprecated="not deprecated">
  9978. <param name="delSrc" type="boolean"/>
  9979. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9980. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9981. <exception name="IOException" type="java.io.IOException"/>
  9982. <doc>
  9983. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  9984. the given dst name.
  9985. delSrc indicates if the source should be removed
  9986. @param delSrc whether to delete the src
  9987. @param src path
  9988. @param dst path]]>
  9989. </doc>
  9990. </method>
  9991. <method name="copyFromLocalFile"
  9992. abstract="false" native="false" synchronized="false"
  9993. static="false" final="false" visibility="public"
  9994. deprecated="not deprecated">
  9995. <param name="delSrc" type="boolean"/>
  9996. <param name="overwrite" type="boolean"/>
  9997. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9998. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9999. <exception name="IOException" type="java.io.IOException"/>
  10000. <doc>
  10001. <![CDATA[The src files are on the local disk. Add it to the filesystem at
  10002. the given dst name.
  10003. delSrc indicates if the source should be removed
  10004. @param delSrc whether to delete the src
  10005. @param overwrite whether to overwrite an existing file
  10006. @param srcs array of paths which are source
  10007. @param dst path
  10008. @throws IOException IO failure]]>
  10009. </doc>
  10010. </method>
  10011. <method name="copyFromLocalFile"
  10012. abstract="false" native="false" synchronized="false"
  10013. static="false" final="false" visibility="public"
  10014. deprecated="not deprecated">
  10015. <param name="delSrc" type="boolean"/>
  10016. <param name="overwrite" type="boolean"/>
  10017. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10018. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10019. <exception name="IOException" type="java.io.IOException"/>
  10020. <doc>
  10021. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  10022. the given dst name.
  10023. delSrc indicates if the source should be removed
  10024. @param delSrc whether to delete the src
  10025. @param overwrite whether to overwrite an existing file
  10026. @param src path
  10027. @param dst path
  10028. @throws IOException IO failure]]>
  10029. </doc>
  10030. </method>
  10031. <method name="copyToLocalFile"
  10032. abstract="false" native="false" synchronized="false"
  10033. static="false" final="false" visibility="public"
  10034. deprecated="not deprecated">
  10035. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10036. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10037. <exception name="IOException" type="java.io.IOException"/>
  10038. <doc>
  10039. <![CDATA[Copy it a file from the remote filesystem to the local one.
  10040. @param src path src file in the remote filesystem
  10041. @param dst path local destination
  10042. @throws IOException IO failure]]>
  10043. </doc>
  10044. </method>
  10045. <method name="moveToLocalFile"
  10046. abstract="false" native="false" synchronized="false"
  10047. static="false" final="false" visibility="public"
  10048. deprecated="not deprecated">
  10049. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10050. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10051. <exception name="IOException" type="java.io.IOException"/>
  10052. <doc>
  10053. <![CDATA[Copy a file to the local filesystem, then delete it from the
  10054. remote filesystem (if successfully copied).
  10055. @param src path src file in the remote filesystem
  10056. @param dst path local destination
  10057. @throws IOException IO failure]]>
  10058. </doc>
  10059. </method>
  10060. <method name="copyToLocalFile"
  10061. abstract="false" native="false" synchronized="false"
  10062. static="false" final="false" visibility="public"
  10063. deprecated="not deprecated">
  10064. <param name="delSrc" type="boolean"/>
  10065. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10066. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10067. <exception name="IOException" type="java.io.IOException"/>
  10068. <doc>
  10069. <![CDATA[Copy it a file from a remote filesystem to the local one.
  10070. delSrc indicates if the src will be removed or not.
  10071. @param delSrc whether to delete the src
  10072. @param src path src file in the remote filesystem
  10073. @param dst path local destination
  10074. @throws IOException IO failure]]>
  10075. </doc>
  10076. </method>
  10077. <method name="copyToLocalFile"
  10078. abstract="false" native="false" synchronized="false"
  10079. static="false" final="false" visibility="public"
  10080. deprecated="not deprecated">
  10081. <param name="delSrc" type="boolean"/>
  10082. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10083. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10084. <param name="useRawLocalFileSystem" type="boolean"/>
  10085. <exception name="IOException" type="java.io.IOException"/>
  10086. <doc>
  10087. <![CDATA[The src file is under this filesystem, and the dst is on the local disk.
  10088. Copy it from the remote filesystem to the local dst name.
  10089. delSrc indicates if the src will be removed
  10090. or not. useRawLocalFileSystem indicates whether to use RawLocalFileSystem
  10091. as the local file system or not. RawLocalFileSystem is non checksumming,
  10092. So, It will not create any crc files at local.
  10093. @param delSrc
  10094. whether to delete the src
  10095. @param src
  10096. path
  10097. @param dst
  10098. path
  10099. @param useRawLocalFileSystem
  10100. whether to use RawLocalFileSystem as local file system or not.
  10101. @throws IOException for any IO error]]>
  10102. </doc>
  10103. </method>
  10104. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  10105. abstract="false" native="false" synchronized="false"
  10106. static="false" final="false" visibility="public"
  10107. deprecated="not deprecated">
  10108. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10109. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10110. <exception name="IOException" type="java.io.IOException"/>
  10111. <doc>
  10112. <![CDATA[Returns a local file that the user can write output to. The caller
  10113. provides both the eventual target name in this FileSystem
  10114. and the local working file path.
  10115. If this FileSystem is local, we write directly into the target. If
  10116. the FileSystem is not local, we write into the tmp local area.
  10117. @param fsOutputFile path of output file
  10118. @param tmpLocalFile path of local tmp file
  10119. @throws IOException IO failure]]>
  10120. </doc>
  10121. </method>
  10122. <method name="completeLocalOutput"
  10123. abstract="false" native="false" synchronized="false"
  10124. static="false" final="false" visibility="public"
  10125. deprecated="not deprecated">
  10126. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10127. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10128. <exception name="IOException" type="java.io.IOException"/>
  10129. <doc>
  10130. <![CDATA[Called when we're all done writing to the target.
  10131. A local FS will do nothing, because we've written to exactly the
  10132. right place.
  10133. A remote FS will copy the contents of tmpLocalFile to the correct target at
  10134. fsOutputFile.
  10135. @param fsOutputFile path of output file
  10136. @param tmpLocalFile path to local tmp file
  10137. @throws IOException IO failure]]>
  10138. </doc>
  10139. </method>
  10140. <method name="close"
  10141. abstract="false" native="false" synchronized="false"
  10142. static="false" final="false" visibility="public"
  10143. deprecated="not deprecated">
  10144. <exception name="IOException" type="java.io.IOException"/>
  10145. <doc>
  10146. <![CDATA[Close this FileSystem instance.
  10147. Will release any held locks, delete all files queued for deletion
  10148. through calls to {@link #deleteOnExit(Path)}, and remove this FS instance
  10149. from the cache, if cached.
  10150. After this operation, the outcome of any method call on this FileSystem
  10151. instance, or any input/output stream created by it is <i>undefined</i>.
  10152. @throws IOException IO failure]]>
  10153. </doc>
  10154. </method>
  10155. <method name="getUsed" return="long"
  10156. abstract="false" native="false" synchronized="false"
  10157. static="false" final="false" visibility="public"
  10158. deprecated="not deprecated">
  10159. <exception name="IOException" type="java.io.IOException"/>
  10160. <doc>
  10161. <![CDATA[Return the total size of all files in the filesystem.
  10162. @throws IOException IO failure]]>
  10163. </doc>
  10164. </method>
  10165. <method name="getUsed" return="long"
  10166. abstract="false" native="false" synchronized="false"
  10167. static="false" final="false" visibility="public"
  10168. deprecated="not deprecated">
  10169. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10170. <exception name="IOException" type="java.io.IOException"/>
  10171. <doc>
  10172. <![CDATA[Return the total size of all files from a specified path.
  10173. @throws IOException IO failure]]>
  10174. </doc>
  10175. </method>
  10176. <method name="getBlockSize" return="long"
  10177. abstract="false" native="false" synchronized="false"
  10178. static="false" final="false" visibility="public"
  10179. deprecated="Use {@link #getFileStatus(Path)} instead">
  10180. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10181. <exception name="IOException" type="java.io.IOException"/>
  10182. <doc>
  10183. <![CDATA[Get the block size for a particular file.
  10184. @param f the filename
  10185. @return the number of bytes in a block
  10186. @deprecated Use {@link #getFileStatus(Path)} instead
  10187. @throws FileNotFoundException if the path is not present
  10188. @throws IOException IO failure]]>
  10189. </doc>
  10190. </method>
  10191. <method name="getDefaultBlockSize" return="long"
  10192. abstract="false" native="false" synchronized="false"
  10193. static="false" final="false" visibility="public"
  10194. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  10195. <doc>
  10196. <![CDATA[Return the number of bytes that large input files should be optimally
  10197. be split into to minimize I/O time.
  10198. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  10199. </doc>
  10200. </method>
  10201. <method name="getDefaultBlockSize" return="long"
  10202. abstract="false" native="false" synchronized="false"
  10203. static="false" final="false" visibility="public"
  10204. deprecated="not deprecated">
  10205. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10206. <doc>
  10207. <![CDATA[Return the number of bytes that large input files should be optimally
  10208. be split into to minimize I/O time. The given path will be used to
  10209. locate the actual filesystem. The full path does not have to exist.
  10210. @param f path of file
  10211. @return the default block size for the path's filesystem]]>
  10212. </doc>
  10213. </method>
  10214. <method name="getDefaultReplication" return="short"
  10215. abstract="false" native="false" synchronized="false"
  10216. static="false" final="false" visibility="public"
  10217. deprecated="use {@link #getDefaultReplication(Path)} instead">
  10218. <doc>
  10219. <![CDATA[Get the default replication.
  10220. @return the replication; the default value is "1".
  10221. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  10222. </doc>
  10223. </method>
  10224. <method name="getDefaultReplication" return="short"
  10225. abstract="false" native="false" synchronized="false"
  10226. static="false" final="false" visibility="public"
  10227. deprecated="not deprecated">
  10228. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10229. <doc>
  10230. <![CDATA[Get the default replication for a path.
  10231. The given path will be used to locate the actual FileSystem to query.
  10232. The full path does not have to exist.
  10233. @param path of the file
  10234. @return default replication for the path's filesystem]]>
  10235. </doc>
  10236. </method>
  10237. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  10238. abstract="true" native="false" synchronized="false"
  10239. static="false" final="false" visibility="public"
  10240. deprecated="not deprecated">
  10241. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10242. <exception name="IOException" type="java.io.IOException"/>
  10243. <doc>
  10244. <![CDATA[Return a file status object that represents the path.
  10245. @param f The path we want information from
  10246. @return a FileStatus object
  10247. @throws FileNotFoundException when the path does not exist
  10248. @throws IOException see specific implementation]]>
  10249. </doc>
  10250. </method>
  10251. <method name="msync"
  10252. abstract="false" native="false" synchronized="false"
  10253. static="false" final="false" visibility="public"
  10254. deprecated="not deprecated">
  10255. <exception name="IOException" type="java.io.IOException"/>
  10256. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  10257. <doc>
  10258. <![CDATA[Synchronize client metadata state.
  10259. <p>
  10260. In some FileSystem implementations such as HDFS metadata
  10261. synchronization is essential to guarantee consistency of read requests
  10262. particularly in HA setting.
  10263. @throws IOException
  10264. @throws UnsupportedOperationException]]>
  10265. </doc>
  10266. </method>
  10267. <method name="fixRelativePart" return="org.apache.hadoop.fs.Path"
  10268. abstract="false" native="false" synchronized="false"
  10269. static="false" final="false" visibility="protected"
  10270. deprecated="not deprecated">
  10271. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10272. <doc>
  10273. <![CDATA[See {@link FileContext#fixRelativePart}.]]>
  10274. </doc>
  10275. </method>
  10276. <method name="createSymlink"
  10277. abstract="false" native="false" synchronized="false"
  10278. static="false" final="false" visibility="public"
  10279. deprecated="not deprecated">
  10280. <param name="target" type="org.apache.hadoop.fs.Path"/>
  10281. <param name="link" type="org.apache.hadoop.fs.Path"/>
  10282. <param name="createParent" type="boolean"/>
  10283. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10284. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  10285. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10286. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  10287. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10288. <exception name="IOException" type="java.io.IOException"/>
  10289. <doc>
  10290. <![CDATA[See {@link FileContext#createSymlink(Path, Path, boolean)}.]]>
  10291. </doc>
  10292. </method>
  10293. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  10294. abstract="false" native="false" synchronized="false"
  10295. static="false" final="false" visibility="public"
  10296. deprecated="not deprecated">
  10297. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10298. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10299. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10300. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10301. <exception name="IOException" type="java.io.IOException"/>
  10302. <doc>
  10303. <![CDATA[See {@link FileContext#getFileLinkStatus(Path)}.
  10304. @throws FileNotFoundException when the path does not exist
  10305. @throws IOException see specific implementation]]>
  10306. </doc>
  10307. </method>
  10308. <method name="supportsSymlinks" return="boolean"
  10309. abstract="false" native="false" synchronized="false"
  10310. static="false" final="false" visibility="public"
  10311. deprecated="not deprecated">
  10312. <doc>
  10313. <![CDATA[See {@link AbstractFileSystem#supportsSymlinks()}.]]>
  10314. </doc>
  10315. </method>
  10316. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  10317. abstract="false" native="false" synchronized="false"
  10318. static="false" final="false" visibility="public"
  10319. deprecated="not deprecated">
  10320. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10321. <exception name="IOException" type="java.io.IOException"/>
  10322. <doc>
  10323. <![CDATA[See {@link FileContext#getLinkTarget(Path)}.
  10324. @throws UnsupportedOperationException if the operation is unsupported
  10325. (default outcome).]]>
  10326. </doc>
  10327. </method>
  10328. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  10329. abstract="false" native="false" synchronized="false"
  10330. static="false" final="false" visibility="protected"
  10331. deprecated="not deprecated">
  10332. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10333. <exception name="IOException" type="java.io.IOException"/>
  10334. <doc>
  10335. <![CDATA[See {@link AbstractFileSystem#getLinkTarget(Path)}.
  10336. @throws UnsupportedOperationException if the operation is unsupported
  10337. (default outcome).]]>
  10338. </doc>
  10339. </method>
  10340. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10341. abstract="false" native="false" synchronized="false"
  10342. static="false" final="false" visibility="public"
  10343. deprecated="not deprecated">
  10344. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10345. <exception name="IOException" type="java.io.IOException"/>
  10346. <doc>
  10347. <![CDATA[Get the checksum of a file, if the FS supports checksums.
  10348. @param f The file path
  10349. @return The file checksum. The default return value is null,
  10350. which indicates that no checksum algorithm is implemented
  10351. in the corresponding FileSystem.
  10352. @throws IOException IO failure]]>
  10353. </doc>
  10354. </method>
  10355. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10356. abstract="false" native="false" synchronized="false"
  10357. static="false" final="false" visibility="public"
  10358. deprecated="not deprecated">
  10359. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10360. <param name="length" type="long"/>
  10361. <exception name="IOException" type="java.io.IOException"/>
  10362. <doc>
  10363. <![CDATA[Get the checksum of a file, from the beginning of the file till the
  10364. specific length.
  10365. @param f The file path
  10366. @param length The length of the file range for checksum calculation
  10367. @return The file checksum or null if checksums are not supported.
  10368. @throws IOException IO failure]]>
  10369. </doc>
  10370. </method>
  10371. <method name="setVerifyChecksum"
  10372. abstract="false" native="false" synchronized="false"
  10373. static="false" final="false" visibility="public"
  10374. deprecated="not deprecated">
  10375. <param name="verifyChecksum" type="boolean"/>
  10376. <doc>
  10377. <![CDATA[Set the verify checksum flag. This is only applicable if the
  10378. corresponding filesystem supports checksums.
  10379. By default doesn't do anything.
  10380. @param verifyChecksum Verify checksum flag]]>
  10381. </doc>
  10382. </method>
  10383. <method name="setWriteChecksum"
  10384. abstract="false" native="false" synchronized="false"
  10385. static="false" final="false" visibility="public"
  10386. deprecated="not deprecated">
  10387. <param name="writeChecksum" type="boolean"/>
  10388. <doc>
  10389. <![CDATA[Set the write checksum flag. This is only applicable if the
  10390. corresponding filesystem supports checksums.
  10391. By default doesn't do anything.
  10392. @param writeChecksum Write checksum flag]]>
  10393. </doc>
  10394. </method>
  10395. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  10396. abstract="false" native="false" synchronized="false"
  10397. static="false" final="false" visibility="public"
  10398. deprecated="not deprecated">
  10399. <exception name="IOException" type="java.io.IOException"/>
  10400. <doc>
  10401. <![CDATA[Returns a status object describing the use and capacity of the
  10402. filesystem. If the filesystem has multiple partitions, the
  10403. use and capacity of the root partition is reflected.
  10404. @return a FsStatus object
  10405. @throws IOException
  10406. see specific implementation]]>
  10407. </doc>
  10408. </method>
  10409. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  10410. abstract="false" native="false" synchronized="false"
  10411. static="false" final="false" visibility="public"
  10412. deprecated="not deprecated">
  10413. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10414. <exception name="IOException" type="java.io.IOException"/>
  10415. <doc>
  10416. <![CDATA[Returns a status object describing the use and capacity of the
  10417. filesystem. If the filesystem has multiple partitions, the
  10418. use and capacity of the partition pointed to by the specified
  10419. path is reflected.
  10420. @param p Path for which status should be obtained. null means
  10421. the default partition.
  10422. @return a FsStatus object
  10423. @throws IOException
  10424. see specific implementation]]>
  10425. </doc>
  10426. </method>
  10427. <method name="setPermission"
  10428. abstract="false" native="false" synchronized="false"
  10429. static="false" final="false" visibility="public"
  10430. deprecated="not deprecated">
  10431. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10432. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10433. <exception name="IOException" type="java.io.IOException"/>
  10434. <doc>
  10435. <![CDATA[Set permission of a path.
  10436. @param p The path
  10437. @param permission permission
  10438. @throws IOException IO failure]]>
  10439. </doc>
  10440. </method>
  10441. <method name="setOwner"
  10442. abstract="false" native="false" synchronized="false"
  10443. static="false" final="false" visibility="public"
  10444. deprecated="not deprecated">
  10445. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10446. <param name="username" type="java.lang.String"/>
  10447. <param name="groupname" type="java.lang.String"/>
  10448. <exception name="IOException" type="java.io.IOException"/>
  10449. <doc>
  10450. <![CDATA[Set owner of a path (i.e. a file or a directory).
  10451. The parameters username and groupname cannot both be null.
  10452. @param p The path
  10453. @param username If it is null, the original username remains unchanged.
  10454. @param groupname If it is null, the original groupname remains unchanged.
  10455. @throws IOException IO failure]]>
  10456. </doc>
  10457. </method>
  10458. <method name="setTimes"
  10459. abstract="false" native="false" synchronized="false"
  10460. static="false" final="false" visibility="public"
  10461. deprecated="not deprecated">
  10462. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10463. <param name="mtime" type="long"/>
  10464. <param name="atime" type="long"/>
  10465. <exception name="IOException" type="java.io.IOException"/>
  10466. <doc>
  10467. <![CDATA[Set access time of a file.
  10468. @param p The path
  10469. @param mtime Set the modification time of this file.
  10470. The number of milliseconds since Jan 1, 1970.
  10471. A value of -1 means that this call should not set modification time.
  10472. @param atime Set the access time of this file.
  10473. The number of milliseconds since Jan 1, 1970.
  10474. A value of -1 means that this call should not set access time.
  10475. @throws IOException IO failure]]>
  10476. </doc>
  10477. </method>
  10478. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10479. abstract="false" native="false" synchronized="false"
  10480. static="false" final="true" visibility="public"
  10481. deprecated="not deprecated">
  10482. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10483. <exception name="IOException" type="java.io.IOException"/>
  10484. <doc>
  10485. <![CDATA[Create a snapshot with a default name.
  10486. @param path The directory where snapshots will be taken.
  10487. @return the snapshot path.
  10488. @throws IOException IO failure
  10489. @throws UnsupportedOperationException if the operation is unsupported]]>
  10490. </doc>
  10491. </method>
  10492. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10493. abstract="false" native="false" synchronized="false"
  10494. static="false" final="false" visibility="public"
  10495. deprecated="not deprecated">
  10496. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10497. <param name="snapshotName" type="java.lang.String"/>
  10498. <exception name="IOException" type="java.io.IOException"/>
  10499. <doc>
  10500. <![CDATA[Create a snapshot.
  10501. @param path The directory where snapshots will be taken.
  10502. @param snapshotName The name of the snapshot
  10503. @return the snapshot path.
  10504. @throws IOException IO failure
  10505. @throws UnsupportedOperationException if the operation is unsupported]]>
  10506. </doc>
  10507. </method>
  10508. <method name="renameSnapshot"
  10509. abstract="false" native="false" synchronized="false"
  10510. static="false" final="false" visibility="public"
  10511. deprecated="not deprecated">
  10512. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10513. <param name="snapshotOldName" type="java.lang.String"/>
  10514. <param name="snapshotNewName" type="java.lang.String"/>
  10515. <exception name="IOException" type="java.io.IOException"/>
  10516. <doc>
  10517. <![CDATA[Rename a snapshot.
  10518. @param path The directory path where the snapshot was taken
  10519. @param snapshotOldName Old name of the snapshot
  10520. @param snapshotNewName New name of the snapshot
  10521. @throws IOException IO failure
  10522. @throws UnsupportedOperationException if the operation is unsupported
  10523. (default outcome).]]>
  10524. </doc>
  10525. </method>
  10526. <method name="deleteSnapshot"
  10527. abstract="false" native="false" synchronized="false"
  10528. static="false" final="false" visibility="public"
  10529. deprecated="not deprecated">
  10530. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10531. <param name="snapshotName" type="java.lang.String"/>
  10532. <exception name="IOException" type="java.io.IOException"/>
  10533. <doc>
  10534. <![CDATA[Delete a snapshot of a directory.
  10535. @param path The directory that the to-be-deleted snapshot belongs to
  10536. @param snapshotName The name of the snapshot
  10537. @throws IOException IO failure
  10538. @throws UnsupportedOperationException if the operation is unsupported
  10539. (default outcome).]]>
  10540. </doc>
  10541. </method>
  10542. <method name="modifyAclEntries"
  10543. abstract="false" native="false" synchronized="false"
  10544. static="false" final="false" visibility="public"
  10545. deprecated="not deprecated">
  10546. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10547. <param name="aclSpec" type="java.util.List"/>
  10548. <exception name="IOException" type="java.io.IOException"/>
  10549. <doc>
  10550. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  10551. entries or modify the permissions on existing ACL entries. All existing
  10552. ACL entries that are not specified in this call are retained without
  10553. changes. (Modifications are merged into the current ACL.)
  10554. @param path Path to modify
  10555. @param aclSpec List<AclEntry> describing modifications
  10556. @throws IOException if an ACL could not be modified
  10557. @throws UnsupportedOperationException if the operation is unsupported
  10558. (default outcome).]]>
  10559. </doc>
  10560. </method>
  10561. <method name="removeAclEntries"
  10562. abstract="false" native="false" synchronized="false"
  10563. static="false" final="false" visibility="public"
  10564. deprecated="not deprecated">
  10565. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10566. <param name="aclSpec" type="java.util.List"/>
  10567. <exception name="IOException" type="java.io.IOException"/>
  10568. <doc>
  10569. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  10570. retained.
  10571. @param path Path to modify
  10572. @param aclSpec List describing entries to remove
  10573. @throws IOException if an ACL could not be modified
  10574. @throws UnsupportedOperationException if the operation is unsupported
  10575. (default outcome).]]>
  10576. </doc>
  10577. </method>
  10578. <method name="removeDefaultAcl"
  10579. abstract="false" native="false" synchronized="false"
  10580. static="false" final="false" visibility="public"
  10581. deprecated="not deprecated">
  10582. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10583. <exception name="IOException" type="java.io.IOException"/>
  10584. <doc>
  10585. <![CDATA[Removes all default ACL entries from files and directories.
  10586. @param path Path to modify
  10587. @throws IOException if an ACL could not be modified
  10588. @throws UnsupportedOperationException if the operation is unsupported
  10589. (default outcome).]]>
  10590. </doc>
  10591. </method>
  10592. <method name="removeAcl"
  10593. abstract="false" native="false" synchronized="false"
  10594. static="false" final="false" visibility="public"
  10595. deprecated="not deprecated">
  10596. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10597. <exception name="IOException" type="java.io.IOException"/>
  10598. <doc>
  10599. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  10600. for user, group, and others are retained for compatibility with permission
  10601. bits.
  10602. @param path Path to modify
  10603. @throws IOException if an ACL could not be removed
  10604. @throws UnsupportedOperationException if the operation is unsupported
  10605. (default outcome).]]>
  10606. </doc>
  10607. </method>
  10608. <method name="setAcl"
  10609. abstract="false" native="false" synchronized="false"
  10610. static="false" final="false" visibility="public"
  10611. deprecated="not deprecated">
  10612. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10613. <param name="aclSpec" type="java.util.List"/>
  10614. <exception name="IOException" type="java.io.IOException"/>
  10615. <doc>
  10616. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  10617. entries.
  10618. @param path Path to modify
  10619. @param aclSpec List describing modifications, which must include entries
  10620. for user, group, and others for compatibility with permission bits.
  10621. @throws IOException if an ACL could not be modified
  10622. @throws UnsupportedOperationException if the operation is unsupported
  10623. (default outcome).]]>
  10624. </doc>
  10625. </method>
  10626. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  10627. abstract="false" native="false" synchronized="false"
  10628. static="false" final="false" visibility="public"
  10629. deprecated="not deprecated">
  10630. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10631. <exception name="IOException" type="java.io.IOException"/>
  10632. <doc>
  10633. <![CDATA[Gets the ACL of a file or directory.
  10634. @param path Path to get
  10635. @return AclStatus describing the ACL of the file or directory
  10636. @throws IOException if an ACL could not be read
  10637. @throws UnsupportedOperationException if the operation is unsupported
  10638. (default outcome).]]>
  10639. </doc>
  10640. </method>
  10641. <method name="setXAttr"
  10642. abstract="false" native="false" synchronized="false"
  10643. static="false" final="false" visibility="public"
  10644. deprecated="not deprecated">
  10645. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10646. <param name="name" type="java.lang.String"/>
  10647. <param name="value" type="byte[]"/>
  10648. <exception name="IOException" type="java.io.IOException"/>
  10649. <doc>
  10650. <![CDATA[Set an xattr of a file or directory.
  10651. The name must be prefixed with the namespace followed by ".". For example,
  10652. "user.attr".
  10653. <p>
  10654. Refer to the HDFS extended attributes user documentation for details.
  10655. @param path Path to modify
  10656. @param name xattr name.
  10657. @param value xattr value.
  10658. @throws IOException IO failure
  10659. @throws UnsupportedOperationException if the operation is unsupported
  10660. (default outcome).]]>
  10661. </doc>
  10662. </method>
  10663. <method name="setXAttr"
  10664. abstract="false" native="false" synchronized="false"
  10665. static="false" final="false" visibility="public"
  10666. deprecated="not deprecated">
  10667. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10668. <param name="name" type="java.lang.String"/>
  10669. <param name="value" type="byte[]"/>
  10670. <param name="flag" type="java.util.EnumSet"/>
  10671. <exception name="IOException" type="java.io.IOException"/>
  10672. <doc>
  10673. <![CDATA[Set an xattr of a file or directory.
  10674. The name must be prefixed with the namespace followed by ".". For example,
  10675. "user.attr".
  10676. <p>
  10677. Refer to the HDFS extended attributes user documentation for details.
  10678. @param path Path to modify
  10679. @param name xattr name.
  10680. @param value xattr value.
  10681. @param flag xattr set flag
  10682. @throws IOException IO failure
  10683. @throws UnsupportedOperationException if the operation is unsupported
  10684. (default outcome).]]>
  10685. </doc>
  10686. </method>
  10687. <method name="getXAttr" return="byte[]"
  10688. abstract="false" native="false" synchronized="false"
  10689. static="false" final="false" visibility="public"
  10690. deprecated="not deprecated">
  10691. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10692. <param name="name" type="java.lang.String"/>
  10693. <exception name="IOException" type="java.io.IOException"/>
  10694. <doc>
  10695. <![CDATA[Get an xattr name and value for a file or directory.
  10696. The name must be prefixed with the namespace followed by ".". For example,
  10697. "user.attr".
  10698. <p>
  10699. Refer to the HDFS extended attributes user documentation for details.
  10700. @param path Path to get extended attribute
  10701. @param name xattr name.
  10702. @return byte[] xattr value.
  10703. @throws IOException IO failure
  10704. @throws UnsupportedOperationException if the operation is unsupported
  10705. (default outcome).]]>
  10706. </doc>
  10707. </method>
  10708. <method name="getXAttrs" return="java.util.Map"
  10709. abstract="false" native="false" synchronized="false"
  10710. static="false" final="false" visibility="public"
  10711. deprecated="not deprecated">
  10712. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10713. <exception name="IOException" type="java.io.IOException"/>
  10714. <doc>
  10715. <![CDATA[Get all of the xattr name/value pairs for a file or directory.
  10716. Only those xattrs which the logged-in user has permissions to view
  10717. are returned.
  10718. <p>
  10719. Refer to the HDFS extended attributes user documentation for details.
  10720. @param path Path to get extended attributes
  10721. @return Map describing the XAttrs of the file or directory
  10722. @throws IOException IO failure
  10723. @throws UnsupportedOperationException if the operation is unsupported
  10724. (default outcome).]]>
  10725. </doc>
  10726. </method>
  10727. <method name="getXAttrs" return="java.util.Map"
  10728. abstract="false" native="false" synchronized="false"
  10729. static="false" final="false" visibility="public"
  10730. deprecated="not deprecated">
  10731. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10732. <param name="names" type="java.util.List"/>
  10733. <exception name="IOException" type="java.io.IOException"/>
  10734. <doc>
  10735. <![CDATA[Get all of the xattrs name/value pairs for a file or directory.
  10736. Only those xattrs which the logged-in user has permissions to view
  10737. are returned.
  10738. <p>
  10739. Refer to the HDFS extended attributes user documentation for details.
  10740. @param path Path to get extended attributes
  10741. @param names XAttr names.
  10742. @return Map describing the XAttrs of the file or directory
  10743. @throws IOException IO failure
  10744. @throws UnsupportedOperationException if the operation is unsupported
  10745. (default outcome).]]>
  10746. </doc>
  10747. </method>
  10748. <method name="listXAttrs" return="java.util.List"
  10749. abstract="false" native="false" synchronized="false"
  10750. static="false" final="false" visibility="public"
  10751. deprecated="not deprecated">
  10752. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10753. <exception name="IOException" type="java.io.IOException"/>
  10754. <doc>
  10755. <![CDATA[Get all of the xattr names for a file or directory.
  10756. Only those xattr names which the logged-in user has permissions to view
  10757. are returned.
  10758. <p>
  10759. Refer to the HDFS extended attributes user documentation for details.
  10760. @param path Path to get extended attributes
  10761. @return List<String> of the XAttr names of the file or directory
  10762. @throws IOException IO failure
  10763. @throws UnsupportedOperationException if the operation is unsupported
  10764. (default outcome).]]>
  10765. </doc>
  10766. </method>
  10767. <method name="removeXAttr"
  10768. abstract="false" native="false" synchronized="false"
  10769. static="false" final="false" visibility="public"
  10770. deprecated="not deprecated">
  10771. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10772. <param name="name" type="java.lang.String"/>
  10773. <exception name="IOException" type="java.io.IOException"/>
  10774. <doc>
  10775. <![CDATA[Remove an xattr of a file or directory.
  10776. The name must be prefixed with the namespace followed by ".". For example,
  10777. "user.attr".
  10778. <p>
  10779. Refer to the HDFS extended attributes user documentation for details.
  10780. @param path Path to remove extended attribute
  10781. @param name xattr name
  10782. @throws IOException IO failure
  10783. @throws UnsupportedOperationException if the operation is unsupported
  10784. (default outcome).]]>
  10785. </doc>
  10786. </method>
  10787. <method name="satisfyStoragePolicy"
  10788. abstract="false" native="false" synchronized="false"
  10789. static="false" final="false" visibility="public"
  10790. deprecated="not deprecated">
  10791. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10792. <exception name="IOException" type="java.io.IOException"/>
  10793. <doc>
  10794. <![CDATA[Set the source path to satisfy storage policy.
  10795. @param path The source path referring to either a directory or a file.
  10796. @throws IOException]]>
  10797. </doc>
  10798. </method>
  10799. <method name="setStoragePolicy"
  10800. abstract="false" native="false" synchronized="false"
  10801. static="false" final="false" visibility="public"
  10802. deprecated="not deprecated">
  10803. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10804. <param name="policyName" type="java.lang.String"/>
  10805. <exception name="IOException" type="java.io.IOException"/>
  10806. <doc>
  10807. <![CDATA[Set the storage policy for a given file or directory.
  10808. @param src file or directory path.
  10809. @param policyName the name of the target storage policy. The list
  10810. of supported Storage policies can be retrieved
  10811. via {@link #getAllStoragePolicies}.
  10812. @throws IOException IO failure
  10813. @throws UnsupportedOperationException if the operation is unsupported
  10814. (default outcome).]]>
  10815. </doc>
  10816. </method>
  10817. <method name="unsetStoragePolicy"
  10818. abstract="false" native="false" synchronized="false"
  10819. static="false" final="false" visibility="public"
  10820. deprecated="not deprecated">
  10821. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10822. <exception name="IOException" type="java.io.IOException"/>
  10823. <doc>
  10824. <![CDATA[Unset the storage policy set for a given file or directory.
  10825. @param src file or directory path.
  10826. @throws IOException IO failure
  10827. @throws UnsupportedOperationException if the operation is unsupported
  10828. (default outcome).]]>
  10829. </doc>
  10830. </method>
  10831. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  10832. abstract="false" native="false" synchronized="false"
  10833. static="false" final="false" visibility="public"
  10834. deprecated="not deprecated">
  10835. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10836. <exception name="IOException" type="java.io.IOException"/>
  10837. <doc>
  10838. <![CDATA[Query the effective storage policy ID for the given file or directory.
  10839. @param src file or directory path.
  10840. @return storage policy for give file.
  10841. @throws IOException IO failure
  10842. @throws UnsupportedOperationException if the operation is unsupported
  10843. (default outcome).]]>
  10844. </doc>
  10845. </method>
  10846. <method name="getAllStoragePolicies" return="java.util.Collection"
  10847. abstract="false" native="false" synchronized="false"
  10848. static="false" final="false" visibility="public"
  10849. deprecated="not deprecated">
  10850. <exception name="IOException" type="java.io.IOException"/>
  10851. <doc>
  10852. <![CDATA[Retrieve all the storage policies supported by this file system.
  10853. @return all storage policies supported by this filesystem.
  10854. @throws IOException IO failure
  10855. @throws UnsupportedOperationException if the operation is unsupported
  10856. (default outcome).]]>
  10857. </doc>
  10858. </method>
  10859. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  10860. abstract="false" native="false" synchronized="false"
  10861. static="false" final="false" visibility="public"
  10862. deprecated="not deprecated">
  10863. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10864. <doc>
  10865. <![CDATA[Get the root directory of Trash for current user when the path specified
  10866. is deleted.
  10867. @param path the trash root of the path to be determined.
  10868. @return the default implementation returns {@code /user/$USER/.Trash}]]>
  10869. </doc>
  10870. </method>
  10871. <method name="getTrashRoots" return="java.util.Collection"
  10872. abstract="false" native="false" synchronized="false"
  10873. static="false" final="false" visibility="public"
  10874. deprecated="not deprecated">
  10875. <param name="allUsers" type="boolean"/>
  10876. <doc>
  10877. <![CDATA[Get all the trash roots for current user or all users.
  10878. @param allUsers return trash roots for all users if true.
  10879. @return all the trash root directories.
  10880. Default FileSystem returns .Trash under users' home directories if
  10881. {@code /user/$USER/.Trash} exists.]]>
  10882. </doc>
  10883. </method>
  10884. <method name="hasPathCapability" return="boolean"
  10885. abstract="false" native="false" synchronized="false"
  10886. static="false" final="false" visibility="public"
  10887. deprecated="not deprecated">
  10888. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10889. <param name="capability" type="java.lang.String"/>
  10890. <exception name="IOException" type="java.io.IOException"/>
  10891. <doc>
  10892. <![CDATA[The base FileSystem implementation generally has no knowledge
  10893. of the capabilities of actual implementations.
  10894. Unless it has a way to explicitly determine the capabilities,
  10895. this method returns false.
  10896. {@inheritDoc}]]>
  10897. </doc>
  10898. </method>
  10899. <method name="getFileSystemClass" return="java.lang.Class"
  10900. abstract="false" native="false" synchronized="false"
  10901. static="true" final="false" visibility="public"
  10902. deprecated="not deprecated">
  10903. <param name="scheme" type="java.lang.String"/>
  10904. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10905. <exception name="IOException" type="java.io.IOException"/>
  10906. <doc>
  10907. <![CDATA[Get the FileSystem implementation class of a filesystem.
  10908. This triggers a scan and load of all FileSystem implementations listed as
  10909. services and discovered via the {@link ServiceLoader}
  10910. @param scheme URL scheme of FS
  10911. @param conf configuration: can be null, in which case the check for
  10912. a filesystem binding declaration in the configuration is skipped.
  10913. @return the filesystem
  10914. @throws UnsupportedFileSystemException if there was no known implementation
  10915. for the scheme.
  10916. @throws IOException if the filesystem could not be loaded]]>
  10917. </doc>
  10918. </method>
  10919. <method name="getStatistics" return="java.util.Map"
  10920. abstract="false" native="false" synchronized="true"
  10921. static="true" final="false" visibility="public"
  10922. deprecated="use {@link #getGlobalStorageStatistics()}">
  10923. <doc>
  10924. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  10925. @return a Map having a key as URI scheme and value as Statistics object
  10926. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10927. </doc>
  10928. </method>
  10929. <method name="getAllStatistics" return="java.util.List"
  10930. abstract="false" native="false" synchronized="true"
  10931. static="true" final="false" visibility="public"
  10932. deprecated="use {@link #getGlobalStorageStatistics()}">
  10933. <doc>
  10934. <![CDATA[Return the FileSystem classes that have Statistics.
  10935. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10936. </doc>
  10937. </method>
  10938. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  10939. abstract="false" native="false" synchronized="true"
  10940. static="true" final="false" visibility="public"
  10941. deprecated="use {@link #getGlobalStorageStatistics()}">
  10942. <param name="scheme" type="java.lang.String"/>
  10943. <param name="cls" type="java.lang.Class"/>
  10944. <doc>
  10945. <![CDATA[Get the statistics for a particular file system.
  10946. @param cls the class to lookup
  10947. @return a statistics object
  10948. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10949. </doc>
  10950. </method>
  10951. <method name="clearStatistics"
  10952. abstract="false" native="false" synchronized="true"
  10953. static="true" final="false" visibility="public"
  10954. deprecated="not deprecated">
  10955. <doc>
  10956. <![CDATA[Reset all statistics for all file systems.]]>
  10957. </doc>
  10958. </method>
  10959. <method name="printStatistics"
  10960. abstract="false" native="false" synchronized="true"
  10961. static="true" final="false" visibility="public"
  10962. deprecated="not deprecated">
  10963. <exception name="IOException" type="java.io.IOException"/>
  10964. <doc>
  10965. <![CDATA[Print all statistics for all file systems to {@code System.out}]]>
  10966. </doc>
  10967. </method>
  10968. <method name="areSymlinksEnabled" return="boolean"
  10969. abstract="false" native="false" synchronized="false"
  10970. static="true" final="false" visibility="public"
  10971. deprecated="not deprecated">
  10972. </method>
  10973. <method name="enableSymlinks"
  10974. abstract="false" native="false" synchronized="false"
  10975. static="true" final="false" visibility="public"
  10976. deprecated="not deprecated">
  10977. </method>
  10978. <method name="getStorageStatistics" return="org.apache.hadoop.fs.StorageStatistics"
  10979. abstract="false" native="false" synchronized="false"
  10980. static="false" final="false" visibility="public"
  10981. deprecated="not deprecated">
  10982. <doc>
  10983. <![CDATA[Get the StorageStatistics for this FileSystem object. These statistics are
  10984. per-instance. They are not shared with any other FileSystem object.
  10985. <p>This is a default method which is intended to be overridden by
  10986. subclasses. The default implementation returns an empty storage statistics
  10987. object.</p>
  10988. @return The StorageStatistics for this FileSystem instance.
  10989. Will never be null.]]>
  10990. </doc>
  10991. </method>
  10992. <method name="getGlobalStorageStatistics" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  10993. abstract="false" native="false" synchronized="false"
  10994. static="true" final="false" visibility="public"
  10995. deprecated="not deprecated">
  10996. <doc>
  10997. <![CDATA[Get the global storage statistics.]]>
  10998. </doc>
  10999. </method>
  11000. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  11001. abstract="false" native="false" synchronized="false"
  11002. static="false" final="false" visibility="public"
  11003. deprecated="not deprecated">
  11004. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11005. <doc>
  11006. <![CDATA[Create a new FSDataOutputStreamBuilder for the file with path.
  11007. Files are overwritten by default.
  11008. @param path file path
  11009. @return a FSDataOutputStreamBuilder object to build the file
  11010. HADOOP-14384. Temporarily reduce the visibility of method before the
  11011. builder interface becomes stable.]]>
  11012. </doc>
  11013. </method>
  11014. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  11015. abstract="false" native="false" synchronized="false"
  11016. static="false" final="false" visibility="public"
  11017. deprecated="not deprecated">
  11018. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11019. <doc>
  11020. <![CDATA[Create a Builder to append a file.
  11021. @param path file path.
  11022. @return a {@link FSDataOutputStreamBuilder} to build file append request.]]>
  11023. </doc>
  11024. </method>
  11025. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  11026. transient="false" volatile="false"
  11027. static="true" final="true" visibility="public"
  11028. deprecated="not deprecated">
  11029. </field>
  11030. <field name="DEFAULT_FS" type="java.lang.String"
  11031. transient="false" volatile="false"
  11032. static="true" final="true" visibility="public"
  11033. deprecated="not deprecated">
  11034. </field>
  11035. <field name="LOG" type="org.apache.commons.logging.Log"
  11036. transient="false" volatile="false"
  11037. static="true" final="true" visibility="public"
  11038. deprecated="not deprecated">
  11039. <doc>
  11040. <![CDATA[This log is widely used in the org.apache.hadoop.fs code and tests,
  11041. so must be considered something to only be changed with care.]]>
  11042. </doc>
  11043. </field>
  11044. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  11045. transient="false" volatile="false"
  11046. static="true" final="true" visibility="public"
  11047. deprecated="not deprecated">
  11048. <doc>
  11049. <![CDATA[Priority of the FileSystem shutdown hook: {@value}.]]>
  11050. </doc>
  11051. </field>
  11052. <field name="TRASH_PREFIX" type="java.lang.String"
  11053. transient="false" volatile="false"
  11054. static="true" final="true" visibility="public"
  11055. deprecated="not deprecated">
  11056. <doc>
  11057. <![CDATA[Prefix for trash directory: {@value}.]]>
  11058. </doc>
  11059. </field>
  11060. <field name="USER_HOME_PREFIX" type="java.lang.String"
  11061. transient="false" volatile="false"
  11062. static="true" final="true" visibility="public"
  11063. deprecated="not deprecated">
  11064. </field>
  11065. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  11066. transient="false" volatile="false"
  11067. static="false" final="false" visibility="protected"
  11068. deprecated="not deprecated">
  11069. <doc>
  11070. <![CDATA[The statistics for this file system.]]>
  11071. </doc>
  11072. </field>
  11073. <doc>
  11074. <![CDATA[An abstract base class for a fairly generic filesystem. It
  11075. may be implemented as a distributed filesystem, or as a "local"
  11076. one that reflects the locally-connected disk. The local version
  11077. exists for small Hadoop instances and for testing.
  11078. <p>
  11079. All user code that may potentially use the Hadoop Distributed
  11080. File System should be written to use a FileSystem object or its
  11081. successor, {@link FileContext}.
  11082. <p>
  11083. The local implementation is {@link LocalFileSystem} and distributed
  11084. implementation is DistributedFileSystem. There are other implementations
  11085. for object stores and (outside the Apache Hadoop codebase),
  11086. third party filesystems.
  11087. <p>
  11088. Notes
  11089. <ol>
  11090. <li>The behaviour of the filesystem is
  11091. <a href="https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/filesystem/filesystem.html">
  11092. specified in the Hadoop documentation. </a>
  11093. However, the normative specification of the behavior of this class is
  11094. actually HDFS: if HDFS does not behave the way these Javadocs or
  11095. the specification in the Hadoop documentations define, assume that
  11096. the documentation is incorrect.
  11097. </li>
  11098. <li>The term {@code FileSystem} refers to an instance of this class.</li>
  11099. <li>The acronym "FS" is used as an abbreviation of FileSystem.</li>
  11100. <li>The term {@code filesystem} refers to the distributed/local filesystem
  11101. itself, rather than the class used to interact with it.</li>
  11102. <li>The term "file" refers to a file in the remote filesystem,
  11103. rather than instances of {@code java.io.File}.</li>
  11104. </ol>]]>
  11105. </doc>
  11106. </class>
  11107. <!-- end class org.apache.hadoop.fs.FileSystem -->
  11108. <!-- start class org.apache.hadoop.fs.FileUtil -->
  11109. <class name="FileUtil" extends="java.lang.Object"
  11110. abstract="false"
  11111. static="false" final="false" visibility="public"
  11112. deprecated="not deprecated">
  11113. <constructor name="FileUtil"
  11114. static="false" final="false" visibility="public"
  11115. deprecated="not deprecated">
  11116. </constructor>
  11117. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  11118. abstract="false" native="false" synchronized="false"
  11119. static="true" final="false" visibility="public"
  11120. deprecated="not deprecated">
  11121. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  11122. <doc>
  11123. <![CDATA[convert an array of FileStatus to an array of Path
  11124. @param stats
  11125. an array of FileStatus objects
  11126. @return an array of paths corresponding to the input]]>
  11127. </doc>
  11128. </method>
  11129. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  11130. abstract="false" native="false" synchronized="false"
  11131. static="true" final="false" visibility="public"
  11132. deprecated="not deprecated">
  11133. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  11134. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11135. <doc>
  11136. <![CDATA[convert an array of FileStatus to an array of Path.
  11137. If stats if null, return path
  11138. @param stats
  11139. an array of FileStatus objects
  11140. @param path
  11141. default path to return in stats is null
  11142. @return an array of paths corresponding to the input]]>
  11143. </doc>
  11144. </method>
  11145. <method name="fullyDeleteOnExit"
  11146. abstract="false" native="false" synchronized="false"
  11147. static="true" final="false" visibility="public"
  11148. deprecated="not deprecated">
  11149. <param name="file" type="java.io.File"/>
  11150. <doc>
  11151. <![CDATA[Register all files recursively to be deleted on exit.
  11152. @param file File/directory to be deleted]]>
  11153. </doc>
  11154. </method>
  11155. <method name="fullyDelete" return="boolean"
  11156. abstract="false" native="false" synchronized="false"
  11157. static="true" final="false" visibility="public"
  11158. deprecated="not deprecated">
  11159. <param name="dir" type="java.io.File"/>
  11160. <doc>
  11161. <![CDATA[Delete a directory and all its contents. If
  11162. we return false, the directory may be partially-deleted.
  11163. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  11164. to by the symlink is not deleted.
  11165. (2) If dir is symlink to a directory, symlink is deleted. The directory
  11166. pointed to by symlink is not deleted.
  11167. (3) If dir is a normal file, it is deleted.
  11168. (4) If dir is a normal directory, then dir and all its contents recursively
  11169. are deleted.]]>
  11170. </doc>
  11171. </method>
  11172. <method name="fullyDelete" return="boolean"
  11173. abstract="false" native="false" synchronized="false"
  11174. static="true" final="false" visibility="public"
  11175. deprecated="not deprecated">
  11176. <param name="dir" type="java.io.File"/>
  11177. <param name="tryGrantPermissions" type="boolean"/>
  11178. <doc>
  11179. <![CDATA[Delete a directory and all its contents. If
  11180. we return false, the directory may be partially-deleted.
  11181. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  11182. to by the symlink is not deleted.
  11183. (2) If dir is symlink to a directory, symlink is deleted. The directory
  11184. pointed to by symlink is not deleted.
  11185. (3) If dir is a normal file, it is deleted.
  11186. (4) If dir is a normal directory, then dir and all its contents recursively
  11187. are deleted.
  11188. @param dir the file or directory to be deleted
  11189. @param tryGrantPermissions true if permissions should be modified to delete a file.
  11190. @return true on success false on failure.]]>
  11191. </doc>
  11192. </method>
  11193. <method name="readLink" return="java.lang.String"
  11194. abstract="false" native="false" synchronized="false"
  11195. static="true" final="false" visibility="public"
  11196. deprecated="not deprecated">
  11197. <param name="f" type="java.io.File"/>
  11198. <doc>
  11199. <![CDATA[Returns the target of the given symlink. Returns the empty string if
  11200. the given path does not refer to a symlink or there is an error
  11201. accessing the symlink.
  11202. @param f File representing the symbolic link.
  11203. @return The target of the symbolic link, empty string on error or if not
  11204. a symlink.]]>
  11205. </doc>
  11206. </method>
  11207. <method name="fullyDeleteContents" return="boolean"
  11208. abstract="false" native="false" synchronized="false"
  11209. static="true" final="false" visibility="public"
  11210. deprecated="not deprecated">
  11211. <param name="dir" type="java.io.File"/>
  11212. <doc>
  11213. <![CDATA[Delete the contents of a directory, not the directory itself. If
  11214. we return false, the directory may be partially-deleted.
  11215. If dir is a symlink to a directory, all the contents of the actual
  11216. directory pointed to by dir will be deleted.]]>
  11217. </doc>
  11218. </method>
  11219. <method name="fullyDeleteContents" return="boolean"
  11220. abstract="false" native="false" synchronized="false"
  11221. static="true" final="false" visibility="public"
  11222. deprecated="not deprecated">
  11223. <param name="dir" type="java.io.File"/>
  11224. <param name="tryGrantPermissions" type="boolean"/>
  11225. <doc>
  11226. <![CDATA[Delete the contents of a directory, not the directory itself. If
  11227. we return false, the directory may be partially-deleted.
  11228. If dir is a symlink to a directory, all the contents of the actual
  11229. directory pointed to by dir will be deleted.
  11230. @param tryGrantPermissions if 'true', try grant +rwx permissions to this
  11231. and all the underlying directories before trying to delete their contents.]]>
  11232. </doc>
  11233. </method>
  11234. <method name="fullyDelete"
  11235. abstract="false" native="false" synchronized="false"
  11236. static="true" final="false" visibility="public"
  11237. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  11238. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11239. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11240. <exception name="IOException" type="java.io.IOException"/>
  11241. <doc>
  11242. <![CDATA[Recursively delete a directory.
  11243. @param fs {@link FileSystem} on which the path is present
  11244. @param dir directory to recursively delete
  11245. @throws IOException
  11246. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  11247. </doc>
  11248. </method>
  11249. <method name="copy" return="boolean"
  11250. abstract="false" native="false" synchronized="false"
  11251. static="true" final="false" visibility="public"
  11252. deprecated="not deprecated">
  11253. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11254. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11255. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11256. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11257. <param name="deleteSource" type="boolean"/>
  11258. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11259. <exception name="IOException" type="java.io.IOException"/>
  11260. <doc>
  11261. <![CDATA[Copy files between FileSystems.]]>
  11262. </doc>
  11263. </method>
  11264. <method name="copy" return="boolean"
  11265. abstract="false" native="false" synchronized="false"
  11266. static="true" final="false" visibility="public"
  11267. deprecated="not deprecated">
  11268. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11269. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  11270. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11271. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11272. <param name="deleteSource" type="boolean"/>
  11273. <param name="overwrite" type="boolean"/>
  11274. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11275. <exception name="IOException" type="java.io.IOException"/>
  11276. </method>
  11277. <method name="copy" return="boolean"
  11278. abstract="false" native="false" synchronized="false"
  11279. static="true" final="false" visibility="public"
  11280. deprecated="not deprecated">
  11281. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11282. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11283. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11284. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11285. <param name="deleteSource" type="boolean"/>
  11286. <param name="overwrite" type="boolean"/>
  11287. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11288. <exception name="IOException" type="java.io.IOException"/>
  11289. <doc>
  11290. <![CDATA[Copy files between FileSystems.]]>
  11291. </doc>
  11292. </method>
  11293. <method name="copy" return="boolean"
  11294. abstract="false" native="false" synchronized="false"
  11295. static="true" final="false" visibility="public"
  11296. deprecated="not deprecated">
  11297. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11298. <param name="srcStatus" type="org.apache.hadoop.fs.FileStatus"/>
  11299. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11300. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11301. <param name="deleteSource" type="boolean"/>
  11302. <param name="overwrite" type="boolean"/>
  11303. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11304. <exception name="IOException" type="java.io.IOException"/>
  11305. <doc>
  11306. <![CDATA[Copy files between FileSystems.]]>
  11307. </doc>
  11308. </method>
  11309. <method name="copy" return="boolean"
  11310. abstract="false" native="false" synchronized="false"
  11311. static="true" final="false" visibility="public"
  11312. deprecated="not deprecated">
  11313. <param name="src" type="java.io.File"/>
  11314. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11315. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11316. <param name="deleteSource" type="boolean"/>
  11317. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11318. <exception name="IOException" type="java.io.IOException"/>
  11319. <doc>
  11320. <![CDATA[Copy local files to a FileSystem.]]>
  11321. </doc>
  11322. </method>
  11323. <method name="copy" return="boolean"
  11324. abstract="false" native="false" synchronized="false"
  11325. static="true" final="false" visibility="public"
  11326. deprecated="not deprecated">
  11327. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11328. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11329. <param name="dst" type="java.io.File"/>
  11330. <param name="deleteSource" type="boolean"/>
  11331. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11332. <exception name="IOException" type="java.io.IOException"/>
  11333. <doc>
  11334. <![CDATA[Copy FileSystem files to local files.]]>
  11335. </doc>
  11336. </method>
  11337. <method name="makeShellPath" return="java.lang.String"
  11338. abstract="false" native="false" synchronized="false"
  11339. static="true" final="false" visibility="public"
  11340. deprecated="not deprecated">
  11341. <param name="filename" type="java.lang.String"/>
  11342. <exception name="IOException" type="java.io.IOException"/>
  11343. <doc>
  11344. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11345. @param filename The filename to convert
  11346. @return The unix pathname
  11347. @throws IOException on windows, there can be problems with the subprocess]]>
  11348. </doc>
  11349. </method>
  11350. <method name="makeShellPath" return="java.lang.String"
  11351. abstract="false" native="false" synchronized="false"
  11352. static="true" final="false" visibility="public"
  11353. deprecated="not deprecated">
  11354. <param name="file" type="java.io.File"/>
  11355. <exception name="IOException" type="java.io.IOException"/>
  11356. <doc>
  11357. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11358. @param file The filename to convert
  11359. @return The unix pathname
  11360. @throws IOException on windows, there can be problems with the subprocess]]>
  11361. </doc>
  11362. </method>
  11363. <method name="makeSecureShellPath" return="java.lang.String"
  11364. abstract="false" native="false" synchronized="false"
  11365. static="true" final="false" visibility="public"
  11366. deprecated="not deprecated">
  11367. <param name="file" type="java.io.File"/>
  11368. <exception name="IOException" type="java.io.IOException"/>
  11369. <doc>
  11370. <![CDATA[Convert a os-native filename to a path that works for the shell
  11371. and avoids script injection attacks.
  11372. @param file The filename to convert
  11373. @return The unix pathname
  11374. @throws IOException on windows, there can be problems with the subprocess]]>
  11375. </doc>
  11376. </method>
  11377. <method name="makeShellPath" return="java.lang.String"
  11378. abstract="false" native="false" synchronized="false"
  11379. static="true" final="false" visibility="public"
  11380. deprecated="not deprecated">
  11381. <param name="file" type="java.io.File"/>
  11382. <param name="makeCanonicalPath" type="boolean"/>
  11383. <exception name="IOException" type="java.io.IOException"/>
  11384. <doc>
  11385. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11386. @param file The filename to convert
  11387. @param makeCanonicalPath
  11388. Whether to make canonical path for the file passed
  11389. @return The unix pathname
  11390. @throws IOException on windows, there can be problems with the subprocess]]>
  11391. </doc>
  11392. </method>
  11393. <method name="getDU" return="long"
  11394. abstract="false" native="false" synchronized="false"
  11395. static="true" final="false" visibility="public"
  11396. deprecated="not deprecated">
  11397. <param name="dir" type="java.io.File"/>
  11398. <doc>
  11399. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  11400. implementation.
  11401. @param dir
  11402. The input dir to get the disk space of this local dir
  11403. @return The total disk space of the input local directory]]>
  11404. </doc>
  11405. </method>
  11406. <method name="unZip"
  11407. abstract="false" native="false" synchronized="false"
  11408. static="true" final="false" visibility="public"
  11409. deprecated="not deprecated">
  11410. <param name="inputStream" type="java.io.InputStream"/>
  11411. <param name="toDir" type="java.io.File"/>
  11412. <exception name="IOException" type="java.io.IOException"/>
  11413. <doc>
  11414. <![CDATA[Given a stream input it will unzip the it in the unzip directory.
  11415. passed as the second parameter
  11416. @param inputStream The zip file as input
  11417. @param toDir The unzip directory where to unzip the zip file.
  11418. @throws IOException an exception occurred]]>
  11419. </doc>
  11420. </method>
  11421. <method name="unZip"
  11422. abstract="false" native="false" synchronized="false"
  11423. static="true" final="false" visibility="public"
  11424. deprecated="not deprecated">
  11425. <param name="inFile" type="java.io.File"/>
  11426. <param name="unzipDir" type="java.io.File"/>
  11427. <exception name="IOException" type="java.io.IOException"/>
  11428. <doc>
  11429. <![CDATA[Given a File input it will unzip it in the unzip directory.
  11430. passed as the second parameter
  11431. @param inFile The zip file as input
  11432. @param unzipDir The unzip directory where to unzip the zip file.
  11433. @throws IOException An I/O exception has occurred]]>
  11434. </doc>
  11435. </method>
  11436. <method name="unTar"
  11437. abstract="false" native="false" synchronized="false"
  11438. static="true" final="false" visibility="public"
  11439. deprecated="not deprecated">
  11440. <param name="inputStream" type="java.io.InputStream"/>
  11441. <param name="untarDir" type="java.io.File"/>
  11442. <param name="gzipped" type="boolean"/>
  11443. <exception name="IOException" type="java.io.IOException"/>
  11444. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  11445. <exception name="ExecutionException" type="java.util.concurrent.ExecutionException"/>
  11446. <doc>
  11447. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  11448. passed as the second parameter
  11449. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  11450. @param inputStream The tar file as input.
  11451. @param untarDir The untar directory where to untar the tar file.
  11452. @param gzipped The input stream is gzipped
  11453. TODO Use magic number and PusbackInputStream to identify
  11454. @throws IOException an exception occurred
  11455. @throws InterruptedException command interrupted
  11456. @throws ExecutionException task submit failed]]>
  11457. </doc>
  11458. </method>
  11459. <method name="unTar"
  11460. abstract="false" native="false" synchronized="false"
  11461. static="true" final="false" visibility="public"
  11462. deprecated="not deprecated">
  11463. <param name="inFile" type="java.io.File"/>
  11464. <param name="untarDir" type="java.io.File"/>
  11465. <exception name="IOException" type="java.io.IOException"/>
  11466. <doc>
  11467. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  11468. passed as the second parameter
  11469. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  11470. @param inFile The tar file as input.
  11471. @param untarDir The untar directory where to untar the tar file.
  11472. @throws IOException]]>
  11473. </doc>
  11474. </method>
  11475. <method name="symLink" return="int"
  11476. abstract="false" native="false" synchronized="false"
  11477. static="true" final="false" visibility="public"
  11478. deprecated="not deprecated">
  11479. <param name="target" type="java.lang.String"/>
  11480. <param name="linkname" type="java.lang.String"/>
  11481. <exception name="IOException" type="java.io.IOException"/>
  11482. <doc>
  11483. <![CDATA[Create a soft link between a src and destination
  11484. only on a local disk. HDFS does not support this.
  11485. On Windows, when symlink creation fails due to security
  11486. setting, we will log a warning. The return code in this
  11487. case is 2.
  11488. @param target the target for symlink
  11489. @param linkname the symlink
  11490. @return 0 on success]]>
  11491. </doc>
  11492. </method>
  11493. <method name="chmod" return="int"
  11494. abstract="false" native="false" synchronized="false"
  11495. static="true" final="false" visibility="public"
  11496. deprecated="not deprecated">
  11497. <param name="filename" type="java.lang.String"/>
  11498. <param name="perm" type="java.lang.String"/>
  11499. <exception name="IOException" type="java.io.IOException"/>
  11500. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  11501. <doc>
  11502. <![CDATA[Change the permissions on a filename.
  11503. @param filename the name of the file to change
  11504. @param perm the permission string
  11505. @return the exit code from the command
  11506. @throws IOException
  11507. @throws InterruptedException]]>
  11508. </doc>
  11509. </method>
  11510. <method name="chmod" return="int"
  11511. abstract="false" native="false" synchronized="false"
  11512. static="true" final="false" visibility="public"
  11513. deprecated="not deprecated">
  11514. <param name="filename" type="java.lang.String"/>
  11515. <param name="perm" type="java.lang.String"/>
  11516. <param name="recursive" type="boolean"/>
  11517. <exception name="IOException" type="java.io.IOException"/>
  11518. <doc>
  11519. <![CDATA[Change the permissions on a file / directory, recursively, if
  11520. needed.
  11521. @param filename name of the file whose permissions are to change
  11522. @param perm permission string
  11523. @param recursive true, if permissions should be changed recursively
  11524. @return the exit code from the command.
  11525. @throws IOException]]>
  11526. </doc>
  11527. </method>
  11528. <method name="setOwner"
  11529. abstract="false" native="false" synchronized="false"
  11530. static="true" final="false" visibility="public"
  11531. deprecated="not deprecated">
  11532. <param name="file" type="java.io.File"/>
  11533. <param name="username" type="java.lang.String"/>
  11534. <param name="groupname" type="java.lang.String"/>
  11535. <exception name="IOException" type="java.io.IOException"/>
  11536. <doc>
  11537. <![CDATA[Set the ownership on a file / directory. User name and group name
  11538. cannot both be null.
  11539. @param file the file to change
  11540. @param username the new user owner name
  11541. @param groupname the new group owner name
  11542. @throws IOException]]>
  11543. </doc>
  11544. </method>
  11545. <method name="setReadable" return="boolean"
  11546. abstract="false" native="false" synchronized="false"
  11547. static="true" final="false" visibility="public"
  11548. deprecated="not deprecated">
  11549. <param name="f" type="java.io.File"/>
  11550. <param name="readable" type="boolean"/>
  11551. <doc>
  11552. <![CDATA[Platform independent implementation for {@link File#setReadable(boolean)}
  11553. File#setReadable does not work as expected on Windows.
  11554. @param f input file
  11555. @param readable
  11556. @return true on success, false otherwise]]>
  11557. </doc>
  11558. </method>
  11559. <method name="setWritable" return="boolean"
  11560. abstract="false" native="false" synchronized="false"
  11561. static="true" final="false" visibility="public"
  11562. deprecated="not deprecated">
  11563. <param name="f" type="java.io.File"/>
  11564. <param name="writable" type="boolean"/>
  11565. <doc>
  11566. <![CDATA[Platform independent implementation for {@link File#setWritable(boolean)}
  11567. File#setWritable does not work as expected on Windows.
  11568. @param f input file
  11569. @param writable
  11570. @return true on success, false otherwise]]>
  11571. </doc>
  11572. </method>
  11573. <method name="setExecutable" return="boolean"
  11574. abstract="false" native="false" synchronized="false"
  11575. static="true" final="false" visibility="public"
  11576. deprecated="not deprecated">
  11577. <param name="f" type="java.io.File"/>
  11578. <param name="executable" type="boolean"/>
  11579. <doc>
  11580. <![CDATA[Platform independent implementation for {@link File#setExecutable(boolean)}
  11581. File#setExecutable does not work as expected on Windows.
  11582. Note: revoking execute permission on folders does not have the same
  11583. behavior on Windows as on Unix platforms. Creating, deleting or renaming
  11584. a file within that folder will still succeed on Windows.
  11585. @param f input file
  11586. @param executable
  11587. @return true on success, false otherwise]]>
  11588. </doc>
  11589. </method>
  11590. <method name="canRead" return="boolean"
  11591. abstract="false" native="false" synchronized="false"
  11592. static="true" final="false" visibility="public"
  11593. deprecated="not deprecated">
  11594. <param name="f" type="java.io.File"/>
  11595. <doc>
  11596. <![CDATA[Platform independent implementation for {@link File#canRead()}
  11597. @param f input file
  11598. @return On Unix, same as {@link File#canRead()}
  11599. On Windows, true if process has read access on the path]]>
  11600. </doc>
  11601. </method>
  11602. <method name="canWrite" return="boolean"
  11603. abstract="false" native="false" synchronized="false"
  11604. static="true" final="false" visibility="public"
  11605. deprecated="not deprecated">
  11606. <param name="f" type="java.io.File"/>
  11607. <doc>
  11608. <![CDATA[Platform independent implementation for {@link File#canWrite()}
  11609. @param f input file
  11610. @return On Unix, same as {@link File#canWrite()}
  11611. On Windows, true if process has write access on the path]]>
  11612. </doc>
  11613. </method>
  11614. <method name="canExecute" return="boolean"
  11615. abstract="false" native="false" synchronized="false"
  11616. static="true" final="false" visibility="public"
  11617. deprecated="not deprecated">
  11618. <param name="f" type="java.io.File"/>
  11619. <doc>
  11620. <![CDATA[Platform independent implementation for {@link File#canExecute()}
  11621. @param f input file
  11622. @return On Unix, same as {@link File#canExecute()}
  11623. On Windows, true if process has execute access on the path]]>
  11624. </doc>
  11625. </method>
  11626. <method name="setPermission"
  11627. abstract="false" native="false" synchronized="false"
  11628. static="true" final="false" visibility="public"
  11629. deprecated="not deprecated">
  11630. <param name="f" type="java.io.File"/>
  11631. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11632. <exception name="IOException" type="java.io.IOException"/>
  11633. <doc>
  11634. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  11635. of forking if group == other.
  11636. @param f the file to change
  11637. @param permission the new permissions
  11638. @throws IOException]]>
  11639. </doc>
  11640. </method>
  11641. <method name="createLocalTempFile" return="java.io.File"
  11642. abstract="false" native="false" synchronized="false"
  11643. static="true" final="true" visibility="public"
  11644. deprecated="not deprecated">
  11645. <param name="basefile" type="java.io.File"/>
  11646. <param name="prefix" type="java.lang.String"/>
  11647. <param name="isDeleteOnExit" type="boolean"/>
  11648. <exception name="IOException" type="java.io.IOException"/>
  11649. <doc>
  11650. <![CDATA[Create a tmp file for a base file.
  11651. @param basefile the base file of the tmp
  11652. @param prefix file name prefix of tmp
  11653. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  11654. @return a newly created tmp file
  11655. @exception IOException If a tmp file cannot created
  11656. @see java.io.File#createTempFile(String, String, File)
  11657. @see java.io.File#deleteOnExit()]]>
  11658. </doc>
  11659. </method>
  11660. <method name="replaceFile"
  11661. abstract="false" native="false" synchronized="false"
  11662. static="true" final="false" visibility="public"
  11663. deprecated="not deprecated">
  11664. <param name="src" type="java.io.File"/>
  11665. <param name="target" type="java.io.File"/>
  11666. <exception name="IOException" type="java.io.IOException"/>
  11667. <doc>
  11668. <![CDATA[Move the src file to the name specified by target.
  11669. @param src the source file
  11670. @param target the target file
  11671. @exception IOException If this operation fails]]>
  11672. </doc>
  11673. </method>
  11674. <method name="listFiles" return="java.io.File[]"
  11675. abstract="false" native="false" synchronized="false"
  11676. static="true" final="false" visibility="public"
  11677. deprecated="not deprecated">
  11678. <param name="dir" type="java.io.File"/>
  11679. <exception name="IOException" type="java.io.IOException"/>
  11680. <doc>
  11681. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  11682. when a dir is not a directory or for any I/O error. Instead of having
  11683. null check everywhere File#listFiles() is used, we will add utility API
  11684. to get around this problem. For the majority of cases where we prefer
  11685. an IOException to be thrown.
  11686. @param dir directory for which listing should be performed
  11687. @return list of files or empty list
  11688. @exception IOException for invalid directory or for a bad disk.]]>
  11689. </doc>
  11690. </method>
  11691. <method name="list" return="java.lang.String[]"
  11692. abstract="false" native="false" synchronized="false"
  11693. static="true" final="false" visibility="public"
  11694. deprecated="not deprecated">
  11695. <param name="dir" type="java.io.File"/>
  11696. <exception name="IOException" type="java.io.IOException"/>
  11697. <doc>
  11698. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  11699. when a dir is not a directory or for any I/O error. Instead of having
  11700. null check everywhere File#list() is used, we will add utility API
  11701. to get around this problem. For the majority of cases where we prefer
  11702. an IOException to be thrown.
  11703. @param dir directory for which listing should be performed
  11704. @return list of file names or empty string list
  11705. @exception AccessDeniedException for unreadable directory
  11706. @exception IOException for invalid directory or for bad disk]]>
  11707. </doc>
  11708. </method>
  11709. <method name="createJarWithClassPath" return="java.lang.String[]"
  11710. abstract="false" native="false" synchronized="false"
  11711. static="true" final="false" visibility="public"
  11712. deprecated="not deprecated">
  11713. <param name="inputClassPath" type="java.lang.String"/>
  11714. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  11715. <param name="callerEnv" type="java.util.Map"/>
  11716. <exception name="IOException" type="java.io.IOException"/>
  11717. </method>
  11718. <method name="createJarWithClassPath" return="java.lang.String[]"
  11719. abstract="false" native="false" synchronized="false"
  11720. static="true" final="false" visibility="public"
  11721. deprecated="not deprecated">
  11722. <param name="inputClassPath" type="java.lang.String"/>
  11723. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  11724. <param name="targetDir" type="org.apache.hadoop.fs.Path"/>
  11725. <param name="callerEnv" type="java.util.Map"/>
  11726. <exception name="IOException" type="java.io.IOException"/>
  11727. <doc>
  11728. <![CDATA[Create a jar file at the given path, containing a manifest with a classpath
  11729. that references all specified entries.
  11730. Some platforms may have an upper limit on command line length. For example,
  11731. the maximum command line length on Windows is 8191 characters, but the
  11732. length of the classpath may exceed this. To work around this limitation,
  11733. use this method to create a small intermediate jar with a manifest that
  11734. contains the full classpath. It returns the absolute path to the new jar,
  11735. which the caller may set as the classpath for a new process.
  11736. Environment variable evaluation is not supported within a jar manifest, so
  11737. this method expands environment variables before inserting classpath entries
  11738. to the manifest. The method parses environment variables according to
  11739. platform-specific syntax (%VAR% on Windows, or $VAR otherwise). On Windows,
  11740. environment variables are case-insensitive. For example, %VAR% and %var%
  11741. evaluate to the same value.
  11742. Specifying the classpath in a jar manifest does not support wildcards, so
  11743. this method expands wildcards internally. Any classpath entry that ends
  11744. with * is translated to all files at that path with extension .jar or .JAR.
  11745. @param inputClassPath String input classpath to bundle into the jar manifest
  11746. @param pwd Path to working directory to save jar
  11747. @param targetDir path to where the jar execution will have its working dir
  11748. @param callerEnv Map<String, String> caller's environment variables to use
  11749. for expansion
  11750. @return String[] with absolute path to new jar in position 0 and
  11751. unexpanded wild card entry path in position 1
  11752. @throws IOException if there is an I/O error while writing the jar file]]>
  11753. </doc>
  11754. </method>
  11755. <method name="getJarsInDirectory" return="java.util.List"
  11756. abstract="false" native="false" synchronized="false"
  11757. static="true" final="false" visibility="public"
  11758. deprecated="not deprecated">
  11759. <param name="path" type="java.lang.String"/>
  11760. <doc>
  11761. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  11762. wildcard path to return all jars from the directory to use in a classpath.
  11763. It operates only on local paths.
  11764. @param path the path to the directory. The path may include the wildcard.
  11765. @return the list of jars as URLs, or an empty list if there are no jars, or
  11766. the directory does not exist locally]]>
  11767. </doc>
  11768. </method>
  11769. <method name="getJarsInDirectory" return="java.util.List"
  11770. abstract="false" native="false" synchronized="false"
  11771. static="true" final="false" visibility="public"
  11772. deprecated="not deprecated">
  11773. <param name="path" type="java.lang.String"/>
  11774. <param name="useLocal" type="boolean"/>
  11775. <doc>
  11776. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  11777. wildcard path to return all jars from the directory to use in a classpath.
  11778. @param path the path to the directory. The path may include the wildcard.
  11779. @return the list of jars as URLs, or an empty list if there are no jars, or
  11780. the directory does not exist]]>
  11781. </doc>
  11782. </method>
  11783. <method name="compareFs" return="boolean"
  11784. abstract="false" native="false" synchronized="false"
  11785. static="true" final="false" visibility="public"
  11786. deprecated="not deprecated">
  11787. <param name="srcFs" type="org.apache.hadoop.fs.FileSystem"/>
  11788. <param name="destFs" type="org.apache.hadoop.fs.FileSystem"/>
  11789. </method>
  11790. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  11791. abstract="false" native="false" synchronized="false"
  11792. static="true" final="false" visibility="public"
  11793. deprecated="not deprecated">
  11794. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11795. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11796. <param name="bytes" type="byte[]"/>
  11797. <exception name="IOException" type="java.io.IOException"/>
  11798. <doc>
  11799. <![CDATA[Writes bytes to a file. This utility method opens the file for writing,
  11800. creating the file if it does not exist, or overwrites an existing file. All
  11801. bytes in the byte array are written to the file.
  11802. @param fs the file system with which to create the file
  11803. @param path the path to the file
  11804. @param bytes the byte array with the bytes to write
  11805. @return the file system
  11806. @throws NullPointerException if any of the arguments are {@code null}
  11807. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11808. </doc>
  11809. </method>
  11810. <method name="write" return="org.apache.hadoop.fs.FileContext"
  11811. abstract="false" native="false" synchronized="false"
  11812. static="true" final="false" visibility="public"
  11813. deprecated="not deprecated">
  11814. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  11815. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11816. <param name="bytes" type="byte[]"/>
  11817. <exception name="IOException" type="java.io.IOException"/>
  11818. <doc>
  11819. <![CDATA[Writes bytes to a file. This utility method opens the file for writing,
  11820. creating the file if it does not exist, or overwrites an existing file. All
  11821. bytes in the byte array are written to the file.
  11822. @param fileContext the file context with which to create the file
  11823. @param path the path to the file
  11824. @param bytes the byte array with the bytes to write
  11825. @return the file context
  11826. @throws NullPointerException if any of the arguments are {@code null}
  11827. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11828. </doc>
  11829. </method>
  11830. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  11831. abstract="false" native="false" synchronized="false"
  11832. static="true" final="false" visibility="public"
  11833. deprecated="not deprecated">
  11834. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11835. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11836. <param name="lines" type="java.lang.Iterable"/>
  11837. <param name="cs" type="java.nio.charset.Charset"/>
  11838. <exception name="IOException" type="java.io.IOException"/>
  11839. <doc>
  11840. <![CDATA[Write lines of text to a file. Each line is a char sequence and is written
  11841. to the file in sequence with each line terminated by the platform's line
  11842. separator, as defined by the system property {@code
  11843. line.separator}. Characters are encoded into bytes using the specified
  11844. charset. This utility method opens the file for writing, creating the file
  11845. if it does not exist, or overwrites an existing file.
  11846. @param fs the file system with which to create the file
  11847. @param path the path to the file
  11848. @param lines a Collection to iterate over the char sequences
  11849. @param cs the charset to use for encoding
  11850. @return the file system
  11851. @throws NullPointerException if any of the arguments are {@code null}
  11852. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11853. </doc>
  11854. </method>
  11855. <method name="write" return="org.apache.hadoop.fs.FileContext"
  11856. abstract="false" native="false" synchronized="false"
  11857. static="true" final="false" visibility="public"
  11858. deprecated="not deprecated">
  11859. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  11860. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11861. <param name="lines" type="java.lang.Iterable"/>
  11862. <param name="cs" type="java.nio.charset.Charset"/>
  11863. <exception name="IOException" type="java.io.IOException"/>
  11864. <doc>
  11865. <![CDATA[Write lines of text to a file. Each line is a char sequence and is written
  11866. to the file in sequence with each line terminated by the platform's line
  11867. separator, as defined by the system property {@code
  11868. line.separator}. Characters are encoded into bytes using the specified
  11869. charset. This utility method opens the file for writing, creating the file
  11870. if it does not exist, or overwrites an existing file.
  11871. @param fileContext the file context with which to create the file
  11872. @param path the path to the file
  11873. @param lines a Collection to iterate over the char sequences
  11874. @param cs the charset to use for encoding
  11875. @return the file context
  11876. @throws NullPointerException if any of the arguments are {@code null}
  11877. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11878. </doc>
  11879. </method>
  11880. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  11881. abstract="false" native="false" synchronized="false"
  11882. static="true" final="false" visibility="public"
  11883. deprecated="not deprecated">
  11884. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11885. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11886. <param name="charseq" type="java.lang.CharSequence"/>
  11887. <param name="cs" type="java.nio.charset.Charset"/>
  11888. <exception name="IOException" type="java.io.IOException"/>
  11889. <doc>
  11890. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using the
  11891. specified charset. This utility method opens the file for writing, creating
  11892. the file if it does not exist, or overwrites an existing file.
  11893. @param fs the file system with which to create the file
  11894. @param path the path to the file
  11895. @param charseq the char sequence to write to the file
  11896. @param cs the charset to use for encoding
  11897. @return the file system
  11898. @throws NullPointerException if any of the arguments are {@code null}
  11899. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11900. </doc>
  11901. </method>
  11902. <method name="write" return="org.apache.hadoop.fs.FileContext"
  11903. abstract="false" native="false" synchronized="false"
  11904. static="true" final="false" visibility="public"
  11905. deprecated="not deprecated">
  11906. <param name="fs" type="org.apache.hadoop.fs.FileContext"/>
  11907. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11908. <param name="charseq" type="java.lang.CharSequence"/>
  11909. <param name="cs" type="java.nio.charset.Charset"/>
  11910. <exception name="IOException" type="java.io.IOException"/>
  11911. <doc>
  11912. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using the
  11913. specified charset. This utility method opens the file for writing, creating
  11914. the file if it does not exist, or overwrites an existing file.
  11915. @param FileContext the file context with which to create the file
  11916. @param path the path to the file
  11917. @param charseq the char sequence to write to the file
  11918. @param cs the charset to use for encoding
  11919. @return the file context
  11920. @throws NullPointerException if any of the arguments are {@code null}
  11921. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11922. </doc>
  11923. </method>
  11924. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  11925. abstract="false" native="false" synchronized="false"
  11926. static="true" final="false" visibility="public"
  11927. deprecated="not deprecated">
  11928. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11929. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11930. <param name="charseq" type="java.lang.CharSequence"/>
  11931. <exception name="IOException" type="java.io.IOException"/>
  11932. <doc>
  11933. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using
  11934. UTF-8. This utility method opens the file for writing, creating the file if
  11935. it does not exist, or overwrites an existing file.
  11936. @param fs the files system with which to create the file
  11937. @param path the path to the file
  11938. @param charseq the char sequence to write to the file
  11939. @return the file system
  11940. @throws NullPointerException if any of the arguments are {@code null}
  11941. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11942. </doc>
  11943. </method>
  11944. <method name="write" return="org.apache.hadoop.fs.FileContext"
  11945. abstract="false" native="false" synchronized="false"
  11946. static="true" final="false" visibility="public"
  11947. deprecated="not deprecated">
  11948. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  11949. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11950. <param name="charseq" type="java.lang.CharSequence"/>
  11951. <exception name="IOException" type="java.io.IOException"/>
  11952. <doc>
  11953. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using
  11954. UTF-8. This utility method opens the file for writing, creating the file if
  11955. it does not exist, or overwrites an existing file.
  11956. @param fileContext the files system with which to create the file
  11957. @param path the path to the file
  11958. @param charseq the char sequence to write to the file
  11959. @return the file context
  11960. @throws NullPointerException if any of the arguments are {@code null}
  11961. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11962. </doc>
  11963. </method>
  11964. <field name="SYMLINK_NO_PRIVILEGE" type="int"
  11965. transient="false" volatile="false"
  11966. static="true" final="true" visibility="public"
  11967. deprecated="not deprecated">
  11968. </field>
  11969. <doc>
  11970. <![CDATA[A collection of file-processing util methods]]>
  11971. </doc>
  11972. </class>
  11973. <!-- end class org.apache.hadoop.fs.FileUtil -->
  11974. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  11975. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  11976. abstract="false"
  11977. static="false" final="false" visibility="public"
  11978. deprecated="not deprecated">
  11979. <constructor name="FilterFileSystem"
  11980. static="false" final="false" visibility="public"
  11981. deprecated="not deprecated">
  11982. </constructor>
  11983. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  11984. static="false" final="false" visibility="public"
  11985. deprecated="not deprecated">
  11986. </constructor>
  11987. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  11988. abstract="false" native="false" synchronized="false"
  11989. static="false" final="false" visibility="public"
  11990. deprecated="not deprecated">
  11991. <doc>
  11992. <![CDATA[Get the raw file system
  11993. @return FileSystem being filtered]]>
  11994. </doc>
  11995. </method>
  11996. <method name="initialize"
  11997. abstract="false" native="false" synchronized="false"
  11998. static="false" final="false" visibility="public"
  11999. deprecated="not deprecated">
  12000. <param name="name" type="java.net.URI"/>
  12001. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12002. <exception name="IOException" type="java.io.IOException"/>
  12003. <doc>
  12004. <![CDATA[Called after a new FileSystem instance is constructed.
  12005. @param name a uri whose authority section names the host, port, etc.
  12006. for this FileSystem
  12007. @param conf the configuration]]>
  12008. </doc>
  12009. </method>
  12010. <method name="getUri" return="java.net.URI"
  12011. abstract="false" native="false" synchronized="false"
  12012. static="false" final="false" visibility="public"
  12013. deprecated="not deprecated">
  12014. <doc>
  12015. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  12016. </doc>
  12017. </method>
  12018. <method name="getCanonicalUri" return="java.net.URI"
  12019. abstract="false" native="false" synchronized="false"
  12020. static="false" final="false" visibility="protected"
  12021. deprecated="not deprecated">
  12022. </method>
  12023. <method name="canonicalizeUri" return="java.net.URI"
  12024. abstract="false" native="false" synchronized="false"
  12025. static="false" final="false" visibility="protected"
  12026. deprecated="not deprecated">
  12027. <param name="uri" type="java.net.URI"/>
  12028. </method>
  12029. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  12030. abstract="false" native="false" synchronized="false"
  12031. static="false" final="false" visibility="public"
  12032. deprecated="not deprecated">
  12033. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12034. <doc>
  12035. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  12036. </doc>
  12037. </method>
  12038. <method name="checkPath"
  12039. abstract="false" native="false" synchronized="false"
  12040. static="false" final="false" visibility="protected"
  12041. deprecated="not deprecated">
  12042. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12043. <doc>
  12044. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  12045. </doc>
  12046. </method>
  12047. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  12048. abstract="false" native="false" synchronized="false"
  12049. static="false" final="false" visibility="public"
  12050. deprecated="not deprecated">
  12051. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  12052. <param name="start" type="long"/>
  12053. <param name="len" type="long"/>
  12054. <exception name="IOException" type="java.io.IOException"/>
  12055. </method>
  12056. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  12057. abstract="false" native="false" synchronized="false"
  12058. static="false" final="false" visibility="public"
  12059. deprecated="not deprecated">
  12060. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12061. <exception name="IOException" type="java.io.IOException"/>
  12062. </method>
  12063. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  12064. abstract="false" native="false" synchronized="false"
  12065. static="false" final="false" visibility="public"
  12066. deprecated="not deprecated">
  12067. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12068. <param name="bufferSize" type="int"/>
  12069. <exception name="IOException" type="java.io.IOException"/>
  12070. <doc>
  12071. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  12072. @param f the file name to open
  12073. @param bufferSize the size of the buffer to be used.]]>
  12074. </doc>
  12075. </method>
  12076. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  12077. abstract="false" native="false" synchronized="false"
  12078. static="false" final="false" visibility="public"
  12079. deprecated="not deprecated">
  12080. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  12081. <param name="bufferSize" type="int"/>
  12082. <exception name="IOException" type="java.io.IOException"/>
  12083. </method>
  12084. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  12085. abstract="false" native="false" synchronized="false"
  12086. static="false" final="false" visibility="protected"
  12087. deprecated="not deprecated">
  12088. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  12089. <param name="opts" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  12090. </method>
  12091. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  12092. abstract="false" native="false" synchronized="false"
  12093. static="false" final="false" visibility="public"
  12094. deprecated="not deprecated">
  12095. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12096. <param name="bufferSize" type="int"/>
  12097. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12098. <exception name="IOException" type="java.io.IOException"/>
  12099. </method>
  12100. <method name="concat"
  12101. abstract="false" native="false" synchronized="false"
  12102. static="false" final="false" visibility="public"
  12103. deprecated="not deprecated">
  12104. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12105. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  12106. <exception name="IOException" type="java.io.IOException"/>
  12107. </method>
  12108. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  12109. abstract="false" native="false" synchronized="false"
  12110. static="false" final="false" visibility="public"
  12111. deprecated="not deprecated">
  12112. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12113. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12114. <param name="overwrite" type="boolean"/>
  12115. <param name="bufferSize" type="int"/>
  12116. <param name="replication" type="short"/>
  12117. <param name="blockSize" type="long"/>
  12118. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12119. <exception name="IOException" type="java.io.IOException"/>
  12120. </method>
  12121. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  12122. abstract="false" native="false" synchronized="false"
  12123. static="false" final="false" visibility="public"
  12124. deprecated="not deprecated">
  12125. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12126. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12127. <param name="flags" type="java.util.EnumSet"/>
  12128. <param name="bufferSize" type="int"/>
  12129. <param name="replication" type="short"/>
  12130. <param name="blockSize" type="long"/>
  12131. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12132. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  12133. <exception name="IOException" type="java.io.IOException"/>
  12134. </method>
  12135. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  12136. abstract="false" native="false" synchronized="false"
  12137. static="false" final="false" visibility="protected"
  12138. deprecated="not deprecated">
  12139. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12140. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  12141. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12142. <exception name="IOException" type="java.io.IOException"/>
  12143. </method>
  12144. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  12145. abstract="false" native="false" synchronized="false"
  12146. static="false" final="false" visibility="public"
  12147. deprecated="not deprecated">
  12148. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12149. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12150. <param name="flags" type="java.util.EnumSet"/>
  12151. <param name="bufferSize" type="int"/>
  12152. <param name="replication" type="short"/>
  12153. <param name="blockSize" type="long"/>
  12154. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12155. <exception name="IOException" type="java.io.IOException"/>
  12156. </method>
  12157. <method name="setReplication" return="boolean"
  12158. abstract="false" native="false" synchronized="false"
  12159. static="false" final="false" visibility="public"
  12160. deprecated="not deprecated">
  12161. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12162. <param name="replication" type="short"/>
  12163. <exception name="IOException" type="java.io.IOException"/>
  12164. <doc>
  12165. <![CDATA[Set replication for an existing file.
  12166. @param src file name
  12167. @param replication new replication
  12168. @throws IOException
  12169. @return true if successful;
  12170. false if file does not exist or is a directory]]>
  12171. </doc>
  12172. </method>
  12173. <method name="rename" return="boolean"
  12174. abstract="false" native="false" synchronized="false"
  12175. static="false" final="false" visibility="public"
  12176. deprecated="not deprecated">
  12177. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12178. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12179. <exception name="IOException" type="java.io.IOException"/>
  12180. <doc>
  12181. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  12182. or remote DFS.]]>
  12183. </doc>
  12184. </method>
  12185. <method name="rename"
  12186. abstract="false" native="false" synchronized="false"
  12187. static="false" final="false" visibility="protected"
  12188. deprecated="not deprecated">
  12189. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12190. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12191. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  12192. <exception name="IOException" type="java.io.IOException"/>
  12193. </method>
  12194. <method name="truncate" return="boolean"
  12195. abstract="false" native="false" synchronized="false"
  12196. static="false" final="false" visibility="public"
  12197. deprecated="not deprecated">
  12198. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12199. <param name="newLength" type="long"/>
  12200. <exception name="IOException" type="java.io.IOException"/>
  12201. </method>
  12202. <method name="delete" return="boolean"
  12203. abstract="false" native="false" synchronized="false"
  12204. static="false" final="false" visibility="public"
  12205. deprecated="not deprecated">
  12206. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12207. <param name="recursive" type="boolean"/>
  12208. <exception name="IOException" type="java.io.IOException"/>
  12209. <doc>
  12210. <![CDATA[Delete a file]]>
  12211. </doc>
  12212. </method>
  12213. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  12214. abstract="false" native="false" synchronized="false"
  12215. static="false" final="false" visibility="public"
  12216. deprecated="not deprecated">
  12217. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12218. <exception name="IOException" type="java.io.IOException"/>
  12219. <doc>
  12220. <![CDATA[List files in a directory.]]>
  12221. </doc>
  12222. </method>
  12223. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  12224. abstract="false" native="false" synchronized="false"
  12225. static="false" final="false" visibility="public"
  12226. deprecated="not deprecated">
  12227. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12228. <exception name="IOException" type="java.io.IOException"/>
  12229. </method>
  12230. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  12231. abstract="false" native="false" synchronized="false"
  12232. static="false" final="false" visibility="public"
  12233. deprecated="not deprecated">
  12234. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12235. <exception name="IOException" type="java.io.IOException"/>
  12236. <doc>
  12237. <![CDATA[List files and its block locations in a directory.]]>
  12238. </doc>
  12239. </method>
  12240. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  12241. abstract="false" native="false" synchronized="false"
  12242. static="false" final="false" visibility="public"
  12243. deprecated="not deprecated">
  12244. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12245. <exception name="IOException" type="java.io.IOException"/>
  12246. <doc>
  12247. <![CDATA[Return a remote iterator for listing in a directory]]>
  12248. </doc>
  12249. </method>
  12250. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  12251. abstract="false" native="false" synchronized="false"
  12252. static="false" final="false" visibility="public"
  12253. deprecated="not deprecated">
  12254. </method>
  12255. <method name="setWorkingDirectory"
  12256. abstract="false" native="false" synchronized="false"
  12257. static="false" final="false" visibility="public"
  12258. deprecated="not deprecated">
  12259. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  12260. <doc>
  12261. <![CDATA[Set the current working directory for the given file system. All relative
  12262. paths will be resolved relative to it.
  12263. @param newDir]]>
  12264. </doc>
  12265. </method>
  12266. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  12267. abstract="false" native="false" synchronized="false"
  12268. static="false" final="false" visibility="public"
  12269. deprecated="not deprecated">
  12270. <doc>
  12271. <![CDATA[Get the current working directory for the given file system
  12272. @return the directory pathname]]>
  12273. </doc>
  12274. </method>
  12275. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  12276. abstract="false" native="false" synchronized="false"
  12277. static="false" final="false" visibility="protected"
  12278. deprecated="not deprecated">
  12279. </method>
  12280. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  12281. abstract="false" native="false" synchronized="false"
  12282. static="false" final="false" visibility="public"
  12283. deprecated="not deprecated">
  12284. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12285. <exception name="IOException" type="java.io.IOException"/>
  12286. </method>
  12287. <method name="mkdirs" return="boolean"
  12288. abstract="false" native="false" synchronized="false"
  12289. static="false" final="false" visibility="public"
  12290. deprecated="not deprecated">
  12291. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12292. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12293. <exception name="IOException" type="java.io.IOException"/>
  12294. </method>
  12295. <method name="mkdirs" return="boolean"
  12296. abstract="false" native="false" synchronized="false"
  12297. static="false" final="false" visibility="public"
  12298. deprecated="not deprecated">
  12299. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12300. <exception name="IOException" type="java.io.IOException"/>
  12301. </method>
  12302. <method name="copyFromLocalFile"
  12303. abstract="false" native="false" synchronized="false"
  12304. static="false" final="false" visibility="public"
  12305. deprecated="not deprecated">
  12306. <param name="delSrc" type="boolean"/>
  12307. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12308. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12309. <exception name="IOException" type="java.io.IOException"/>
  12310. <doc>
  12311. <![CDATA[The src file is on the local disk. Add it to FS at
  12312. the given dst name.
  12313. delSrc indicates if the source should be removed]]>
  12314. </doc>
  12315. </method>
  12316. <method name="copyFromLocalFile"
  12317. abstract="false" native="false" synchronized="false"
  12318. static="false" final="false" visibility="public"
  12319. deprecated="not deprecated">
  12320. <param name="delSrc" type="boolean"/>
  12321. <param name="overwrite" type="boolean"/>
  12322. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  12323. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12324. <exception name="IOException" type="java.io.IOException"/>
  12325. <doc>
  12326. <![CDATA[The src files are on the local disk. Add it to FS at
  12327. the given dst name.
  12328. delSrc indicates if the source should be removed]]>
  12329. </doc>
  12330. </method>
  12331. <method name="copyFromLocalFile"
  12332. abstract="false" native="false" synchronized="false"
  12333. static="false" final="false" visibility="public"
  12334. deprecated="not deprecated">
  12335. <param name="delSrc" type="boolean"/>
  12336. <param name="overwrite" type="boolean"/>
  12337. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12338. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12339. <exception name="IOException" type="java.io.IOException"/>
  12340. <doc>
  12341. <![CDATA[The src file is on the local disk. Add it to FS at
  12342. the given dst name.
  12343. delSrc indicates if the source should be removed]]>
  12344. </doc>
  12345. </method>
  12346. <method name="copyToLocalFile"
  12347. abstract="false" native="false" synchronized="false"
  12348. static="false" final="false" visibility="public"
  12349. deprecated="not deprecated">
  12350. <param name="delSrc" type="boolean"/>
  12351. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12352. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12353. <exception name="IOException" type="java.io.IOException"/>
  12354. <doc>
  12355. <![CDATA[The src file is under FS, and the dst is on the local disk.
  12356. Copy it from FS control to the local dst name.
  12357. delSrc indicates if the src will be removed or not.]]>
  12358. </doc>
  12359. </method>
  12360. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  12361. abstract="false" native="false" synchronized="false"
  12362. static="false" final="false" visibility="public"
  12363. deprecated="not deprecated">
  12364. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  12365. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  12366. <exception name="IOException" type="java.io.IOException"/>
  12367. <doc>
  12368. <![CDATA[Returns a local File that the user can write output to. The caller
  12369. provides both the eventual FS target name and the local working
  12370. file. If the FS is local, we write directly into the target. If
  12371. the FS is remote, we write into the tmp local area.]]>
  12372. </doc>
  12373. </method>
  12374. <method name="completeLocalOutput"
  12375. abstract="false" native="false" synchronized="false"
  12376. static="false" final="false" visibility="public"
  12377. deprecated="not deprecated">
  12378. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  12379. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  12380. <exception name="IOException" type="java.io.IOException"/>
  12381. <doc>
  12382. <![CDATA[Called when we're all done writing to the target. A local FS will
  12383. do nothing, because we've written to exactly the right place. A remote
  12384. FS will copy the contents of tmpLocalFile to the correct target at
  12385. fsOutputFile.]]>
  12386. </doc>
  12387. </method>
  12388. <method name="getUsed" return="long"
  12389. abstract="false" native="false" synchronized="false"
  12390. static="false" final="false" visibility="public"
  12391. deprecated="not deprecated">
  12392. <exception name="IOException" type="java.io.IOException"/>
  12393. <doc>
  12394. <![CDATA[Return the total size of all files in the filesystem.]]>
  12395. </doc>
  12396. </method>
  12397. <method name="getUsed" return="long"
  12398. abstract="false" native="false" synchronized="false"
  12399. static="false" final="false" visibility="public"
  12400. deprecated="not deprecated">
  12401. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12402. <exception name="IOException" type="java.io.IOException"/>
  12403. <doc>
  12404. <![CDATA[Return the total size of all files from a specified path.]]>
  12405. </doc>
  12406. </method>
  12407. <method name="getDefaultBlockSize" return="long"
  12408. abstract="false" native="false" synchronized="false"
  12409. static="false" final="false" visibility="public"
  12410. deprecated="not deprecated">
  12411. </method>
  12412. <method name="getDefaultReplication" return="short"
  12413. abstract="false" native="false" synchronized="false"
  12414. static="false" final="false" visibility="public"
  12415. deprecated="not deprecated">
  12416. </method>
  12417. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  12418. abstract="false" native="false" synchronized="false"
  12419. static="false" final="false" visibility="public"
  12420. deprecated="not deprecated">
  12421. <exception name="IOException" type="java.io.IOException"/>
  12422. </method>
  12423. <method name="getDefaultBlockSize" return="long"
  12424. abstract="false" native="false" synchronized="false"
  12425. static="false" final="false" visibility="public"
  12426. deprecated="not deprecated">
  12427. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12428. </method>
  12429. <method name="getDefaultReplication" return="short"
  12430. abstract="false" native="false" synchronized="false"
  12431. static="false" final="false" visibility="public"
  12432. deprecated="not deprecated">
  12433. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12434. </method>
  12435. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  12436. abstract="false" native="false" synchronized="false"
  12437. static="false" final="false" visibility="public"
  12438. deprecated="not deprecated">
  12439. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12440. <exception name="IOException" type="java.io.IOException"/>
  12441. </method>
  12442. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  12443. abstract="false" native="false" synchronized="false"
  12444. static="false" final="false" visibility="public"
  12445. deprecated="not deprecated">
  12446. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12447. <exception name="IOException" type="java.io.IOException"/>
  12448. <doc>
  12449. <![CDATA[Get file status.]]>
  12450. </doc>
  12451. </method>
  12452. <method name="msync"
  12453. abstract="false" native="false" synchronized="false"
  12454. static="false" final="false" visibility="public"
  12455. deprecated="not deprecated">
  12456. <exception name="IOException" type="java.io.IOException"/>
  12457. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12458. </method>
  12459. <method name="access"
  12460. abstract="false" native="false" synchronized="false"
  12461. static="false" final="false" visibility="public"
  12462. deprecated="not deprecated">
  12463. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12464. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  12465. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12466. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12467. <exception name="IOException" type="java.io.IOException"/>
  12468. </method>
  12469. <method name="createSymlink"
  12470. abstract="false" native="false" synchronized="false"
  12471. static="false" final="false" visibility="public"
  12472. deprecated="not deprecated">
  12473. <param name="target" type="org.apache.hadoop.fs.Path"/>
  12474. <param name="link" type="org.apache.hadoop.fs.Path"/>
  12475. <param name="createParent" type="boolean"/>
  12476. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12477. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  12478. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12479. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  12480. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  12481. <exception name="IOException" type="java.io.IOException"/>
  12482. </method>
  12483. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  12484. abstract="false" native="false" synchronized="false"
  12485. static="false" final="false" visibility="public"
  12486. deprecated="not deprecated">
  12487. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12488. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12489. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12490. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  12491. <exception name="IOException" type="java.io.IOException"/>
  12492. </method>
  12493. <method name="supportsSymlinks" return="boolean"
  12494. abstract="false" native="false" synchronized="false"
  12495. static="false" final="false" visibility="public"
  12496. deprecated="not deprecated">
  12497. </method>
  12498. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  12499. abstract="false" native="false" synchronized="false"
  12500. static="false" final="false" visibility="public"
  12501. deprecated="not deprecated">
  12502. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12503. <exception name="IOException" type="java.io.IOException"/>
  12504. </method>
  12505. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  12506. abstract="false" native="false" synchronized="false"
  12507. static="false" final="false" visibility="protected"
  12508. deprecated="not deprecated">
  12509. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12510. <exception name="IOException" type="java.io.IOException"/>
  12511. </method>
  12512. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  12513. abstract="false" native="false" synchronized="false"
  12514. static="false" final="false" visibility="public"
  12515. deprecated="not deprecated">
  12516. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12517. <exception name="IOException" type="java.io.IOException"/>
  12518. </method>
  12519. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  12520. abstract="false" native="false" synchronized="false"
  12521. static="false" final="false" visibility="public"
  12522. deprecated="not deprecated">
  12523. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12524. <param name="length" type="long"/>
  12525. <exception name="IOException" type="java.io.IOException"/>
  12526. </method>
  12527. <method name="setVerifyChecksum"
  12528. abstract="false" native="false" synchronized="false"
  12529. static="false" final="false" visibility="public"
  12530. deprecated="not deprecated">
  12531. <param name="verifyChecksum" type="boolean"/>
  12532. </method>
  12533. <method name="setWriteChecksum"
  12534. abstract="false" native="false" synchronized="false"
  12535. static="false" final="false" visibility="public"
  12536. deprecated="not deprecated">
  12537. <param name="writeChecksum" type="boolean"/>
  12538. </method>
  12539. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  12540. abstract="false" native="false" synchronized="false"
  12541. static="false" final="false" visibility="public"
  12542. deprecated="not deprecated">
  12543. </method>
  12544. <method name="close"
  12545. abstract="false" native="false" synchronized="false"
  12546. static="false" final="false" visibility="public"
  12547. deprecated="not deprecated">
  12548. <exception name="IOException" type="java.io.IOException"/>
  12549. </method>
  12550. <method name="setOwner"
  12551. abstract="false" native="false" synchronized="false"
  12552. static="false" final="false" visibility="public"
  12553. deprecated="not deprecated">
  12554. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12555. <param name="username" type="java.lang.String"/>
  12556. <param name="groupname" type="java.lang.String"/>
  12557. <exception name="IOException" type="java.io.IOException"/>
  12558. </method>
  12559. <method name="setTimes"
  12560. abstract="false" native="false" synchronized="false"
  12561. static="false" final="false" visibility="public"
  12562. deprecated="not deprecated">
  12563. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12564. <param name="mtime" type="long"/>
  12565. <param name="atime" type="long"/>
  12566. <exception name="IOException" type="java.io.IOException"/>
  12567. </method>
  12568. <method name="setPermission"
  12569. abstract="false" native="false" synchronized="false"
  12570. static="false" final="false" visibility="public"
  12571. deprecated="not deprecated">
  12572. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12573. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12574. <exception name="IOException" type="java.io.IOException"/>
  12575. </method>
  12576. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  12577. abstract="false" native="false" synchronized="false"
  12578. static="false" final="false" visibility="protected"
  12579. deprecated="not deprecated">
  12580. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12581. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12582. <param name="flag" type="java.util.EnumSet"/>
  12583. <param name="bufferSize" type="int"/>
  12584. <param name="replication" type="short"/>
  12585. <param name="blockSize" type="long"/>
  12586. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12587. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  12588. <exception name="IOException" type="java.io.IOException"/>
  12589. </method>
  12590. <method name="primitiveMkdir" return="boolean"
  12591. abstract="false" native="false" synchronized="false"
  12592. static="false" final="false" visibility="protected"
  12593. deprecated="not deprecated">
  12594. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12595. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12596. <exception name="IOException" type="java.io.IOException"/>
  12597. </method>
  12598. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  12599. abstract="false" native="false" synchronized="false"
  12600. static="false" final="false" visibility="public"
  12601. deprecated="not deprecated">
  12602. </method>
  12603. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  12604. abstract="false" native="false" synchronized="false"
  12605. static="false" final="false" visibility="public"
  12606. deprecated="not deprecated">
  12607. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12608. <param name="snapshotName" type="java.lang.String"/>
  12609. <exception name="IOException" type="java.io.IOException"/>
  12610. </method>
  12611. <method name="renameSnapshot"
  12612. abstract="false" native="false" synchronized="false"
  12613. static="false" final="false" visibility="public"
  12614. deprecated="not deprecated">
  12615. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12616. <param name="snapshotOldName" type="java.lang.String"/>
  12617. <param name="snapshotNewName" type="java.lang.String"/>
  12618. <exception name="IOException" type="java.io.IOException"/>
  12619. </method>
  12620. <method name="deleteSnapshot"
  12621. abstract="false" native="false" synchronized="false"
  12622. static="false" final="false" visibility="public"
  12623. deprecated="not deprecated">
  12624. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12625. <param name="snapshotName" type="java.lang.String"/>
  12626. <exception name="IOException" type="java.io.IOException"/>
  12627. </method>
  12628. <method name="modifyAclEntries"
  12629. abstract="false" native="false" synchronized="false"
  12630. static="false" final="false" visibility="public"
  12631. deprecated="not deprecated">
  12632. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12633. <param name="aclSpec" type="java.util.List"/>
  12634. <exception name="IOException" type="java.io.IOException"/>
  12635. </method>
  12636. <method name="removeAclEntries"
  12637. abstract="false" native="false" synchronized="false"
  12638. static="false" final="false" visibility="public"
  12639. deprecated="not deprecated">
  12640. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12641. <param name="aclSpec" type="java.util.List"/>
  12642. <exception name="IOException" type="java.io.IOException"/>
  12643. </method>
  12644. <method name="removeDefaultAcl"
  12645. abstract="false" native="false" synchronized="false"
  12646. static="false" final="false" visibility="public"
  12647. deprecated="not deprecated">
  12648. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12649. <exception name="IOException" type="java.io.IOException"/>
  12650. </method>
  12651. <method name="removeAcl"
  12652. abstract="false" native="false" synchronized="false"
  12653. static="false" final="false" visibility="public"
  12654. deprecated="not deprecated">
  12655. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12656. <exception name="IOException" type="java.io.IOException"/>
  12657. </method>
  12658. <method name="setAcl"
  12659. abstract="false" native="false" synchronized="false"
  12660. static="false" final="false" visibility="public"
  12661. deprecated="not deprecated">
  12662. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12663. <param name="aclSpec" type="java.util.List"/>
  12664. <exception name="IOException" type="java.io.IOException"/>
  12665. </method>
  12666. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  12667. abstract="false" native="false" synchronized="false"
  12668. static="false" final="false" visibility="public"
  12669. deprecated="not deprecated">
  12670. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12671. <exception name="IOException" type="java.io.IOException"/>
  12672. </method>
  12673. <method name="setXAttr"
  12674. abstract="false" native="false" synchronized="false"
  12675. static="false" final="false" visibility="public"
  12676. deprecated="not deprecated">
  12677. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12678. <param name="name" type="java.lang.String"/>
  12679. <param name="value" type="byte[]"/>
  12680. <exception name="IOException" type="java.io.IOException"/>
  12681. </method>
  12682. <method name="setXAttr"
  12683. abstract="false" native="false" synchronized="false"
  12684. static="false" final="false" visibility="public"
  12685. deprecated="not deprecated">
  12686. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12687. <param name="name" type="java.lang.String"/>
  12688. <param name="value" type="byte[]"/>
  12689. <param name="flag" type="java.util.EnumSet"/>
  12690. <exception name="IOException" type="java.io.IOException"/>
  12691. </method>
  12692. <method name="getXAttr" return="byte[]"
  12693. abstract="false" native="false" synchronized="false"
  12694. static="false" final="false" visibility="public"
  12695. deprecated="not deprecated">
  12696. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12697. <param name="name" type="java.lang.String"/>
  12698. <exception name="IOException" type="java.io.IOException"/>
  12699. </method>
  12700. <method name="getXAttrs" return="java.util.Map"
  12701. abstract="false" native="false" synchronized="false"
  12702. static="false" final="false" visibility="public"
  12703. deprecated="not deprecated">
  12704. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12705. <exception name="IOException" type="java.io.IOException"/>
  12706. </method>
  12707. <method name="getXAttrs" return="java.util.Map"
  12708. abstract="false" native="false" synchronized="false"
  12709. static="false" final="false" visibility="public"
  12710. deprecated="not deprecated">
  12711. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12712. <param name="names" type="java.util.List"/>
  12713. <exception name="IOException" type="java.io.IOException"/>
  12714. </method>
  12715. <method name="listXAttrs" return="java.util.List"
  12716. abstract="false" native="false" synchronized="false"
  12717. static="false" final="false" visibility="public"
  12718. deprecated="not deprecated">
  12719. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12720. <exception name="IOException" type="java.io.IOException"/>
  12721. </method>
  12722. <method name="removeXAttr"
  12723. abstract="false" native="false" synchronized="false"
  12724. static="false" final="false" visibility="public"
  12725. deprecated="not deprecated">
  12726. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12727. <param name="name" type="java.lang.String"/>
  12728. <exception name="IOException" type="java.io.IOException"/>
  12729. </method>
  12730. <method name="satisfyStoragePolicy"
  12731. abstract="false" native="false" synchronized="false"
  12732. static="false" final="false" visibility="public"
  12733. deprecated="not deprecated">
  12734. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12735. <exception name="IOException" type="java.io.IOException"/>
  12736. </method>
  12737. <method name="setStoragePolicy"
  12738. abstract="false" native="false" synchronized="false"
  12739. static="false" final="false" visibility="public"
  12740. deprecated="not deprecated">
  12741. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12742. <param name="policyName" type="java.lang.String"/>
  12743. <exception name="IOException" type="java.io.IOException"/>
  12744. </method>
  12745. <method name="unsetStoragePolicy"
  12746. abstract="false" native="false" synchronized="false"
  12747. static="false" final="false" visibility="public"
  12748. deprecated="not deprecated">
  12749. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12750. <exception name="IOException" type="java.io.IOException"/>
  12751. </method>
  12752. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  12753. abstract="false" native="false" synchronized="false"
  12754. static="false" final="false" visibility="public"
  12755. deprecated="not deprecated">
  12756. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12757. <exception name="IOException" type="java.io.IOException"/>
  12758. </method>
  12759. <method name="getAllStoragePolicies" return="java.util.Collection"
  12760. abstract="false" native="false" synchronized="false"
  12761. static="false" final="false" visibility="public"
  12762. deprecated="not deprecated">
  12763. <exception name="IOException" type="java.io.IOException"/>
  12764. </method>
  12765. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  12766. abstract="false" native="false" synchronized="false"
  12767. static="false" final="false" visibility="public"
  12768. deprecated="not deprecated">
  12769. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12770. </method>
  12771. <method name="getTrashRoots" return="java.util.Collection"
  12772. abstract="false" native="false" synchronized="false"
  12773. static="false" final="false" visibility="public"
  12774. deprecated="not deprecated">
  12775. <param name="allUsers" type="boolean"/>
  12776. </method>
  12777. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  12778. abstract="false" native="false" synchronized="false"
  12779. static="false" final="false" visibility="public"
  12780. deprecated="not deprecated">
  12781. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12782. </method>
  12783. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  12784. abstract="false" native="false" synchronized="false"
  12785. static="false" final="false" visibility="public"
  12786. deprecated="not deprecated">
  12787. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12788. </method>
  12789. <method name="hasPathCapability" return="boolean"
  12790. abstract="false" native="false" synchronized="false"
  12791. static="false" final="false" visibility="public"
  12792. deprecated="not deprecated">
  12793. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12794. <param name="capability" type="java.lang.String"/>
  12795. <exception name="IOException" type="java.io.IOException"/>
  12796. </method>
  12797. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  12798. transient="false" volatile="false"
  12799. static="false" final="false" visibility="protected"
  12800. deprecated="not deprecated">
  12801. </field>
  12802. <field name="swapScheme" type="java.lang.String"
  12803. transient="false" volatile="false"
  12804. static="false" final="false" visibility="protected"
  12805. deprecated="not deprecated">
  12806. </field>
  12807. <doc>
  12808. <![CDATA[A <code>FilterFileSystem</code> contains
  12809. some other file system, which it uses as
  12810. its basic file system, possibly transforming
  12811. the data along the way or providing additional
  12812. functionality. The class <code>FilterFileSystem</code>
  12813. itself simply overrides all methods of
  12814. <code>FileSystem</code> with versions that
  12815. pass all requests to the contained file
  12816. system. Subclasses of <code>FilterFileSystem</code>
  12817. may further override some of these methods
  12818. and may also provide additional methods
  12819. and fields.]]>
  12820. </doc>
  12821. </class>
  12822. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  12823. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  12824. <interface name="FsConstants" abstract="true"
  12825. static="false" final="false" visibility="public"
  12826. deprecated="not deprecated">
  12827. <field name="LOCAL_FS_URI" type="java.net.URI"
  12828. transient="false" volatile="false"
  12829. static="true" final="true" visibility="public"
  12830. deprecated="not deprecated">
  12831. </field>
  12832. <field name="FTP_SCHEME" type="java.lang.String"
  12833. transient="false" volatile="false"
  12834. static="true" final="true" visibility="public"
  12835. deprecated="not deprecated">
  12836. </field>
  12837. <field name="MAX_PATH_LINKS" type="int"
  12838. transient="false" volatile="false"
  12839. static="true" final="true" visibility="public"
  12840. deprecated="not deprecated">
  12841. </field>
  12842. <field name="VIEWFS_URI" type="java.net.URI"
  12843. transient="false" volatile="false"
  12844. static="true" final="true" visibility="public"
  12845. deprecated="not deprecated">
  12846. <doc>
  12847. <![CDATA[ViewFs: viewFs file system (ie the mount file system on client side)]]>
  12848. </doc>
  12849. </field>
  12850. <field name="VIEWFS_SCHEME" type="java.lang.String"
  12851. transient="false" volatile="false"
  12852. static="true" final="true" visibility="public"
  12853. deprecated="not deprecated">
  12854. </field>
  12855. <field name="FS_VIEWFS_OVERLOAD_SCHEME_TARGET_FS_IMPL_PATTERN" type="java.lang.String"
  12856. transient="false" volatile="false"
  12857. static="true" final="true" visibility="public"
  12858. deprecated="not deprecated">
  12859. </field>
  12860. <field name="VIEWFS_TYPE" type="java.lang.String"
  12861. transient="false" volatile="false"
  12862. static="true" final="true" visibility="public"
  12863. deprecated="not deprecated">
  12864. </field>
  12865. <field name="VIEWFSOS_TYPE" type="java.lang.String"
  12866. transient="false" volatile="false"
  12867. static="true" final="true" visibility="public"
  12868. deprecated="not deprecated">
  12869. </field>
  12870. <doc>
  12871. <![CDATA[FileSystem related constants.]]>
  12872. </doc>
  12873. </interface>
  12874. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  12875. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  12876. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  12877. abstract="false"
  12878. static="false" final="false" visibility="public"
  12879. deprecated="not deprecated">
  12880. <implements name="org.apache.hadoop.fs.Seekable"/>
  12881. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  12882. <implements name="org.apache.hadoop.fs.ByteBufferReadable"/>
  12883. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  12884. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  12885. <implements name="org.apache.hadoop.fs.CanSetReadahead"/>
  12886. <implements name="org.apache.hadoop.fs.HasEnhancedByteBufferAccess"/>
  12887. <implements name="org.apache.hadoop.fs.CanUnbuffer"/>
  12888. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  12889. <constructor name="FSDataInputStream" type="java.io.InputStream"
  12890. static="false" final="false" visibility="public"
  12891. deprecated="not deprecated">
  12892. </constructor>
  12893. <method name="seek"
  12894. abstract="false" native="false" synchronized="false"
  12895. static="false" final="false" visibility="public"
  12896. deprecated="not deprecated">
  12897. <param name="desired" type="long"/>
  12898. <exception name="IOException" type="java.io.IOException"/>
  12899. <doc>
  12900. <![CDATA[Seek to the given offset.
  12901. @param desired offset to seek to]]>
  12902. </doc>
  12903. </method>
  12904. <method name="getPos" return="long"
  12905. abstract="false" native="false" synchronized="false"
  12906. static="false" final="false" visibility="public"
  12907. deprecated="not deprecated">
  12908. <exception name="IOException" type="java.io.IOException"/>
  12909. <doc>
  12910. <![CDATA[Get the current position in the input stream.
  12911. @return current position in the input stream]]>
  12912. </doc>
  12913. </method>
  12914. <method name="read" return="int"
  12915. abstract="false" native="false" synchronized="false"
  12916. static="false" final="false" visibility="public"
  12917. deprecated="not deprecated">
  12918. <param name="position" type="long"/>
  12919. <param name="buffer" type="byte[]"/>
  12920. <param name="offset" type="int"/>
  12921. <param name="length" type="int"/>
  12922. <exception name="IOException" type="java.io.IOException"/>
  12923. <doc>
  12924. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  12925. @param position position in the input stream to seek
  12926. @param buffer buffer into which data is read
  12927. @param offset offset into the buffer in which data is written
  12928. @param length maximum number of bytes to read
  12929. @return total number of bytes read into the buffer, or <code>-1</code>
  12930. if there is no more data because the end of the stream has been
  12931. reached]]>
  12932. </doc>
  12933. </method>
  12934. <method name="readFully"
  12935. abstract="false" native="false" synchronized="false"
  12936. static="false" final="false" visibility="public"
  12937. deprecated="not deprecated">
  12938. <param name="position" type="long"/>
  12939. <param name="buffer" type="byte[]"/>
  12940. <param name="offset" type="int"/>
  12941. <param name="length" type="int"/>
  12942. <exception name="IOException" type="java.io.IOException"/>
  12943. <doc>
  12944. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  12945. Continues to read until <code>length</code> bytes have been read.
  12946. @param position position in the input stream to seek
  12947. @param buffer buffer into which data is read
  12948. @param offset offset into the buffer in which data is written
  12949. @param length the number of bytes to read
  12950. @throws IOException IO problems
  12951. @throws EOFException If the end of stream is reached while reading.
  12952. If an exception is thrown an undetermined number
  12953. of bytes in the buffer may have been written.]]>
  12954. </doc>
  12955. </method>
  12956. <method name="readFully"
  12957. abstract="false" native="false" synchronized="false"
  12958. static="false" final="false" visibility="public"
  12959. deprecated="not deprecated">
  12960. <param name="position" type="long"/>
  12961. <param name="buffer" type="byte[]"/>
  12962. <exception name="IOException" type="java.io.IOException"/>
  12963. <doc>
  12964. <![CDATA[See {@link #readFully(long, byte[], int, int)}.]]>
  12965. </doc>
  12966. </method>
  12967. <method name="seekToNewSource" return="boolean"
  12968. abstract="false" native="false" synchronized="false"
  12969. static="false" final="false" visibility="public"
  12970. deprecated="not deprecated">
  12971. <param name="targetPos" type="long"/>
  12972. <exception name="IOException" type="java.io.IOException"/>
  12973. <doc>
  12974. <![CDATA[Seek to the given position on an alternate copy of the data.
  12975. @param targetPos position to seek to
  12976. @return true if a new source is found, false otherwise]]>
  12977. </doc>
  12978. </method>
  12979. <method name="read" return="int"
  12980. abstract="false" native="false" synchronized="false"
  12981. static="false" final="false" visibility="public"
  12982. deprecated="not deprecated">
  12983. <param name="buf" type="java.nio.ByteBuffer"/>
  12984. <exception name="IOException" type="java.io.IOException"/>
  12985. </method>
  12986. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  12987. abstract="false" native="false" synchronized="false"
  12988. static="false" final="false" visibility="public"
  12989. deprecated="not deprecated">
  12990. <exception name="IOException" type="java.io.IOException"/>
  12991. </method>
  12992. <method name="setReadahead"
  12993. abstract="false" native="false" synchronized="false"
  12994. static="false" final="false" visibility="public"
  12995. deprecated="not deprecated">
  12996. <param name="readahead" type="java.lang.Long"/>
  12997. <exception name="IOException" type="java.io.IOException"/>
  12998. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12999. </method>
  13000. <method name="setDropBehind"
  13001. abstract="false" native="false" synchronized="false"
  13002. static="false" final="false" visibility="public"
  13003. deprecated="not deprecated">
  13004. <param name="dropBehind" type="java.lang.Boolean"/>
  13005. <exception name="IOException" type="java.io.IOException"/>
  13006. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13007. </method>
  13008. <method name="read" return="java.nio.ByteBuffer"
  13009. abstract="false" native="false" synchronized="false"
  13010. static="false" final="false" visibility="public"
  13011. deprecated="not deprecated">
  13012. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  13013. <param name="maxLength" type="int"/>
  13014. <param name="opts" type="java.util.EnumSet"/>
  13015. <exception name="IOException" type="java.io.IOException"/>
  13016. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13017. </method>
  13018. <method name="read" return="java.nio.ByteBuffer"
  13019. abstract="false" native="false" synchronized="false"
  13020. static="false" final="true" visibility="public"
  13021. deprecated="not deprecated">
  13022. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  13023. <param name="maxLength" type="int"/>
  13024. <exception name="IOException" type="java.io.IOException"/>
  13025. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13026. </method>
  13027. <method name="releaseBuffer"
  13028. abstract="false" native="false" synchronized="false"
  13029. static="false" final="false" visibility="public"
  13030. deprecated="not deprecated">
  13031. <param name="buffer" type="java.nio.ByteBuffer"/>
  13032. </method>
  13033. <method name="unbuffer"
  13034. abstract="false" native="false" synchronized="false"
  13035. static="false" final="false" visibility="public"
  13036. deprecated="not deprecated">
  13037. </method>
  13038. <method name="hasCapability" return="boolean"
  13039. abstract="false" native="false" synchronized="false"
  13040. static="false" final="false" visibility="public"
  13041. deprecated="not deprecated">
  13042. <param name="capability" type="java.lang.String"/>
  13043. </method>
  13044. <method name="toString" return="java.lang.String"
  13045. abstract="false" native="false" synchronized="false"
  13046. static="false" final="false" visibility="public"
  13047. deprecated="not deprecated">
  13048. <doc>
  13049. <![CDATA[String value. Includes the string value of the inner stream
  13050. @return the stream]]>
  13051. </doc>
  13052. </method>
  13053. <doc>
  13054. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  13055. and buffers input through a {@link java.io.BufferedInputStream}.]]>
  13056. </doc>
  13057. </class>
  13058. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  13059. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  13060. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  13061. abstract="false"
  13062. static="false" final="false" visibility="public"
  13063. deprecated="not deprecated">
  13064. <implements name="org.apache.hadoop.fs.Syncable"/>
  13065. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  13066. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  13067. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  13068. static="false" final="false" visibility="public"
  13069. deprecated="not deprecated">
  13070. </constructor>
  13071. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  13072. static="false" final="false" visibility="public"
  13073. deprecated="not deprecated">
  13074. </constructor>
  13075. <method name="getPos" return="long"
  13076. abstract="false" native="false" synchronized="false"
  13077. static="false" final="false" visibility="public"
  13078. deprecated="not deprecated">
  13079. <doc>
  13080. <![CDATA[Get the current position in the output stream.
  13081. @return the current position in the output stream]]>
  13082. </doc>
  13083. </method>
  13084. <method name="close"
  13085. abstract="false" native="false" synchronized="false"
  13086. static="false" final="false" visibility="public"
  13087. deprecated="not deprecated">
  13088. <exception name="IOException" type="java.io.IOException"/>
  13089. <doc>
  13090. <![CDATA[Close the underlying output stream.]]>
  13091. </doc>
  13092. </method>
  13093. <method name="toString" return="java.lang.String"
  13094. abstract="false" native="false" synchronized="false"
  13095. static="false" final="false" visibility="public"
  13096. deprecated="not deprecated">
  13097. </method>
  13098. <method name="hasCapability" return="boolean"
  13099. abstract="false" native="false" synchronized="false"
  13100. static="false" final="false" visibility="public"
  13101. deprecated="not deprecated">
  13102. <param name="capability" type="java.lang.String"/>
  13103. </method>
  13104. <method name="hflush"
  13105. abstract="false" native="false" synchronized="false"
  13106. static="false" final="false" visibility="public"
  13107. deprecated="not deprecated">
  13108. <exception name="IOException" type="java.io.IOException"/>
  13109. </method>
  13110. <method name="hsync"
  13111. abstract="false" native="false" synchronized="false"
  13112. static="false" final="false" visibility="public"
  13113. deprecated="not deprecated">
  13114. <exception name="IOException" type="java.io.IOException"/>
  13115. </method>
  13116. <method name="setDropBehind"
  13117. abstract="false" native="false" synchronized="false"
  13118. static="false" final="false" visibility="public"
  13119. deprecated="not deprecated">
  13120. <param name="dropBehind" type="java.lang.Boolean"/>
  13121. <exception name="IOException" type="java.io.IOException"/>
  13122. </method>
  13123. <doc>
  13124. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream}.]]>
  13125. </doc>
  13126. </class>
  13127. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  13128. <!-- start class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  13129. <class name="FSDataOutputStreamBuilder" extends="java.lang.Object"
  13130. abstract="true"
  13131. static="false" final="false" visibility="public"
  13132. deprecated="not deprecated">
  13133. <constructor name="FSDataOutputStreamBuilder" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path"
  13134. static="false" final="false" visibility="protected"
  13135. deprecated="not deprecated">
  13136. <doc>
  13137. <![CDATA[Constructor.]]>
  13138. </doc>
  13139. </constructor>
  13140. <method name="getThisBuilder" return="B"
  13141. abstract="true" native="false" synchronized="false"
  13142. static="false" final="false" visibility="protected"
  13143. deprecated="not deprecated">
  13144. <doc>
  13145. <![CDATA[Return the concrete implementation of the builder instance.]]>
  13146. </doc>
  13147. </method>
  13148. <method name="getFS" return="org.apache.hadoop.fs.FileSystem"
  13149. abstract="false" native="false" synchronized="false"
  13150. static="false" final="false" visibility="protected"
  13151. deprecated="not deprecated">
  13152. </method>
  13153. <method name="getPath" return="org.apache.hadoop.fs.Path"
  13154. abstract="false" native="false" synchronized="false"
  13155. static="false" final="false" visibility="protected"
  13156. deprecated="not deprecated">
  13157. </method>
  13158. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  13159. abstract="false" native="false" synchronized="false"
  13160. static="false" final="false" visibility="protected"
  13161. deprecated="not deprecated">
  13162. </method>
  13163. <method name="permission" return="B"
  13164. abstract="false" native="false" synchronized="false"
  13165. static="false" final="false" visibility="public"
  13166. deprecated="not deprecated">
  13167. <param name="perm" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13168. <doc>
  13169. <![CDATA[Set permission for the file.]]>
  13170. </doc>
  13171. </method>
  13172. <method name="getBufferSize" return="int"
  13173. abstract="false" native="false" synchronized="false"
  13174. static="false" final="false" visibility="protected"
  13175. deprecated="not deprecated">
  13176. </method>
  13177. <method name="bufferSize" return="B"
  13178. abstract="false" native="false" synchronized="false"
  13179. static="false" final="false" visibility="public"
  13180. deprecated="not deprecated">
  13181. <param name="bufSize" type="int"/>
  13182. <doc>
  13183. <![CDATA[Set the size of the buffer to be used.]]>
  13184. </doc>
  13185. </method>
  13186. <method name="getReplication" return="short"
  13187. abstract="false" native="false" synchronized="false"
  13188. static="false" final="false" visibility="protected"
  13189. deprecated="not deprecated">
  13190. </method>
  13191. <method name="replication" return="B"
  13192. abstract="false" native="false" synchronized="false"
  13193. static="false" final="false" visibility="public"
  13194. deprecated="not deprecated">
  13195. <param name="replica" type="short"/>
  13196. <doc>
  13197. <![CDATA[Set replication factor.]]>
  13198. </doc>
  13199. </method>
  13200. <method name="getBlockSize" return="long"
  13201. abstract="false" native="false" synchronized="false"
  13202. static="false" final="false" visibility="protected"
  13203. deprecated="not deprecated">
  13204. </method>
  13205. <method name="blockSize" return="B"
  13206. abstract="false" native="false" synchronized="false"
  13207. static="false" final="false" visibility="public"
  13208. deprecated="not deprecated">
  13209. <param name="blkSize" type="long"/>
  13210. <doc>
  13211. <![CDATA[Set block size.]]>
  13212. </doc>
  13213. </method>
  13214. <method name="isRecursive" return="boolean"
  13215. abstract="false" native="false" synchronized="false"
  13216. static="false" final="false" visibility="protected"
  13217. deprecated="not deprecated">
  13218. <doc>
  13219. <![CDATA[Return true to create the parent directories if they do not exist.]]>
  13220. </doc>
  13221. </method>
  13222. <method name="recursive" return="B"
  13223. abstract="false" native="false" synchronized="false"
  13224. static="false" final="false" visibility="public"
  13225. deprecated="not deprecated">
  13226. <doc>
  13227. <![CDATA[Create the parent directory if they do not exist.]]>
  13228. </doc>
  13229. </method>
  13230. <method name="getProgress" return="org.apache.hadoop.util.Progressable"
  13231. abstract="false" native="false" synchronized="false"
  13232. static="false" final="false" visibility="protected"
  13233. deprecated="not deprecated">
  13234. </method>
  13235. <method name="progress" return="B"
  13236. abstract="false" native="false" synchronized="false"
  13237. static="false" final="false" visibility="public"
  13238. deprecated="not deprecated">
  13239. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  13240. <doc>
  13241. <![CDATA[Set the facility of reporting progress.]]>
  13242. </doc>
  13243. </method>
  13244. <method name="getFlags" return="java.util.EnumSet"
  13245. abstract="false" native="false" synchronized="false"
  13246. static="false" final="false" visibility="protected"
  13247. deprecated="not deprecated">
  13248. </method>
  13249. <method name="create" return="B"
  13250. abstract="false" native="false" synchronized="false"
  13251. static="false" final="false" visibility="public"
  13252. deprecated="not deprecated">
  13253. <doc>
  13254. <![CDATA[Create an FSDataOutputStream at the specified path.]]>
  13255. </doc>
  13256. </method>
  13257. <method name="overwrite" return="B"
  13258. abstract="false" native="false" synchronized="false"
  13259. static="false" final="false" visibility="public"
  13260. deprecated="not deprecated">
  13261. <param name="overwrite" type="boolean"/>
  13262. <doc>
  13263. <![CDATA[Set to true to overwrite the existing file.
  13264. Set it to false, an exception will be thrown when calling {@link #build()}
  13265. if the file exists.]]>
  13266. </doc>
  13267. </method>
  13268. <method name="append" return="B"
  13269. abstract="false" native="false" synchronized="false"
  13270. static="false" final="false" visibility="public"
  13271. deprecated="not deprecated">
  13272. <doc>
  13273. <![CDATA[Append to an existing file (optional operation).]]>
  13274. </doc>
  13275. </method>
  13276. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  13277. abstract="false" native="false" synchronized="false"
  13278. static="false" final="false" visibility="protected"
  13279. deprecated="not deprecated">
  13280. </method>
  13281. <method name="checksumOpt" return="B"
  13282. abstract="false" native="false" synchronized="false"
  13283. static="false" final="false" visibility="public"
  13284. deprecated="not deprecated">
  13285. <param name="chksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  13286. <doc>
  13287. <![CDATA[Set checksum opt.]]>
  13288. </doc>
  13289. </method>
  13290. <method name="opt" return="B"
  13291. abstract="false" native="false" synchronized="false"
  13292. static="false" final="false" visibility="public"
  13293. deprecated="not deprecated">
  13294. <param name="key" type="java.lang.String"/>
  13295. <param name="value" type="java.lang.String"/>
  13296. <doc>
  13297. <![CDATA[Set optional Builder parameter.]]>
  13298. </doc>
  13299. </method>
  13300. <method name="opt" return="B"
  13301. abstract="false" native="false" synchronized="false"
  13302. static="false" final="false" visibility="public"
  13303. deprecated="not deprecated">
  13304. <param name="key" type="java.lang.String"/>
  13305. <param name="value" type="boolean"/>
  13306. <doc>
  13307. <![CDATA[Set optional boolean parameter for the Builder.
  13308. @see #opt(String, String)]]>
  13309. </doc>
  13310. </method>
  13311. <method name="opt" return="B"
  13312. abstract="false" native="false" synchronized="false"
  13313. static="false" final="false" visibility="public"
  13314. deprecated="not deprecated">
  13315. <param name="key" type="java.lang.String"/>
  13316. <param name="value" type="int"/>
  13317. <doc>
  13318. <![CDATA[Set optional int parameter for the Builder.
  13319. @see #opt(String, String)]]>
  13320. </doc>
  13321. </method>
  13322. <method name="opt" return="B"
  13323. abstract="false" native="false" synchronized="false"
  13324. static="false" final="false" visibility="public"
  13325. deprecated="not deprecated">
  13326. <param name="key" type="java.lang.String"/>
  13327. <param name="value" type="float"/>
  13328. <doc>
  13329. <![CDATA[Set optional float parameter for the Builder.
  13330. @see #opt(String, String)]]>
  13331. </doc>
  13332. </method>
  13333. <method name="opt" return="B"
  13334. abstract="false" native="false" synchronized="false"
  13335. static="false" final="false" visibility="public"
  13336. deprecated="not deprecated">
  13337. <param name="key" type="java.lang.String"/>
  13338. <param name="value" type="double"/>
  13339. <doc>
  13340. <![CDATA[Set optional double parameter for the Builder.
  13341. @see #opt(String, String)]]>
  13342. </doc>
  13343. </method>
  13344. <method name="opt" return="B"
  13345. abstract="false" native="false" synchronized="false"
  13346. static="false" final="false" visibility="public"
  13347. deprecated="not deprecated">
  13348. <param name="key" type="java.lang.String"/>
  13349. <param name="values" type="java.lang.String[]"/>
  13350. <doc>
  13351. <![CDATA[Set an array of string values as optional parameter for the Builder.
  13352. @see #opt(String, String)]]>
  13353. </doc>
  13354. </method>
  13355. <method name="must" return="B"
  13356. abstract="false" native="false" synchronized="false"
  13357. static="false" final="false" visibility="public"
  13358. deprecated="not deprecated">
  13359. <param name="key" type="java.lang.String"/>
  13360. <param name="value" type="java.lang.String"/>
  13361. <doc>
  13362. <![CDATA[Set mandatory option to the Builder.
  13363. If the option is not supported or unavailable on the {@link FileSystem},
  13364. the client should expect {@link #build()} throws IllegalArgumentException.]]>
  13365. </doc>
  13366. </method>
  13367. <method name="must" return="B"
  13368. abstract="false" native="false" synchronized="false"
  13369. static="false" final="false" visibility="public"
  13370. deprecated="not deprecated">
  13371. <param name="key" type="java.lang.String"/>
  13372. <param name="value" type="boolean"/>
  13373. <doc>
  13374. <![CDATA[Set mandatory boolean option.
  13375. @see #must(String, String)]]>
  13376. </doc>
  13377. </method>
  13378. <method name="must" return="B"
  13379. abstract="false" native="false" synchronized="false"
  13380. static="false" final="false" visibility="public"
  13381. deprecated="not deprecated">
  13382. <param name="key" type="java.lang.String"/>
  13383. <param name="value" type="int"/>
  13384. <doc>
  13385. <![CDATA[Set mandatory int option.
  13386. @see #must(String, String)]]>
  13387. </doc>
  13388. </method>
  13389. <method name="must" return="B"
  13390. abstract="false" native="false" synchronized="false"
  13391. static="false" final="false" visibility="public"
  13392. deprecated="not deprecated">
  13393. <param name="key" type="java.lang.String"/>
  13394. <param name="value" type="float"/>
  13395. <doc>
  13396. <![CDATA[Set mandatory float option.
  13397. @see #must(String, String)]]>
  13398. </doc>
  13399. </method>
  13400. <method name="must" return="B"
  13401. abstract="false" native="false" synchronized="false"
  13402. static="false" final="false" visibility="public"
  13403. deprecated="not deprecated">
  13404. <param name="key" type="java.lang.String"/>
  13405. <param name="value" type="double"/>
  13406. <doc>
  13407. <![CDATA[Set mandatory double option.
  13408. @see #must(String, String)]]>
  13409. </doc>
  13410. </method>
  13411. <method name="must" return="B"
  13412. abstract="false" native="false" synchronized="false"
  13413. static="false" final="false" visibility="public"
  13414. deprecated="not deprecated">
  13415. <param name="key" type="java.lang.String"/>
  13416. <param name="values" type="java.lang.String[]"/>
  13417. <doc>
  13418. <![CDATA[Set a string array as mandatory option.
  13419. @see #must(String, String)]]>
  13420. </doc>
  13421. </method>
  13422. <method name="getOptions" return="org.apache.hadoop.conf.Configuration"
  13423. abstract="false" native="false" synchronized="false"
  13424. static="false" final="false" visibility="protected"
  13425. deprecated="not deprecated">
  13426. </method>
  13427. <method name="getMandatoryKeys" return="java.util.Set"
  13428. abstract="false" native="false" synchronized="false"
  13429. static="false" final="false" visibility="protected"
  13430. deprecated="not deprecated">
  13431. <doc>
  13432. <![CDATA[Get all the keys that are set as mandatory keys.]]>
  13433. </doc>
  13434. </method>
  13435. <method name="build" return="S"
  13436. abstract="true" native="false" synchronized="false"
  13437. static="false" final="false" visibility="public"
  13438. deprecated="not deprecated">
  13439. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  13440. <exception name="IOException" type="java.io.IOException"/>
  13441. <doc>
  13442. <![CDATA[Create the FSDataOutputStream to write on the file system.
  13443. @throws IllegalArgumentException if the parameters are not valid.
  13444. @throws IOException on errors when file system creates or appends the file.]]>
  13445. </doc>
  13446. </method>
  13447. <doc>
  13448. <![CDATA[Builder for {@link FSDataOutputStream} and its subclasses.
  13449. It is used to create {@link FSDataOutputStream} when creating a new file or
  13450. appending an existing file on {@link FileSystem}.
  13451. By default, it does not create parent directory that do not exist.
  13452. {@link FileSystem#createNonRecursive(Path, boolean, int, short, long,
  13453. Progressable)}.
  13454. To create missing parent directory, use {@link #recursive()}.
  13455. To be more generic, {@link #opt(String, int)} and {@link #must(String, int)}
  13456. variants provide implementation-agnostic way to customize the builder.
  13457. Each FS-specific builder implementation can interpret the FS-specific
  13458. options accordingly, for example:
  13459. <code>
  13460. // Don't
  13461. if (fs instanceof FooFileSystem) {
  13462. FooFileSystem fs = (FooFileSystem) fs;
  13463. OutputStream out = dfs.createFile(path)
  13464. .optionA()
  13465. .optionB("value")
  13466. .cache()
  13467. .build()
  13468. } else if (fs instanceof BarFileSystem) {
  13469. ...
  13470. }
  13471. // Do
  13472. OutputStream out = fs.createFile(path)
  13473. .permission(perm)
  13474. .bufferSize(bufSize)
  13475. .opt("foofs:option.a", true)
  13476. .opt("foofs:option.b", "value")
  13477. .opt("barfs:cache", true)
  13478. .must("foofs:cache", true)
  13479. .must("barfs:cache-size", 256 * 1024 * 1024)
  13480. .build();
  13481. </code>
  13482. If the option is not related to the file system, the option will be ignored.
  13483. If the option is must, but not supported by the file system, a
  13484. {@link IllegalArgumentException} will be thrown.]]>
  13485. </doc>
  13486. </class>
  13487. <!-- end class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  13488. <!-- start class org.apache.hadoop.fs.FSError -->
  13489. <class name="FSError" extends="java.lang.Error"
  13490. abstract="false"
  13491. static="false" final="false" visibility="public"
  13492. deprecated="not deprecated">
  13493. <doc>
  13494. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  13495. in the native filesystem.]]>
  13496. </doc>
  13497. </class>
  13498. <!-- end class org.apache.hadoop.fs.FSError -->
  13499. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  13500. <class name="FSInputStream" extends="java.io.InputStream"
  13501. abstract="true"
  13502. static="false" final="false" visibility="public"
  13503. deprecated="not deprecated">
  13504. <implements name="org.apache.hadoop.fs.Seekable"/>
  13505. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  13506. <constructor name="FSInputStream"
  13507. static="false" final="false" visibility="public"
  13508. deprecated="not deprecated">
  13509. </constructor>
  13510. <method name="seek"
  13511. abstract="true" native="false" synchronized="false"
  13512. static="false" final="false" visibility="public"
  13513. deprecated="not deprecated">
  13514. <param name="pos" type="long"/>
  13515. <exception name="IOException" type="java.io.IOException"/>
  13516. <doc>
  13517. <![CDATA[Seek to the given offset from the start of the file.
  13518. The next read() will be from that location. Can't
  13519. seek past the end of the file.]]>
  13520. </doc>
  13521. </method>
  13522. <method name="getPos" return="long"
  13523. abstract="true" native="false" synchronized="false"
  13524. static="false" final="false" visibility="public"
  13525. deprecated="not deprecated">
  13526. <exception name="IOException" type="java.io.IOException"/>
  13527. <doc>
  13528. <![CDATA[Return the current offset from the start of the file]]>
  13529. </doc>
  13530. </method>
  13531. <method name="seekToNewSource" return="boolean"
  13532. abstract="true" native="false" synchronized="false"
  13533. static="false" final="false" visibility="public"
  13534. deprecated="not deprecated">
  13535. <param name="targetPos" type="long"/>
  13536. <exception name="IOException" type="java.io.IOException"/>
  13537. <doc>
  13538. <![CDATA[Seeks a different copy of the data. Returns true if
  13539. found a new source, false otherwise.]]>
  13540. </doc>
  13541. </method>
  13542. <method name="read" return="int"
  13543. abstract="false" native="false" synchronized="false"
  13544. static="false" final="false" visibility="public"
  13545. deprecated="not deprecated">
  13546. <param name="position" type="long"/>
  13547. <param name="buffer" type="byte[]"/>
  13548. <param name="offset" type="int"/>
  13549. <param name="length" type="int"/>
  13550. <exception name="IOException" type="java.io.IOException"/>
  13551. </method>
  13552. <method name="validatePositionedReadArgs"
  13553. abstract="false" native="false" synchronized="false"
  13554. static="false" final="false" visibility="protected"
  13555. deprecated="not deprecated">
  13556. <param name="position" type="long"/>
  13557. <param name="buffer" type="byte[]"/>
  13558. <param name="offset" type="int"/>
  13559. <param name="length" type="int"/>
  13560. <exception name="EOFException" type="java.io.EOFException"/>
  13561. <doc>
  13562. <![CDATA[Validation code, available for use in subclasses.
  13563. @param position position: if negative an EOF exception is raised
  13564. @param buffer destination buffer
  13565. @param offset offset within the buffer
  13566. @param length length of bytes to read
  13567. @throws EOFException if the position is negative
  13568. @throws IndexOutOfBoundsException if there isn't space for the amount of
  13569. data requested.
  13570. @throws IllegalArgumentException other arguments are invalid.]]>
  13571. </doc>
  13572. </method>
  13573. <method name="readFully"
  13574. abstract="false" native="false" synchronized="false"
  13575. static="false" final="false" visibility="public"
  13576. deprecated="not deprecated">
  13577. <param name="position" type="long"/>
  13578. <param name="buffer" type="byte[]"/>
  13579. <param name="offset" type="int"/>
  13580. <param name="length" type="int"/>
  13581. <exception name="IOException" type="java.io.IOException"/>
  13582. </method>
  13583. <method name="readFully"
  13584. abstract="false" native="false" synchronized="false"
  13585. static="false" final="false" visibility="public"
  13586. deprecated="not deprecated">
  13587. <param name="position" type="long"/>
  13588. <param name="buffer" type="byte[]"/>
  13589. <exception name="IOException" type="java.io.IOException"/>
  13590. </method>
  13591. <doc>
  13592. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  13593. of RAF-style seek ability.]]>
  13594. </doc>
  13595. </class>
  13596. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  13597. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  13598. <class name="FsServerDefaults" extends="java.lang.Object"
  13599. abstract="false"
  13600. static="false" final="false" visibility="public"
  13601. deprecated="not deprecated">
  13602. <implements name="org.apache.hadoop.io.Writable"/>
  13603. <constructor name="FsServerDefaults"
  13604. static="false" final="false" visibility="public"
  13605. deprecated="not deprecated">
  13606. </constructor>
  13607. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type"
  13608. static="false" final="false" visibility="public"
  13609. deprecated="not deprecated">
  13610. </constructor>
  13611. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String"
  13612. static="false" final="false" visibility="public"
  13613. deprecated="not deprecated">
  13614. </constructor>
  13615. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String, byte"
  13616. static="false" final="false" visibility="public"
  13617. deprecated="not deprecated">
  13618. </constructor>
  13619. <method name="getBlockSize" return="long"
  13620. abstract="false" native="false" synchronized="false"
  13621. static="false" final="false" visibility="public"
  13622. deprecated="not deprecated">
  13623. </method>
  13624. <method name="getBytesPerChecksum" return="int"
  13625. abstract="false" native="false" synchronized="false"
  13626. static="false" final="false" visibility="public"
  13627. deprecated="not deprecated">
  13628. </method>
  13629. <method name="getWritePacketSize" return="int"
  13630. abstract="false" native="false" synchronized="false"
  13631. static="false" final="false" visibility="public"
  13632. deprecated="not deprecated">
  13633. </method>
  13634. <method name="getReplication" return="short"
  13635. abstract="false" native="false" synchronized="false"
  13636. static="false" final="false" visibility="public"
  13637. deprecated="not deprecated">
  13638. </method>
  13639. <method name="getFileBufferSize" return="int"
  13640. abstract="false" native="false" synchronized="false"
  13641. static="false" final="false" visibility="public"
  13642. deprecated="not deprecated">
  13643. </method>
  13644. <method name="getEncryptDataTransfer" return="boolean"
  13645. abstract="false" native="false" synchronized="false"
  13646. static="false" final="false" visibility="public"
  13647. deprecated="not deprecated">
  13648. </method>
  13649. <method name="getTrashInterval" return="long"
  13650. abstract="false" native="false" synchronized="false"
  13651. static="false" final="false" visibility="public"
  13652. deprecated="not deprecated">
  13653. </method>
  13654. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  13655. abstract="false" native="false" synchronized="false"
  13656. static="false" final="false" visibility="public"
  13657. deprecated="not deprecated">
  13658. </method>
  13659. <method name="getKeyProviderUri" return="java.lang.String"
  13660. abstract="false" native="false" synchronized="false"
  13661. static="false" final="false" visibility="public"
  13662. deprecated="not deprecated">
  13663. </method>
  13664. <method name="getDefaultStoragePolicyId" return="byte"
  13665. abstract="false" native="false" synchronized="false"
  13666. static="false" final="false" visibility="public"
  13667. deprecated="not deprecated">
  13668. </method>
  13669. <doc>
  13670. <![CDATA[Provides server default configuration values to clients.]]>
  13671. </doc>
  13672. </class>
  13673. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  13674. <!-- start class org.apache.hadoop.fs.FsStatus -->
  13675. <class name="FsStatus" extends="java.lang.Object"
  13676. abstract="false"
  13677. static="false" final="false" visibility="public"
  13678. deprecated="not deprecated">
  13679. <implements name="org.apache.hadoop.io.Writable"/>
  13680. <constructor name="FsStatus" type="long, long, long"
  13681. static="false" final="false" visibility="public"
  13682. deprecated="not deprecated">
  13683. <doc>
  13684. <![CDATA[Construct a FsStatus object, using the specified statistics]]>
  13685. </doc>
  13686. </constructor>
  13687. <method name="getCapacity" return="long"
  13688. abstract="false" native="false" synchronized="false"
  13689. static="false" final="false" visibility="public"
  13690. deprecated="not deprecated">
  13691. <doc>
  13692. <![CDATA[Return the capacity in bytes of the file system]]>
  13693. </doc>
  13694. </method>
  13695. <method name="getUsed" return="long"
  13696. abstract="false" native="false" synchronized="false"
  13697. static="false" final="false" visibility="public"
  13698. deprecated="not deprecated">
  13699. <doc>
  13700. <![CDATA[Return the number of bytes used on the file system]]>
  13701. </doc>
  13702. </method>
  13703. <method name="getRemaining" return="long"
  13704. abstract="false" native="false" synchronized="false"
  13705. static="false" final="false" visibility="public"
  13706. deprecated="not deprecated">
  13707. <doc>
  13708. <![CDATA[Return the number of remaining bytes on the file system]]>
  13709. </doc>
  13710. </method>
  13711. <method name="write"
  13712. abstract="false" native="false" synchronized="false"
  13713. static="false" final="false" visibility="public"
  13714. deprecated="not deprecated">
  13715. <param name="out" type="java.io.DataOutput"/>
  13716. <exception name="IOException" type="java.io.IOException"/>
  13717. </method>
  13718. <method name="readFields"
  13719. abstract="false" native="false" synchronized="false"
  13720. static="false" final="false" visibility="public"
  13721. deprecated="not deprecated">
  13722. <param name="in" type="java.io.DataInput"/>
  13723. <exception name="IOException" type="java.io.IOException"/>
  13724. </method>
  13725. <doc>
  13726. <![CDATA[This class is used to represent the capacity, free and used space on a
  13727. {@link FileSystem}.]]>
  13728. </doc>
  13729. </class>
  13730. <!-- end class org.apache.hadoop.fs.FsStatus -->
  13731. <!-- start class org.apache.hadoop.fs.GlobalStorageStatistics -->
  13732. <class name="GlobalStorageStatistics" extends="java.lang.Enum"
  13733. abstract="false"
  13734. static="false" final="true" visibility="public"
  13735. deprecated="not deprecated">
  13736. <method name="values" return="org.apache.hadoop.fs.GlobalStorageStatistics[]"
  13737. abstract="false" native="false" synchronized="false"
  13738. static="true" final="false" visibility="public"
  13739. deprecated="not deprecated">
  13740. </method>
  13741. <method name="valueOf" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  13742. abstract="false" native="false" synchronized="false"
  13743. static="true" final="false" visibility="public"
  13744. deprecated="not deprecated">
  13745. <param name="name" type="java.lang.String"/>
  13746. </method>
  13747. <method name="get" return="org.apache.hadoop.fs.StorageStatistics"
  13748. abstract="false" native="false" synchronized="true"
  13749. static="false" final="false" visibility="public"
  13750. deprecated="not deprecated">
  13751. <param name="name" type="java.lang.String"/>
  13752. <doc>
  13753. <![CDATA[Get the StorageStatistics object with the given name.
  13754. @param name The storage statistics object name.
  13755. @return The StorageStatistics object with the given name, or
  13756. null if there is none.]]>
  13757. </doc>
  13758. </method>
  13759. <method name="put" return="org.apache.hadoop.fs.StorageStatistics"
  13760. abstract="false" native="false" synchronized="true"
  13761. static="false" final="false" visibility="public"
  13762. deprecated="not deprecated">
  13763. <param name="name" type="java.lang.String"/>
  13764. <param name="provider" type="org.apache.hadoop.fs.GlobalStorageStatistics.StorageStatisticsProvider"/>
  13765. <doc>
  13766. <![CDATA[Create or return the StorageStatistics object with the given name.
  13767. @param name The storage statistics object name.
  13768. @param provider An object which can create a new StorageStatistics
  13769. object if needed.
  13770. @return The StorageStatistics object with the given name.
  13771. @throws RuntimeException If the StorageStatisticsProvider provides a null
  13772. object or a new StorageStatistics object with the
  13773. wrong name.]]>
  13774. </doc>
  13775. </method>
  13776. <method name="reset"
  13777. abstract="false" native="false" synchronized="true"
  13778. static="false" final="false" visibility="public"
  13779. deprecated="not deprecated">
  13780. <doc>
  13781. <![CDATA[Reset all global storage statistics.]]>
  13782. </doc>
  13783. </method>
  13784. <method name="iterator" return="java.util.Iterator"
  13785. abstract="false" native="false" synchronized="true"
  13786. static="false" final="false" visibility="public"
  13787. deprecated="not deprecated">
  13788. <doc>
  13789. <![CDATA[Get an iterator that we can use to iterate throw all the global storage
  13790. statistics objects.]]>
  13791. </doc>
  13792. </method>
  13793. <doc>
  13794. <![CDATA[Stores global storage statistics objects.]]>
  13795. </doc>
  13796. </class>
  13797. <!-- end class org.apache.hadoop.fs.GlobalStorageStatistics -->
  13798. <!-- start class org.apache.hadoop.fs.GlobFilter -->
  13799. <class name="GlobFilter" extends="java.lang.Object"
  13800. abstract="false"
  13801. static="false" final="false" visibility="public"
  13802. deprecated="not deprecated">
  13803. <implements name="org.apache.hadoop.fs.PathFilter"/>
  13804. <constructor name="GlobFilter" type="java.lang.String"
  13805. static="false" final="false" visibility="public"
  13806. deprecated="not deprecated">
  13807. <exception name="IOException" type="java.io.IOException"/>
  13808. <doc>
  13809. <![CDATA[Creates a glob filter with the specified file pattern.
  13810. @param filePattern the file pattern.
  13811. @throws IOException thrown if the file pattern is incorrect.]]>
  13812. </doc>
  13813. </constructor>
  13814. <constructor name="GlobFilter" type="java.lang.String, org.apache.hadoop.fs.PathFilter"
  13815. static="false" final="false" visibility="public"
  13816. deprecated="not deprecated">
  13817. <exception name="IOException" type="java.io.IOException"/>
  13818. <doc>
  13819. <![CDATA[Creates a glob filter with the specified file pattern and an user filter.
  13820. @param filePattern the file pattern.
  13821. @param filter user filter in addition to the glob pattern.
  13822. @throws IOException thrown if the file pattern is incorrect.]]>
  13823. </doc>
  13824. </constructor>
  13825. <method name="hasPattern" return="boolean"
  13826. abstract="false" native="false" synchronized="false"
  13827. static="false" final="false" visibility="public"
  13828. deprecated="not deprecated">
  13829. </method>
  13830. <method name="accept" return="boolean"
  13831. abstract="false" native="false" synchronized="false"
  13832. static="false" final="false" visibility="public"
  13833. deprecated="not deprecated">
  13834. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13835. </method>
  13836. <doc>
  13837. <![CDATA[A filter for POSIX glob pattern with brace expansions.]]>
  13838. </doc>
  13839. </class>
  13840. <!-- end class org.apache.hadoop.fs.GlobFilter -->
  13841. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  13842. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  13843. abstract="false"
  13844. static="false" final="false" visibility="public"
  13845. deprecated="not deprecated">
  13846. <constructor name="InvalidPathException" type="java.lang.String"
  13847. static="false" final="false" visibility="public"
  13848. deprecated="not deprecated">
  13849. <doc>
  13850. <![CDATA[Constructs exception with the specified detail message.
  13851. @param path invalid path.]]>
  13852. </doc>
  13853. </constructor>
  13854. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  13855. static="false" final="false" visibility="public"
  13856. deprecated="not deprecated">
  13857. <doc>
  13858. <![CDATA[Constructs exception with the specified detail message.
  13859. @param path invalid path.
  13860. @param reason Reason <code>path</code> is invalid]]>
  13861. </doc>
  13862. </constructor>
  13863. <doc>
  13864. <![CDATA[Path string is invalid either because it has invalid characters or due to
  13865. other file system specific reasons.]]>
  13866. </doc>
  13867. </class>
  13868. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  13869. <!-- start class org.apache.hadoop.fs.InvalidPathHandleException -->
  13870. <class name="InvalidPathHandleException" extends="java.io.IOException"
  13871. abstract="false"
  13872. static="false" final="false" visibility="public"
  13873. deprecated="not deprecated">
  13874. <constructor name="InvalidPathHandleException" type="java.lang.String"
  13875. static="false" final="false" visibility="public"
  13876. deprecated="not deprecated">
  13877. </constructor>
  13878. <constructor name="InvalidPathHandleException" type="java.lang.String, java.lang.Throwable"
  13879. static="false" final="false" visibility="public"
  13880. deprecated="not deprecated">
  13881. </constructor>
  13882. <doc>
  13883. <![CDATA[Thrown when the constraints enoded in a {@link PathHandle} do not hold.
  13884. For example, if a handle were created with the default
  13885. {@link Options.HandleOpt#path()} constraints, a call to
  13886. {@link FileSystem#open(PathHandle)} would succeed if the file were
  13887. modified, but if a different file was at that location then it would throw
  13888. this exception.]]>
  13889. </doc>
  13890. </class>
  13891. <!-- end class org.apache.hadoop.fs.InvalidPathHandleException -->
  13892. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  13893. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  13894. abstract="false"
  13895. static="false" final="false" visibility="public"
  13896. deprecated="not deprecated">
  13897. <constructor name="LocalFileSystem"
  13898. static="false" final="false" visibility="public"
  13899. deprecated="not deprecated">
  13900. </constructor>
  13901. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  13902. static="false" final="false" visibility="public"
  13903. deprecated="not deprecated">
  13904. </constructor>
  13905. <method name="initialize"
  13906. abstract="false" native="false" synchronized="false"
  13907. static="false" final="false" visibility="public"
  13908. deprecated="not deprecated">
  13909. <param name="name" type="java.net.URI"/>
  13910. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13911. <exception name="IOException" type="java.io.IOException"/>
  13912. </method>
  13913. <method name="getScheme" return="java.lang.String"
  13914. abstract="false" native="false" synchronized="false"
  13915. static="false" final="false" visibility="public"
  13916. deprecated="not deprecated">
  13917. <doc>
  13918. <![CDATA[Return the protocol scheme for the FileSystem.
  13919. <p/>
  13920. @return <code>file</code>]]>
  13921. </doc>
  13922. </method>
  13923. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  13924. abstract="false" native="false" synchronized="false"
  13925. static="false" final="false" visibility="public"
  13926. deprecated="not deprecated">
  13927. </method>
  13928. <method name="pathToFile" return="java.io.File"
  13929. abstract="false" native="false" synchronized="false"
  13930. static="false" final="false" visibility="public"
  13931. deprecated="not deprecated">
  13932. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13933. <doc>
  13934. <![CDATA[Convert a path to a File.]]>
  13935. </doc>
  13936. </method>
  13937. <method name="copyFromLocalFile"
  13938. abstract="false" native="false" synchronized="false"
  13939. static="false" final="false" visibility="public"
  13940. deprecated="not deprecated">
  13941. <param name="delSrc" type="boolean"/>
  13942. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13943. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13944. <exception name="IOException" type="java.io.IOException"/>
  13945. </method>
  13946. <method name="copyToLocalFile"
  13947. abstract="false" native="false" synchronized="false"
  13948. static="false" final="false" visibility="public"
  13949. deprecated="not deprecated">
  13950. <param name="delSrc" type="boolean"/>
  13951. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13952. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13953. <exception name="IOException" type="java.io.IOException"/>
  13954. </method>
  13955. <method name="reportChecksumFailure" return="boolean"
  13956. abstract="false" native="false" synchronized="false"
  13957. static="false" final="false" visibility="public"
  13958. deprecated="not deprecated">
  13959. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13960. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  13961. <param name="inPos" type="long"/>
  13962. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  13963. <param name="sumsPos" type="long"/>
  13964. <doc>
  13965. <![CDATA[Moves files to a bad file directory on the same device, so that their
  13966. storage will not be reused.]]>
  13967. </doc>
  13968. </method>
  13969. <method name="supportsSymlinks" return="boolean"
  13970. abstract="false" native="false" synchronized="false"
  13971. static="false" final="false" visibility="public"
  13972. deprecated="not deprecated">
  13973. </method>
  13974. <method name="createSymlink"
  13975. abstract="false" native="false" synchronized="false"
  13976. static="false" final="false" visibility="public"
  13977. deprecated="not deprecated">
  13978. <param name="target" type="org.apache.hadoop.fs.Path"/>
  13979. <param name="link" type="org.apache.hadoop.fs.Path"/>
  13980. <param name="createParent" type="boolean"/>
  13981. <exception name="IOException" type="java.io.IOException"/>
  13982. </method>
  13983. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  13984. abstract="false" native="false" synchronized="false"
  13985. static="false" final="false" visibility="public"
  13986. deprecated="not deprecated">
  13987. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13988. <exception name="IOException" type="java.io.IOException"/>
  13989. </method>
  13990. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  13991. abstract="false" native="false" synchronized="false"
  13992. static="false" final="false" visibility="public"
  13993. deprecated="not deprecated">
  13994. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13995. <exception name="IOException" type="java.io.IOException"/>
  13996. </method>
  13997. <doc>
  13998. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  13999. </doc>
  14000. </class>
  14001. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  14002. <!-- start class org.apache.hadoop.fs.LocatedFileStatus -->
  14003. <class name="LocatedFileStatus" extends="org.apache.hadoop.fs.FileStatus"
  14004. abstract="false"
  14005. static="false" final="false" visibility="public"
  14006. deprecated="not deprecated">
  14007. <constructor name="LocatedFileStatus"
  14008. static="false" final="false" visibility="public"
  14009. deprecated="not deprecated">
  14010. </constructor>
  14011. <constructor name="LocatedFileStatus" type="org.apache.hadoop.fs.FileStatus, org.apache.hadoop.fs.BlockLocation[]"
  14012. static="false" final="false" visibility="public"
  14013. deprecated="not deprecated">
  14014. <doc>
  14015. <![CDATA[Constructor
  14016. @param stat a file status
  14017. @param locations a file's block locations]]>
  14018. </doc>
  14019. </constructor>
  14020. <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[]"
  14021. static="false" final="false" visibility="public"
  14022. deprecated="not deprecated">
  14023. <doc>
  14024. <![CDATA[Constructor
  14025. @param length a file's length
  14026. @param isdir if the path is a directory
  14027. @param block_replication the file's replication factor
  14028. @param blocksize a file's block size
  14029. @param modification_time a file's modification time
  14030. @param access_time a file's access time
  14031. @param permission a file's permission
  14032. @param owner a file's owner
  14033. @param group a file's group
  14034. @param symlink symlink if the path is a symbolic link
  14035. @param path the path's qualified name
  14036. @param locations a file's block locations]]>
  14037. </doc>
  14038. </constructor>
  14039. <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[]"
  14040. static="false" final="false" visibility="public"
  14041. deprecated="not deprecated">
  14042. <doc>
  14043. <![CDATA[Constructor.
  14044. @param length a file's length
  14045. @param isdir if the path is a directory
  14046. @param block_replication the file's replication factor
  14047. @param blocksize a file's block size
  14048. @param modification_time a file's modification time
  14049. @param access_time a file's access time
  14050. @param permission a file's permission
  14051. @param owner a file's owner
  14052. @param group a file's group
  14053. @param symlink symlink if the path is a symbolic link
  14054. @param path the path's qualified name
  14055. @param hasAcl entity has associated ACLs
  14056. @param isEncrypted entity is encrypted
  14057. @param isErasureCoded entity is erasure coded
  14058. @param locations a file's block locations]]>
  14059. </doc>
  14060. </constructor>
  14061. <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[]"
  14062. static="false" final="false" visibility="public"
  14063. deprecated="not deprecated">
  14064. <doc>
  14065. <![CDATA[Constructor.
  14066. @param length a file's length
  14067. @param isdir if the path is a directory
  14068. @param block_replication the file's replication factor
  14069. @param blocksize a file's block size
  14070. @param modification_time a file's modification time
  14071. @param access_time a file's access time
  14072. @param permission a file's permission
  14073. @param owner a file's owner
  14074. @param group a file's group
  14075. @param symlink symlink if the path is a symbolic link
  14076. @param path the path's qualified name
  14077. @param attr Attribute flags (See {@link FileStatus.AttrFlags}).
  14078. @param locations a file's block locations]]>
  14079. </doc>
  14080. </constructor>
  14081. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  14082. abstract="false" native="false" synchronized="false"
  14083. static="false" final="false" visibility="public"
  14084. deprecated="not deprecated">
  14085. <doc>
  14086. <![CDATA[Get the file's block locations
  14087. In HDFS, the returned BlockLocation will have different formats for
  14088. replicated and erasure coded file.
  14089. Please refer to
  14090. {@link FileSystem#getFileBlockLocations(FileStatus, long, long)}
  14091. for more details.
  14092. @return the file's block locations]]>
  14093. </doc>
  14094. </method>
  14095. <method name="setBlockLocations"
  14096. abstract="false" native="false" synchronized="false"
  14097. static="false" final="false" visibility="protected"
  14098. deprecated="not deprecated">
  14099. <param name="locations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  14100. <doc>
  14101. <![CDATA[Hook for subclasses to lazily set block locations. The {@link #locations}
  14102. field should be null before this is called.
  14103. @param locations Block locations for this instance.]]>
  14104. </doc>
  14105. </method>
  14106. <method name="compareTo" return="int"
  14107. abstract="false" native="false" synchronized="false"
  14108. static="false" final="false" visibility="public"
  14109. deprecated="not deprecated">
  14110. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  14111. <doc>
  14112. <![CDATA[Compare this FileStatus to another FileStatus
  14113. @param o the FileStatus to be compared.
  14114. @return a negative integer, zero, or a positive integer as this object
  14115. is less than, equal to, or greater than the specified object.]]>
  14116. </doc>
  14117. </method>
  14118. <method name="equals" return="boolean"
  14119. abstract="false" native="false" synchronized="false"
  14120. static="false" final="false" visibility="public"
  14121. deprecated="not deprecated">
  14122. <param name="o" type="java.lang.Object"/>
  14123. <doc>
  14124. <![CDATA[Compare if this object is equal to another object
  14125. @param o the object to be compared.
  14126. @return true if two file status has the same path name; false if not.]]>
  14127. </doc>
  14128. </method>
  14129. <method name="hashCode" return="int"
  14130. abstract="false" native="false" synchronized="false"
  14131. static="false" final="false" visibility="public"
  14132. deprecated="not deprecated">
  14133. <doc>
  14134. <![CDATA[Returns a hash code value for the object, which is defined as
  14135. the hash code of the path name.
  14136. @return a hash code value for the path name.]]>
  14137. </doc>
  14138. </method>
  14139. <doc>
  14140. <![CDATA[This class defines a FileStatus that includes a file's block locations.]]>
  14141. </doc>
  14142. </class>
  14143. <!-- end class org.apache.hadoop.fs.LocatedFileStatus -->
  14144. <!-- start class org.apache.hadoop.fs.Options -->
  14145. <class name="Options" extends="java.lang.Object"
  14146. abstract="false"
  14147. static="false" final="true" visibility="public"
  14148. deprecated="not deprecated">
  14149. <constructor name="Options"
  14150. static="false" final="false" visibility="public"
  14151. deprecated="not deprecated">
  14152. </constructor>
  14153. <doc>
  14154. <![CDATA[This class contains options related to file system operations.]]>
  14155. </doc>
  14156. </class>
  14157. <!-- end class org.apache.hadoop.fs.Options -->
  14158. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  14159. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  14160. abstract="false"
  14161. static="false" final="false" visibility="public"
  14162. deprecated="not deprecated">
  14163. <constructor name="ParentNotDirectoryException"
  14164. static="false" final="false" visibility="public"
  14165. deprecated="not deprecated">
  14166. </constructor>
  14167. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  14168. static="false" final="false" visibility="public"
  14169. deprecated="not deprecated">
  14170. </constructor>
  14171. <doc>
  14172. <![CDATA[Indicates that the parent of specified Path is not a directory
  14173. as expected.]]>
  14174. </doc>
  14175. </class>
  14176. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  14177. <!-- start interface org.apache.hadoop.fs.PartHandle -->
  14178. <interface name="PartHandle" abstract="true"
  14179. static="false" final="false" visibility="public"
  14180. deprecated="not deprecated">
  14181. <implements name="java.io.Serializable"/>
  14182. <method name="toByteArray" return="byte[]"
  14183. abstract="false" native="false" synchronized="false"
  14184. static="false" final="false" visibility="public"
  14185. deprecated="not deprecated">
  14186. <doc>
  14187. <![CDATA[@return Serialized from in bytes.]]>
  14188. </doc>
  14189. </method>
  14190. <method name="bytes" return="java.nio.ByteBuffer"
  14191. abstract="true" native="false" synchronized="false"
  14192. static="false" final="false" visibility="public"
  14193. deprecated="not deprecated">
  14194. </method>
  14195. <method name="equals" return="boolean"
  14196. abstract="true" native="false" synchronized="false"
  14197. static="false" final="false" visibility="public"
  14198. deprecated="not deprecated">
  14199. <param name="other" type="java.lang.Object"/>
  14200. </method>
  14201. <doc>
  14202. <![CDATA[Opaque, serializable reference to a part id for multipart uploads.]]>
  14203. </doc>
  14204. </interface>
  14205. <!-- end interface org.apache.hadoop.fs.PartHandle -->
  14206. <!-- start class org.apache.hadoop.fs.Path -->
  14207. <class name="Path" extends="java.lang.Object"
  14208. abstract="false"
  14209. static="false" final="false" visibility="public"
  14210. deprecated="not deprecated">
  14211. <implements name="java.lang.Comparable"/>
  14212. <implements name="java.io.Serializable"/>
  14213. <implements name="java.io.ObjectInputValidation"/>
  14214. <constructor name="Path" type="java.lang.String, java.lang.String"
  14215. static="false" final="false" visibility="public"
  14216. deprecated="not deprecated">
  14217. <doc>
  14218. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  14219. @param parent the parent path
  14220. @param child the child path]]>
  14221. </doc>
  14222. </constructor>
  14223. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  14224. static="false" final="false" visibility="public"
  14225. deprecated="not deprecated">
  14226. <doc>
  14227. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  14228. @param parent the parent path
  14229. @param child the child path]]>
  14230. </doc>
  14231. </constructor>
  14232. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  14233. static="false" final="false" visibility="public"
  14234. deprecated="not deprecated">
  14235. <doc>
  14236. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  14237. @param parent the parent path
  14238. @param child the child path]]>
  14239. </doc>
  14240. </constructor>
  14241. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  14242. static="false" final="false" visibility="public"
  14243. deprecated="not deprecated">
  14244. <doc>
  14245. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  14246. @param parent the parent path
  14247. @param child the child path]]>
  14248. </doc>
  14249. </constructor>
  14250. <constructor name="Path" type="java.lang.String"
  14251. static="false" final="false" visibility="public"
  14252. deprecated="not deprecated">
  14253. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14254. <doc>
  14255. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  14256. unescaped elements and some additional normalization.
  14257. @param pathString the path string]]>
  14258. </doc>
  14259. </constructor>
  14260. <constructor name="Path" type="java.net.URI"
  14261. static="false" final="false" visibility="public"
  14262. deprecated="not deprecated">
  14263. <doc>
  14264. <![CDATA[Construct a path from a URI
  14265. @param aUri the source URI]]>
  14266. </doc>
  14267. </constructor>
  14268. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  14269. static="false" final="false" visibility="public"
  14270. deprecated="not deprecated">
  14271. <doc>
  14272. <![CDATA[Construct a Path from components.
  14273. @param scheme the scheme
  14274. @param authority the authority
  14275. @param path the path]]>
  14276. </doc>
  14277. </constructor>
  14278. <method name="getPathWithoutSchemeAndAuthority" return="org.apache.hadoop.fs.Path"
  14279. abstract="false" native="false" synchronized="false"
  14280. static="true" final="false" visibility="public"
  14281. deprecated="not deprecated">
  14282. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14283. <doc>
  14284. <![CDATA[Return a version of the given Path without the scheme information.
  14285. @param path the source Path
  14286. @return a copy of this Path without the scheme information]]>
  14287. </doc>
  14288. </method>
  14289. <method name="mergePaths" return="org.apache.hadoop.fs.Path"
  14290. abstract="false" native="false" synchronized="false"
  14291. static="true" final="false" visibility="public"
  14292. deprecated="not deprecated">
  14293. <param name="path1" type="org.apache.hadoop.fs.Path"/>
  14294. <param name="path2" type="org.apache.hadoop.fs.Path"/>
  14295. <doc>
  14296. <![CDATA[Merge 2 paths such that the second path is appended relative to the first.
  14297. The returned path has the scheme and authority of the first path. On
  14298. Windows, the drive specification in the second path is discarded.
  14299. @param path1 the first path
  14300. @param path2 the second path, to be appended relative to path1
  14301. @return the merged path]]>
  14302. </doc>
  14303. </method>
  14304. <method name="isWindowsAbsolutePath" return="boolean"
  14305. abstract="false" native="false" synchronized="false"
  14306. static="true" final="false" visibility="public"
  14307. deprecated="not deprecated">
  14308. <param name="pathString" type="java.lang.String"/>
  14309. <param name="slashed" type="boolean"/>
  14310. <doc>
  14311. <![CDATA[Determine whether a given path string represents an absolute path on
  14312. Windows. e.g. "C:/a/b" is an absolute path. "C:a/b" is not.
  14313. @param pathString the path string to evaluate
  14314. @param slashed true if the given path is prefixed with "/"
  14315. @return true if the supplied path looks like an absolute path with a Windows
  14316. drive-specifier]]>
  14317. </doc>
  14318. </method>
  14319. <method name="toUri" return="java.net.URI"
  14320. abstract="false" native="false" synchronized="false"
  14321. static="false" final="false" visibility="public"
  14322. deprecated="not deprecated">
  14323. <doc>
  14324. <![CDATA[Convert this Path to a URI.
  14325. @return this Path as a URI]]>
  14326. </doc>
  14327. </method>
  14328. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  14329. abstract="false" native="false" synchronized="false"
  14330. static="false" final="false" visibility="public"
  14331. deprecated="not deprecated">
  14332. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14333. <exception name="IOException" type="java.io.IOException"/>
  14334. <doc>
  14335. <![CDATA[Return the FileSystem that owns this Path.
  14336. @param conf the configuration to use when resolving the FileSystem
  14337. @return the FileSystem that owns this Path
  14338. @throws java.io.IOException thrown if there's an issue resolving the
  14339. FileSystem]]>
  14340. </doc>
  14341. </method>
  14342. <method name="isAbsoluteAndSchemeAuthorityNull" return="boolean"
  14343. abstract="false" native="false" synchronized="false"
  14344. static="false" final="false" visibility="public"
  14345. deprecated="not deprecated">
  14346. <doc>
  14347. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  14348. absolute <strong>and</strong> the scheme is null, <b>and</b> the authority
  14349. is null.
  14350. @return whether the path is absolute and the URI has no scheme nor
  14351. authority parts]]>
  14352. </doc>
  14353. </method>
  14354. <method name="isUriPathAbsolute" return="boolean"
  14355. abstract="false" native="false" synchronized="false"
  14356. static="false" final="false" visibility="public"
  14357. deprecated="not deprecated">
  14358. <doc>
  14359. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  14360. absolute.
  14361. @return whether this URI's path is absolute]]>
  14362. </doc>
  14363. </method>
  14364. <method name="isAbsolute" return="boolean"
  14365. abstract="false" native="false" synchronized="false"
  14366. static="false" final="false" visibility="public"
  14367. deprecated="not deprecated">
  14368. <doc>
  14369. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  14370. absolute. This method is a wrapper for {@link #isUriPathAbsolute()}.
  14371. @return whether this URI's path is absolute]]>
  14372. </doc>
  14373. </method>
  14374. <method name="isRoot" return="boolean"
  14375. abstract="false" native="false" synchronized="false"
  14376. static="false" final="false" visibility="public"
  14377. deprecated="not deprecated">
  14378. <doc>
  14379. <![CDATA[Returns true if and only if this path represents the root of a file system.
  14380. @return true if and only if this path represents the root of a file system]]>
  14381. </doc>
  14382. </method>
  14383. <method name="getName" return="java.lang.String"
  14384. abstract="false" native="false" synchronized="false"
  14385. static="false" final="false" visibility="public"
  14386. deprecated="not deprecated">
  14387. <doc>
  14388. <![CDATA[Returns the final component of this path.
  14389. @return the final component of this path]]>
  14390. </doc>
  14391. </method>
  14392. <method name="getParent" return="org.apache.hadoop.fs.Path"
  14393. abstract="false" native="false" synchronized="false"
  14394. static="false" final="false" visibility="public"
  14395. deprecated="not deprecated">
  14396. <doc>
  14397. <![CDATA[Returns the parent of a path or null if at root.
  14398. @return the parent of a path or null if at root]]>
  14399. </doc>
  14400. </method>
  14401. <method name="suffix" return="org.apache.hadoop.fs.Path"
  14402. abstract="false" native="false" synchronized="false"
  14403. static="false" final="false" visibility="public"
  14404. deprecated="not deprecated">
  14405. <param name="suffix" type="java.lang.String"/>
  14406. <doc>
  14407. <![CDATA[Adds a suffix to the final name in the path.
  14408. @param suffix the suffix to add
  14409. @return a new path with the suffix added]]>
  14410. </doc>
  14411. </method>
  14412. <method name="toString" return="java.lang.String"
  14413. abstract="false" native="false" synchronized="false"
  14414. static="false" final="false" visibility="public"
  14415. deprecated="not deprecated">
  14416. </method>
  14417. <method name="equals" return="boolean"
  14418. abstract="false" native="false" synchronized="false"
  14419. static="false" final="false" visibility="public"
  14420. deprecated="not deprecated">
  14421. <param name="o" type="java.lang.Object"/>
  14422. </method>
  14423. <method name="hashCode" return="int"
  14424. abstract="false" native="false" synchronized="false"
  14425. static="false" final="false" visibility="public"
  14426. deprecated="not deprecated">
  14427. </method>
  14428. <method name="compareTo" return="int"
  14429. abstract="false" native="false" synchronized="false"
  14430. static="false" final="false" visibility="public"
  14431. deprecated="not deprecated">
  14432. <param name="o" type="org.apache.hadoop.fs.Path"/>
  14433. </method>
  14434. <method name="depth" return="int"
  14435. abstract="false" native="false" synchronized="false"
  14436. static="false" final="false" visibility="public"
  14437. deprecated="not deprecated">
  14438. <doc>
  14439. <![CDATA[Returns the number of elements in this path.
  14440. @return the number of elements in this path]]>
  14441. </doc>
  14442. </method>
  14443. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  14444. abstract="false" native="false" synchronized="false"
  14445. static="false" final="false" visibility="public"
  14446. deprecated="use {@link #makeQualified(URI, Path)}">
  14447. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14448. <doc>
  14449. <![CDATA[Returns a qualified path object for the {@link FileSystem}'s working
  14450. directory.
  14451. @param fs the target FileSystem
  14452. @return a qualified path object for the FileSystem's working directory
  14453. @deprecated use {@link #makeQualified(URI, Path)}]]>
  14454. </doc>
  14455. </method>
  14456. <method name="validateObject"
  14457. abstract="false" native="false" synchronized="false"
  14458. static="false" final="false" visibility="public"
  14459. deprecated="not deprecated">
  14460. <exception name="InvalidObjectException" type="java.io.InvalidObjectException"/>
  14461. <doc>
  14462. <![CDATA[Validate the contents of a deserialized Path, so as
  14463. to defend against malicious object streams.
  14464. @throws InvalidObjectException if there's no URI]]>
  14465. </doc>
  14466. </method>
  14467. <field name="SEPARATOR" type="java.lang.String"
  14468. transient="false" volatile="false"
  14469. static="true" final="true" visibility="public"
  14470. deprecated="not deprecated">
  14471. <doc>
  14472. <![CDATA[The directory separator, a slash.]]>
  14473. </doc>
  14474. </field>
  14475. <field name="SEPARATOR_CHAR" type="char"
  14476. transient="false" volatile="false"
  14477. static="true" final="true" visibility="public"
  14478. deprecated="not deprecated">
  14479. <doc>
  14480. <![CDATA[The directory separator, a slash, as a character.]]>
  14481. </doc>
  14482. </field>
  14483. <field name="CUR_DIR" type="java.lang.String"
  14484. transient="false" volatile="false"
  14485. static="true" final="true" visibility="public"
  14486. deprecated="not deprecated">
  14487. <doc>
  14488. <![CDATA[The current directory, ".".]]>
  14489. </doc>
  14490. </field>
  14491. <field name="WINDOWS" type="boolean"
  14492. transient="false" volatile="false"
  14493. static="true" final="true" visibility="public"
  14494. deprecated="not deprecated">
  14495. <doc>
  14496. <![CDATA[Whether the current host is a Windows machine.]]>
  14497. </doc>
  14498. </field>
  14499. <doc>
  14500. <![CDATA[Names a file or directory in a {@link FileSystem}.
  14501. Path strings use slash as the directory separator.]]>
  14502. </doc>
  14503. </class>
  14504. <!-- end class org.apache.hadoop.fs.Path -->
  14505. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  14506. <interface name="PathFilter" abstract="true"
  14507. static="false" final="false" visibility="public"
  14508. deprecated="not deprecated">
  14509. <method name="accept" return="boolean"
  14510. abstract="true" native="false" synchronized="false"
  14511. static="false" final="false" visibility="public"
  14512. deprecated="not deprecated">
  14513. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14514. <doc>
  14515. <![CDATA[Tests whether or not the specified abstract pathname should be
  14516. included in a pathname list.
  14517. @param path The abstract pathname to be tested
  14518. @return <code>true</code> if and only if <code>pathname</code>
  14519. should be included]]>
  14520. </doc>
  14521. </method>
  14522. </interface>
  14523. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  14524. <!-- start interface org.apache.hadoop.fs.PathHandle -->
  14525. <interface name="PathHandle" abstract="true"
  14526. static="false" final="false" visibility="public"
  14527. deprecated="not deprecated">
  14528. <implements name="java.io.Serializable"/>
  14529. <method name="toByteArray" return="byte[]"
  14530. abstract="false" native="false" synchronized="false"
  14531. static="false" final="false" visibility="public"
  14532. deprecated="not deprecated">
  14533. <doc>
  14534. <![CDATA[@return Serialized form in bytes.]]>
  14535. </doc>
  14536. </method>
  14537. <method name="bytes" return="java.nio.ByteBuffer"
  14538. abstract="true" native="false" synchronized="false"
  14539. static="false" final="false" visibility="public"
  14540. deprecated="not deprecated">
  14541. <doc>
  14542. <![CDATA[Get the bytes of this path handle.
  14543. @return the bytes to get to the process completing the upload.]]>
  14544. </doc>
  14545. </method>
  14546. <method name="equals" return="boolean"
  14547. abstract="true" native="false" synchronized="false"
  14548. static="false" final="false" visibility="public"
  14549. deprecated="not deprecated">
  14550. <param name="other" type="java.lang.Object"/>
  14551. </method>
  14552. <doc>
  14553. <![CDATA[Opaque, serializable reference to an entity in the FileSystem. May contain
  14554. metadata sufficient to resolve or verify subsequent accesses independent of
  14555. other modifications to the FileSystem.]]>
  14556. </doc>
  14557. </interface>
  14558. <!-- end interface org.apache.hadoop.fs.PathHandle -->
  14559. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  14560. <interface name="PositionedReadable" abstract="true"
  14561. static="false" final="false" visibility="public"
  14562. deprecated="not deprecated">
  14563. <method name="read" return="int"
  14564. abstract="true" native="false" synchronized="false"
  14565. static="false" final="false" visibility="public"
  14566. deprecated="not deprecated">
  14567. <param name="position" type="long"/>
  14568. <param name="buffer" type="byte[]"/>
  14569. <param name="offset" type="int"/>
  14570. <param name="length" type="int"/>
  14571. <exception name="IOException" type="java.io.IOException"/>
  14572. <doc>
  14573. <![CDATA[Read up to the specified number of bytes, from a given
  14574. position within a file, and return the number of bytes read. This does not
  14575. change the current offset of a file, and is thread-safe.
  14576. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  14577. @param position position within file
  14578. @param buffer destination buffer
  14579. @param offset offset in the buffer
  14580. @param length number of bytes to read
  14581. @return actual number of bytes read; -1 means "none"
  14582. @throws IOException IO problems.]]>
  14583. </doc>
  14584. </method>
  14585. <method name="readFully"
  14586. abstract="true" native="false" synchronized="false"
  14587. static="false" final="false" visibility="public"
  14588. deprecated="not deprecated">
  14589. <param name="position" type="long"/>
  14590. <param name="buffer" type="byte[]"/>
  14591. <param name="offset" type="int"/>
  14592. <param name="length" type="int"/>
  14593. <exception name="IOException" type="java.io.IOException"/>
  14594. <doc>
  14595. <![CDATA[Read the specified number of bytes, from a given
  14596. position within a file. This does not
  14597. change the current offset of a file, and is thread-safe.
  14598. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  14599. @param position position within file
  14600. @param buffer destination buffer
  14601. @param offset offset in the buffer
  14602. @param length number of bytes to read
  14603. @throws IOException IO problems.
  14604. @throws EOFException the end of the data was reached before
  14605. the read operation completed]]>
  14606. </doc>
  14607. </method>
  14608. <method name="readFully"
  14609. abstract="true" native="false" synchronized="false"
  14610. static="false" final="false" visibility="public"
  14611. deprecated="not deprecated">
  14612. <param name="position" type="long"/>
  14613. <param name="buffer" type="byte[]"/>
  14614. <exception name="IOException" type="java.io.IOException"/>
  14615. <doc>
  14616. <![CDATA[Read number of bytes equal to the length of the buffer, from a given
  14617. position within a file. This does not
  14618. change the current offset of a file, and is thread-safe.
  14619. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  14620. @param position position within file
  14621. @param buffer destination buffer
  14622. @throws IOException IO problems.
  14623. @throws EOFException the end of the data was reached before
  14624. the read operation completed]]>
  14625. </doc>
  14626. </method>
  14627. <doc>
  14628. <![CDATA[Stream that permits positional reading.
  14629. Implementations are required to implement thread-safe operations; this may
  14630. be supported by concurrent access to the data, or by using a synchronization
  14631. mechanism to serialize access.
  14632. Not all implementations meet this requirement. Those that do not cannot
  14633. be used as a backing store for some applications, such as Apache HBase.
  14634. Independent of whether or not they are thread safe, some implementations
  14635. may make the intermediate state of the system, specifically the position
  14636. obtained in {@code Seekable.getPos()} visible.]]>
  14637. </doc>
  14638. </interface>
  14639. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  14640. <!-- start class org.apache.hadoop.fs.QuotaUsage -->
  14641. <class name="QuotaUsage" extends="java.lang.Object"
  14642. abstract="false"
  14643. static="false" final="false" visibility="public"
  14644. deprecated="not deprecated">
  14645. <constructor name="QuotaUsage"
  14646. static="false" final="false" visibility="protected"
  14647. deprecated="not deprecated">
  14648. </constructor>
  14649. <constructor name="QuotaUsage" type="org.apache.hadoop.fs.QuotaUsage.Builder"
  14650. static="false" final="false" visibility="protected"
  14651. deprecated="not deprecated">
  14652. <doc>
  14653. <![CDATA[Build the instance based on the builder.]]>
  14654. </doc>
  14655. </constructor>
  14656. <method name="setQuota"
  14657. abstract="false" native="false" synchronized="false"
  14658. static="false" final="false" visibility="protected"
  14659. deprecated="not deprecated">
  14660. <param name="quota" type="long"/>
  14661. </method>
  14662. <method name="setSpaceConsumed"
  14663. abstract="false" native="false" synchronized="false"
  14664. static="false" final="false" visibility="protected"
  14665. deprecated="not deprecated">
  14666. <param name="spaceConsumed" type="long"/>
  14667. </method>
  14668. <method name="setSpaceQuota"
  14669. abstract="false" native="false" synchronized="false"
  14670. static="false" final="false" visibility="protected"
  14671. deprecated="not deprecated">
  14672. <param name="spaceQuota" type="long"/>
  14673. </method>
  14674. <method name="getFileAndDirectoryCount" return="long"
  14675. abstract="false" native="false" synchronized="false"
  14676. static="false" final="false" visibility="public"
  14677. deprecated="not deprecated">
  14678. <doc>
  14679. <![CDATA[Return the directory count.]]>
  14680. </doc>
  14681. </method>
  14682. <method name="getQuota" return="long"
  14683. abstract="false" native="false" synchronized="false"
  14684. static="false" final="false" visibility="public"
  14685. deprecated="not deprecated">
  14686. <doc>
  14687. <![CDATA[Return the directory quota.]]>
  14688. </doc>
  14689. </method>
  14690. <method name="getSpaceConsumed" return="long"
  14691. abstract="false" native="false" synchronized="false"
  14692. static="false" final="false" visibility="public"
  14693. deprecated="not deprecated">
  14694. <doc>
  14695. <![CDATA[Return (disk) space consumed.]]>
  14696. </doc>
  14697. </method>
  14698. <method name="getSpaceQuota" return="long"
  14699. abstract="false" native="false" synchronized="false"
  14700. static="false" final="false" visibility="public"
  14701. deprecated="not deprecated">
  14702. <doc>
  14703. <![CDATA[Return (disk) space quota.]]>
  14704. </doc>
  14705. </method>
  14706. <method name="getTypeQuota" return="long"
  14707. abstract="false" native="false" synchronized="false"
  14708. static="false" final="false" visibility="public"
  14709. deprecated="not deprecated">
  14710. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  14711. <doc>
  14712. <![CDATA[Return storage type quota.]]>
  14713. </doc>
  14714. </method>
  14715. <method name="getTypeConsumed" return="long"
  14716. abstract="false" native="false" synchronized="false"
  14717. static="false" final="false" visibility="public"
  14718. deprecated="not deprecated">
  14719. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  14720. <doc>
  14721. <![CDATA[Return storage type consumed.]]>
  14722. </doc>
  14723. </method>
  14724. <method name="isTypeQuotaSet" return="boolean"
  14725. abstract="false" native="false" synchronized="false"
  14726. static="false" final="false" visibility="public"
  14727. deprecated="not deprecated">
  14728. <doc>
  14729. <![CDATA[Return true if any storage type quota has been set.]]>
  14730. </doc>
  14731. </method>
  14732. <method name="isTypeConsumedAvailable" return="boolean"
  14733. abstract="false" native="false" synchronized="false"
  14734. static="false" final="false" visibility="public"
  14735. deprecated="not deprecated">
  14736. <doc>
  14737. <![CDATA[Return true if any storage type consumption information is available.]]>
  14738. </doc>
  14739. </method>
  14740. <method name="equals" return="boolean"
  14741. abstract="false" native="false" synchronized="false"
  14742. static="false" final="false" visibility="public"
  14743. deprecated="not deprecated">
  14744. <param name="to" type="java.lang.Object"/>
  14745. </method>
  14746. <method name="hashCode" return="int"
  14747. abstract="false" native="false" synchronized="false"
  14748. static="false" final="false" visibility="public"
  14749. deprecated="not deprecated">
  14750. </method>
  14751. <method name="getHeader" return="java.lang.String"
  14752. abstract="false" native="false" synchronized="false"
  14753. static="true" final="false" visibility="public"
  14754. deprecated="not deprecated">
  14755. <doc>
  14756. <![CDATA[Return the header of the output.
  14757. @return the header of the output]]>
  14758. </doc>
  14759. </method>
  14760. <method name="toString" return="java.lang.String"
  14761. abstract="false" native="false" synchronized="false"
  14762. static="false" final="false" visibility="public"
  14763. deprecated="not deprecated">
  14764. </method>
  14765. <method name="toString" return="java.lang.String"
  14766. abstract="false" native="false" synchronized="false"
  14767. static="false" final="false" visibility="public"
  14768. deprecated="not deprecated">
  14769. <param name="hOption" type="boolean"/>
  14770. </method>
  14771. <method name="toString" return="java.lang.String"
  14772. abstract="false" native="false" synchronized="false"
  14773. static="false" final="false" visibility="public"
  14774. deprecated="not deprecated">
  14775. <param name="hOption" type="boolean"/>
  14776. <param name="tOption" type="boolean"/>
  14777. <param name="types" type="java.util.List"/>
  14778. <doc>
  14779. <![CDATA[Return the string representation of the object in the output format.
  14780. if hOption is false file sizes are returned in bytes
  14781. if hOption is true file sizes are returned in human readable
  14782. @param hOption a flag indicating if human readable output if to be used
  14783. @return the string representation of the object]]>
  14784. </doc>
  14785. </method>
  14786. <method name="getQuotaUsage" return="java.lang.String"
  14787. abstract="false" native="false" synchronized="false"
  14788. static="false" final="false" visibility="protected"
  14789. deprecated="not deprecated">
  14790. <param name="hOption" type="boolean"/>
  14791. </method>
  14792. <method name="getTypesQuotaUsage" return="java.lang.String"
  14793. abstract="false" native="false" synchronized="false"
  14794. static="false" final="false" visibility="protected"
  14795. deprecated="not deprecated">
  14796. <param name="hOption" type="boolean"/>
  14797. <param name="types" type="java.util.List"/>
  14798. </method>
  14799. <method name="getStorageTypeHeader" return="java.lang.String"
  14800. abstract="false" native="false" synchronized="false"
  14801. static="true" final="false" visibility="public"
  14802. deprecated="not deprecated">
  14803. <param name="storageTypes" type="java.util.List"/>
  14804. <doc>
  14805. <![CDATA[return the header of with the StorageTypes.
  14806. @param storageTypes
  14807. @return storage header string]]>
  14808. </doc>
  14809. </method>
  14810. <field name="QUOTA_STRING_FORMAT" type="java.lang.String"
  14811. transient="false" volatile="false"
  14812. static="true" final="true" visibility="protected"
  14813. deprecated="not deprecated">
  14814. <doc>
  14815. <![CDATA[Output format:
  14816. <----12----> <----15----> <----15----> <----15----> <-------18------->
  14817. QUOTA REMAINING_QUATA SPACE_QUOTA SPACE_QUOTA_REM FILE_NAME]]>
  14818. </doc>
  14819. </field>
  14820. <field name="SPACE_QUOTA_STRING_FORMAT" type="java.lang.String"
  14821. transient="false" volatile="false"
  14822. static="true" final="true" visibility="protected"
  14823. deprecated="not deprecated">
  14824. </field>
  14825. <field name="QUOTA_HEADER_FIELDS" type="java.lang.String[]"
  14826. transient="false" volatile="false"
  14827. static="true" final="true" visibility="protected"
  14828. deprecated="not deprecated">
  14829. </field>
  14830. <field name="QUOTA_HEADER" type="java.lang.String"
  14831. transient="false" volatile="false"
  14832. static="true" final="true" visibility="protected"
  14833. deprecated="not deprecated">
  14834. </field>
  14835. <doc>
  14836. <![CDATA[Store the quota usage of a directory.]]>
  14837. </doc>
  14838. </class>
  14839. <!-- end class org.apache.hadoop.fs.QuotaUsage -->
  14840. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  14841. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  14842. abstract="false"
  14843. static="false" final="false" visibility="public"
  14844. deprecated="not deprecated">
  14845. <constructor name="RawLocalFileSystem"
  14846. static="false" final="false" visibility="public"
  14847. deprecated="not deprecated">
  14848. </constructor>
  14849. <method name="useStatIfAvailable"
  14850. abstract="false" native="false" synchronized="false"
  14851. static="true" final="false" visibility="public"
  14852. deprecated="not deprecated">
  14853. </method>
  14854. <method name="pathToFile" return="java.io.File"
  14855. abstract="false" native="false" synchronized="false"
  14856. static="false" final="false" visibility="public"
  14857. deprecated="not deprecated">
  14858. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14859. <doc>
  14860. <![CDATA[Convert a path to a File.]]>
  14861. </doc>
  14862. </method>
  14863. <method name="getUri" return="java.net.URI"
  14864. abstract="false" native="false" synchronized="false"
  14865. static="false" final="false" visibility="public"
  14866. deprecated="not deprecated">
  14867. </method>
  14868. <method name="initialize"
  14869. abstract="false" native="false" synchronized="false"
  14870. static="false" final="false" visibility="public"
  14871. deprecated="not deprecated">
  14872. <param name="uri" type="java.net.URI"/>
  14873. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14874. <exception name="IOException" type="java.io.IOException"/>
  14875. </method>
  14876. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  14877. abstract="false" native="false" synchronized="false"
  14878. static="false" final="false" visibility="public"
  14879. deprecated="not deprecated">
  14880. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14881. <param name="bufferSize" type="int"/>
  14882. <exception name="IOException" type="java.io.IOException"/>
  14883. </method>
  14884. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  14885. abstract="false" native="false" synchronized="false"
  14886. static="false" final="false" visibility="public"
  14887. deprecated="not deprecated">
  14888. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  14889. <param name="bufferSize" type="int"/>
  14890. <exception name="IOException" type="java.io.IOException"/>
  14891. </method>
  14892. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  14893. abstract="false" native="false" synchronized="false"
  14894. static="false" final="false" visibility="public"
  14895. deprecated="not deprecated">
  14896. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14897. <param name="bufferSize" type="int"/>
  14898. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14899. <exception name="IOException" type="java.io.IOException"/>
  14900. </method>
  14901. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  14902. abstract="false" native="false" synchronized="false"
  14903. static="false" final="false" visibility="public"
  14904. deprecated="not deprecated">
  14905. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14906. <param name="overwrite" type="boolean"/>
  14907. <param name="bufferSize" type="int"/>
  14908. <param name="replication" type="short"/>
  14909. <param name="blockSize" type="long"/>
  14910. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14911. <exception name="IOException" type="java.io.IOException"/>
  14912. </method>
  14913. <method name="createOutputStream" return="java.io.OutputStream"
  14914. abstract="false" native="false" synchronized="false"
  14915. static="false" final="false" visibility="protected"
  14916. deprecated="not deprecated">
  14917. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14918. <param name="append" type="boolean"/>
  14919. <exception name="IOException" type="java.io.IOException"/>
  14920. </method>
  14921. <method name="createOutputStreamWithMode" return="java.io.OutputStream"
  14922. abstract="false" native="false" synchronized="false"
  14923. static="false" final="false" visibility="protected"
  14924. deprecated="not deprecated">
  14925. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14926. <param name="append" type="boolean"/>
  14927. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14928. <exception name="IOException" type="java.io.IOException"/>
  14929. </method>
  14930. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  14931. abstract="false" native="false" synchronized="false"
  14932. static="false" final="false" visibility="public"
  14933. deprecated="not deprecated">
  14934. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14935. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14936. <param name="flags" type="java.util.EnumSet"/>
  14937. <param name="bufferSize" type="int"/>
  14938. <param name="replication" type="short"/>
  14939. <param name="blockSize" type="long"/>
  14940. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14941. <exception name="IOException" type="java.io.IOException"/>
  14942. </method>
  14943. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  14944. abstract="false" native="false" synchronized="false"
  14945. static="false" final="false" visibility="public"
  14946. deprecated="not deprecated">
  14947. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14948. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14949. <param name="overwrite" type="boolean"/>
  14950. <param name="bufferSize" type="int"/>
  14951. <param name="replication" type="short"/>
  14952. <param name="blockSize" type="long"/>
  14953. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14954. <exception name="IOException" type="java.io.IOException"/>
  14955. </method>
  14956. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  14957. abstract="false" native="false" synchronized="false"
  14958. static="false" final="false" visibility="public"
  14959. deprecated="not deprecated">
  14960. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14961. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14962. <param name="overwrite" type="boolean"/>
  14963. <param name="bufferSize" type="int"/>
  14964. <param name="replication" type="short"/>
  14965. <param name="blockSize" type="long"/>
  14966. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14967. <exception name="IOException" type="java.io.IOException"/>
  14968. </method>
  14969. <method name="concat"
  14970. abstract="false" native="false" synchronized="false"
  14971. static="false" final="false" visibility="public"
  14972. deprecated="not deprecated">
  14973. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  14974. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  14975. <exception name="IOException" type="java.io.IOException"/>
  14976. </method>
  14977. <method name="rename" return="boolean"
  14978. abstract="false" native="false" synchronized="false"
  14979. static="false" final="false" visibility="public"
  14980. deprecated="not deprecated">
  14981. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14982. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14983. <exception name="IOException" type="java.io.IOException"/>
  14984. </method>
  14985. <method name="handleEmptyDstDirectoryOnWindows" return="boolean"
  14986. abstract="false" native="false" synchronized="false"
  14987. static="false" final="true" visibility="public"
  14988. deprecated="not deprecated">
  14989. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14990. <param name="srcFile" type="java.io.File"/>
  14991. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14992. <param name="dstFile" type="java.io.File"/>
  14993. <exception name="IOException" type="java.io.IOException"/>
  14994. </method>
  14995. <method name="truncate" return="boolean"
  14996. abstract="false" native="false" synchronized="false"
  14997. static="false" final="false" visibility="public"
  14998. deprecated="not deprecated">
  14999. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15000. <param name="newLength" type="long"/>
  15001. <exception name="IOException" type="java.io.IOException"/>
  15002. </method>
  15003. <method name="delete" return="boolean"
  15004. abstract="false" native="false" synchronized="false"
  15005. static="false" final="false" visibility="public"
  15006. deprecated="not deprecated">
  15007. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15008. <param name="recursive" type="boolean"/>
  15009. <exception name="IOException" type="java.io.IOException"/>
  15010. <doc>
  15011. <![CDATA[Delete the given path to a file or directory.
  15012. @param p the path to delete
  15013. @param recursive to delete sub-directories
  15014. @return true if the file or directory and all its contents were deleted
  15015. @throws IOException if p is non-empty and recursive is false]]>
  15016. </doc>
  15017. </method>
  15018. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  15019. abstract="false" native="false" synchronized="false"
  15020. static="false" final="false" visibility="public"
  15021. deprecated="not deprecated">
  15022. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15023. <exception name="IOException" type="java.io.IOException"/>
  15024. <doc>
  15025. <![CDATA[{@inheritDoc}
  15026. (<b>Note</b>: Returned list is not sorted in any given order,
  15027. due to reliance on Java's {@link File#list()} API.)]]>
  15028. </doc>
  15029. </method>
  15030. <method name="mkOneDir" return="boolean"
  15031. abstract="false" native="false" synchronized="false"
  15032. static="false" final="false" visibility="protected"
  15033. deprecated="not deprecated">
  15034. <param name="p2f" type="java.io.File"/>
  15035. <exception name="IOException" type="java.io.IOException"/>
  15036. </method>
  15037. <method name="mkOneDirWithMode" return="boolean"
  15038. abstract="false" native="false" synchronized="false"
  15039. static="false" final="false" visibility="protected"
  15040. deprecated="not deprecated">
  15041. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15042. <param name="p2f" type="java.io.File"/>
  15043. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15044. <exception name="IOException" type="java.io.IOException"/>
  15045. </method>
  15046. <method name="mkdirs" return="boolean"
  15047. abstract="false" native="false" synchronized="false"
  15048. static="false" final="false" visibility="public"
  15049. deprecated="not deprecated">
  15050. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15051. <exception name="IOException" type="java.io.IOException"/>
  15052. <doc>
  15053. <![CDATA[Creates the specified directory hierarchy. Does not
  15054. treat existence as an error.]]>
  15055. </doc>
  15056. </method>
  15057. <method name="mkdirs" return="boolean"
  15058. abstract="false" native="false" synchronized="false"
  15059. static="false" final="false" visibility="public"
  15060. deprecated="not deprecated">
  15061. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15062. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15063. <exception name="IOException" type="java.io.IOException"/>
  15064. </method>
  15065. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  15066. abstract="false" native="false" synchronized="false"
  15067. static="false" final="false" visibility="public"
  15068. deprecated="not deprecated">
  15069. </method>
  15070. <method name="setWorkingDirectory"
  15071. abstract="false" native="false" synchronized="false"
  15072. static="false" final="false" visibility="public"
  15073. deprecated="not deprecated">
  15074. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  15075. <doc>
  15076. <![CDATA[Set the working directory to the given directory.]]>
  15077. </doc>
  15078. </method>
  15079. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15080. abstract="false" native="false" synchronized="false"
  15081. static="false" final="false" visibility="public"
  15082. deprecated="not deprecated">
  15083. </method>
  15084. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15085. abstract="false" native="false" synchronized="false"
  15086. static="false" final="false" visibility="protected"
  15087. deprecated="not deprecated">
  15088. </method>
  15089. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  15090. abstract="false" native="false" synchronized="false"
  15091. static="false" final="false" visibility="public"
  15092. deprecated="not deprecated">
  15093. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15094. <exception name="IOException" type="java.io.IOException"/>
  15095. </method>
  15096. <method name="moveFromLocalFile"
  15097. abstract="false" native="false" synchronized="false"
  15098. static="false" final="false" visibility="public"
  15099. deprecated="not deprecated">
  15100. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15101. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15102. <exception name="IOException" type="java.io.IOException"/>
  15103. </method>
  15104. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  15105. abstract="false" native="false" synchronized="false"
  15106. static="false" final="false" visibility="public"
  15107. deprecated="not deprecated">
  15108. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  15109. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  15110. <exception name="IOException" type="java.io.IOException"/>
  15111. </method>
  15112. <method name="completeLocalOutput"
  15113. abstract="false" native="false" synchronized="false"
  15114. static="false" final="false" visibility="public"
  15115. deprecated="not deprecated">
  15116. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  15117. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  15118. <exception name="IOException" type="java.io.IOException"/>
  15119. </method>
  15120. <method name="close"
  15121. abstract="false" native="false" synchronized="false"
  15122. static="false" final="false" visibility="public"
  15123. deprecated="not deprecated">
  15124. <exception name="IOException" type="java.io.IOException"/>
  15125. </method>
  15126. <method name="toString" return="java.lang.String"
  15127. abstract="false" native="false" synchronized="false"
  15128. static="false" final="false" visibility="public"
  15129. deprecated="not deprecated">
  15130. </method>
  15131. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  15132. abstract="false" native="false" synchronized="false"
  15133. static="false" final="false" visibility="public"
  15134. deprecated="not deprecated">
  15135. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15136. <exception name="IOException" type="java.io.IOException"/>
  15137. </method>
  15138. <method name="setOwner"
  15139. abstract="false" native="false" synchronized="false"
  15140. static="false" final="false" visibility="public"
  15141. deprecated="not deprecated">
  15142. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15143. <param name="username" type="java.lang.String"/>
  15144. <param name="groupname" type="java.lang.String"/>
  15145. <exception name="IOException" type="java.io.IOException"/>
  15146. <doc>
  15147. <![CDATA[Use the command chown to set owner.]]>
  15148. </doc>
  15149. </method>
  15150. <method name="setPermission"
  15151. abstract="false" native="false" synchronized="false"
  15152. static="false" final="false" visibility="public"
  15153. deprecated="not deprecated">
  15154. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15155. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15156. <exception name="IOException" type="java.io.IOException"/>
  15157. <doc>
  15158. <![CDATA[Use the command chmod to set permission.]]>
  15159. </doc>
  15160. </method>
  15161. <method name="setTimes"
  15162. abstract="false" native="false" synchronized="false"
  15163. static="false" final="false" visibility="public"
  15164. deprecated="not deprecated">
  15165. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15166. <param name="mtime" type="long"/>
  15167. <param name="atime" type="long"/>
  15168. <exception name="IOException" type="java.io.IOException"/>
  15169. <doc>
  15170. <![CDATA[Sets the {@link Path}'s last modified time and last access time to
  15171. the given valid times.
  15172. @param mtime the modification time to set (only if no less than zero).
  15173. @param atime the access time to set (only if no less than zero).
  15174. @throws IOException if setting the times fails.]]>
  15175. </doc>
  15176. </method>
  15177. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  15178. abstract="false" native="false" synchronized="false"
  15179. static="false" final="false" visibility="protected"
  15180. deprecated="not deprecated">
  15181. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  15182. <param name="opts" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  15183. <doc>
  15184. <![CDATA[Hook to implement support for {@link PathHandle} operations.
  15185. @param stat Referent in the target FileSystem
  15186. @param opts Constraints that determine the validity of the
  15187. {@link PathHandle} reference.]]>
  15188. </doc>
  15189. </method>
  15190. <method name="supportsSymlinks" return="boolean"
  15191. abstract="false" native="false" synchronized="false"
  15192. static="false" final="false" visibility="public"
  15193. deprecated="not deprecated">
  15194. </method>
  15195. <method name="createSymlink"
  15196. abstract="false" native="false" synchronized="false"
  15197. static="false" final="false" visibility="public"
  15198. deprecated="not deprecated">
  15199. <param name="target" type="org.apache.hadoop.fs.Path"/>
  15200. <param name="link" type="org.apache.hadoop.fs.Path"/>
  15201. <param name="createParent" type="boolean"/>
  15202. <exception name="IOException" type="java.io.IOException"/>
  15203. </method>
  15204. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  15205. abstract="false" native="false" synchronized="false"
  15206. static="false" final="false" visibility="public"
  15207. deprecated="not deprecated">
  15208. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15209. <exception name="IOException" type="java.io.IOException"/>
  15210. <doc>
  15211. <![CDATA[Return a FileStatus representing the given path. If the path refers
  15212. to a symlink return a FileStatus representing the link rather than
  15213. the object the link refers to.]]>
  15214. </doc>
  15215. </method>
  15216. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  15217. abstract="false" native="false" synchronized="false"
  15218. static="false" final="false" visibility="public"
  15219. deprecated="not deprecated">
  15220. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15221. <exception name="IOException" type="java.io.IOException"/>
  15222. </method>
  15223. <method name="hasPathCapability" return="boolean"
  15224. abstract="false" native="false" synchronized="false"
  15225. static="false" final="false" visibility="public"
  15226. deprecated="not deprecated">
  15227. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15228. <param name="capability" type="java.lang.String"/>
  15229. <exception name="IOException" type="java.io.IOException"/>
  15230. </method>
  15231. <doc>
  15232. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  15233. </doc>
  15234. </class>
  15235. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  15236. <!-- start class org.apache.hadoop.fs.ReadOption -->
  15237. <class name="ReadOption" extends="java.lang.Enum"
  15238. abstract="false"
  15239. static="false" final="true" visibility="public"
  15240. deprecated="not deprecated">
  15241. <method name="values" return="org.apache.hadoop.fs.ReadOption[]"
  15242. abstract="false" native="false" synchronized="false"
  15243. static="true" final="false" visibility="public"
  15244. deprecated="not deprecated">
  15245. </method>
  15246. <method name="valueOf" return="org.apache.hadoop.fs.ReadOption"
  15247. abstract="false" native="false" synchronized="false"
  15248. static="true" final="false" visibility="public"
  15249. deprecated="not deprecated">
  15250. <param name="name" type="java.lang.String"/>
  15251. </method>
  15252. <doc>
  15253. <![CDATA[Options that can be used when reading from a FileSystem.]]>
  15254. </doc>
  15255. </class>
  15256. <!-- end class org.apache.hadoop.fs.ReadOption -->
  15257. <!-- start interface org.apache.hadoop.fs.Seekable -->
  15258. <interface name="Seekable" abstract="true"
  15259. static="false" final="false" visibility="public"
  15260. deprecated="not deprecated">
  15261. <method name="seek"
  15262. abstract="true" native="false" synchronized="false"
  15263. static="false" final="false" visibility="public"
  15264. deprecated="not deprecated">
  15265. <param name="pos" type="long"/>
  15266. <exception name="IOException" type="java.io.IOException"/>
  15267. <doc>
  15268. <![CDATA[Seek to the given offset from the start of the file.
  15269. The next read() will be from that location. Can't
  15270. seek past the end of the file.]]>
  15271. </doc>
  15272. </method>
  15273. <method name="getPos" return="long"
  15274. abstract="true" native="false" synchronized="false"
  15275. static="false" final="false" visibility="public"
  15276. deprecated="not deprecated">
  15277. <exception name="IOException" type="java.io.IOException"/>
  15278. <doc>
  15279. <![CDATA[Return the current offset from the start of the file]]>
  15280. </doc>
  15281. </method>
  15282. <doc>
  15283. <![CDATA[Stream that permits seeking.]]>
  15284. </doc>
  15285. </interface>
  15286. <!-- end interface org.apache.hadoop.fs.Seekable -->
  15287. <!-- start class org.apache.hadoop.fs.StorageStatistics -->
  15288. <class name="StorageStatistics" extends="java.lang.Object"
  15289. abstract="true"
  15290. static="false" final="false" visibility="public"
  15291. deprecated="not deprecated">
  15292. <constructor name="StorageStatistics" type="java.lang.String"
  15293. static="false" final="false" visibility="public"
  15294. deprecated="not deprecated">
  15295. </constructor>
  15296. <method name="getName" return="java.lang.String"
  15297. abstract="false" native="false" synchronized="false"
  15298. static="false" final="false" visibility="public"
  15299. deprecated="not deprecated">
  15300. <doc>
  15301. <![CDATA[Get the name of this StorageStatistics object.]]>
  15302. </doc>
  15303. </method>
  15304. <method name="getScheme" return="java.lang.String"
  15305. abstract="false" native="false" synchronized="false"
  15306. static="false" final="false" visibility="public"
  15307. deprecated="not deprecated">
  15308. <doc>
  15309. <![CDATA[@return the associated file system scheme if this is scheme specific,
  15310. else return null.]]>
  15311. </doc>
  15312. </method>
  15313. <method name="getLongStatistics" return="java.util.Iterator"
  15314. abstract="true" native="false" synchronized="false"
  15315. static="false" final="false" visibility="public"
  15316. deprecated="not deprecated">
  15317. <doc>
  15318. <![CDATA[Get an iterator over all the currently tracked long statistics.
  15319. The values returned will depend on the type of FileSystem or FileContext
  15320. object. The values do not necessarily reflect a snapshot in time.]]>
  15321. </doc>
  15322. </method>
  15323. <method name="getLong" return="java.lang.Long"
  15324. abstract="true" native="false" synchronized="false"
  15325. static="false" final="false" visibility="public"
  15326. deprecated="not deprecated">
  15327. <param name="key" type="java.lang.String"/>
  15328. <doc>
  15329. <![CDATA[Get the value of a statistic.
  15330. @return null if the statistic is not being tracked or is not a
  15331. long statistic. The value of the statistic, otherwise.]]>
  15332. </doc>
  15333. </method>
  15334. <method name="isTracked" return="boolean"
  15335. abstract="true" native="false" synchronized="false"
  15336. static="false" final="false" visibility="public"
  15337. deprecated="not deprecated">
  15338. <param name="key" type="java.lang.String"/>
  15339. <doc>
  15340. <![CDATA[Return true if a statistic is being tracked.
  15341. @return True only if the statistic is being tracked.]]>
  15342. </doc>
  15343. </method>
  15344. <method name="reset"
  15345. abstract="true" native="false" synchronized="false"
  15346. static="false" final="false" visibility="public"
  15347. deprecated="not deprecated">
  15348. <doc>
  15349. <![CDATA[Reset all the statistic data.]]>
  15350. </doc>
  15351. </method>
  15352. <doc>
  15353. <![CDATA[StorageStatistics contains statistics data for a FileSystem or FileContext
  15354. instance.]]>
  15355. </doc>
  15356. </class>
  15357. <!-- end class org.apache.hadoop.fs.StorageStatistics -->
  15358. <!-- start class org.apache.hadoop.fs.StorageType -->
  15359. <class name="StorageType" extends="java.lang.Enum"
  15360. abstract="false"
  15361. static="false" final="true" visibility="public"
  15362. deprecated="not deprecated">
  15363. <method name="values" return="org.apache.hadoop.fs.StorageType[]"
  15364. abstract="false" native="false" synchronized="false"
  15365. static="true" final="false" visibility="public"
  15366. deprecated="not deprecated">
  15367. </method>
  15368. <method name="valueOf" return="org.apache.hadoop.fs.StorageType"
  15369. abstract="false" native="false" synchronized="false"
  15370. static="true" final="false" visibility="public"
  15371. deprecated="not deprecated">
  15372. <param name="name" type="java.lang.String"/>
  15373. </method>
  15374. <method name="isTransient" return="boolean"
  15375. abstract="false" native="false" synchronized="false"
  15376. static="false" final="false" visibility="public"
  15377. deprecated="not deprecated">
  15378. </method>
  15379. <method name="supportTypeQuota" return="boolean"
  15380. abstract="false" native="false" synchronized="false"
  15381. static="false" final="false" visibility="public"
  15382. deprecated="not deprecated">
  15383. </method>
  15384. <method name="isMovable" return="boolean"
  15385. abstract="false" native="false" synchronized="false"
  15386. static="false" final="false" visibility="public"
  15387. deprecated="not deprecated">
  15388. </method>
  15389. <method name="asList" return="java.util.List"
  15390. abstract="false" native="false" synchronized="false"
  15391. static="true" final="false" visibility="public"
  15392. deprecated="not deprecated">
  15393. </method>
  15394. <method name="getMovableTypes" return="java.util.List"
  15395. abstract="false" native="false" synchronized="false"
  15396. static="true" final="false" visibility="public"
  15397. deprecated="not deprecated">
  15398. </method>
  15399. <method name="getTypesSupportingQuota" return="java.util.List"
  15400. abstract="false" native="false" synchronized="false"
  15401. static="true" final="false" visibility="public"
  15402. deprecated="not deprecated">
  15403. </method>
  15404. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  15405. abstract="false" native="false" synchronized="false"
  15406. static="true" final="false" visibility="public"
  15407. deprecated="not deprecated">
  15408. <param name="i" type="int"/>
  15409. </method>
  15410. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  15411. abstract="false" native="false" synchronized="false"
  15412. static="true" final="false" visibility="public"
  15413. deprecated="not deprecated">
  15414. <param name="s" type="java.lang.String"/>
  15415. </method>
  15416. <field name="DEFAULT" type="org.apache.hadoop.fs.StorageType"
  15417. transient="false" volatile="false"
  15418. static="true" final="true" visibility="public"
  15419. deprecated="not deprecated">
  15420. </field>
  15421. <field name="EMPTY_ARRAY" type="org.apache.hadoop.fs.StorageType[]"
  15422. transient="false" volatile="false"
  15423. static="true" final="true" visibility="public"
  15424. deprecated="not deprecated">
  15425. </field>
  15426. <doc>
  15427. <![CDATA[Defines the types of supported storage media. The default storage
  15428. medium is assumed to be DISK.]]>
  15429. </doc>
  15430. </class>
  15431. <!-- end class org.apache.hadoop.fs.StorageType -->
  15432. <!-- start interface org.apache.hadoop.fs.StreamCapabilities -->
  15433. <interface name="StreamCapabilities" abstract="true"
  15434. static="false" final="false" visibility="public"
  15435. deprecated="not deprecated">
  15436. <method name="hasCapability" return="boolean"
  15437. abstract="true" native="false" synchronized="false"
  15438. static="false" final="false" visibility="public"
  15439. deprecated="not deprecated">
  15440. <param name="capability" type="java.lang.String"/>
  15441. <doc>
  15442. <![CDATA[Query the stream for a specific capability.
  15443. @param capability string to query the stream support for.
  15444. @return True if the stream supports capability.]]>
  15445. </doc>
  15446. </method>
  15447. <field name="HFLUSH" type="java.lang.String"
  15448. transient="false" volatile="false"
  15449. static="true" final="true" visibility="public"
  15450. deprecated="not deprecated">
  15451. <doc>
  15452. <![CDATA[Stream hflush capability implemented by {@link Syncable#hflush()}.]]>
  15453. </doc>
  15454. </field>
  15455. <field name="HSYNC" type="java.lang.String"
  15456. transient="false" volatile="false"
  15457. static="true" final="true" visibility="public"
  15458. deprecated="not deprecated">
  15459. <doc>
  15460. <![CDATA[Stream hsync capability implemented by {@link Syncable#hsync()}.]]>
  15461. </doc>
  15462. </field>
  15463. <field name="READAHEAD" type="java.lang.String"
  15464. transient="false" volatile="false"
  15465. static="true" final="true" visibility="public"
  15466. deprecated="not deprecated">
  15467. <doc>
  15468. <![CDATA[Stream setReadahead capability implemented by
  15469. {@link CanSetReadahead#setReadahead(Long)}.]]>
  15470. </doc>
  15471. </field>
  15472. <field name="DROPBEHIND" type="java.lang.String"
  15473. transient="false" volatile="false"
  15474. static="true" final="true" visibility="public"
  15475. deprecated="not deprecated">
  15476. <doc>
  15477. <![CDATA[Stream setDropBehind capability implemented by
  15478. {@link CanSetDropBehind#setDropBehind(Boolean)}.]]>
  15479. </doc>
  15480. </field>
  15481. <field name="UNBUFFER" type="java.lang.String"
  15482. transient="false" volatile="false"
  15483. static="true" final="true" visibility="public"
  15484. deprecated="not deprecated">
  15485. <doc>
  15486. <![CDATA[Stream unbuffer capability implemented by {@link CanUnbuffer#unbuffer()}.]]>
  15487. </doc>
  15488. </field>
  15489. <doc>
  15490. <![CDATA[Interface to query streams for supported capabilities.
  15491. Capability strings must be in lower case.
  15492. Constant strings are chosen over enums in order to allow other file systems
  15493. to define their own capabilities.]]>
  15494. </doc>
  15495. </interface>
  15496. <!-- end interface org.apache.hadoop.fs.StreamCapabilities -->
  15497. <!-- start class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  15498. <class name="StreamCapabilitiesPolicy" extends="java.lang.Object"
  15499. abstract="false"
  15500. static="false" final="false" visibility="public"
  15501. deprecated="not deprecated">
  15502. <constructor name="StreamCapabilitiesPolicy"
  15503. static="false" final="false" visibility="public"
  15504. deprecated="not deprecated">
  15505. </constructor>
  15506. <method name="unbuffer"
  15507. abstract="false" native="false" synchronized="false"
  15508. static="true" final="false" visibility="public"
  15509. deprecated="not deprecated">
  15510. <param name="in" type="java.io.InputStream"/>
  15511. <doc>
  15512. <![CDATA[Implement the policy for {@link CanUnbuffer#unbuffer()}.
  15513. @param in the input stream]]>
  15514. </doc>
  15515. </method>
  15516. <field name="CAN_UNBUFFER_NOT_IMPLEMENTED_MESSAGE" type="java.lang.String"
  15517. transient="false" volatile="false"
  15518. static="true" final="true" visibility="public"
  15519. deprecated="not deprecated">
  15520. </field>
  15521. <doc>
  15522. <![CDATA[Static methods to implement policies for {@link StreamCapabilities}.]]>
  15523. </doc>
  15524. </class>
  15525. <!-- end class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  15526. <!-- start interface org.apache.hadoop.fs.Syncable -->
  15527. <interface name="Syncable" abstract="true"
  15528. static="false" final="false" visibility="public"
  15529. deprecated="not deprecated">
  15530. <method name="hflush"
  15531. abstract="true" native="false" synchronized="false"
  15532. static="false" final="false" visibility="public"
  15533. deprecated="not deprecated">
  15534. <exception name="IOException" type="java.io.IOException"/>
  15535. <doc>
  15536. <![CDATA[Flush out the data in client's user buffer. After the return of
  15537. this call, new readers will see the data.
  15538. @throws IOException if any error occurs]]>
  15539. </doc>
  15540. </method>
  15541. <method name="hsync"
  15542. abstract="true" native="false" synchronized="false"
  15543. static="false" final="false" visibility="public"
  15544. deprecated="not deprecated">
  15545. <exception name="IOException" type="java.io.IOException"/>
  15546. <doc>
  15547. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  15548. all the way to the disk device (but the disk may have it in its cache).
  15549. @throws IOException if error occurs]]>
  15550. </doc>
  15551. </method>
  15552. <doc>
  15553. <![CDATA[This interface for flush/sync operation.]]>
  15554. </doc>
  15555. </interface>
  15556. <!-- end interface org.apache.hadoop.fs.Syncable -->
  15557. <!-- start class org.apache.hadoop.fs.Trash -->
  15558. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  15559. abstract="false"
  15560. static="false" final="false" visibility="public"
  15561. deprecated="not deprecated">
  15562. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  15563. static="false" final="false" visibility="public"
  15564. deprecated="not deprecated">
  15565. <exception name="IOException" type="java.io.IOException"/>
  15566. <doc>
  15567. <![CDATA[Construct a trash can accessor.
  15568. @param conf a Configuration]]>
  15569. </doc>
  15570. </constructor>
  15571. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  15572. static="false" final="false" visibility="public"
  15573. deprecated="not deprecated">
  15574. <exception name="IOException" type="java.io.IOException"/>
  15575. <doc>
  15576. <![CDATA[Construct a trash can accessor for the FileSystem provided.
  15577. @param fs the FileSystem
  15578. @param conf a Configuration]]>
  15579. </doc>
  15580. </constructor>
  15581. <method name="moveToAppropriateTrash" return="boolean"
  15582. abstract="false" native="false" synchronized="false"
  15583. static="true" final="false" visibility="public"
  15584. deprecated="not deprecated">
  15585. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15586. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15587. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15588. <exception name="IOException" type="java.io.IOException"/>
  15589. <doc>
  15590. <![CDATA[In case of the symlinks or mount points, one has to move the appropriate
  15591. trashbin in the actual volume of the path p being deleted.
  15592. Hence we get the file system of the fully-qualified resolved-path and
  15593. then move the path p to the trashbin in that volume,
  15594. @param fs - the filesystem of path p
  15595. @param p - the path being deleted - to be moved to trasg
  15596. @param conf - configuration
  15597. @return false if the item is already in the trash or trash is disabled
  15598. @throws IOException on error]]>
  15599. </doc>
  15600. </method>
  15601. <method name="isEnabled" return="boolean"
  15602. abstract="false" native="false" synchronized="false"
  15603. static="false" final="false" visibility="public"
  15604. deprecated="not deprecated">
  15605. <doc>
  15606. <![CDATA[Returns whether the trash is enabled for this filesystem]]>
  15607. </doc>
  15608. </method>
  15609. <method name="moveToTrash" return="boolean"
  15610. abstract="false" native="false" synchronized="false"
  15611. static="false" final="false" visibility="public"
  15612. deprecated="not deprecated">
  15613. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15614. <exception name="IOException" type="java.io.IOException"/>
  15615. <doc>
  15616. <![CDATA[Move a file or directory to the current trash directory.
  15617. @return false if the item is already in the trash or trash is disabled]]>
  15618. </doc>
  15619. </method>
  15620. <method name="checkpoint"
  15621. abstract="false" native="false" synchronized="false"
  15622. static="false" final="false" visibility="public"
  15623. deprecated="not deprecated">
  15624. <exception name="IOException" type="java.io.IOException"/>
  15625. <doc>
  15626. <![CDATA[Create a trash checkpoint.]]>
  15627. </doc>
  15628. </method>
  15629. <method name="expunge"
  15630. abstract="false" native="false" synchronized="false"
  15631. static="false" final="false" visibility="public"
  15632. deprecated="not deprecated">
  15633. <exception name="IOException" type="java.io.IOException"/>
  15634. <doc>
  15635. <![CDATA[Delete old checkpoint(s).]]>
  15636. </doc>
  15637. </method>
  15638. <method name="expungeImmediately"
  15639. abstract="false" native="false" synchronized="false"
  15640. static="false" final="false" visibility="public"
  15641. deprecated="not deprecated">
  15642. <exception name="IOException" type="java.io.IOException"/>
  15643. <doc>
  15644. <![CDATA[Delete all trash immediately.]]>
  15645. </doc>
  15646. </method>
  15647. <method name="getEmptier" return="java.lang.Runnable"
  15648. abstract="false" native="false" synchronized="false"
  15649. static="false" final="false" visibility="public"
  15650. deprecated="not deprecated">
  15651. <exception name="IOException" type="java.io.IOException"/>
  15652. <doc>
  15653. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  15654. users, intended to be run by the superuser.]]>
  15655. </doc>
  15656. </method>
  15657. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  15658. abstract="false" native="false" synchronized="false"
  15659. static="false" final="false" visibility="public"
  15660. deprecated="not deprecated">
  15661. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15662. <exception name="IOException" type="java.io.IOException"/>
  15663. </method>
  15664. <doc>
  15665. <![CDATA[Provides a trash facility which supports pluggable Trash policies.
  15666. See the implementation of the configured TrashPolicy for more
  15667. details.]]>
  15668. </doc>
  15669. </class>
  15670. <!-- end class org.apache.hadoop.fs.Trash -->
  15671. <!-- start class org.apache.hadoop.fs.TrashPolicy -->
  15672. <class name="TrashPolicy" extends="org.apache.hadoop.conf.Configured"
  15673. abstract="true"
  15674. static="false" final="false" visibility="public"
  15675. deprecated="not deprecated">
  15676. <constructor name="TrashPolicy"
  15677. static="false" final="false" visibility="public"
  15678. deprecated="not deprecated">
  15679. </constructor>
  15680. <method name="initialize"
  15681. abstract="true" native="false" synchronized="false"
  15682. static="false" final="false" visibility="public"
  15683. deprecated="Use {@link #initialize(Configuration, FileSystem)} instead.">
  15684. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15685. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15686. <param name="home" type="org.apache.hadoop.fs.Path"/>
  15687. <doc>
  15688. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  15689. implementations.
  15690. @param conf the configuration to be used
  15691. @param fs the filesystem to be used
  15692. @param home the home directory
  15693. @deprecated Use {@link #initialize(Configuration, FileSystem)} instead.]]>
  15694. </doc>
  15695. </method>
  15696. <method name="initialize"
  15697. abstract="false" native="false" synchronized="false"
  15698. static="false" final="false" visibility="public"
  15699. deprecated="not deprecated">
  15700. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15701. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15702. <doc>
  15703. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  15704. implementations. Different from initialize(conf, fs, home), this one does
  15705. not assume trash always under /user/$USER due to HDFS encryption zone.
  15706. @param conf the configuration to be used
  15707. @param fs the filesystem to be used]]>
  15708. </doc>
  15709. </method>
  15710. <method name="isEnabled" return="boolean"
  15711. abstract="true" native="false" synchronized="false"
  15712. static="false" final="false" visibility="public"
  15713. deprecated="not deprecated">
  15714. <doc>
  15715. <![CDATA[Returns whether the Trash Policy is enabled for this filesystem.]]>
  15716. </doc>
  15717. </method>
  15718. <method name="moveToTrash" return="boolean"
  15719. abstract="true" native="false" synchronized="false"
  15720. static="false" final="false" visibility="public"
  15721. deprecated="not deprecated">
  15722. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15723. <exception name="IOException" type="java.io.IOException"/>
  15724. <doc>
  15725. <![CDATA[Move a file or directory to the current trash directory.
  15726. @return false if the item is already in the trash or trash is disabled]]>
  15727. </doc>
  15728. </method>
  15729. <method name="createCheckpoint"
  15730. abstract="true" native="false" synchronized="false"
  15731. static="false" final="false" visibility="public"
  15732. deprecated="not deprecated">
  15733. <exception name="IOException" type="java.io.IOException"/>
  15734. <doc>
  15735. <![CDATA[Create a trash checkpoint.]]>
  15736. </doc>
  15737. </method>
  15738. <method name="deleteCheckpoint"
  15739. abstract="true" native="false" synchronized="false"
  15740. static="false" final="false" visibility="public"
  15741. deprecated="not deprecated">
  15742. <exception name="IOException" type="java.io.IOException"/>
  15743. <doc>
  15744. <![CDATA[Delete old trash checkpoint(s).]]>
  15745. </doc>
  15746. </method>
  15747. <method name="deleteCheckpointsImmediately"
  15748. abstract="true" native="false" synchronized="false"
  15749. static="false" final="false" visibility="public"
  15750. deprecated="not deprecated">
  15751. <exception name="IOException" type="java.io.IOException"/>
  15752. <doc>
  15753. <![CDATA[Delete all checkpoints immediately, ie empty trash.]]>
  15754. </doc>
  15755. </method>
  15756. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  15757. abstract="true" native="false" synchronized="false"
  15758. static="false" final="false" visibility="public"
  15759. deprecated="not deprecated">
  15760. <doc>
  15761. <![CDATA[Get the current working directory of the Trash Policy
  15762. This API does not work with files deleted from encryption zone when HDFS
  15763. data encryption at rest feature is enabled as rename file between
  15764. encryption zones or encryption zone and non-encryption zone is not allowed.
  15765. The caller is recommend to use the new API
  15766. TrashPolicy#getCurrentTrashDir(Path path).
  15767. It returns the trash location correctly for the path specified no matter
  15768. the path is in encryption zone or not.]]>
  15769. </doc>
  15770. </method>
  15771. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  15772. abstract="false" native="false" synchronized="false"
  15773. static="false" final="false" visibility="public"
  15774. deprecated="not deprecated">
  15775. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15776. <exception name="IOException" type="java.io.IOException"/>
  15777. <doc>
  15778. <![CDATA[Get the current trash directory for path specified based on the Trash
  15779. Policy
  15780. @param path path to be deleted
  15781. @return current trash directory for the path to be deleted
  15782. @throws IOException]]>
  15783. </doc>
  15784. </method>
  15785. <method name="getEmptier" return="java.lang.Runnable"
  15786. abstract="true" native="false" synchronized="false"
  15787. static="false" final="false" visibility="public"
  15788. deprecated="not deprecated">
  15789. <exception name="IOException" type="java.io.IOException"/>
  15790. <doc>
  15791. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  15792. users, intended to be run by the superuser.]]>
  15793. </doc>
  15794. </method>
  15795. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  15796. abstract="false" native="false" synchronized="false"
  15797. static="true" final="false" visibility="public"
  15798. deprecated="Use {@link #getInstance(Configuration, FileSystem)} instead.">
  15799. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15800. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15801. <param name="home" type="org.apache.hadoop.fs.Path"/>
  15802. <doc>
  15803. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  15804. of the configuration parameter fs.trash.classname.
  15805. @param conf the configuration to be used
  15806. @param fs the file system to be used
  15807. @param home the home directory
  15808. @return an instance of TrashPolicy
  15809. @deprecated Use {@link #getInstance(Configuration, FileSystem)} instead.]]>
  15810. </doc>
  15811. </method>
  15812. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  15813. abstract="false" native="false" synchronized="false"
  15814. static="true" final="false" visibility="public"
  15815. deprecated="not deprecated">
  15816. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15817. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15818. <doc>
  15819. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  15820. of the configuration parameter fs.trash.classname.
  15821. @param conf the configuration to be used
  15822. @param fs the file system to be used
  15823. @return an instance of TrashPolicy]]>
  15824. </doc>
  15825. </method>
  15826. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  15827. transient="false" volatile="false"
  15828. static="false" final="false" visibility="protected"
  15829. deprecated="not deprecated">
  15830. </field>
  15831. <field name="trash" type="org.apache.hadoop.fs.Path"
  15832. transient="false" volatile="false"
  15833. static="false" final="false" visibility="protected"
  15834. deprecated="not deprecated">
  15835. </field>
  15836. <field name="deletionInterval" type="long"
  15837. transient="false" volatile="false"
  15838. static="false" final="false" visibility="protected"
  15839. deprecated="not deprecated">
  15840. </field>
  15841. <doc>
  15842. <![CDATA[This interface is used for implementing different Trash policies.
  15843. Provides factory method to create instances of the configured Trash policy.]]>
  15844. </doc>
  15845. </class>
  15846. <!-- end class org.apache.hadoop.fs.TrashPolicy -->
  15847. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  15848. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  15849. abstract="false"
  15850. static="false" final="false" visibility="public"
  15851. deprecated="not deprecated">
  15852. <constructor name="UnsupportedFileSystemException" type="java.lang.String"
  15853. static="false" final="false" visibility="public"
  15854. deprecated="not deprecated">
  15855. <doc>
  15856. <![CDATA[Constructs exception with the specified detail message.
  15857. @param message exception message.]]>
  15858. </doc>
  15859. </constructor>
  15860. <doc>
  15861. <![CDATA[File system for a given file system name/scheme is not supported]]>
  15862. </doc>
  15863. </class>
  15864. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  15865. <!-- start class org.apache.hadoop.fs.UnsupportedMultipartUploaderException -->
  15866. <class name="UnsupportedMultipartUploaderException" extends="java.io.IOException"
  15867. abstract="false"
  15868. static="false" final="false" visibility="public"
  15869. deprecated="not deprecated">
  15870. <constructor name="UnsupportedMultipartUploaderException" type="java.lang.String"
  15871. static="false" final="false" visibility="public"
  15872. deprecated="not deprecated">
  15873. <doc>
  15874. <![CDATA[Constructs exception with the specified detail message.
  15875. @param message exception message.]]>
  15876. </doc>
  15877. </constructor>
  15878. <doc>
  15879. <![CDATA[MultipartUploader for a given file system name/scheme is not supported.]]>
  15880. </doc>
  15881. </class>
  15882. <!-- end class org.apache.hadoop.fs.UnsupportedMultipartUploaderException -->
  15883. <!-- start interface org.apache.hadoop.fs.UploadHandle -->
  15884. <interface name="UploadHandle" abstract="true"
  15885. static="false" final="false" visibility="public"
  15886. deprecated="not deprecated">
  15887. <implements name="java.io.Serializable"/>
  15888. <method name="toByteArray" return="byte[]"
  15889. abstract="false" native="false" synchronized="false"
  15890. static="false" final="false" visibility="public"
  15891. deprecated="not deprecated">
  15892. <doc>
  15893. <![CDATA[@return Serialized from in bytes.]]>
  15894. </doc>
  15895. </method>
  15896. <method name="bytes" return="java.nio.ByteBuffer"
  15897. abstract="true" native="false" synchronized="false"
  15898. static="false" final="false" visibility="public"
  15899. deprecated="not deprecated">
  15900. </method>
  15901. <method name="equals" return="boolean"
  15902. abstract="true" native="false" synchronized="false"
  15903. static="false" final="false" visibility="public"
  15904. deprecated="not deprecated">
  15905. <param name="other" type="java.lang.Object"/>
  15906. </method>
  15907. <doc>
  15908. <![CDATA[Opaque, serializable reference to an uploadId for multipart uploads.]]>
  15909. </doc>
  15910. </interface>
  15911. <!-- end interface org.apache.hadoop.fs.UploadHandle -->
  15912. <!-- start class org.apache.hadoop.fs.XAttrCodec -->
  15913. <class name="XAttrCodec" extends="java.lang.Enum"
  15914. abstract="false"
  15915. static="false" final="true" visibility="public"
  15916. deprecated="not deprecated">
  15917. <method name="values" return="org.apache.hadoop.fs.XAttrCodec[]"
  15918. abstract="false" native="false" synchronized="false"
  15919. static="true" final="false" visibility="public"
  15920. deprecated="not deprecated">
  15921. </method>
  15922. <method name="valueOf" return="org.apache.hadoop.fs.XAttrCodec"
  15923. abstract="false" native="false" synchronized="false"
  15924. static="true" final="false" visibility="public"
  15925. deprecated="not deprecated">
  15926. <param name="name" type="java.lang.String"/>
  15927. </method>
  15928. <method name="decodeValue" return="byte[]"
  15929. abstract="false" native="false" synchronized="false"
  15930. static="true" final="false" visibility="public"
  15931. deprecated="not deprecated">
  15932. <param name="value" type="java.lang.String"/>
  15933. <exception name="IOException" type="java.io.IOException"/>
  15934. <doc>
  15935. <![CDATA[Decode string representation of a value and check whether it's
  15936. encoded. If the given string begins with 0x or 0X, it expresses
  15937. a hexadecimal number. If the given string begins with 0s or 0S,
  15938. base64 encoding is expected. If the given string is enclosed in
  15939. double quotes, the inner string is treated as text. Otherwise
  15940. the given string is treated as text.
  15941. @param value string representation of the value.
  15942. @return byte[] the value
  15943. @throws IOException]]>
  15944. </doc>
  15945. </method>
  15946. <method name="encodeValue" return="java.lang.String"
  15947. abstract="false" native="false" synchronized="false"
  15948. static="true" final="false" visibility="public"
  15949. deprecated="not deprecated">
  15950. <param name="value" type="byte[]"/>
  15951. <param name="encoding" type="org.apache.hadoop.fs.XAttrCodec"/>
  15952. <exception name="IOException" type="java.io.IOException"/>
  15953. <doc>
  15954. <![CDATA[Encode byte[] value to string representation with encoding.
  15955. Values encoded as text strings are enclosed in double quotes (\"),
  15956. while strings encoded as hexadecimal and base64 are prefixed with
  15957. 0x and 0s, respectively.
  15958. @param value byte[] value
  15959. @param encoding
  15960. @return String string representation of value
  15961. @throws IOException]]>
  15962. </doc>
  15963. </method>
  15964. <doc>
  15965. <![CDATA[The value of <code>XAttr</code> is byte[], this class is to
  15966. covert byte[] to some kind of string representation or convert back.
  15967. String representation is convenient for display and input. For example
  15968. display in screen as shell response and json response, input as http
  15969. or shell parameter.]]>
  15970. </doc>
  15971. </class>
  15972. <!-- end class org.apache.hadoop.fs.XAttrCodec -->
  15973. <!-- start class org.apache.hadoop.fs.XAttrSetFlag -->
  15974. <class name="XAttrSetFlag" extends="java.lang.Enum"
  15975. abstract="false"
  15976. static="false" final="true" visibility="public"
  15977. deprecated="not deprecated">
  15978. <method name="values" return="org.apache.hadoop.fs.XAttrSetFlag[]"
  15979. abstract="false" native="false" synchronized="false"
  15980. static="true" final="false" visibility="public"
  15981. deprecated="not deprecated">
  15982. </method>
  15983. <method name="valueOf" return="org.apache.hadoop.fs.XAttrSetFlag"
  15984. abstract="false" native="false" synchronized="false"
  15985. static="true" final="false" visibility="public"
  15986. deprecated="not deprecated">
  15987. <param name="name" type="java.lang.String"/>
  15988. </method>
  15989. <method name="validate"
  15990. abstract="false" native="false" synchronized="false"
  15991. static="true" final="false" visibility="public"
  15992. deprecated="not deprecated">
  15993. <param name="xAttrName" type="java.lang.String"/>
  15994. <param name="xAttrExists" type="boolean"/>
  15995. <param name="flag" type="java.util.EnumSet"/>
  15996. <exception name="IOException" type="java.io.IOException"/>
  15997. </method>
  15998. </class>
  15999. <!-- end class org.apache.hadoop.fs.XAttrSetFlag -->
  16000. <doc>
  16001. <![CDATA[An abstract file system API.]]>
  16002. </doc>
  16003. </package>
  16004. <package name="org.apache.hadoop.fs.crypto">
  16005. </package>
  16006. <package name="org.apache.hadoop.fs.ftp">
  16007. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  16008. <class name="FTPException" extends="java.lang.RuntimeException"
  16009. abstract="false"
  16010. static="false" final="false" visibility="public"
  16011. deprecated="not deprecated">
  16012. <constructor name="FTPException" type="java.lang.String"
  16013. static="false" final="false" visibility="public"
  16014. deprecated="not deprecated">
  16015. </constructor>
  16016. <constructor name="FTPException" type="java.lang.Throwable"
  16017. static="false" final="false" visibility="public"
  16018. deprecated="not deprecated">
  16019. </constructor>
  16020. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  16021. static="false" final="false" visibility="public"
  16022. deprecated="not deprecated">
  16023. </constructor>
  16024. <doc>
  16025. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  16026. </doc>
  16027. </class>
  16028. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  16029. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  16030. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  16031. abstract="false"
  16032. static="false" final="false" visibility="public"
  16033. deprecated="not deprecated">
  16034. <constructor name="FTPFileSystem"
  16035. static="false" final="false" visibility="public"
  16036. deprecated="not deprecated">
  16037. </constructor>
  16038. <method name="getScheme" return="java.lang.String"
  16039. abstract="false" native="false" synchronized="false"
  16040. static="false" final="false" visibility="public"
  16041. deprecated="not deprecated">
  16042. <doc>
  16043. <![CDATA[Return the protocol scheme for the FileSystem.
  16044. <p/>
  16045. @return <code>ftp</code>]]>
  16046. </doc>
  16047. </method>
  16048. <method name="getDefaultPort" return="int"
  16049. abstract="false" native="false" synchronized="false"
  16050. static="false" final="false" visibility="protected"
  16051. deprecated="not deprecated">
  16052. <doc>
  16053. <![CDATA[Get the default port for this FTPFileSystem.
  16054. @return the default port]]>
  16055. </doc>
  16056. </method>
  16057. <method name="initialize"
  16058. abstract="false" native="false" synchronized="false"
  16059. static="false" final="false" visibility="public"
  16060. deprecated="not deprecated">
  16061. <param name="uri" type="java.net.URI"/>
  16062. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16063. <exception name="IOException" type="java.io.IOException"/>
  16064. </method>
  16065. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  16066. abstract="false" native="false" synchronized="false"
  16067. static="false" final="false" visibility="public"
  16068. deprecated="not deprecated">
  16069. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16070. <param name="bufferSize" type="int"/>
  16071. <exception name="IOException" type="java.io.IOException"/>
  16072. </method>
  16073. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  16074. abstract="false" native="false" synchronized="false"
  16075. static="false" final="false" visibility="public"
  16076. deprecated="not deprecated">
  16077. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16078. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16079. <param name="overwrite" type="boolean"/>
  16080. <param name="bufferSize" type="int"/>
  16081. <param name="replication" type="short"/>
  16082. <param name="blockSize" type="long"/>
  16083. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16084. <exception name="IOException" type="java.io.IOException"/>
  16085. <doc>
  16086. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  16087. this class or else the invocation will block.]]>
  16088. </doc>
  16089. </method>
  16090. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  16091. abstract="false" native="false" synchronized="false"
  16092. static="false" final="false" visibility="public"
  16093. deprecated="not deprecated">
  16094. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16095. <param name="bufferSize" type="int"/>
  16096. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16097. <exception name="IOException" type="java.io.IOException"/>
  16098. <doc>
  16099. <![CDATA[This optional operation is not yet supported.]]>
  16100. </doc>
  16101. </method>
  16102. <method name="delete" return="boolean"
  16103. abstract="false" native="false" synchronized="false"
  16104. static="false" final="false" visibility="public"
  16105. deprecated="not deprecated">
  16106. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16107. <param name="recursive" type="boolean"/>
  16108. <exception name="IOException" type="java.io.IOException"/>
  16109. </method>
  16110. <method name="getUri" return="java.net.URI"
  16111. abstract="false" native="false" synchronized="false"
  16112. static="false" final="false" visibility="public"
  16113. deprecated="not deprecated">
  16114. </method>
  16115. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  16116. abstract="false" native="false" synchronized="false"
  16117. static="false" final="false" visibility="public"
  16118. deprecated="not deprecated">
  16119. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16120. <exception name="IOException" type="java.io.IOException"/>
  16121. </method>
  16122. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  16123. abstract="false" native="false" synchronized="false"
  16124. static="false" final="false" visibility="public"
  16125. deprecated="not deprecated">
  16126. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16127. <exception name="IOException" type="java.io.IOException"/>
  16128. </method>
  16129. <method name="mkdirs" return="boolean"
  16130. abstract="false" native="false" synchronized="false"
  16131. static="false" final="false" visibility="public"
  16132. deprecated="not deprecated">
  16133. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16134. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16135. <exception name="IOException" type="java.io.IOException"/>
  16136. </method>
  16137. <method name="rename" return="boolean"
  16138. abstract="false" native="false" synchronized="false"
  16139. static="false" final="false" visibility="public"
  16140. deprecated="not deprecated">
  16141. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16142. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16143. <exception name="IOException" type="java.io.IOException"/>
  16144. </method>
  16145. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  16146. abstract="false" native="false" synchronized="false"
  16147. static="false" final="false" visibility="public"
  16148. deprecated="not deprecated">
  16149. </method>
  16150. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  16151. abstract="false" native="false" synchronized="false"
  16152. static="false" final="false" visibility="public"
  16153. deprecated="not deprecated">
  16154. </method>
  16155. <method name="setWorkingDirectory"
  16156. abstract="false" native="false" synchronized="false"
  16157. static="false" final="false" visibility="public"
  16158. deprecated="not deprecated">
  16159. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  16160. </method>
  16161. <field name="LOG" type="org.slf4j.Logger"
  16162. transient="false" volatile="false"
  16163. static="true" final="true" visibility="public"
  16164. deprecated="not deprecated">
  16165. </field>
  16166. <field name="DEFAULT_BUFFER_SIZE" type="int"
  16167. transient="false" volatile="false"
  16168. static="true" final="true" visibility="public"
  16169. deprecated="not deprecated">
  16170. </field>
  16171. <field name="DEFAULT_BLOCK_SIZE" type="int"
  16172. transient="false" volatile="false"
  16173. static="true" final="true" visibility="public"
  16174. deprecated="not deprecated">
  16175. </field>
  16176. <field name="FS_FTP_USER_PREFIX" type="java.lang.String"
  16177. transient="false" volatile="false"
  16178. static="true" final="true" visibility="public"
  16179. deprecated="not deprecated">
  16180. </field>
  16181. <field name="FS_FTP_HOST" type="java.lang.String"
  16182. transient="false" volatile="false"
  16183. static="true" final="true" visibility="public"
  16184. deprecated="not deprecated">
  16185. </field>
  16186. <field name="FS_FTP_HOST_PORT" type="java.lang.String"
  16187. transient="false" volatile="false"
  16188. static="true" final="true" visibility="public"
  16189. deprecated="not deprecated">
  16190. </field>
  16191. <field name="FS_FTP_PASSWORD_PREFIX" type="java.lang.String"
  16192. transient="false" volatile="false"
  16193. static="true" final="true" visibility="public"
  16194. deprecated="not deprecated">
  16195. </field>
  16196. <field name="FS_FTP_DATA_CONNECTION_MODE" type="java.lang.String"
  16197. transient="false" volatile="false"
  16198. static="true" final="true" visibility="public"
  16199. deprecated="not deprecated">
  16200. </field>
  16201. <field name="FS_FTP_TRANSFER_MODE" type="java.lang.String"
  16202. transient="false" volatile="false"
  16203. static="true" final="true" visibility="public"
  16204. deprecated="not deprecated">
  16205. </field>
  16206. <field name="E_SAME_DIRECTORY_ONLY" type="java.lang.String"
  16207. transient="false" volatile="false"
  16208. static="true" final="true" visibility="public"
  16209. deprecated="not deprecated">
  16210. </field>
  16211. <doc>
  16212. <![CDATA[<p>
  16213. A {@link FileSystem} backed by an FTP client provided by <a
  16214. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  16215. </p>]]>
  16216. </doc>
  16217. </class>
  16218. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  16219. </package>
  16220. <package name="org.apache.hadoop.fs.http">
  16221. </package>
  16222. <package name="org.apache.hadoop.fs.protocolPB">
  16223. </package>
  16224. <package name="org.apache.hadoop.fs.sftp">
  16225. </package>
  16226. <package name="org.apache.hadoop.fs.shell.find">
  16227. </package>
  16228. <package name="org.apache.hadoop.ha">
  16229. <!-- start class org.apache.hadoop.ha.BadFencingConfigurationException -->
  16230. <class name="BadFencingConfigurationException" extends="java.io.IOException"
  16231. abstract="false"
  16232. static="false" final="false" visibility="public"
  16233. deprecated="not deprecated">
  16234. <constructor name="BadFencingConfigurationException" type="java.lang.String"
  16235. static="false" final="false" visibility="public"
  16236. deprecated="not deprecated">
  16237. </constructor>
  16238. <constructor name="BadFencingConfigurationException" type="java.lang.String, java.lang.Throwable"
  16239. static="false" final="false" visibility="public"
  16240. deprecated="not deprecated">
  16241. </constructor>
  16242. <doc>
  16243. <![CDATA[Indicates that the operator has specified an invalid configuration
  16244. for fencing methods.]]>
  16245. </doc>
  16246. </class>
  16247. <!-- end class org.apache.hadoop.ha.BadFencingConfigurationException -->
  16248. <!-- start class org.apache.hadoop.ha.FailoverFailedException -->
  16249. <class name="FailoverFailedException" extends="java.lang.Exception"
  16250. abstract="false"
  16251. static="false" final="false" visibility="public"
  16252. deprecated="not deprecated">
  16253. <constructor name="FailoverFailedException" type="java.lang.String"
  16254. static="false" final="false" visibility="public"
  16255. deprecated="not deprecated">
  16256. </constructor>
  16257. <constructor name="FailoverFailedException" type="java.lang.String, java.lang.Throwable"
  16258. static="false" final="false" visibility="public"
  16259. deprecated="not deprecated">
  16260. </constructor>
  16261. <doc>
  16262. <![CDATA[Exception thrown to indicate service failover has failed.]]>
  16263. </doc>
  16264. </class>
  16265. <!-- end class org.apache.hadoop.ha.FailoverFailedException -->
  16266. <!-- start interface org.apache.hadoop.ha.FenceMethod -->
  16267. <interface name="FenceMethod" abstract="true"
  16268. static="false" final="false" visibility="public"
  16269. deprecated="not deprecated">
  16270. <method name="checkArgs"
  16271. abstract="true" native="false" synchronized="false"
  16272. static="false" final="false" visibility="public"
  16273. deprecated="not deprecated">
  16274. <param name="args" type="java.lang.String"/>
  16275. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  16276. <doc>
  16277. <![CDATA[Verify that the given fencing method's arguments are valid.
  16278. @param args the arguments provided in the configuration. This may
  16279. be null if the operator did not configure any arguments.
  16280. @throws BadFencingConfigurationException if the arguments are invalid]]>
  16281. </doc>
  16282. </method>
  16283. <method name="tryFence" return="boolean"
  16284. abstract="true" native="false" synchronized="false"
  16285. static="false" final="false" visibility="public"
  16286. deprecated="not deprecated">
  16287. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  16288. <param name="args" type="java.lang.String"/>
  16289. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  16290. <doc>
  16291. <![CDATA[Attempt to fence the target node.
  16292. @param target the target of the service to fence
  16293. @param args the configured arguments, which were checked at startup by
  16294. {@link #checkArgs(String)}
  16295. @return true if fencing was successful, false if unsuccessful or
  16296. indeterminate
  16297. @throws BadFencingConfigurationException if the configuration was
  16298. determined to be invalid only at runtime]]>
  16299. </doc>
  16300. </method>
  16301. <doc>
  16302. <![CDATA[A fencing method is a method by which one node can forcibly prevent
  16303. another node from making continued progress. This might be implemented
  16304. by killing a process on the other node, by denying the other node's
  16305. access to shared storage, or by accessing a PDU to cut the other node's
  16306. power.
  16307. <p>
  16308. Since these methods are often vendor- or device-specific, operators
  16309. may implement this interface in order to achieve fencing.
  16310. <p>
  16311. Fencing is configured by the operator as an ordered list of methods to
  16312. attempt. Each method will be tried in turn, and the next in the list
  16313. will only be attempted if the previous one fails. See {@link NodeFencer}
  16314. for more information.
  16315. <p>
  16316. If an implementation also implements {@link Configurable} then its
  16317. <code>setConf</code> method will be called upon instantiation.]]>
  16318. </doc>
  16319. </interface>
  16320. <!-- end interface org.apache.hadoop.ha.FenceMethod -->
  16321. <!-- start interface org.apache.hadoop.ha.HAServiceProtocol -->
  16322. <interface name="HAServiceProtocol" abstract="true"
  16323. static="false" final="false" visibility="public"
  16324. deprecated="not deprecated">
  16325. <method name="monitorHealth"
  16326. abstract="true" native="false" synchronized="false"
  16327. static="false" final="false" visibility="public"
  16328. deprecated="not deprecated">
  16329. <exception name="HealthCheckFailedException" type="org.apache.hadoop.ha.HealthCheckFailedException"/>
  16330. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16331. <exception name="IOException" type="java.io.IOException"/>
  16332. <doc>
  16333. <![CDATA[Monitor the health of service. This periodically called by the HA
  16334. frameworks to monitor the health of the service.
  16335. Service is expected to perform checks to ensure it is functional.
  16336. If the service is not healthy due to failure or partial failure,
  16337. it is expected to throw {@link HealthCheckFailedException}.
  16338. The definition of service not healthy is left to the service.
  16339. Note that when health check of an Active service fails,
  16340. failover to standby may be done.
  16341. @throws HealthCheckFailedException
  16342. if the health check of a service fails.
  16343. @throws AccessControlException
  16344. if access is denied.
  16345. @throws IOException
  16346. if other errors happen]]>
  16347. </doc>
  16348. </method>
  16349. <method name="transitionToActive"
  16350. abstract="true" native="false" synchronized="false"
  16351. static="false" final="false" visibility="public"
  16352. deprecated="not deprecated">
  16353. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16354. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  16355. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16356. <exception name="IOException" type="java.io.IOException"/>
  16357. <doc>
  16358. <![CDATA[Request service to transition to active state. No operation, if the
  16359. service is already in active state.
  16360. @throws ServiceFailedException
  16361. if transition from standby to active fails.
  16362. @throws AccessControlException
  16363. if access is denied.
  16364. @throws IOException
  16365. if other errors happen]]>
  16366. </doc>
  16367. </method>
  16368. <method name="transitionToStandby"
  16369. abstract="true" native="false" synchronized="false"
  16370. static="false" final="false" visibility="public"
  16371. deprecated="not deprecated">
  16372. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16373. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  16374. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16375. <exception name="IOException" type="java.io.IOException"/>
  16376. <doc>
  16377. <![CDATA[Request service to transition to standby state. No operation, if the
  16378. service is already in standby state.
  16379. @throws ServiceFailedException
  16380. if transition from active to standby fails.
  16381. @throws AccessControlException
  16382. if access is denied.
  16383. @throws IOException
  16384. if other errors happen]]>
  16385. </doc>
  16386. </method>
  16387. <method name="transitionToObserver"
  16388. abstract="true" native="false" synchronized="false"
  16389. static="false" final="false" visibility="public"
  16390. deprecated="not deprecated">
  16391. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16392. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  16393. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16394. <exception name="IOException" type="java.io.IOException"/>
  16395. <doc>
  16396. <![CDATA[Request service to transition to observer state. No operation, if the
  16397. service is already in observer state.
  16398. @throws ServiceFailedException
  16399. if transition from standby to observer fails.
  16400. @throws AccessControlException
  16401. if access is denied.
  16402. @throws IOException
  16403. if other errors happen]]>
  16404. </doc>
  16405. </method>
  16406. <method name="getServiceStatus" return="org.apache.hadoop.ha.HAServiceStatus"
  16407. abstract="true" native="false" synchronized="false"
  16408. static="false" final="false" visibility="public"
  16409. deprecated="not deprecated">
  16410. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16411. <exception name="IOException" type="java.io.IOException"/>
  16412. <doc>
  16413. <![CDATA[Return the current status of the service. The status indicates
  16414. the current <em>state</em> (e.g ACTIVE/STANDBY) as well as
  16415. some additional information.
  16416. @throws AccessControlException
  16417. if access is denied.
  16418. @throws IOException
  16419. if other errors happen
  16420. @see HAServiceStatus]]>
  16421. </doc>
  16422. </method>
  16423. <field name="versionID" type="long"
  16424. transient="false" volatile="false"
  16425. static="true" final="true" visibility="public"
  16426. deprecated="not deprecated">
  16427. <doc>
  16428. <![CDATA[Initial version of the protocol]]>
  16429. </doc>
  16430. </field>
  16431. <doc>
  16432. <![CDATA[Protocol interface that provides High Availability related primitives to
  16433. monitor and fail-over the service.
  16434. This interface could be used by HA frameworks to manage the service.]]>
  16435. </doc>
  16436. </interface>
  16437. <!-- end interface org.apache.hadoop.ha.HAServiceProtocol -->
  16438. <!-- start class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  16439. <class name="HAServiceProtocolHelper" extends="java.lang.Object"
  16440. abstract="false"
  16441. static="false" final="false" visibility="public"
  16442. deprecated="not deprecated">
  16443. <constructor name="HAServiceProtocolHelper"
  16444. static="false" final="false" visibility="public"
  16445. deprecated="not deprecated">
  16446. </constructor>
  16447. <method name="monitorHealth"
  16448. abstract="false" native="false" synchronized="false"
  16449. static="true" final="false" visibility="public"
  16450. deprecated="not deprecated">
  16451. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  16452. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16453. <exception name="IOException" type="java.io.IOException"/>
  16454. </method>
  16455. <method name="transitionToActive"
  16456. abstract="false" native="false" synchronized="false"
  16457. static="true" final="false" visibility="public"
  16458. deprecated="not deprecated">
  16459. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  16460. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16461. <exception name="IOException" type="java.io.IOException"/>
  16462. </method>
  16463. <method name="transitionToStandby"
  16464. abstract="false" native="false" synchronized="false"
  16465. static="true" final="false" visibility="public"
  16466. deprecated="not deprecated">
  16467. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  16468. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16469. <exception name="IOException" type="java.io.IOException"/>
  16470. </method>
  16471. <method name="transitionToObserver"
  16472. abstract="false" native="false" synchronized="false"
  16473. static="true" final="false" visibility="public"
  16474. deprecated="not deprecated">
  16475. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  16476. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16477. <exception name="IOException" type="java.io.IOException"/>
  16478. </method>
  16479. <doc>
  16480. <![CDATA[Helper for making {@link HAServiceProtocol} RPC calls. This helper
  16481. unwraps the {@link RemoteException} to specific exceptions.]]>
  16482. </doc>
  16483. </class>
  16484. <!-- end class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  16485. <!-- start class org.apache.hadoop.ha.HAServiceTarget -->
  16486. <class name="HAServiceTarget" extends="java.lang.Object"
  16487. abstract="true"
  16488. static="false" final="false" visibility="public"
  16489. deprecated="not deprecated">
  16490. <constructor name="HAServiceTarget"
  16491. static="false" final="false" visibility="public"
  16492. deprecated="not deprecated">
  16493. </constructor>
  16494. <method name="getAddress" return="java.net.InetSocketAddress"
  16495. abstract="true" native="false" synchronized="false"
  16496. static="false" final="false" visibility="public"
  16497. deprecated="not deprecated">
  16498. <doc>
  16499. <![CDATA[@return the IPC address of the target node.]]>
  16500. </doc>
  16501. </method>
  16502. <method name="getHealthMonitorAddress" return="java.net.InetSocketAddress"
  16503. abstract="false" native="false" synchronized="false"
  16504. static="false" final="false" visibility="public"
  16505. deprecated="not deprecated">
  16506. <doc>
  16507. <![CDATA[Returns an optional separate RPC server address for health checks at the
  16508. target node. If defined, then this address is used by the health monitor
  16509. for the {@link HAServiceProtocol#monitorHealth()} and
  16510. {@link HAServiceProtocol#getServiceStatus()} calls. This can be useful for
  16511. separating out these calls onto separate RPC handlers to protect against
  16512. resource exhaustion in the main RPC handler pool. If null (which is the
  16513. default implementation), then all RPC calls go to the address defined by
  16514. {@link #getAddress()}.
  16515. @return IPC address of the lifeline RPC server on the target node, or null
  16516. if no lifeline RPC server is used]]>
  16517. </doc>
  16518. </method>
  16519. <method name="getZKFCAddress" return="java.net.InetSocketAddress"
  16520. abstract="true" native="false" synchronized="false"
  16521. static="false" final="false" visibility="public"
  16522. deprecated="not deprecated">
  16523. <doc>
  16524. <![CDATA[@return the IPC address of the ZKFC on the target node]]>
  16525. </doc>
  16526. </method>
  16527. <method name="getFencer" return="org.apache.hadoop.ha.NodeFencer"
  16528. abstract="true" native="false" synchronized="false"
  16529. static="false" final="false" visibility="public"
  16530. deprecated="not deprecated">
  16531. <doc>
  16532. <![CDATA[@return a Fencer implementation configured for this target node]]>
  16533. </doc>
  16534. </method>
  16535. <method name="checkFencingConfigured"
  16536. abstract="true" native="false" synchronized="false"
  16537. static="false" final="false" visibility="public"
  16538. deprecated="not deprecated">
  16539. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  16540. <doc>
  16541. <![CDATA[@throws BadFencingConfigurationException if the fencing configuration
  16542. appears to be invalid. This is divorced from the above
  16543. {@link #getFencer()} method so that the configuration can be checked
  16544. during the pre-flight phase of failover.]]>
  16545. </doc>
  16546. </method>
  16547. <method name="getProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  16548. abstract="false" native="false" synchronized="false"
  16549. static="false" final="false" visibility="public"
  16550. deprecated="not deprecated">
  16551. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16552. <param name="timeoutMs" type="int"/>
  16553. <exception name="IOException" type="java.io.IOException"/>
  16554. <doc>
  16555. <![CDATA[@return a proxy to connect to the target HA Service.]]>
  16556. </doc>
  16557. </method>
  16558. <method name="setTransitionTargetHAStatus"
  16559. abstract="false" native="false" synchronized="false"
  16560. static="false" final="false" visibility="public"
  16561. deprecated="not deprecated">
  16562. <param name="status" type="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState"/>
  16563. </method>
  16564. <method name="getTransitionTargetHAStatus" return="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState"
  16565. abstract="false" native="false" synchronized="false"
  16566. static="false" final="false" visibility="public"
  16567. deprecated="not deprecated">
  16568. </method>
  16569. <method name="getHealthMonitorProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  16570. abstract="false" native="false" synchronized="false"
  16571. static="false" final="false" visibility="public"
  16572. deprecated="not deprecated">
  16573. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16574. <param name="timeoutMs" type="int"/>
  16575. <exception name="IOException" type="java.io.IOException"/>
  16576. <doc>
  16577. <![CDATA[Returns a proxy to connect to the target HA service for health monitoring.
  16578. If {@link #getHealthMonitorAddress()} is implemented to return a non-null
  16579. address, then this proxy will connect to that address. Otherwise, the
  16580. returned proxy defaults to using {@link #getAddress()}, which means this
  16581. method's behavior is identical to {@link #getProxy(Configuration, int)}.
  16582. @param conf Configuration
  16583. @param timeoutMs timeout in milliseconds
  16584. @return a proxy to connect to the target HA service for health monitoring
  16585. @throws IOException if there is an error]]>
  16586. </doc>
  16587. </method>
  16588. <method name="getZKFCProxy" return="org.apache.hadoop.ha.ZKFCProtocol"
  16589. abstract="false" native="false" synchronized="false"
  16590. static="false" final="false" visibility="public"
  16591. deprecated="not deprecated">
  16592. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16593. <param name="timeoutMs" type="int"/>
  16594. <exception name="IOException" type="java.io.IOException"/>
  16595. <doc>
  16596. <![CDATA[@return a proxy to the ZKFC which is associated with this HA service.]]>
  16597. </doc>
  16598. </method>
  16599. <method name="getFencingParameters" return="java.util.Map"
  16600. abstract="false" native="false" synchronized="false"
  16601. static="false" final="true" visibility="public"
  16602. deprecated="not deprecated">
  16603. </method>
  16604. <method name="addFencingParameters"
  16605. abstract="false" native="false" synchronized="false"
  16606. static="false" final="false" visibility="protected"
  16607. deprecated="not deprecated">
  16608. <param name="ret" type="java.util.Map"/>
  16609. <doc>
  16610. <![CDATA[Hook to allow subclasses to add any parameters they would like to
  16611. expose to fencing implementations/scripts. Fencing methods are free
  16612. to use this map as they see fit -- notably, the shell script
  16613. implementation takes each entry, prepends 'target_', substitutes
  16614. '_' for '.', and adds it to the environment of the script.
  16615. Subclass implementations should be sure to delegate to the superclass
  16616. implementation as well as adding their own keys.
  16617. @param ret map which can be mutated to pass parameters to the fencer]]>
  16618. </doc>
  16619. </method>
  16620. <method name="isAutoFailoverEnabled" return="boolean"
  16621. abstract="false" native="false" synchronized="false"
  16622. static="false" final="false" visibility="public"
  16623. deprecated="not deprecated">
  16624. <doc>
  16625. <![CDATA[@return true if auto failover should be considered enabled]]>
  16626. </doc>
  16627. </method>
  16628. <method name="supportObserver" return="boolean"
  16629. abstract="false" native="false" synchronized="false"
  16630. static="false" final="false" visibility="public"
  16631. deprecated="not deprecated">
  16632. <doc>
  16633. <![CDATA[@return true if this target supports the Observer state, false otherwise.]]>
  16634. </doc>
  16635. </method>
  16636. <doc>
  16637. <![CDATA[Represents a target of the client side HA administration commands.]]>
  16638. </doc>
  16639. </class>
  16640. <!-- end class org.apache.hadoop.ha.HAServiceTarget -->
  16641. <!-- start class org.apache.hadoop.ha.HealthCheckFailedException -->
  16642. <class name="HealthCheckFailedException" extends="java.io.IOException"
  16643. abstract="false"
  16644. static="false" final="false" visibility="public"
  16645. deprecated="not deprecated">
  16646. <constructor name="HealthCheckFailedException" type="java.lang.String"
  16647. static="false" final="false" visibility="public"
  16648. deprecated="not deprecated">
  16649. </constructor>
  16650. <constructor name="HealthCheckFailedException" type="java.lang.String, java.lang.Throwable"
  16651. static="false" final="false" visibility="public"
  16652. deprecated="not deprecated">
  16653. </constructor>
  16654. <doc>
  16655. <![CDATA[Exception thrown to indicate that health check of a service failed.]]>
  16656. </doc>
  16657. </class>
  16658. <!-- end class org.apache.hadoop.ha.HealthCheckFailedException -->
  16659. <!-- start class org.apache.hadoop.ha.ServiceFailedException -->
  16660. <class name="ServiceFailedException" extends="java.io.IOException"
  16661. abstract="false"
  16662. static="false" final="false" visibility="public"
  16663. deprecated="not deprecated">
  16664. <constructor name="ServiceFailedException" type="java.lang.String"
  16665. static="false" final="false" visibility="public"
  16666. deprecated="not deprecated">
  16667. </constructor>
  16668. <constructor name="ServiceFailedException" type="java.lang.String, java.lang.Throwable"
  16669. static="false" final="false" visibility="public"
  16670. deprecated="not deprecated">
  16671. </constructor>
  16672. <doc>
  16673. <![CDATA[Exception thrown to indicate that an operation performed
  16674. to modify the state of a service or application failed.]]>
  16675. </doc>
  16676. </class>
  16677. <!-- end class org.apache.hadoop.ha.ServiceFailedException -->
  16678. </package>
  16679. <package name="org.apache.hadoop.ha.protocolPB">
  16680. <!-- start interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  16681. <interface name="HAServiceProtocolPB" abstract="true"
  16682. static="false" final="false" visibility="public"
  16683. deprecated="not deprecated">
  16684. <implements name="org.apache.hadoop.ha.proto.HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface"/>
  16685. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  16686. </interface>
  16687. <!-- end interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  16688. <!-- start interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  16689. <interface name="ZKFCProtocolPB" abstract="true"
  16690. static="false" final="false" visibility="public"
  16691. deprecated="not deprecated">
  16692. <implements name="org.apache.hadoop.ha.proto.ZKFCProtocolProtos.ZKFCProtocolService.BlockingInterface"/>
  16693. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  16694. </interface>
  16695. <!-- end interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  16696. </package>
  16697. <package name="org.apache.hadoop.http.lib">
  16698. <doc>
  16699. <![CDATA[This package provides user-selectable (via configuration) classes that add
  16700. functionality to the web UI. They are configured as a list of classes in the
  16701. configuration parameter <b>hadoop.http.filter.initializers</b>.
  16702. <ul>
  16703. <li> <b>StaticUserWebFilter</b> - An authorization plugin that makes all
  16704. users a static configured user.
  16705. </ul>]]>
  16706. </doc>
  16707. </package>
  16708. <package name="org.apache.hadoop.io">
  16709. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  16710. <class name="AbstractMapWritable" extends="java.lang.Object"
  16711. abstract="true"
  16712. static="false" final="false" visibility="public"
  16713. deprecated="not deprecated">
  16714. <implements name="org.apache.hadoop.io.Writable"/>
  16715. <implements name="org.apache.hadoop.conf.Configurable"/>
  16716. <constructor name="AbstractMapWritable"
  16717. static="false" final="false" visibility="protected"
  16718. deprecated="not deprecated">
  16719. <doc>
  16720. <![CDATA[constructor.]]>
  16721. </doc>
  16722. </constructor>
  16723. <method name="addToMap"
  16724. abstract="false" native="false" synchronized="true"
  16725. static="false" final="false" visibility="protected"
  16726. deprecated="not deprecated">
  16727. <param name="clazz" type="java.lang.Class"/>
  16728. <doc>
  16729. <![CDATA[Add a Class to the maps if it is not already present.]]>
  16730. </doc>
  16731. </method>
  16732. <method name="getClass" return="java.lang.Class"
  16733. abstract="false" native="false" synchronized="false"
  16734. static="false" final="false" visibility="protected"
  16735. deprecated="not deprecated">
  16736. <param name="id" type="byte"/>
  16737. <doc>
  16738. <![CDATA[@return the Class class for the specified id]]>
  16739. </doc>
  16740. </method>
  16741. <method name="getId" return="byte"
  16742. abstract="false" native="false" synchronized="false"
  16743. static="false" final="false" visibility="protected"
  16744. deprecated="not deprecated">
  16745. <param name="clazz" type="java.lang.Class"/>
  16746. <doc>
  16747. <![CDATA[@return the id for the specified Class]]>
  16748. </doc>
  16749. </method>
  16750. <method name="copy"
  16751. abstract="false" native="false" synchronized="true"
  16752. static="false" final="false" visibility="protected"
  16753. deprecated="not deprecated">
  16754. <param name="other" type="org.apache.hadoop.io.Writable"/>
  16755. <doc>
  16756. <![CDATA[Used by child copy constructors.]]>
  16757. </doc>
  16758. </method>
  16759. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  16760. abstract="false" native="false" synchronized="false"
  16761. static="false" final="false" visibility="public"
  16762. deprecated="not deprecated">
  16763. <doc>
  16764. <![CDATA[@return the conf]]>
  16765. </doc>
  16766. </method>
  16767. <method name="setConf"
  16768. abstract="false" native="false" synchronized="false"
  16769. static="false" final="false" visibility="public"
  16770. deprecated="not deprecated">
  16771. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16772. <doc>
  16773. <![CDATA[@param conf the conf to set]]>
  16774. </doc>
  16775. </method>
  16776. <method name="write"
  16777. abstract="false" native="false" synchronized="false"
  16778. static="false" final="false" visibility="public"
  16779. deprecated="not deprecated">
  16780. <param name="out" type="java.io.DataOutput"/>
  16781. <exception name="IOException" type="java.io.IOException"/>
  16782. </method>
  16783. <method name="readFields"
  16784. abstract="false" native="false" synchronized="false"
  16785. static="false" final="false" visibility="public"
  16786. deprecated="not deprecated">
  16787. <param name="in" type="java.io.DataInput"/>
  16788. <exception name="IOException" type="java.io.IOException"/>
  16789. </method>
  16790. <doc>
  16791. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  16792. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  16793. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  16794. maps travel with the class instead of being static.
  16795. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  16796. in any specific map instance.]]>
  16797. </doc>
  16798. </class>
  16799. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  16800. <!-- start class org.apache.hadoop.io.ArrayFile -->
  16801. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  16802. abstract="false"
  16803. static="false" final="false" visibility="public"
  16804. deprecated="not deprecated">
  16805. <constructor name="ArrayFile"
  16806. static="false" final="false" visibility="protected"
  16807. deprecated="not deprecated">
  16808. </constructor>
  16809. <doc>
  16810. <![CDATA[A dense file-based mapping from integers to values.]]>
  16811. </doc>
  16812. </class>
  16813. <!-- end class org.apache.hadoop.io.ArrayFile -->
  16814. <!-- start class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  16815. <class name="ArrayPrimitiveWritable" extends="java.lang.Object"
  16816. abstract="false"
  16817. static="false" final="false" visibility="public"
  16818. deprecated="not deprecated">
  16819. <implements name="org.apache.hadoop.io.Writable"/>
  16820. <constructor name="ArrayPrimitiveWritable"
  16821. static="false" final="false" visibility="public"
  16822. deprecated="not deprecated">
  16823. <doc>
  16824. <![CDATA[Construct an empty instance, for use during Writable read]]>
  16825. </doc>
  16826. </constructor>
  16827. <constructor name="ArrayPrimitiveWritable" type="java.lang.Class"
  16828. static="false" final="false" visibility="public"
  16829. deprecated="not deprecated">
  16830. <doc>
  16831. <![CDATA[Construct an instance of known type but no value yet
  16832. for use with type-specific wrapper classes]]>
  16833. </doc>
  16834. </constructor>
  16835. <constructor name="ArrayPrimitiveWritable" type="java.lang.Object"
  16836. static="false" final="false" visibility="public"
  16837. deprecated="not deprecated">
  16838. <doc>
  16839. <![CDATA[Wrap an existing array of primitives
  16840. @param value - array of primitives]]>
  16841. </doc>
  16842. </constructor>
  16843. <method name="get" return="java.lang.Object"
  16844. abstract="false" native="false" synchronized="false"
  16845. static="false" final="false" visibility="public"
  16846. deprecated="not deprecated">
  16847. <doc>
  16848. <![CDATA[Get the original array.
  16849. Client must cast it back to type componentType[]
  16850. (or may use type-specific wrapper classes).
  16851. @return - original array as Object]]>
  16852. </doc>
  16853. </method>
  16854. <method name="getComponentType" return="java.lang.Class"
  16855. abstract="false" native="false" synchronized="false"
  16856. static="false" final="false" visibility="public"
  16857. deprecated="not deprecated">
  16858. </method>
  16859. <method name="getDeclaredComponentType" return="java.lang.Class"
  16860. abstract="false" native="false" synchronized="false"
  16861. static="false" final="false" visibility="public"
  16862. deprecated="not deprecated">
  16863. </method>
  16864. <method name="isDeclaredComponentType" return="boolean"
  16865. abstract="false" native="false" synchronized="false"
  16866. static="false" final="false" visibility="public"
  16867. deprecated="not deprecated">
  16868. <param name="componentType" type="java.lang.Class"/>
  16869. </method>
  16870. <method name="set"
  16871. abstract="false" native="false" synchronized="false"
  16872. static="false" final="false" visibility="public"
  16873. deprecated="not deprecated">
  16874. <param name="value" type="java.lang.Object"/>
  16875. </method>
  16876. <method name="write"
  16877. abstract="false" native="false" synchronized="false"
  16878. static="false" final="false" visibility="public"
  16879. deprecated="not deprecated">
  16880. <param name="out" type="java.io.DataOutput"/>
  16881. <exception name="IOException" type="java.io.IOException"/>
  16882. </method>
  16883. <method name="readFields"
  16884. abstract="false" native="false" synchronized="false"
  16885. static="false" final="false" visibility="public"
  16886. deprecated="not deprecated">
  16887. <param name="in" type="java.io.DataInput"/>
  16888. <exception name="IOException" type="java.io.IOException"/>
  16889. </method>
  16890. <doc>
  16891. <![CDATA[This is a wrapper class. It wraps a Writable implementation around
  16892. an array of primitives (e.g., int[], long[], etc.), with optimized
  16893. wire format, and without creating new objects per element.
  16894. This is a wrapper class only; it does not make a copy of the
  16895. underlying array.]]>
  16896. </doc>
  16897. </class>
  16898. <!-- end class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  16899. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  16900. <class name="ArrayWritable" extends="java.lang.Object"
  16901. abstract="false"
  16902. static="false" final="false" visibility="public"
  16903. deprecated="not deprecated">
  16904. <implements name="org.apache.hadoop.io.Writable"/>
  16905. <constructor name="ArrayWritable" type="java.lang.Class"
  16906. static="false" final="false" visibility="public"
  16907. deprecated="not deprecated">
  16908. </constructor>
  16909. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  16910. static="false" final="false" visibility="public"
  16911. deprecated="not deprecated">
  16912. </constructor>
  16913. <constructor name="ArrayWritable" type="java.lang.String[]"
  16914. static="false" final="false" visibility="public"
  16915. deprecated="not deprecated">
  16916. </constructor>
  16917. <method name="getValueClass" return="java.lang.Class"
  16918. abstract="false" native="false" synchronized="false"
  16919. static="false" final="false" visibility="public"
  16920. deprecated="not deprecated">
  16921. </method>
  16922. <method name="toStrings" return="java.lang.String[]"
  16923. abstract="false" native="false" synchronized="false"
  16924. static="false" final="false" visibility="public"
  16925. deprecated="not deprecated">
  16926. </method>
  16927. <method name="toArray" return="java.lang.Object"
  16928. abstract="false" native="false" synchronized="false"
  16929. static="false" final="false" visibility="public"
  16930. deprecated="not deprecated">
  16931. </method>
  16932. <method name="set"
  16933. abstract="false" native="false" synchronized="false"
  16934. static="false" final="false" visibility="public"
  16935. deprecated="not deprecated">
  16936. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  16937. </method>
  16938. <method name="get" return="org.apache.hadoop.io.Writable[]"
  16939. abstract="false" native="false" synchronized="false"
  16940. static="false" final="false" visibility="public"
  16941. deprecated="not deprecated">
  16942. </method>
  16943. <method name="readFields"
  16944. abstract="false" native="false" synchronized="false"
  16945. static="false" final="false" visibility="public"
  16946. deprecated="not deprecated">
  16947. <param name="in" type="java.io.DataInput"/>
  16948. <exception name="IOException" type="java.io.IOException"/>
  16949. </method>
  16950. <method name="write"
  16951. abstract="false" native="false" synchronized="false"
  16952. static="false" final="false" visibility="public"
  16953. deprecated="not deprecated">
  16954. <param name="out" type="java.io.DataOutput"/>
  16955. <exception name="IOException" type="java.io.IOException"/>
  16956. </method>
  16957. <doc>
  16958. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  16959. writable must all be instances of the same class. If this writable will be
  16960. the input for a Reducer, you will need to create a subclass that sets the
  16961. value to be of the proper type.
  16962. For example:
  16963. <code>
  16964. public class IntArrayWritable extends ArrayWritable {
  16965. public IntArrayWritable() {
  16966. super(IntWritable.class);
  16967. }
  16968. }
  16969. </code>]]>
  16970. </doc>
  16971. </class>
  16972. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  16973. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  16974. <class name="BinaryComparable" extends="java.lang.Object"
  16975. abstract="true"
  16976. static="false" final="false" visibility="public"
  16977. deprecated="not deprecated">
  16978. <implements name="java.lang.Comparable"/>
  16979. <constructor name="BinaryComparable"
  16980. static="false" final="false" visibility="public"
  16981. deprecated="not deprecated">
  16982. </constructor>
  16983. <method name="getLength" return="int"
  16984. abstract="true" native="false" synchronized="false"
  16985. static="false" final="false" visibility="public"
  16986. deprecated="not deprecated">
  16987. <doc>
  16988. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  16989. </doc>
  16990. </method>
  16991. <method name="getBytes" return="byte[]"
  16992. abstract="true" native="false" synchronized="false"
  16993. static="false" final="false" visibility="public"
  16994. deprecated="not deprecated">
  16995. <doc>
  16996. <![CDATA[Return representative byte array for this instance.]]>
  16997. </doc>
  16998. </method>
  16999. <method name="compareTo" return="int"
  17000. abstract="false" native="false" synchronized="false"
  17001. static="false" final="false" visibility="public"
  17002. deprecated="not deprecated">
  17003. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  17004. <doc>
  17005. <![CDATA[Compare bytes from {#getBytes()}.
  17006. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  17007. </doc>
  17008. </method>
  17009. <method name="compareTo" return="int"
  17010. abstract="false" native="false" synchronized="false"
  17011. static="false" final="false" visibility="public"
  17012. deprecated="not deprecated">
  17013. <param name="other" type="byte[]"/>
  17014. <param name="off" type="int"/>
  17015. <param name="len" type="int"/>
  17016. <doc>
  17017. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  17018. </doc>
  17019. </method>
  17020. <method name="equals" return="boolean"
  17021. abstract="false" native="false" synchronized="false"
  17022. static="false" final="false" visibility="public"
  17023. deprecated="not deprecated">
  17024. <param name="other" type="java.lang.Object"/>
  17025. <doc>
  17026. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  17027. </doc>
  17028. </method>
  17029. <method name="hashCode" return="int"
  17030. abstract="false" native="false" synchronized="false"
  17031. static="false" final="false" visibility="public"
  17032. deprecated="not deprecated">
  17033. <doc>
  17034. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  17035. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  17036. </doc>
  17037. </method>
  17038. <doc>
  17039. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  17040. types supporting ordering/permutation by a representative set of bytes.]]>
  17041. </doc>
  17042. </class>
  17043. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  17044. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  17045. <class name="BloomMapFile" extends="java.lang.Object"
  17046. abstract="false"
  17047. static="false" final="false" visibility="public"
  17048. deprecated="not deprecated">
  17049. <constructor name="BloomMapFile"
  17050. static="false" final="false" visibility="public"
  17051. deprecated="not deprecated">
  17052. </constructor>
  17053. <method name="delete"
  17054. abstract="false" native="false" synchronized="false"
  17055. static="true" final="false" visibility="public"
  17056. deprecated="not deprecated">
  17057. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17058. <param name="name" type="java.lang.String"/>
  17059. <exception name="IOException" type="java.io.IOException"/>
  17060. </method>
  17061. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  17062. transient="false" volatile="false"
  17063. static="true" final="true" visibility="public"
  17064. deprecated="not deprecated">
  17065. </field>
  17066. <field name="HASH_COUNT" type="int"
  17067. transient="false" volatile="false"
  17068. static="true" final="true" visibility="public"
  17069. deprecated="not deprecated">
  17070. </field>
  17071. <doc>
  17072. <![CDATA[This class extends {@link MapFile} and provides very much the same
  17073. functionality. However, it uses dynamic Bloom filters to provide
  17074. quick membership test for keys, and it offers a fast version of
  17075. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  17076. case of sparsely populated MapFile-s.]]>
  17077. </doc>
  17078. </class>
  17079. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  17080. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  17081. <class name="BooleanWritable" extends="java.lang.Object"
  17082. abstract="false"
  17083. static="false" final="false" visibility="public"
  17084. deprecated="not deprecated">
  17085. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17086. <constructor name="BooleanWritable"
  17087. static="false" final="false" visibility="public"
  17088. deprecated="not deprecated">
  17089. </constructor>
  17090. <constructor name="BooleanWritable" type="boolean"
  17091. static="false" final="false" visibility="public"
  17092. deprecated="not deprecated">
  17093. </constructor>
  17094. <method name="set"
  17095. abstract="false" native="false" synchronized="false"
  17096. static="false" final="false" visibility="public"
  17097. deprecated="not deprecated">
  17098. <param name="value" type="boolean"/>
  17099. <doc>
  17100. <![CDATA[Set the value of the BooleanWritable]]>
  17101. </doc>
  17102. </method>
  17103. <method name="get" return="boolean"
  17104. abstract="false" native="false" synchronized="false"
  17105. static="false" final="false" visibility="public"
  17106. deprecated="not deprecated">
  17107. <doc>
  17108. <![CDATA[Returns the value of the BooleanWritable]]>
  17109. </doc>
  17110. </method>
  17111. <method name="readFields"
  17112. abstract="false" native="false" synchronized="false"
  17113. static="false" final="false" visibility="public"
  17114. deprecated="not deprecated">
  17115. <param name="in" type="java.io.DataInput"/>
  17116. <exception name="IOException" type="java.io.IOException"/>
  17117. </method>
  17118. <method name="write"
  17119. abstract="false" native="false" synchronized="false"
  17120. static="false" final="false" visibility="public"
  17121. deprecated="not deprecated">
  17122. <param name="out" type="java.io.DataOutput"/>
  17123. <exception name="IOException" type="java.io.IOException"/>
  17124. </method>
  17125. <method name="equals" return="boolean"
  17126. abstract="false" native="false" synchronized="false"
  17127. static="false" final="false" visibility="public"
  17128. deprecated="not deprecated">
  17129. <param name="o" type="java.lang.Object"/>
  17130. </method>
  17131. <method name="hashCode" return="int"
  17132. abstract="false" native="false" synchronized="false"
  17133. static="false" final="false" visibility="public"
  17134. deprecated="not deprecated">
  17135. </method>
  17136. <method name="compareTo" return="int"
  17137. abstract="false" native="false" synchronized="false"
  17138. static="false" final="false" visibility="public"
  17139. deprecated="not deprecated">
  17140. <param name="o" type="org.apache.hadoop.io.BooleanWritable"/>
  17141. </method>
  17142. <method name="toString" return="java.lang.String"
  17143. abstract="false" native="false" synchronized="false"
  17144. static="false" final="false" visibility="public"
  17145. deprecated="not deprecated">
  17146. </method>
  17147. <doc>
  17148. <![CDATA[A WritableComparable for booleans.]]>
  17149. </doc>
  17150. </class>
  17151. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  17152. <!-- start interface org.apache.hadoop.io.ByteBufferPool -->
  17153. <interface name="ByteBufferPool" abstract="true"
  17154. static="false" final="false" visibility="public"
  17155. deprecated="not deprecated">
  17156. <method name="getBuffer" return="java.nio.ByteBuffer"
  17157. abstract="true" native="false" synchronized="false"
  17158. static="false" final="false" visibility="public"
  17159. deprecated="not deprecated">
  17160. <param name="direct" type="boolean"/>
  17161. <param name="length" type="int"/>
  17162. <doc>
  17163. <![CDATA[Get a new direct ByteBuffer. The pool can provide this from
  17164. removing a buffer from its internal cache, or by allocating a
  17165. new buffer.
  17166. @param direct Whether the buffer should be direct.
  17167. @param length The minimum length the buffer will have.
  17168. @return A new ByteBuffer. This ByteBuffer must be direct.
  17169. Its capacity can be less than what was requested, but
  17170. must be at least 1 byte.]]>
  17171. </doc>
  17172. </method>
  17173. <method name="putBuffer"
  17174. abstract="true" native="false" synchronized="false"
  17175. static="false" final="false" visibility="public"
  17176. deprecated="not deprecated">
  17177. <param name="buffer" type="java.nio.ByteBuffer"/>
  17178. <doc>
  17179. <![CDATA[Release a buffer back to the pool.
  17180. The pool may choose to put this buffer into its cache.
  17181. @param buffer a direct bytebuffer]]>
  17182. </doc>
  17183. </method>
  17184. </interface>
  17185. <!-- end interface org.apache.hadoop.io.ByteBufferPool -->
  17186. <!-- start class org.apache.hadoop.io.BytesWritable -->
  17187. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  17188. abstract="false"
  17189. static="false" final="false" visibility="public"
  17190. deprecated="not deprecated">
  17191. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17192. <constructor name="BytesWritable"
  17193. static="false" final="false" visibility="public"
  17194. deprecated="not deprecated">
  17195. <doc>
  17196. <![CDATA[Create a zero-size sequence.]]>
  17197. </doc>
  17198. </constructor>
  17199. <constructor name="BytesWritable" type="byte[]"
  17200. static="false" final="false" visibility="public"
  17201. deprecated="not deprecated">
  17202. <doc>
  17203. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  17204. @param bytes This array becomes the backing storage for the object.]]>
  17205. </doc>
  17206. </constructor>
  17207. <constructor name="BytesWritable" type="byte[], int"
  17208. static="false" final="false" visibility="public"
  17209. deprecated="not deprecated">
  17210. <doc>
  17211. <![CDATA[Create a BytesWritable using the byte array as the initial value
  17212. and length as the length. Use this constructor if the array is larger
  17213. than the value it represents.
  17214. @param bytes This array becomes the backing storage for the object.
  17215. @param length The number of bytes to use from array.]]>
  17216. </doc>
  17217. </constructor>
  17218. <method name="copyBytes" return="byte[]"
  17219. abstract="false" native="false" synchronized="false"
  17220. static="false" final="false" visibility="public"
  17221. deprecated="not deprecated">
  17222. <doc>
  17223. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  17224. See {@link #getBytes()} for faster access to the underlying array.]]>
  17225. </doc>
  17226. </method>
  17227. <method name="getBytes" return="byte[]"
  17228. abstract="false" native="false" synchronized="false"
  17229. static="false" final="false" visibility="public"
  17230. deprecated="not deprecated">
  17231. <doc>
  17232. <![CDATA[Get the data backing the BytesWritable. Please use {@link #copyBytes()}
  17233. if you need the returned array to be precisely the length of the data.
  17234. @return The data is only valid between 0 and getLength() - 1.]]>
  17235. </doc>
  17236. </method>
  17237. <method name="get" return="byte[]"
  17238. abstract="false" native="false" synchronized="false"
  17239. static="false" final="false" visibility="public"
  17240. deprecated="Use {@link #getBytes()} instead.">
  17241. <doc>
  17242. <![CDATA[Get the data from the BytesWritable.
  17243. @deprecated Use {@link #getBytes()} instead.]]>
  17244. </doc>
  17245. </method>
  17246. <method name="getLength" return="int"
  17247. abstract="false" native="false" synchronized="false"
  17248. static="false" final="false" visibility="public"
  17249. deprecated="not deprecated">
  17250. <doc>
  17251. <![CDATA[Get the current size of the buffer.]]>
  17252. </doc>
  17253. </method>
  17254. <method name="getSize" return="int"
  17255. abstract="false" native="false" synchronized="false"
  17256. static="false" final="false" visibility="public"
  17257. deprecated="Use {@link #getLength()} instead.">
  17258. <doc>
  17259. <![CDATA[Get the current size of the buffer.
  17260. @deprecated Use {@link #getLength()} instead.]]>
  17261. </doc>
  17262. </method>
  17263. <method name="setSize"
  17264. abstract="false" native="false" synchronized="false"
  17265. static="false" final="false" visibility="public"
  17266. deprecated="not deprecated">
  17267. <param name="size" type="int"/>
  17268. <doc>
  17269. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  17270. and any new values are undefined. The capacity is changed if it is
  17271. necessary.
  17272. @param size The new number of bytes]]>
  17273. </doc>
  17274. </method>
  17275. <method name="getCapacity" return="int"
  17276. abstract="false" native="false" synchronized="false"
  17277. static="false" final="false" visibility="public"
  17278. deprecated="not deprecated">
  17279. <doc>
  17280. <![CDATA[Get the capacity, which is the maximum size that could handled without
  17281. resizing the backing storage.
  17282. @return The number of bytes]]>
  17283. </doc>
  17284. </method>
  17285. <method name="setCapacity"
  17286. abstract="false" native="false" synchronized="false"
  17287. static="false" final="false" visibility="public"
  17288. deprecated="not deprecated">
  17289. <param name="new_cap" type="int"/>
  17290. <doc>
  17291. <![CDATA[Change the capacity of the backing storage.
  17292. The data is preserved.
  17293. @param new_cap The new capacity in bytes.]]>
  17294. </doc>
  17295. </method>
  17296. <method name="set"
  17297. abstract="false" native="false" synchronized="false"
  17298. static="false" final="false" visibility="public"
  17299. deprecated="not deprecated">
  17300. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  17301. <doc>
  17302. <![CDATA[Set the BytesWritable to the contents of the given newData.
  17303. @param newData the value to set this BytesWritable to.]]>
  17304. </doc>
  17305. </method>
  17306. <method name="set"
  17307. abstract="false" native="false" synchronized="false"
  17308. static="false" final="false" visibility="public"
  17309. deprecated="not deprecated">
  17310. <param name="newData" type="byte[]"/>
  17311. <param name="offset" type="int"/>
  17312. <param name="length" type="int"/>
  17313. <doc>
  17314. <![CDATA[Set the value to a copy of the given byte range
  17315. @param newData the new values to copy in
  17316. @param offset the offset in newData to start at
  17317. @param length the number of bytes to copy]]>
  17318. </doc>
  17319. </method>
  17320. <method name="readFields"
  17321. abstract="false" native="false" synchronized="false"
  17322. static="false" final="false" visibility="public"
  17323. deprecated="not deprecated">
  17324. <param name="in" type="java.io.DataInput"/>
  17325. <exception name="IOException" type="java.io.IOException"/>
  17326. </method>
  17327. <method name="write"
  17328. abstract="false" native="false" synchronized="false"
  17329. static="false" final="false" visibility="public"
  17330. deprecated="not deprecated">
  17331. <param name="out" type="java.io.DataOutput"/>
  17332. <exception name="IOException" type="java.io.IOException"/>
  17333. </method>
  17334. <method name="hashCode" return="int"
  17335. abstract="false" native="false" synchronized="false"
  17336. static="false" final="false" visibility="public"
  17337. deprecated="not deprecated">
  17338. </method>
  17339. <method name="equals" return="boolean"
  17340. abstract="false" native="false" synchronized="false"
  17341. static="false" final="false" visibility="public"
  17342. deprecated="not deprecated">
  17343. <param name="right_obj" type="java.lang.Object"/>
  17344. <doc>
  17345. <![CDATA[Are the two byte sequences equal?]]>
  17346. </doc>
  17347. </method>
  17348. <method name="toString" return="java.lang.String"
  17349. abstract="false" native="false" synchronized="false"
  17350. static="false" final="false" visibility="public"
  17351. deprecated="not deprecated">
  17352. <doc>
  17353. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  17354. </doc>
  17355. </method>
  17356. <doc>
  17357. <![CDATA[A byte sequence that is usable as a key or value.
  17358. It is resizable and distinguishes between the size of the sequence and
  17359. the current capacity. The hash function is the front of the md5 of the
  17360. buffer. The sort order is the same as memcmp.]]>
  17361. </doc>
  17362. </class>
  17363. <!-- end class org.apache.hadoop.io.BytesWritable -->
  17364. <!-- start class org.apache.hadoop.io.ByteWritable -->
  17365. <class name="ByteWritable" 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.WritableComparable"/>
  17370. <constructor name="ByteWritable"
  17371. static="false" final="false" visibility="public"
  17372. deprecated="not deprecated">
  17373. </constructor>
  17374. <constructor name="ByteWritable" type="byte"
  17375. static="false" final="false" visibility="public"
  17376. deprecated="not deprecated">
  17377. </constructor>
  17378. <method name="set"
  17379. abstract="false" native="false" synchronized="false"
  17380. static="false" final="false" visibility="public"
  17381. deprecated="not deprecated">
  17382. <param name="value" type="byte"/>
  17383. <doc>
  17384. <![CDATA[Set the value of this ByteWritable.]]>
  17385. </doc>
  17386. </method>
  17387. <method name="get" return="byte"
  17388. abstract="false" native="false" synchronized="false"
  17389. static="false" final="false" visibility="public"
  17390. deprecated="not deprecated">
  17391. <doc>
  17392. <![CDATA[Return the value of this ByteWritable.]]>
  17393. </doc>
  17394. </method>
  17395. <method name="readFields"
  17396. abstract="false" native="false" synchronized="false"
  17397. static="false" final="false" visibility="public"
  17398. deprecated="not deprecated">
  17399. <param name="in" type="java.io.DataInput"/>
  17400. <exception name="IOException" type="java.io.IOException"/>
  17401. </method>
  17402. <method name="write"
  17403. abstract="false" native="false" synchronized="false"
  17404. static="false" final="false" visibility="public"
  17405. deprecated="not deprecated">
  17406. <param name="out" type="java.io.DataOutput"/>
  17407. <exception name="IOException" type="java.io.IOException"/>
  17408. </method>
  17409. <method name="equals" return="boolean"
  17410. abstract="false" native="false" synchronized="false"
  17411. static="false" final="false" visibility="public"
  17412. deprecated="not deprecated">
  17413. <param name="o" type="java.lang.Object"/>
  17414. <doc>
  17415. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  17416. </doc>
  17417. </method>
  17418. <method name="hashCode" return="int"
  17419. abstract="false" native="false" synchronized="false"
  17420. static="false" final="false" visibility="public"
  17421. deprecated="not deprecated">
  17422. </method>
  17423. <method name="compareTo" return="int"
  17424. abstract="false" native="false" synchronized="false"
  17425. static="false" final="false" visibility="public"
  17426. deprecated="not deprecated">
  17427. <param name="o" type="org.apache.hadoop.io.ByteWritable"/>
  17428. <doc>
  17429. <![CDATA[Compares two ByteWritables.]]>
  17430. </doc>
  17431. </method>
  17432. <method name="toString" return="java.lang.String"
  17433. abstract="false" native="false" synchronized="false"
  17434. static="false" final="false" visibility="public"
  17435. deprecated="not deprecated">
  17436. </method>
  17437. <doc>
  17438. <![CDATA[A WritableComparable for a single byte.]]>
  17439. </doc>
  17440. </class>
  17441. <!-- end class org.apache.hadoop.io.ByteWritable -->
  17442. <!-- start interface org.apache.hadoop.io.Closeable -->
  17443. <interface name="Closeable" abstract="true"
  17444. static="false" final="false" visibility="public"
  17445. deprecated="use java.io.Closeable">
  17446. <implements name="java.io.Closeable"/>
  17447. <doc>
  17448. <![CDATA[@deprecated use java.io.Closeable]]>
  17449. </doc>
  17450. </interface>
  17451. <!-- end interface org.apache.hadoop.io.Closeable -->
  17452. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  17453. <class name="CompressedWritable" extends="java.lang.Object"
  17454. abstract="true"
  17455. static="false" final="false" visibility="public"
  17456. deprecated="not deprecated">
  17457. <implements name="org.apache.hadoop.io.Writable"/>
  17458. <constructor name="CompressedWritable"
  17459. static="false" final="false" visibility="public"
  17460. deprecated="not deprecated">
  17461. </constructor>
  17462. <method name="readFields"
  17463. abstract="false" native="false" synchronized="false"
  17464. static="false" final="true" visibility="public"
  17465. deprecated="not deprecated">
  17466. <param name="in" type="java.io.DataInput"/>
  17467. <exception name="IOException" type="java.io.IOException"/>
  17468. </method>
  17469. <method name="ensureInflated"
  17470. abstract="false" native="false" synchronized="false"
  17471. static="false" final="false" visibility="protected"
  17472. deprecated="not deprecated">
  17473. <doc>
  17474. <![CDATA[Must be called by all methods which access fields to ensure that the data
  17475. has been uncompressed.]]>
  17476. </doc>
  17477. </method>
  17478. <method name="readFieldsCompressed"
  17479. abstract="true" native="false" synchronized="false"
  17480. static="false" final="false" visibility="protected"
  17481. deprecated="not deprecated">
  17482. <param name="in" type="java.io.DataInput"/>
  17483. <exception name="IOException" type="java.io.IOException"/>
  17484. <doc>
  17485. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  17486. </doc>
  17487. </method>
  17488. <method name="write"
  17489. abstract="false" native="false" synchronized="false"
  17490. static="false" final="true" visibility="public"
  17491. deprecated="not deprecated">
  17492. <param name="out" type="java.io.DataOutput"/>
  17493. <exception name="IOException" type="java.io.IOException"/>
  17494. </method>
  17495. <method name="writeCompressed"
  17496. abstract="true" native="false" synchronized="false"
  17497. static="false" final="false" visibility="protected"
  17498. deprecated="not deprecated">
  17499. <param name="out" type="java.io.DataOutput"/>
  17500. <exception name="IOException" type="java.io.IOException"/>
  17501. <doc>
  17502. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  17503. </doc>
  17504. </method>
  17505. <doc>
  17506. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  17507. inflate on field access. This is useful for large objects whose fields are
  17508. not be altered during a map or reduce operation: leaving the field data
  17509. compressed makes copying the instance from one file to another much
  17510. faster.]]>
  17511. </doc>
  17512. </class>
  17513. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  17514. <!-- start class org.apache.hadoop.io.DataOutputOutputStream -->
  17515. <class name="DataOutputOutputStream" extends="java.io.OutputStream"
  17516. abstract="false"
  17517. static="false" final="false" visibility="public"
  17518. deprecated="not deprecated">
  17519. <method name="constructOutputStream" return="java.io.OutputStream"
  17520. abstract="false" native="false" synchronized="false"
  17521. static="true" final="false" visibility="public"
  17522. deprecated="not deprecated">
  17523. <param name="out" type="java.io.DataOutput"/>
  17524. <doc>
  17525. <![CDATA[Construct an OutputStream from the given DataOutput. If 'out'
  17526. is already an OutputStream, simply returns it. Otherwise, wraps
  17527. it in an OutputStream.
  17528. @param out the DataOutput to wrap
  17529. @return an OutputStream instance that outputs to 'out']]>
  17530. </doc>
  17531. </method>
  17532. <method name="write"
  17533. abstract="false" native="false" synchronized="false"
  17534. static="false" final="false" visibility="public"
  17535. deprecated="not deprecated">
  17536. <param name="b" type="int"/>
  17537. <exception name="IOException" type="java.io.IOException"/>
  17538. </method>
  17539. <method name="write"
  17540. abstract="false" native="false" synchronized="false"
  17541. static="false" final="false" visibility="public"
  17542. deprecated="not deprecated">
  17543. <param name="b" type="byte[]"/>
  17544. <param name="off" type="int"/>
  17545. <param name="len" type="int"/>
  17546. <exception name="IOException" type="java.io.IOException"/>
  17547. </method>
  17548. <method name="write"
  17549. abstract="false" native="false" synchronized="false"
  17550. static="false" final="false" visibility="public"
  17551. deprecated="not deprecated">
  17552. <param name="b" type="byte[]"/>
  17553. <exception name="IOException" type="java.io.IOException"/>
  17554. </method>
  17555. <doc>
  17556. <![CDATA[OutputStream implementation that wraps a DataOutput.]]>
  17557. </doc>
  17558. </class>
  17559. <!-- end class org.apache.hadoop.io.DataOutputOutputStream -->
  17560. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  17561. <class name="DefaultStringifier" extends="java.lang.Object"
  17562. abstract="false"
  17563. static="false" final="false" visibility="public"
  17564. deprecated="not deprecated">
  17565. <implements name="org.apache.hadoop.io.Stringifier"/>
  17566. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  17567. static="false" final="false" visibility="public"
  17568. deprecated="not deprecated">
  17569. </constructor>
  17570. <method name="fromString" return="T"
  17571. abstract="false" native="false" synchronized="false"
  17572. static="false" final="false" visibility="public"
  17573. deprecated="not deprecated">
  17574. <param name="str" type="java.lang.String"/>
  17575. <exception name="IOException" type="java.io.IOException"/>
  17576. </method>
  17577. <method name="toString" return="java.lang.String"
  17578. abstract="false" native="false" synchronized="false"
  17579. static="false" final="false" visibility="public"
  17580. deprecated="not deprecated">
  17581. <param name="obj" type="T"/>
  17582. <exception name="IOException" type="java.io.IOException"/>
  17583. </method>
  17584. <method name="close"
  17585. abstract="false" native="false" synchronized="false"
  17586. static="false" final="false" visibility="public"
  17587. deprecated="not deprecated">
  17588. <exception name="IOException" type="java.io.IOException"/>
  17589. </method>
  17590. <method name="store"
  17591. abstract="false" native="false" synchronized="false"
  17592. static="true" final="false" visibility="public"
  17593. deprecated="not deprecated">
  17594. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17595. <param name="item" type="K"/>
  17596. <param name="keyName" type="java.lang.String"/>
  17597. <exception name="IOException" type="java.io.IOException"/>
  17598. <doc>
  17599. <![CDATA[Stores the item in the configuration with the given keyName.
  17600. @param <K> the class of the item
  17601. @param conf the configuration to store
  17602. @param item the object to be stored
  17603. @param keyName the name of the key to use
  17604. @throws IOException : forwards Exceptions from the underlying
  17605. {@link Serialization} classes.]]>
  17606. </doc>
  17607. </method>
  17608. <method name="load" return="K"
  17609. abstract="false" native="false" synchronized="false"
  17610. static="true" final="false" visibility="public"
  17611. deprecated="not deprecated">
  17612. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17613. <param name="keyName" type="java.lang.String"/>
  17614. <param name="itemClass" type="java.lang.Class"/>
  17615. <exception name="IOException" type="java.io.IOException"/>
  17616. <doc>
  17617. <![CDATA[Restores the object from the configuration.
  17618. @param <K> the class of the item
  17619. @param conf the configuration to use
  17620. @param keyName the name of the key to use
  17621. @param itemClass the class of the item
  17622. @return restored object
  17623. @throws IOException : forwards Exceptions from the underlying
  17624. {@link Serialization} classes.]]>
  17625. </doc>
  17626. </method>
  17627. <method name="storeArray"
  17628. abstract="false" native="false" synchronized="false"
  17629. static="true" final="false" visibility="public"
  17630. deprecated="not deprecated">
  17631. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17632. <param name="items" type="K[]"/>
  17633. <param name="keyName" type="java.lang.String"/>
  17634. <exception name="IOException" type="java.io.IOException"/>
  17635. <doc>
  17636. <![CDATA[Stores the array of items in the configuration with the given keyName.
  17637. @param <K> the class of the item
  17638. @param conf the configuration to use
  17639. @param items the objects to be stored
  17640. @param keyName the name of the key to use
  17641. @throws IndexOutOfBoundsException if the items array is empty
  17642. @throws IOException : forwards Exceptions from the underlying
  17643. {@link Serialization} classes.]]>
  17644. </doc>
  17645. </method>
  17646. <method name="loadArray" return="K[]"
  17647. abstract="false" native="false" synchronized="false"
  17648. static="true" final="false" visibility="public"
  17649. deprecated="not deprecated">
  17650. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17651. <param name="keyName" type="java.lang.String"/>
  17652. <param name="itemClass" type="java.lang.Class"/>
  17653. <exception name="IOException" type="java.io.IOException"/>
  17654. <doc>
  17655. <![CDATA[Restores the array of objects from the configuration.
  17656. @param <K> the class of the item
  17657. @param conf the configuration to use
  17658. @param keyName the name of the key to use
  17659. @param itemClass the class of the item
  17660. @return restored object
  17661. @throws IOException : forwards Exceptions from the underlying
  17662. {@link Serialization} classes.]]>
  17663. </doc>
  17664. </method>
  17665. <doc>
  17666. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  17667. interface which stringifies the objects using base64 encoding of the
  17668. serialized version of the objects. The {@link Serializer} and
  17669. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  17670. <br>
  17671. DefaultStringifier offers convenience methods to store/load objects to/from
  17672. the configuration.
  17673. @param <T> the class of the objects to stringify]]>
  17674. </doc>
  17675. </class>
  17676. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  17677. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  17678. <class name="DoubleWritable" extends="java.lang.Object"
  17679. abstract="false"
  17680. static="false" final="false" visibility="public"
  17681. deprecated="not deprecated">
  17682. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17683. <constructor name="DoubleWritable"
  17684. static="false" final="false" visibility="public"
  17685. deprecated="not deprecated">
  17686. </constructor>
  17687. <constructor name="DoubleWritable" type="double"
  17688. static="false" final="false" visibility="public"
  17689. deprecated="not deprecated">
  17690. </constructor>
  17691. <method name="readFields"
  17692. abstract="false" native="false" synchronized="false"
  17693. static="false" final="false" visibility="public"
  17694. deprecated="not deprecated">
  17695. <param name="in" type="java.io.DataInput"/>
  17696. <exception name="IOException" type="java.io.IOException"/>
  17697. </method>
  17698. <method name="write"
  17699. abstract="false" native="false" synchronized="false"
  17700. static="false" final="false" visibility="public"
  17701. deprecated="not deprecated">
  17702. <param name="out" type="java.io.DataOutput"/>
  17703. <exception name="IOException" type="java.io.IOException"/>
  17704. </method>
  17705. <method name="set"
  17706. abstract="false" native="false" synchronized="false"
  17707. static="false" final="false" visibility="public"
  17708. deprecated="not deprecated">
  17709. <param name="value" type="double"/>
  17710. </method>
  17711. <method name="get" return="double"
  17712. abstract="false" native="false" synchronized="false"
  17713. static="false" final="false" visibility="public"
  17714. deprecated="not deprecated">
  17715. </method>
  17716. <method name="equals" return="boolean"
  17717. abstract="false" native="false" synchronized="false"
  17718. static="false" final="false" visibility="public"
  17719. deprecated="not deprecated">
  17720. <param name="o" type="java.lang.Object"/>
  17721. <doc>
  17722. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  17723. </doc>
  17724. </method>
  17725. <method name="hashCode" return="int"
  17726. abstract="false" native="false" synchronized="false"
  17727. static="false" final="false" visibility="public"
  17728. deprecated="not deprecated">
  17729. </method>
  17730. <method name="compareTo" return="int"
  17731. abstract="false" native="false" synchronized="false"
  17732. static="false" final="false" visibility="public"
  17733. deprecated="not deprecated">
  17734. <param name="o" type="org.apache.hadoop.io.DoubleWritable"/>
  17735. </method>
  17736. <method name="toString" return="java.lang.String"
  17737. abstract="false" native="false" synchronized="false"
  17738. static="false" final="false" visibility="public"
  17739. deprecated="not deprecated">
  17740. </method>
  17741. <doc>
  17742. <![CDATA[Writable for Double values.]]>
  17743. </doc>
  17744. </class>
  17745. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  17746. <!-- start class org.apache.hadoop.io.ElasticByteBufferPool -->
  17747. <class name="ElasticByteBufferPool" extends="java.lang.Object"
  17748. abstract="false"
  17749. static="false" final="true" visibility="public"
  17750. deprecated="not deprecated">
  17751. <implements name="org.apache.hadoop.io.ByteBufferPool"/>
  17752. <constructor name="ElasticByteBufferPool"
  17753. static="false" final="false" visibility="public"
  17754. deprecated="not deprecated">
  17755. </constructor>
  17756. <method name="getBuffer" return="java.nio.ByteBuffer"
  17757. abstract="false" native="false" synchronized="true"
  17758. static="false" final="false" visibility="public"
  17759. deprecated="not deprecated">
  17760. <param name="direct" type="boolean"/>
  17761. <param name="length" type="int"/>
  17762. </method>
  17763. <method name="putBuffer"
  17764. abstract="false" native="false" synchronized="true"
  17765. static="false" final="false" visibility="public"
  17766. deprecated="not deprecated">
  17767. <param name="buffer" type="java.nio.ByteBuffer"/>
  17768. </method>
  17769. <doc>
  17770. <![CDATA[This is a simple ByteBufferPool which just creates ByteBuffers as needed.
  17771. It also caches ByteBuffers after they're released. It will always return
  17772. the smallest cached buffer with at least the capacity you request.
  17773. We don't try to do anything clever here like try to limit the maximum cache
  17774. size.]]>
  17775. </doc>
  17776. </class>
  17777. <!-- end class org.apache.hadoop.io.ElasticByteBufferPool -->
  17778. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  17779. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  17780. abstract="false"
  17781. static="false" final="false" visibility="public"
  17782. deprecated="not deprecated">
  17783. <implements name="org.apache.hadoop.io.Writable"/>
  17784. <implements name="org.apache.hadoop.conf.Configurable"/>
  17785. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  17786. static="false" final="false" visibility="public"
  17787. deprecated="not deprecated">
  17788. <doc>
  17789. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  17790. its size is zero, the <tt>elementType</tt> argument must not be null. If
  17791. the argument <tt>value</tt>'s size is bigger than zero, the argument
  17792. <tt>elementType</tt> is not be used.
  17793. @param value
  17794. @param elementType]]>
  17795. </doc>
  17796. </constructor>
  17797. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  17798. static="false" final="false" visibility="public"
  17799. deprecated="not deprecated">
  17800. <doc>
  17801. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  17802. or empty.
  17803. @param value]]>
  17804. </doc>
  17805. </constructor>
  17806. <method name="iterator" return="java.util.Iterator"
  17807. abstract="false" native="false" synchronized="false"
  17808. static="false" final="false" visibility="public"
  17809. deprecated="not deprecated">
  17810. </method>
  17811. <method name="size" return="int"
  17812. abstract="false" native="false" synchronized="false"
  17813. static="false" final="false" visibility="public"
  17814. deprecated="not deprecated">
  17815. </method>
  17816. <method name="add" return="boolean"
  17817. abstract="false" native="false" synchronized="false"
  17818. static="false" final="false" visibility="public"
  17819. deprecated="not deprecated">
  17820. <param name="e" type="E"/>
  17821. </method>
  17822. <method name="set"
  17823. abstract="false" native="false" synchronized="false"
  17824. static="false" final="false" visibility="public"
  17825. deprecated="not deprecated">
  17826. <param name="value" type="java.util.EnumSet"/>
  17827. <param name="elementType" type="java.lang.Class"/>
  17828. <doc>
  17829. <![CDATA[reset the EnumSetWritable with specified
  17830. <tt>value</value> and <tt>elementType</tt>. If the <tt>value</tt> argument
  17831. is null or its size is zero, the <tt>elementType</tt> argument must not be
  17832. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  17833. argument <tt>elementType</tt> is not be used.
  17834. @param value
  17835. @param elementType]]>
  17836. </doc>
  17837. </method>
  17838. <method name="get" return="java.util.EnumSet"
  17839. abstract="false" native="false" synchronized="false"
  17840. static="false" final="false" visibility="public"
  17841. deprecated="not deprecated">
  17842. <doc>
  17843. <![CDATA[Return the value of this EnumSetWritable.]]>
  17844. </doc>
  17845. </method>
  17846. <method name="readFields"
  17847. abstract="false" native="false" synchronized="false"
  17848. static="false" final="false" visibility="public"
  17849. deprecated="not deprecated">
  17850. <param name="in" type="java.io.DataInput"/>
  17851. <exception name="IOException" type="java.io.IOException"/>
  17852. </method>
  17853. <method name="write"
  17854. abstract="false" native="false" synchronized="false"
  17855. static="false" final="false" visibility="public"
  17856. deprecated="not deprecated">
  17857. <param name="out" type="java.io.DataOutput"/>
  17858. <exception name="IOException" type="java.io.IOException"/>
  17859. </method>
  17860. <method name="equals" return="boolean"
  17861. abstract="false" native="false" synchronized="false"
  17862. static="false" final="false" visibility="public"
  17863. deprecated="not deprecated">
  17864. <param name="o" type="java.lang.Object"/>
  17865. <doc>
  17866. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  17867. or both are null.]]>
  17868. </doc>
  17869. </method>
  17870. <method name="getElementType" return="java.lang.Class"
  17871. abstract="false" native="false" synchronized="false"
  17872. static="false" final="false" visibility="public"
  17873. deprecated="not deprecated">
  17874. <doc>
  17875. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  17876. may return null.
  17877. @return the element class]]>
  17878. </doc>
  17879. </method>
  17880. <method name="hashCode" return="int"
  17881. abstract="false" native="false" synchronized="false"
  17882. static="false" final="false" visibility="public"
  17883. deprecated="not deprecated">
  17884. </method>
  17885. <method name="toString" return="java.lang.String"
  17886. abstract="false" native="false" synchronized="false"
  17887. static="false" final="false" visibility="public"
  17888. deprecated="not deprecated">
  17889. </method>
  17890. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17891. abstract="false" native="false" synchronized="false"
  17892. static="false" final="false" visibility="public"
  17893. deprecated="not deprecated">
  17894. </method>
  17895. <method name="setConf"
  17896. abstract="false" native="false" synchronized="false"
  17897. static="false" final="false" visibility="public"
  17898. deprecated="not deprecated">
  17899. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17900. </method>
  17901. <doc>
  17902. <![CDATA[A Writable wrapper for EnumSet.]]>
  17903. </doc>
  17904. </class>
  17905. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  17906. <!-- start class org.apache.hadoop.io.FloatWritable -->
  17907. <class name="FloatWritable" extends="java.lang.Object"
  17908. abstract="false"
  17909. static="false" final="false" visibility="public"
  17910. deprecated="not deprecated">
  17911. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17912. <constructor name="FloatWritable"
  17913. static="false" final="false" visibility="public"
  17914. deprecated="not deprecated">
  17915. </constructor>
  17916. <constructor name="FloatWritable" type="float"
  17917. static="false" final="false" visibility="public"
  17918. deprecated="not deprecated">
  17919. </constructor>
  17920. <method name="set"
  17921. abstract="false" native="false" synchronized="false"
  17922. static="false" final="false" visibility="public"
  17923. deprecated="not deprecated">
  17924. <param name="value" type="float"/>
  17925. <doc>
  17926. <![CDATA[Set the value of this FloatWritable.]]>
  17927. </doc>
  17928. </method>
  17929. <method name="get" return="float"
  17930. abstract="false" native="false" synchronized="false"
  17931. static="false" final="false" visibility="public"
  17932. deprecated="not deprecated">
  17933. <doc>
  17934. <![CDATA[Return the value of this FloatWritable.]]>
  17935. </doc>
  17936. </method>
  17937. <method name="readFields"
  17938. abstract="false" native="false" synchronized="false"
  17939. static="false" final="false" visibility="public"
  17940. deprecated="not deprecated">
  17941. <param name="in" type="java.io.DataInput"/>
  17942. <exception name="IOException" type="java.io.IOException"/>
  17943. </method>
  17944. <method name="write"
  17945. abstract="false" native="false" synchronized="false"
  17946. static="false" final="false" visibility="public"
  17947. deprecated="not deprecated">
  17948. <param name="out" type="java.io.DataOutput"/>
  17949. <exception name="IOException" type="java.io.IOException"/>
  17950. </method>
  17951. <method name="equals" return="boolean"
  17952. abstract="false" native="false" synchronized="false"
  17953. static="false" final="false" visibility="public"
  17954. deprecated="not deprecated">
  17955. <param name="o" type="java.lang.Object"/>
  17956. <doc>
  17957. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  17958. </doc>
  17959. </method>
  17960. <method name="hashCode" return="int"
  17961. abstract="false" native="false" synchronized="false"
  17962. static="false" final="false" visibility="public"
  17963. deprecated="not deprecated">
  17964. </method>
  17965. <method name="compareTo" return="int"
  17966. abstract="false" native="false" synchronized="false"
  17967. static="false" final="false" visibility="public"
  17968. deprecated="not deprecated">
  17969. <param name="o" type="org.apache.hadoop.io.FloatWritable"/>
  17970. <doc>
  17971. <![CDATA[Compares two FloatWritables.]]>
  17972. </doc>
  17973. </method>
  17974. <method name="toString" return="java.lang.String"
  17975. abstract="false" native="false" synchronized="false"
  17976. static="false" final="false" visibility="public"
  17977. deprecated="not deprecated">
  17978. </method>
  17979. <doc>
  17980. <![CDATA[A WritableComparable for floats.]]>
  17981. </doc>
  17982. </class>
  17983. <!-- end class org.apache.hadoop.io.FloatWritable -->
  17984. <!-- start class org.apache.hadoop.io.GenericWritable -->
  17985. <class name="GenericWritable" extends="java.lang.Object"
  17986. abstract="true"
  17987. static="false" final="false" visibility="public"
  17988. deprecated="not deprecated">
  17989. <implements name="org.apache.hadoop.io.Writable"/>
  17990. <implements name="org.apache.hadoop.conf.Configurable"/>
  17991. <constructor name="GenericWritable"
  17992. static="false" final="false" visibility="public"
  17993. deprecated="not deprecated">
  17994. </constructor>
  17995. <method name="set"
  17996. abstract="false" native="false" synchronized="false"
  17997. static="false" final="false" visibility="public"
  17998. deprecated="not deprecated">
  17999. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  18000. <doc>
  18001. <![CDATA[Set the instance that is wrapped.
  18002. @param obj]]>
  18003. </doc>
  18004. </method>
  18005. <method name="get" return="org.apache.hadoop.io.Writable"
  18006. abstract="false" native="false" synchronized="false"
  18007. static="false" final="false" visibility="public"
  18008. deprecated="not deprecated">
  18009. <doc>
  18010. <![CDATA[Return the wrapped instance.]]>
  18011. </doc>
  18012. </method>
  18013. <method name="toString" return="java.lang.String"
  18014. abstract="false" native="false" synchronized="false"
  18015. static="false" final="false" visibility="public"
  18016. deprecated="not deprecated">
  18017. </method>
  18018. <method name="readFields"
  18019. abstract="false" native="false" synchronized="false"
  18020. static="false" final="false" visibility="public"
  18021. deprecated="not deprecated">
  18022. <param name="in" type="java.io.DataInput"/>
  18023. <exception name="IOException" type="java.io.IOException"/>
  18024. </method>
  18025. <method name="write"
  18026. abstract="false" native="false" synchronized="false"
  18027. static="false" final="false" visibility="public"
  18028. deprecated="not deprecated">
  18029. <param name="out" type="java.io.DataOutput"/>
  18030. <exception name="IOException" type="java.io.IOException"/>
  18031. </method>
  18032. <method name="getTypes" return="java.lang.Class[]"
  18033. abstract="true" native="false" synchronized="false"
  18034. static="false" final="false" visibility="protected"
  18035. deprecated="not deprecated">
  18036. <doc>
  18037. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  18038. to return a constant array of classes.]]>
  18039. </doc>
  18040. </method>
  18041. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18042. abstract="false" native="false" synchronized="false"
  18043. static="false" final="false" visibility="public"
  18044. deprecated="not deprecated">
  18045. </method>
  18046. <method name="setConf"
  18047. abstract="false" native="false" synchronized="false"
  18048. static="false" final="false" visibility="public"
  18049. deprecated="not deprecated">
  18050. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18051. </method>
  18052. <doc>
  18053. <![CDATA[A wrapper for Writable instances.
  18054. <p>
  18055. When two sequence files, which have same Key type but different Value
  18056. types, are mapped out to reduce, multiple Value types is not allowed.
  18057. In this case, this class can help you wrap instances with different types.
  18058. </p>
  18059. <p>
  18060. Compared with <code>ObjectWritable</code>, this class is much more effective,
  18061. because <code>ObjectWritable</code> will append the class declaration as a String
  18062. into the output file in every Key-Value pair.
  18063. </p>
  18064. <p>
  18065. Generic Writable implements {@link Configurable} interface, so that it will be
  18066. configured by the framework. The configuration is passed to the wrapped objects
  18067. implementing {@link Configurable} interface <i>before deserialization</i>.
  18068. </p>
  18069. how to use it: <br>
  18070. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  18071. 2. Implements the abstract method <code>getTypes()</code>, defines
  18072. the classes which will be wrapped in GenericObject in application.
  18073. Attention: this classes defined in <code>getTypes()</code> method, must
  18074. implement <code>Writable</code> interface.
  18075. <br><br>
  18076. The code looks like this:
  18077. <blockquote><pre>
  18078. public class GenericObject extends GenericWritable {
  18079. private static Class[] CLASSES = {
  18080. ClassType1.class,
  18081. ClassType2.class,
  18082. ClassType3.class,
  18083. };
  18084. protected Class[] getTypes() {
  18085. return CLASSES;
  18086. }
  18087. }
  18088. </pre></blockquote>
  18089. @since Nov 8, 2006]]>
  18090. </doc>
  18091. </class>
  18092. <!-- end class org.apache.hadoop.io.GenericWritable -->
  18093. <!-- start class org.apache.hadoop.io.IntWritable -->
  18094. <class name="IntWritable" extends="java.lang.Object"
  18095. abstract="false"
  18096. static="false" final="false" visibility="public"
  18097. deprecated="not deprecated">
  18098. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18099. <constructor name="IntWritable"
  18100. static="false" final="false" visibility="public"
  18101. deprecated="not deprecated">
  18102. </constructor>
  18103. <constructor name="IntWritable" type="int"
  18104. static="false" final="false" visibility="public"
  18105. deprecated="not deprecated">
  18106. </constructor>
  18107. <method name="set"
  18108. abstract="false" native="false" synchronized="false"
  18109. static="false" final="false" visibility="public"
  18110. deprecated="not deprecated">
  18111. <param name="value" type="int"/>
  18112. <doc>
  18113. <![CDATA[Set the value of this IntWritable.]]>
  18114. </doc>
  18115. </method>
  18116. <method name="get" return="int"
  18117. abstract="false" native="false" synchronized="false"
  18118. static="false" final="false" visibility="public"
  18119. deprecated="not deprecated">
  18120. <doc>
  18121. <![CDATA[Return the value of this IntWritable.]]>
  18122. </doc>
  18123. </method>
  18124. <method name="readFields"
  18125. abstract="false" native="false" synchronized="false"
  18126. static="false" final="false" visibility="public"
  18127. deprecated="not deprecated">
  18128. <param name="in" type="java.io.DataInput"/>
  18129. <exception name="IOException" type="java.io.IOException"/>
  18130. </method>
  18131. <method name="write"
  18132. abstract="false" native="false" synchronized="false"
  18133. static="false" final="false" visibility="public"
  18134. deprecated="not deprecated">
  18135. <param name="out" type="java.io.DataOutput"/>
  18136. <exception name="IOException" type="java.io.IOException"/>
  18137. </method>
  18138. <method name="equals" return="boolean"
  18139. abstract="false" native="false" synchronized="false"
  18140. static="false" final="false" visibility="public"
  18141. deprecated="not deprecated">
  18142. <param name="o" type="java.lang.Object"/>
  18143. <doc>
  18144. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  18145. </doc>
  18146. </method>
  18147. <method name="hashCode" return="int"
  18148. abstract="false" native="false" synchronized="false"
  18149. static="false" final="false" visibility="public"
  18150. deprecated="not deprecated">
  18151. </method>
  18152. <method name="compareTo" return="int"
  18153. abstract="false" native="false" synchronized="false"
  18154. static="false" final="false" visibility="public"
  18155. deprecated="not deprecated">
  18156. <param name="o" type="org.apache.hadoop.io.IntWritable"/>
  18157. <doc>
  18158. <![CDATA[Compares two IntWritables.]]>
  18159. </doc>
  18160. </method>
  18161. <method name="toString" return="java.lang.String"
  18162. abstract="false" native="false" synchronized="false"
  18163. static="false" final="false" visibility="public"
  18164. deprecated="not deprecated">
  18165. </method>
  18166. <doc>
  18167. <![CDATA[A WritableComparable for ints.]]>
  18168. </doc>
  18169. </class>
  18170. <!-- end class org.apache.hadoop.io.IntWritable -->
  18171. <!-- start class org.apache.hadoop.io.IOUtils -->
  18172. <class name="IOUtils" extends="java.lang.Object"
  18173. abstract="false"
  18174. static="false" final="false" visibility="public"
  18175. deprecated="not deprecated">
  18176. <constructor name="IOUtils"
  18177. static="false" final="false" visibility="public"
  18178. deprecated="not deprecated">
  18179. </constructor>
  18180. <method name="copyBytes"
  18181. abstract="false" native="false" synchronized="false"
  18182. static="true" final="false" visibility="public"
  18183. deprecated="not deprecated">
  18184. <param name="in" type="java.io.InputStream"/>
  18185. <param name="out" type="java.io.OutputStream"/>
  18186. <param name="buffSize" type="int"/>
  18187. <param name="close" type="boolean"/>
  18188. <exception name="IOException" type="java.io.IOException"/>
  18189. <doc>
  18190. <![CDATA[Copies from one stream to another.
  18191. @param in InputStrem to read from
  18192. @param out OutputStream to write to
  18193. @param buffSize the size of the buffer
  18194. @param close whether or not close the InputStream and
  18195. OutputStream at the end. The streams are closed in the finally clause.]]>
  18196. </doc>
  18197. </method>
  18198. <method name="copyBytes"
  18199. abstract="false" native="false" synchronized="false"
  18200. static="true" final="false" visibility="public"
  18201. deprecated="not deprecated">
  18202. <param name="in" type="java.io.InputStream"/>
  18203. <param name="out" type="java.io.OutputStream"/>
  18204. <param name="buffSize" type="int"/>
  18205. <exception name="IOException" type="java.io.IOException"/>
  18206. <doc>
  18207. <![CDATA[Copies from one stream to another.
  18208. @param in InputStrem to read from
  18209. @param out OutputStream to write to
  18210. @param buffSize the size of the buffer]]>
  18211. </doc>
  18212. </method>
  18213. <method name="copyBytes"
  18214. abstract="false" native="false" synchronized="false"
  18215. static="true" final="false" visibility="public"
  18216. deprecated="not deprecated">
  18217. <param name="in" type="java.io.InputStream"/>
  18218. <param name="out" type="java.io.OutputStream"/>
  18219. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18220. <exception name="IOException" type="java.io.IOException"/>
  18221. <doc>
  18222. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  18223. at the end</strong>.
  18224. @param in InputStrem to read from
  18225. @param out OutputStream to write to
  18226. @param conf the Configuration object]]>
  18227. </doc>
  18228. </method>
  18229. <method name="copyBytes"
  18230. abstract="false" native="false" synchronized="false"
  18231. static="true" final="false" visibility="public"
  18232. deprecated="not deprecated">
  18233. <param name="in" type="java.io.InputStream"/>
  18234. <param name="out" type="java.io.OutputStream"/>
  18235. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18236. <param name="close" type="boolean"/>
  18237. <exception name="IOException" type="java.io.IOException"/>
  18238. <doc>
  18239. <![CDATA[Copies from one stream to another.
  18240. @param in InputStream to read from
  18241. @param out OutputStream to write to
  18242. @param conf the Configuration object
  18243. @param close whether or not close the InputStream and
  18244. OutputStream at the end. The streams are closed in the finally clause.]]>
  18245. </doc>
  18246. </method>
  18247. <method name="copyBytes"
  18248. abstract="false" native="false" synchronized="false"
  18249. static="true" final="false" visibility="public"
  18250. deprecated="not deprecated">
  18251. <param name="in" type="java.io.InputStream"/>
  18252. <param name="out" type="java.io.OutputStream"/>
  18253. <param name="count" type="long"/>
  18254. <param name="close" type="boolean"/>
  18255. <exception name="IOException" type="java.io.IOException"/>
  18256. <doc>
  18257. <![CDATA[Copies count bytes from one stream to another.
  18258. @param in InputStream to read from
  18259. @param out OutputStream to write to
  18260. @param count number of bytes to copy
  18261. @param close whether to close the streams
  18262. @throws IOException if bytes can not be read or written]]>
  18263. </doc>
  18264. </method>
  18265. <method name="wrappedReadForCompressedData" return="int"
  18266. abstract="false" native="false" synchronized="false"
  18267. static="true" final="false" visibility="public"
  18268. deprecated="not deprecated">
  18269. <param name="is" type="java.io.InputStream"/>
  18270. <param name="buf" type="byte[]"/>
  18271. <param name="off" type="int"/>
  18272. <param name="len" type="int"/>
  18273. <exception name="IOException" type="java.io.IOException"/>
  18274. <doc>
  18275. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  18276. thrown by the underlying stream (either IO or decompression-related), and
  18277. re-throws as an IOException.
  18278. @param is - InputStream to be read from
  18279. @param buf - buffer the data is read into
  18280. @param off - offset within buf
  18281. @param len - amount of data to be read
  18282. @return number of bytes read]]>
  18283. </doc>
  18284. </method>
  18285. <method name="readFully"
  18286. abstract="false" native="false" synchronized="false"
  18287. static="true" final="false" visibility="public"
  18288. deprecated="not deprecated">
  18289. <param name="in" type="java.io.InputStream"/>
  18290. <param name="buf" type="byte[]"/>
  18291. <param name="off" type="int"/>
  18292. <param name="len" type="int"/>
  18293. <exception name="IOException" type="java.io.IOException"/>
  18294. <doc>
  18295. <![CDATA[Reads len bytes in a loop.
  18296. @param in InputStream to read from
  18297. @param buf The buffer to fill
  18298. @param off offset from the buffer
  18299. @param len the length of bytes to read
  18300. @throws IOException if it could not read requested number of bytes
  18301. for any reason (including EOF)]]>
  18302. </doc>
  18303. </method>
  18304. <method name="skipFully"
  18305. abstract="false" native="false" synchronized="false"
  18306. static="true" final="false" visibility="public"
  18307. deprecated="not deprecated">
  18308. <param name="in" type="java.io.InputStream"/>
  18309. <param name="len" type="long"/>
  18310. <exception name="IOException" type="java.io.IOException"/>
  18311. <doc>
  18312. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  18313. @param in The InputStream to skip bytes from
  18314. @param len number of bytes to skip.
  18315. @throws IOException if it could not skip requested number of bytes
  18316. for any reason (including EOF)]]>
  18317. </doc>
  18318. </method>
  18319. <method name="cleanup"
  18320. abstract="false" native="false" synchronized="false"
  18321. static="true" final="false" visibility="public"
  18322. deprecated="use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  18323. instead">
  18324. <param name="log" type="org.apache.commons.logging.Log"/>
  18325. <param name="closeables" type="java.io.Closeable[]"/>
  18326. <doc>
  18327. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  18328. null pointers. Must only be used for cleanup in exception handlers.
  18329. @param log the log to record problems to at debug level. Can be null.
  18330. @param closeables the objects to close
  18331. @deprecated use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  18332. instead]]>
  18333. </doc>
  18334. </method>
  18335. <method name="cleanupWithLogger"
  18336. abstract="false" native="false" synchronized="false"
  18337. static="true" final="false" visibility="public"
  18338. deprecated="not deprecated">
  18339. <param name="logger" type="org.slf4j.Logger"/>
  18340. <param name="closeables" type="java.io.Closeable[]"/>
  18341. <doc>
  18342. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  18343. null pointers. Must only be used for cleanup in exception handlers.
  18344. @param logger the log to record problems to at debug level. Can be null.
  18345. @param closeables the objects to close]]>
  18346. </doc>
  18347. </method>
  18348. <method name="closeStream"
  18349. abstract="false" native="false" synchronized="false"
  18350. static="true" final="false" visibility="public"
  18351. deprecated="not deprecated">
  18352. <param name="stream" type="java.io.Closeable"/>
  18353. <doc>
  18354. <![CDATA[Closes the stream ignoring {@link Throwable}.
  18355. Must only be called in cleaning up from exception handlers.
  18356. @param stream the Stream to close]]>
  18357. </doc>
  18358. </method>
  18359. <method name="closeStreams"
  18360. abstract="false" native="false" synchronized="false"
  18361. static="true" final="false" visibility="public"
  18362. deprecated="not deprecated">
  18363. <param name="streams" type="java.io.Closeable[]"/>
  18364. <doc>
  18365. <![CDATA[Closes the streams ignoring {@link Throwable}.
  18366. Must only be called in cleaning up from exception handlers.
  18367. @param streams the Streams to close]]>
  18368. </doc>
  18369. </method>
  18370. <method name="closeSocket"
  18371. abstract="false" native="false" synchronized="false"
  18372. static="true" final="false" visibility="public"
  18373. deprecated="not deprecated">
  18374. <param name="sock" type="java.net.Socket"/>
  18375. <doc>
  18376. <![CDATA[Closes the socket ignoring {@link IOException}
  18377. @param sock the Socket to close]]>
  18378. </doc>
  18379. </method>
  18380. <method name="writeFully"
  18381. abstract="false" native="false" synchronized="false"
  18382. static="true" final="false" visibility="public"
  18383. deprecated="not deprecated">
  18384. <param name="bc" type="java.nio.channels.WritableByteChannel"/>
  18385. <param name="buf" type="java.nio.ByteBuffer"/>
  18386. <exception name="IOException" type="java.io.IOException"/>
  18387. <doc>
  18388. <![CDATA[Write a ByteBuffer to a WritableByteChannel, handling short writes.
  18389. @param bc The WritableByteChannel to write to
  18390. @param buf The input buffer
  18391. @throws IOException On I/O error]]>
  18392. </doc>
  18393. </method>
  18394. <method name="writeFully"
  18395. abstract="false" native="false" synchronized="false"
  18396. static="true" final="false" visibility="public"
  18397. deprecated="not deprecated">
  18398. <param name="fc" type="java.nio.channels.FileChannel"/>
  18399. <param name="buf" type="java.nio.ByteBuffer"/>
  18400. <param name="offset" type="long"/>
  18401. <exception name="IOException" type="java.io.IOException"/>
  18402. <doc>
  18403. <![CDATA[Write a ByteBuffer to a FileChannel at a given offset,
  18404. handling short writes.
  18405. @param fc The FileChannel to write to
  18406. @param buf The input buffer
  18407. @param offset The offset in the file to start writing at
  18408. @throws IOException On I/O error]]>
  18409. </doc>
  18410. </method>
  18411. <method name="listDirectory" return="java.util.List"
  18412. abstract="false" native="false" synchronized="false"
  18413. static="true" final="false" visibility="public"
  18414. deprecated="not deprecated">
  18415. <param name="dir" type="java.io.File"/>
  18416. <param name="filter" type="java.io.FilenameFilter"/>
  18417. <exception name="IOException" type="java.io.IOException"/>
  18418. <doc>
  18419. <![CDATA[Return the complete list of files in a directory as strings.<p/>
  18420. This is better than File#listDir because it does not ignore IOExceptions.
  18421. @param dir The directory to list.
  18422. @param filter If non-null, the filter to use when listing
  18423. this directory.
  18424. @return The list of files in the directory.
  18425. @throws IOException On I/O error]]>
  18426. </doc>
  18427. </method>
  18428. <method name="fsync"
  18429. abstract="false" native="false" synchronized="false"
  18430. static="true" final="false" visibility="public"
  18431. deprecated="not deprecated">
  18432. <param name="fileToSync" type="java.io.File"/>
  18433. <exception name="IOException" type="java.io.IOException"/>
  18434. <doc>
  18435. <![CDATA[Ensure that any writes to the given file is written to the storage device
  18436. that contains it. This method opens channel on given File and closes it
  18437. once the sync is done.<br>
  18438. Borrowed from Uwe Schindler in LUCENE-5588
  18439. @param fileToSync the file to fsync]]>
  18440. </doc>
  18441. </method>
  18442. <method name="fsync"
  18443. abstract="false" native="false" synchronized="false"
  18444. static="true" final="false" visibility="public"
  18445. deprecated="not deprecated">
  18446. <param name="channel" type="java.nio.channels.FileChannel"/>
  18447. <param name="isDir" type="boolean"/>
  18448. <exception name="IOException" type="java.io.IOException"/>
  18449. <doc>
  18450. <![CDATA[Ensure that any writes to the given file is written to the storage device
  18451. that contains it. This method opens channel on given File and closes it
  18452. once the sync is done.
  18453. Borrowed from Uwe Schindler in LUCENE-5588
  18454. @param channel Channel to sync
  18455. @param isDir if true, the given file is a directory (Channel should be
  18456. opened for read and ignore IOExceptions, because not all file
  18457. systems and operating systems allow to fsync on a directory)
  18458. @throws IOException]]>
  18459. </doc>
  18460. </method>
  18461. <method name="wrapException" return="java.io.IOException"
  18462. abstract="false" native="false" synchronized="false"
  18463. static="true" final="false" visibility="public"
  18464. deprecated="not deprecated">
  18465. <param name="path" type="java.lang.String"/>
  18466. <param name="methodName" type="java.lang.String"/>
  18467. <param name="exception" type="java.io.IOException"/>
  18468. <doc>
  18469. <![CDATA[Takes an IOException, file/directory path, and method name and returns an
  18470. IOException with the input exception as the cause and also include the
  18471. file,method details. The new exception provides the stack trace of the
  18472. place where the exception is thrown and some extra diagnostics
  18473. information.
  18474. Return instance of same exception if exception class has a public string
  18475. constructor; Otherwise return an PathIOException.
  18476. InterruptedIOException and PathIOException are returned unwrapped.
  18477. @param path file/directory path
  18478. @param methodName method name
  18479. @param exception the caught exception.
  18480. @return an exception to throw]]>
  18481. </doc>
  18482. </method>
  18483. <method name="readFullyToByteArray" return="byte[]"
  18484. abstract="false" native="false" synchronized="false"
  18485. static="true" 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. <doc>
  18490. <![CDATA[Reads a DataInput until EOF and returns a byte array. Make sure not to
  18491. pass in an infinite DataInput or this will never return.
  18492. @param in A DataInput
  18493. @return a byte array containing the data from the DataInput
  18494. @throws IOException on I/O error, other than EOF]]>
  18495. </doc>
  18496. </method>
  18497. <field name="LOG" type="org.slf4j.Logger"
  18498. transient="false" volatile="false"
  18499. static="true" final="true" visibility="public"
  18500. deprecated="not deprecated">
  18501. </field>
  18502. <doc>
  18503. <![CDATA[An utility class for I/O related functionality.]]>
  18504. </doc>
  18505. </class>
  18506. <!-- end class org.apache.hadoop.io.IOUtils -->
  18507. <!-- start class org.apache.hadoop.io.LongWritable -->
  18508. <class name="LongWritable" extends="java.lang.Object"
  18509. abstract="false"
  18510. static="false" final="false" visibility="public"
  18511. deprecated="not deprecated">
  18512. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18513. <constructor name="LongWritable"
  18514. static="false" final="false" visibility="public"
  18515. deprecated="not deprecated">
  18516. </constructor>
  18517. <constructor name="LongWritable" type="long"
  18518. static="false" final="false" visibility="public"
  18519. deprecated="not deprecated">
  18520. </constructor>
  18521. <method name="set"
  18522. abstract="false" native="false" synchronized="false"
  18523. static="false" final="false" visibility="public"
  18524. deprecated="not deprecated">
  18525. <param name="value" type="long"/>
  18526. <doc>
  18527. <![CDATA[Set the value of this LongWritable.]]>
  18528. </doc>
  18529. </method>
  18530. <method name="get" return="long"
  18531. abstract="false" native="false" synchronized="false"
  18532. static="false" final="false" visibility="public"
  18533. deprecated="not deprecated">
  18534. <doc>
  18535. <![CDATA[Return the value of this LongWritable.]]>
  18536. </doc>
  18537. </method>
  18538. <method name="readFields"
  18539. abstract="false" native="false" synchronized="false"
  18540. static="false" final="false" visibility="public"
  18541. deprecated="not deprecated">
  18542. <param name="in" type="java.io.DataInput"/>
  18543. <exception name="IOException" type="java.io.IOException"/>
  18544. </method>
  18545. <method name="write"
  18546. abstract="false" native="false" synchronized="false"
  18547. static="false" final="false" visibility="public"
  18548. deprecated="not deprecated">
  18549. <param name="out" type="java.io.DataOutput"/>
  18550. <exception name="IOException" type="java.io.IOException"/>
  18551. </method>
  18552. <method name="equals" return="boolean"
  18553. abstract="false" native="false" synchronized="false"
  18554. static="false" final="false" visibility="public"
  18555. deprecated="not deprecated">
  18556. <param name="o" type="java.lang.Object"/>
  18557. <doc>
  18558. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  18559. </doc>
  18560. </method>
  18561. <method name="hashCode" return="int"
  18562. abstract="false" native="false" synchronized="false"
  18563. static="false" final="false" visibility="public"
  18564. deprecated="not deprecated">
  18565. </method>
  18566. <method name="compareTo" return="int"
  18567. abstract="false" native="false" synchronized="false"
  18568. static="false" final="false" visibility="public"
  18569. deprecated="not deprecated">
  18570. <param name="o" type="org.apache.hadoop.io.LongWritable"/>
  18571. <doc>
  18572. <![CDATA[Compares two LongWritables.]]>
  18573. </doc>
  18574. </method>
  18575. <method name="toString" return="java.lang.String"
  18576. abstract="false" native="false" synchronized="false"
  18577. static="false" final="false" visibility="public"
  18578. deprecated="not deprecated">
  18579. </method>
  18580. <doc>
  18581. <![CDATA[A WritableComparable for longs.]]>
  18582. </doc>
  18583. </class>
  18584. <!-- end class org.apache.hadoop.io.LongWritable -->
  18585. <!-- start class org.apache.hadoop.io.MapFile -->
  18586. <class name="MapFile" extends="java.lang.Object"
  18587. abstract="false"
  18588. static="false" final="false" visibility="public"
  18589. deprecated="not deprecated">
  18590. <constructor name="MapFile"
  18591. static="false" final="false" visibility="protected"
  18592. deprecated="not deprecated">
  18593. </constructor>
  18594. <method name="rename"
  18595. abstract="false" native="false" synchronized="false"
  18596. static="true" final="false" visibility="public"
  18597. deprecated="not deprecated">
  18598. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18599. <param name="oldName" type="java.lang.String"/>
  18600. <param name="newName" type="java.lang.String"/>
  18601. <exception name="IOException" type="java.io.IOException"/>
  18602. <doc>
  18603. <![CDATA[Renames an existing map directory.]]>
  18604. </doc>
  18605. </method>
  18606. <method name="delete"
  18607. abstract="false" native="false" synchronized="false"
  18608. static="true" final="false" visibility="public"
  18609. deprecated="not deprecated">
  18610. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18611. <param name="name" type="java.lang.String"/>
  18612. <exception name="IOException" type="java.io.IOException"/>
  18613. <doc>
  18614. <![CDATA[Deletes the named map file.]]>
  18615. </doc>
  18616. </method>
  18617. <method name="fix" return="long"
  18618. abstract="false" native="false" synchronized="false"
  18619. static="true" final="false" visibility="public"
  18620. deprecated="not deprecated">
  18621. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18622. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  18623. <param name="keyClass" type="java.lang.Class"/>
  18624. <param name="valueClass" type="java.lang.Class"/>
  18625. <param name="dryrun" type="boolean"/>
  18626. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18627. <exception name="Exception" type="java.lang.Exception"/>
  18628. <doc>
  18629. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  18630. @param fs filesystem
  18631. @param dir directory containing the MapFile data and index
  18632. @param keyClass key class (has to be a subclass of Writable)
  18633. @param valueClass value class (has to be a subclass of Writable)
  18634. @param dryrun do not perform any changes, just report what needs to be done
  18635. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  18636. @throws Exception]]>
  18637. </doc>
  18638. </method>
  18639. <method name="main"
  18640. abstract="false" native="false" synchronized="false"
  18641. static="true" final="false" visibility="public"
  18642. deprecated="not deprecated">
  18643. <param name="args" type="java.lang.String[]"/>
  18644. <exception name="Exception" type="java.lang.Exception"/>
  18645. </method>
  18646. <field name="INDEX_FILE_NAME" type="java.lang.String"
  18647. transient="false" volatile="false"
  18648. static="true" final="true" visibility="public"
  18649. deprecated="not deprecated">
  18650. <doc>
  18651. <![CDATA[The name of the index file.]]>
  18652. </doc>
  18653. </field>
  18654. <field name="DATA_FILE_NAME" type="java.lang.String"
  18655. transient="false" volatile="false"
  18656. static="true" final="true" visibility="public"
  18657. deprecated="not deprecated">
  18658. <doc>
  18659. <![CDATA[The name of the data file.]]>
  18660. </doc>
  18661. </field>
  18662. <doc>
  18663. <![CDATA[A file-based map from keys to values.
  18664. <p>A map is a directory containing two files, the <code>data</code> file,
  18665. containing all keys and values in the map, and a smaller <code>index</code>
  18666. file, containing a fraction of the keys. The fraction is determined by
  18667. {@link Writer#getIndexInterval()}.
  18668. <p>The index file is read entirely into memory. Thus key implementations
  18669. should try to keep themselves small.
  18670. <p>Map files are created by adding entries in-order. To maintain a large
  18671. database, perform updates by copying the previous version of a database and
  18672. merging in a sorted change list, to create a new version of the database in
  18673. a new file. Sorting large change lists can be done with {@link
  18674. SequenceFile.Sorter}.]]>
  18675. </doc>
  18676. </class>
  18677. <!-- end class org.apache.hadoop.io.MapFile -->
  18678. <!-- start class org.apache.hadoop.io.MapWritable -->
  18679. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  18680. abstract="false"
  18681. static="false" final="false" visibility="public"
  18682. deprecated="not deprecated">
  18683. <implements name="java.util.Map"/>
  18684. <constructor name="MapWritable"
  18685. static="false" final="false" visibility="public"
  18686. deprecated="not deprecated">
  18687. <doc>
  18688. <![CDATA[Default constructor.]]>
  18689. </doc>
  18690. </constructor>
  18691. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  18692. static="false" final="false" visibility="public"
  18693. deprecated="not deprecated">
  18694. <doc>
  18695. <![CDATA[Copy constructor.
  18696. @param other the map to copy from]]>
  18697. </doc>
  18698. </constructor>
  18699. <method name="clear"
  18700. abstract="false" native="false" synchronized="false"
  18701. static="false" final="false" visibility="public"
  18702. deprecated="not deprecated">
  18703. </method>
  18704. <method name="containsKey" return="boolean"
  18705. abstract="false" native="false" synchronized="false"
  18706. static="false" final="false" visibility="public"
  18707. deprecated="not deprecated">
  18708. <param name="key" type="java.lang.Object"/>
  18709. </method>
  18710. <method name="containsValue" return="boolean"
  18711. abstract="false" native="false" synchronized="false"
  18712. static="false" final="false" visibility="public"
  18713. deprecated="not deprecated">
  18714. <param name="value" type="java.lang.Object"/>
  18715. </method>
  18716. <method name="entrySet" return="java.util.Set"
  18717. abstract="false" native="false" synchronized="false"
  18718. static="false" final="false" visibility="public"
  18719. deprecated="not deprecated">
  18720. </method>
  18721. <method name="equals" return="boolean"
  18722. abstract="false" native="false" synchronized="false"
  18723. static="false" final="false" visibility="public"
  18724. deprecated="not deprecated">
  18725. <param name="obj" type="java.lang.Object"/>
  18726. </method>
  18727. <method name="get" return="org.apache.hadoop.io.Writable"
  18728. abstract="false" native="false" synchronized="false"
  18729. static="false" final="false" visibility="public"
  18730. deprecated="not deprecated">
  18731. <param name="key" type="java.lang.Object"/>
  18732. </method>
  18733. <method name="hashCode" return="int"
  18734. abstract="false" native="false" synchronized="false"
  18735. static="false" final="false" visibility="public"
  18736. deprecated="not deprecated">
  18737. </method>
  18738. <method name="isEmpty" return="boolean"
  18739. abstract="false" native="false" synchronized="false"
  18740. static="false" final="false" visibility="public"
  18741. deprecated="not deprecated">
  18742. </method>
  18743. <method name="keySet" return="java.util.Set"
  18744. abstract="false" native="false" synchronized="false"
  18745. static="false" final="false" visibility="public"
  18746. deprecated="not deprecated">
  18747. </method>
  18748. <method name="put" return="org.apache.hadoop.io.Writable"
  18749. abstract="false" native="false" synchronized="false"
  18750. static="false" final="false" visibility="public"
  18751. deprecated="not deprecated">
  18752. <param name="key" type="org.apache.hadoop.io.Writable"/>
  18753. <param name="value" type="org.apache.hadoop.io.Writable"/>
  18754. </method>
  18755. <method name="putAll"
  18756. abstract="false" native="false" synchronized="false"
  18757. static="false" final="false" visibility="public"
  18758. deprecated="not deprecated">
  18759. <param name="t" type="java.util.Map"/>
  18760. </method>
  18761. <method name="remove" return="org.apache.hadoop.io.Writable"
  18762. abstract="false" native="false" synchronized="false"
  18763. static="false" final="false" visibility="public"
  18764. deprecated="not deprecated">
  18765. <param name="key" type="java.lang.Object"/>
  18766. </method>
  18767. <method name="size" return="int"
  18768. abstract="false" native="false" synchronized="false"
  18769. static="false" final="false" visibility="public"
  18770. deprecated="not deprecated">
  18771. </method>
  18772. <method name="values" return="java.util.Collection"
  18773. abstract="false" native="false" synchronized="false"
  18774. static="false" final="false" visibility="public"
  18775. deprecated="not deprecated">
  18776. </method>
  18777. <method name="write"
  18778. abstract="false" native="false" synchronized="false"
  18779. static="false" final="false" visibility="public"
  18780. deprecated="not deprecated">
  18781. <param name="out" type="java.io.DataOutput"/>
  18782. <exception name="IOException" type="java.io.IOException"/>
  18783. </method>
  18784. <method name="readFields"
  18785. abstract="false" native="false" synchronized="false"
  18786. static="false" final="false" visibility="public"
  18787. deprecated="not deprecated">
  18788. <param name="in" type="java.io.DataInput"/>
  18789. <exception name="IOException" type="java.io.IOException"/>
  18790. </method>
  18791. <method name="toString" return="java.lang.String"
  18792. abstract="false" native="false" synchronized="false"
  18793. static="false" final="false" visibility="public"
  18794. deprecated="not deprecated">
  18795. </method>
  18796. <doc>
  18797. <![CDATA[A Writable Map.]]>
  18798. </doc>
  18799. </class>
  18800. <!-- end class org.apache.hadoop.io.MapWritable -->
  18801. <!-- start class org.apache.hadoop.io.MD5Hash -->
  18802. <class name="MD5Hash" extends="java.lang.Object"
  18803. abstract="false"
  18804. static="false" final="false" visibility="public"
  18805. deprecated="not deprecated">
  18806. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18807. <constructor name="MD5Hash"
  18808. static="false" final="false" visibility="public"
  18809. deprecated="not deprecated">
  18810. <doc>
  18811. <![CDATA[Constructs an MD5Hash.]]>
  18812. </doc>
  18813. </constructor>
  18814. <constructor name="MD5Hash" type="java.lang.String"
  18815. static="false" final="false" visibility="public"
  18816. deprecated="not deprecated">
  18817. <doc>
  18818. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  18819. </doc>
  18820. </constructor>
  18821. <constructor name="MD5Hash" type="byte[]"
  18822. static="false" final="false" visibility="public"
  18823. deprecated="not deprecated">
  18824. <doc>
  18825. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  18826. </doc>
  18827. </constructor>
  18828. <method name="readFields"
  18829. abstract="false" native="false" synchronized="false"
  18830. static="false" final="false" visibility="public"
  18831. deprecated="not deprecated">
  18832. <param name="in" type="java.io.DataInput"/>
  18833. <exception name="IOException" type="java.io.IOException"/>
  18834. </method>
  18835. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  18836. abstract="false" native="false" synchronized="false"
  18837. static="true" final="false" visibility="public"
  18838. deprecated="not deprecated">
  18839. <param name="in" type="java.io.DataInput"/>
  18840. <exception name="IOException" type="java.io.IOException"/>
  18841. <doc>
  18842. <![CDATA[Constructs, reads and returns an instance.]]>
  18843. </doc>
  18844. </method>
  18845. <method name="write"
  18846. abstract="false" native="false" synchronized="false"
  18847. static="false" final="false" visibility="public"
  18848. deprecated="not deprecated">
  18849. <param name="out" type="java.io.DataOutput"/>
  18850. <exception name="IOException" type="java.io.IOException"/>
  18851. </method>
  18852. <method name="set"
  18853. abstract="false" native="false" synchronized="false"
  18854. static="false" final="false" visibility="public"
  18855. deprecated="not deprecated">
  18856. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  18857. <doc>
  18858. <![CDATA[Copy the contents of another instance into this instance.]]>
  18859. </doc>
  18860. </method>
  18861. <method name="getDigest" return="byte[]"
  18862. abstract="false" native="false" synchronized="false"
  18863. static="false" final="false" visibility="public"
  18864. deprecated="not deprecated">
  18865. <doc>
  18866. <![CDATA[Returns the digest bytes.]]>
  18867. </doc>
  18868. </method>
  18869. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18870. abstract="false" native="false" synchronized="false"
  18871. static="true" final="false" visibility="public"
  18872. deprecated="not deprecated">
  18873. <param name="data" type="byte[]"/>
  18874. <doc>
  18875. <![CDATA[Construct a hash value for a byte array.]]>
  18876. </doc>
  18877. </method>
  18878. <method name="getDigester" return="java.security.MessageDigest"
  18879. abstract="false" native="false" synchronized="false"
  18880. static="true" final="false" visibility="public"
  18881. deprecated="not deprecated">
  18882. <doc>
  18883. <![CDATA[Create a thread local MD5 digester]]>
  18884. </doc>
  18885. </method>
  18886. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18887. abstract="false" native="false" synchronized="false"
  18888. static="true" final="false" visibility="public"
  18889. deprecated="not deprecated">
  18890. <param name="in" type="java.io.InputStream"/>
  18891. <exception name="IOException" type="java.io.IOException"/>
  18892. <doc>
  18893. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  18894. </doc>
  18895. </method>
  18896. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18897. abstract="false" native="false" synchronized="false"
  18898. static="true" final="false" visibility="public"
  18899. deprecated="not deprecated">
  18900. <param name="data" type="byte[]"/>
  18901. <param name="start" type="int"/>
  18902. <param name="len" type="int"/>
  18903. <doc>
  18904. <![CDATA[Construct a hash value for a byte array.]]>
  18905. </doc>
  18906. </method>
  18907. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18908. abstract="false" native="false" synchronized="false"
  18909. static="true" final="false" visibility="public"
  18910. deprecated="not deprecated">
  18911. <param name="dataArr" type="byte[][]"/>
  18912. <param name="start" type="int"/>
  18913. <param name="len" type="int"/>
  18914. <doc>
  18915. <![CDATA[Construct a hash value for an array of byte array.]]>
  18916. </doc>
  18917. </method>
  18918. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18919. abstract="false" native="false" synchronized="false"
  18920. static="true" final="false" visibility="public"
  18921. deprecated="not deprecated">
  18922. <param name="string" type="java.lang.String"/>
  18923. <doc>
  18924. <![CDATA[Construct a hash value for a String.]]>
  18925. </doc>
  18926. </method>
  18927. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18928. abstract="false" native="false" synchronized="false"
  18929. static="true" final="false" visibility="public"
  18930. deprecated="not deprecated">
  18931. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  18932. <doc>
  18933. <![CDATA[Construct a hash value for a String.]]>
  18934. </doc>
  18935. </method>
  18936. <method name="halfDigest" return="long"
  18937. abstract="false" native="false" synchronized="false"
  18938. static="false" final="false" visibility="public"
  18939. deprecated="not deprecated">
  18940. <doc>
  18941. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  18942. </doc>
  18943. </method>
  18944. <method name="quarterDigest" return="int"
  18945. abstract="false" native="false" synchronized="false"
  18946. static="false" final="false" visibility="public"
  18947. deprecated="not deprecated">
  18948. <doc>
  18949. <![CDATA[Return a 32-bit digest of the MD5.
  18950. @return the first 4 bytes of the md5]]>
  18951. </doc>
  18952. </method>
  18953. <method name="equals" return="boolean"
  18954. abstract="false" native="false" synchronized="false"
  18955. static="false" final="false" visibility="public"
  18956. deprecated="not deprecated">
  18957. <param name="o" type="java.lang.Object"/>
  18958. <doc>
  18959. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  18960. same values.]]>
  18961. </doc>
  18962. </method>
  18963. <method name="hashCode" return="int"
  18964. abstract="false" native="false" synchronized="false"
  18965. static="false" final="false" visibility="public"
  18966. deprecated="not deprecated">
  18967. <doc>
  18968. <![CDATA[Returns a hash code value for this object.
  18969. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  18970. </doc>
  18971. </method>
  18972. <method name="compareTo" return="int"
  18973. abstract="false" native="false" synchronized="false"
  18974. static="false" final="false" visibility="public"
  18975. deprecated="not deprecated">
  18976. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  18977. <doc>
  18978. <![CDATA[Compares this object with the specified object for order.]]>
  18979. </doc>
  18980. </method>
  18981. <method name="toString" return="java.lang.String"
  18982. abstract="false" native="false" synchronized="false"
  18983. static="false" final="false" visibility="public"
  18984. deprecated="not deprecated">
  18985. <doc>
  18986. <![CDATA[Returns a string representation of this object.]]>
  18987. </doc>
  18988. </method>
  18989. <method name="setDigest"
  18990. abstract="false" native="false" synchronized="false"
  18991. static="false" final="false" visibility="public"
  18992. deprecated="not deprecated">
  18993. <param name="hex" type="java.lang.String"/>
  18994. <doc>
  18995. <![CDATA[Sets the digest value from a hex string.]]>
  18996. </doc>
  18997. </method>
  18998. <field name="MD5_LEN" type="int"
  18999. transient="false" volatile="false"
  19000. static="true" final="true" visibility="public"
  19001. deprecated="not deprecated">
  19002. </field>
  19003. <doc>
  19004. <![CDATA[A Writable for MD5 hash values.]]>
  19005. </doc>
  19006. </class>
  19007. <!-- end class org.apache.hadoop.io.MD5Hash -->
  19008. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  19009. <class name="MultipleIOException" extends="java.io.IOException"
  19010. abstract="false"
  19011. static="false" final="false" visibility="public"
  19012. deprecated="not deprecated">
  19013. <method name="getExceptions" return="java.util.List"
  19014. abstract="false" native="false" synchronized="false"
  19015. static="false" final="false" visibility="public"
  19016. deprecated="not deprecated">
  19017. <doc>
  19018. <![CDATA[@return the underlying exceptions]]>
  19019. </doc>
  19020. </method>
  19021. <method name="createIOException" return="java.io.IOException"
  19022. abstract="false" native="false" synchronized="false"
  19023. static="true" final="false" visibility="public"
  19024. deprecated="not deprecated">
  19025. <param name="exceptions" type="java.util.List"/>
  19026. <doc>
  19027. <![CDATA[A convenient method to create an {@link IOException}.]]>
  19028. </doc>
  19029. </method>
  19030. <doc>
  19031. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  19032. </doc>
  19033. </class>
  19034. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  19035. <!-- start class org.apache.hadoop.io.NullWritable -->
  19036. <class name="NullWritable" extends="java.lang.Object"
  19037. abstract="false"
  19038. static="false" final="false" visibility="public"
  19039. deprecated="not deprecated">
  19040. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19041. <method name="get" return="org.apache.hadoop.io.NullWritable"
  19042. abstract="false" native="false" synchronized="false"
  19043. static="true" final="false" visibility="public"
  19044. deprecated="not deprecated">
  19045. <doc>
  19046. <![CDATA[Returns the single instance of this class.]]>
  19047. </doc>
  19048. </method>
  19049. <method name="toString" return="java.lang.String"
  19050. abstract="false" native="false" synchronized="false"
  19051. static="false" final="false" visibility="public"
  19052. deprecated="not deprecated">
  19053. </method>
  19054. <method name="hashCode" return="int"
  19055. abstract="false" native="false" synchronized="false"
  19056. static="false" final="false" visibility="public"
  19057. deprecated="not deprecated">
  19058. </method>
  19059. <method name="compareTo" return="int"
  19060. abstract="false" native="false" synchronized="false"
  19061. static="false" final="false" visibility="public"
  19062. deprecated="not deprecated">
  19063. <param name="other" type="org.apache.hadoop.io.NullWritable"/>
  19064. </method>
  19065. <method name="equals" return="boolean"
  19066. abstract="false" native="false" synchronized="false"
  19067. static="false" final="false" visibility="public"
  19068. deprecated="not deprecated">
  19069. <param name="other" type="java.lang.Object"/>
  19070. </method>
  19071. <method name="readFields"
  19072. abstract="false" native="false" synchronized="false"
  19073. static="false" final="false" visibility="public"
  19074. deprecated="not deprecated">
  19075. <param name="in" type="java.io.DataInput"/>
  19076. <exception name="IOException" type="java.io.IOException"/>
  19077. </method>
  19078. <method name="write"
  19079. abstract="false" native="false" synchronized="false"
  19080. static="false" final="false" visibility="public"
  19081. deprecated="not deprecated">
  19082. <param name="out" type="java.io.DataOutput"/>
  19083. <exception name="IOException" type="java.io.IOException"/>
  19084. </method>
  19085. <doc>
  19086. <![CDATA[Singleton Writable with no data.]]>
  19087. </doc>
  19088. </class>
  19089. <!-- end class org.apache.hadoop.io.NullWritable -->
  19090. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  19091. <class name="ObjectWritable" extends="java.lang.Object"
  19092. abstract="false"
  19093. static="false" final="false" visibility="public"
  19094. deprecated="not deprecated">
  19095. <implements name="org.apache.hadoop.io.Writable"/>
  19096. <implements name="org.apache.hadoop.conf.Configurable"/>
  19097. <constructor name="ObjectWritable"
  19098. static="false" final="false" visibility="public"
  19099. deprecated="not deprecated">
  19100. </constructor>
  19101. <constructor name="ObjectWritable" type="java.lang.Object"
  19102. static="false" final="false" visibility="public"
  19103. deprecated="not deprecated">
  19104. </constructor>
  19105. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  19106. static="false" final="false" visibility="public"
  19107. deprecated="not deprecated">
  19108. </constructor>
  19109. <method name="get" return="java.lang.Object"
  19110. abstract="false" native="false" synchronized="false"
  19111. static="false" final="false" visibility="public"
  19112. deprecated="not deprecated">
  19113. <doc>
  19114. <![CDATA[Return the instance, or null if none.]]>
  19115. </doc>
  19116. </method>
  19117. <method name="getDeclaredClass" return="java.lang.Class"
  19118. abstract="false" native="false" synchronized="false"
  19119. static="false" final="false" visibility="public"
  19120. deprecated="not deprecated">
  19121. <doc>
  19122. <![CDATA[Return the class this is meant to be.]]>
  19123. </doc>
  19124. </method>
  19125. <method name="set"
  19126. abstract="false" native="false" synchronized="false"
  19127. static="false" final="false" visibility="public"
  19128. deprecated="not deprecated">
  19129. <param name="instance" type="java.lang.Object"/>
  19130. <doc>
  19131. <![CDATA[Reset the instance.]]>
  19132. </doc>
  19133. </method>
  19134. <method name="toString" return="java.lang.String"
  19135. abstract="false" native="false" synchronized="false"
  19136. static="false" final="false" visibility="public"
  19137. deprecated="not deprecated">
  19138. </method>
  19139. <method name="readFields"
  19140. abstract="false" native="false" synchronized="false"
  19141. static="false" final="false" visibility="public"
  19142. deprecated="not deprecated">
  19143. <param name="in" type="java.io.DataInput"/>
  19144. <exception name="IOException" type="java.io.IOException"/>
  19145. </method>
  19146. <method name="write"
  19147. abstract="false" native="false" synchronized="false"
  19148. static="false" final="false" visibility="public"
  19149. deprecated="not deprecated">
  19150. <param name="out" type="java.io.DataOutput"/>
  19151. <exception name="IOException" type="java.io.IOException"/>
  19152. </method>
  19153. <method name="writeObject"
  19154. abstract="false" native="false" synchronized="false"
  19155. static="true" final="false" visibility="public"
  19156. deprecated="not deprecated">
  19157. <param name="out" type="java.io.DataOutput"/>
  19158. <param name="instance" type="java.lang.Object"/>
  19159. <param name="declaredClass" type="java.lang.Class"/>
  19160. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19161. <exception name="IOException" type="java.io.IOException"/>
  19162. <doc>
  19163. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  19164. the preceding.]]>
  19165. </doc>
  19166. </method>
  19167. <method name="writeObject"
  19168. abstract="false" native="false" synchronized="false"
  19169. static="true" final="false" visibility="public"
  19170. deprecated="not deprecated">
  19171. <param name="out" type="java.io.DataOutput"/>
  19172. <param name="instance" type="java.lang.Object"/>
  19173. <param name="declaredClass" type="java.lang.Class"/>
  19174. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19175. <param name="allowCompactArrays" type="boolean"/>
  19176. <exception name="IOException" type="java.io.IOException"/>
  19177. <doc>
  19178. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  19179. the preceding.
  19180. @param allowCompactArrays - set true for RPC and internal or intra-cluster
  19181. usages. Set false for inter-cluster, File, and other persisted output
  19182. usages, to preserve the ability to interchange files with other clusters
  19183. that may not be running the same version of software. Sometime in ~2013
  19184. we can consider removing this parameter and always using the compact format.]]>
  19185. </doc>
  19186. </method>
  19187. <method name="readObject" return="java.lang.Object"
  19188. abstract="false" native="false" synchronized="false"
  19189. static="true" final="false" visibility="public"
  19190. deprecated="not deprecated">
  19191. <param name="in" type="java.io.DataInput"/>
  19192. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19193. <exception name="IOException" type="java.io.IOException"/>
  19194. <doc>
  19195. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  19196. the preceding.]]>
  19197. </doc>
  19198. </method>
  19199. <method name="readObject" return="java.lang.Object"
  19200. abstract="false" native="false" synchronized="false"
  19201. static="true" final="false" visibility="public"
  19202. deprecated="not deprecated">
  19203. <param name="in" type="java.io.DataInput"/>
  19204. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  19205. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19206. <exception name="IOException" type="java.io.IOException"/>
  19207. <doc>
  19208. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  19209. the preceding.]]>
  19210. </doc>
  19211. </method>
  19212. <method name="loadClass" return="java.lang.Class"
  19213. abstract="false" native="false" synchronized="false"
  19214. static="true" final="false" visibility="public"
  19215. deprecated="not deprecated">
  19216. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19217. <param name="className" type="java.lang.String"/>
  19218. <doc>
  19219. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  19220. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  19221. try load it directly.]]>
  19222. </doc>
  19223. </method>
  19224. <method name="setConf"
  19225. abstract="false" native="false" synchronized="false"
  19226. static="false" final="false" visibility="public"
  19227. deprecated="not deprecated">
  19228. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19229. </method>
  19230. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  19231. abstract="false" native="false" synchronized="false"
  19232. static="false" final="false" visibility="public"
  19233. deprecated="not deprecated">
  19234. </method>
  19235. <doc>
  19236. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  19237. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  19238. </doc>
  19239. </class>
  19240. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  19241. <!-- start interface org.apache.hadoop.io.RawComparator -->
  19242. <interface name="RawComparator" abstract="true"
  19243. static="false" final="false" visibility="public"
  19244. deprecated="not deprecated">
  19245. <implements name="java.util.Comparator"/>
  19246. <method name="compare" return="int"
  19247. abstract="true" native="false" synchronized="false"
  19248. static="false" final="false" visibility="public"
  19249. deprecated="not deprecated">
  19250. <param name="b1" type="byte[]"/>
  19251. <param name="s1" type="int"/>
  19252. <param name="l1" type="int"/>
  19253. <param name="b2" type="byte[]"/>
  19254. <param name="s2" type="int"/>
  19255. <param name="l2" type="int"/>
  19256. <doc>
  19257. <![CDATA[Compare two objects in binary.
  19258. b1[s1:l1] is the first object, and b2[s2:l2] is the second object.
  19259. @param b1 The first byte array.
  19260. @param s1 The position index in b1. The object under comparison's starting index.
  19261. @param l1 The length of the object in b1.
  19262. @param b2 The second byte array.
  19263. @param s2 The position index in b2. The object under comparison's starting index.
  19264. @param l2 The length of the object under comparison in b2.
  19265. @return An integer result of the comparison.]]>
  19266. </doc>
  19267. </method>
  19268. <doc>
  19269. <![CDATA[<p>
  19270. A {@link Comparator} that operates directly on byte representations of
  19271. objects.
  19272. </p>
  19273. @param <T>
  19274. @see DeserializerComparator]]>
  19275. </doc>
  19276. </interface>
  19277. <!-- end interface org.apache.hadoop.io.RawComparator -->
  19278. <!-- start class org.apache.hadoop.io.SequenceFile -->
  19279. <class name="SequenceFile" extends="java.lang.Object"
  19280. abstract="false"
  19281. static="false" final="false" visibility="public"
  19282. deprecated="not deprecated">
  19283. <method name="getDefaultCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  19284. abstract="false" native="false" synchronized="false"
  19285. static="true" final="false" visibility="public"
  19286. deprecated="not deprecated">
  19287. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  19288. <doc>
  19289. <![CDATA[Get the compression type for the reduce outputs
  19290. @param job the job config to look in
  19291. @return the kind of compression to use]]>
  19292. </doc>
  19293. </method>
  19294. <method name="setDefaultCompressionType"
  19295. abstract="false" native="false" synchronized="false"
  19296. static="true" final="false" visibility="public"
  19297. deprecated="not deprecated">
  19298. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  19299. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19300. <doc>
  19301. <![CDATA[Set the default compression type for sequence files.
  19302. @param job the configuration to modify
  19303. @param val the new compression type (none, block, record)]]>
  19304. </doc>
  19305. </method>
  19306. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19307. abstract="false" native="false" synchronized="false"
  19308. static="true" final="false" visibility="public"
  19309. deprecated="not deprecated">
  19310. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19311. <param name="opts" type="org.apache.hadoop.io.SequenceFile.Writer.Option[]"/>
  19312. <exception name="IOException" type="java.io.IOException"/>
  19313. <doc>
  19314. <![CDATA[Create a new Writer with the given options.
  19315. @param conf the configuration to use
  19316. @param opts the options to create the file with
  19317. @return a new Writer
  19318. @throws IOException]]>
  19319. </doc>
  19320. </method>
  19321. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19322. abstract="false" native="false" synchronized="false"
  19323. static="true" final="false" visibility="public"
  19324. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19325. instead.">
  19326. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19327. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19328. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19329. <param name="keyClass" type="java.lang.Class"/>
  19330. <param name="valClass" type="java.lang.Class"/>
  19331. <exception name="IOException" type="java.io.IOException"/>
  19332. <doc>
  19333. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19334. @param fs The configured filesystem.
  19335. @param conf The configuration.
  19336. @param name The name of the file.
  19337. @param keyClass The 'key' type.
  19338. @param valClass The 'value' type.
  19339. @return Returns the handle to the constructed SequenceFile Writer.
  19340. @throws IOException
  19341. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19342. instead.]]>
  19343. </doc>
  19344. </method>
  19345. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19346. abstract="false" native="false" synchronized="false"
  19347. static="true" final="false" visibility="public"
  19348. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19349. instead.">
  19350. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19351. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19352. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19353. <param name="keyClass" type="java.lang.Class"/>
  19354. <param name="valClass" type="java.lang.Class"/>
  19355. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19356. <exception name="IOException" type="java.io.IOException"/>
  19357. <doc>
  19358. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19359. @param fs The configured filesystem.
  19360. @param conf The configuration.
  19361. @param name The name of the file.
  19362. @param keyClass The 'key' type.
  19363. @param valClass The 'value' type.
  19364. @param compressionType The compression type.
  19365. @return Returns the handle to the constructed SequenceFile Writer.
  19366. @throws IOException
  19367. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19368. instead.]]>
  19369. </doc>
  19370. </method>
  19371. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19372. abstract="false" native="false" synchronized="false"
  19373. static="true" final="false" visibility="public"
  19374. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19375. instead.">
  19376. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19377. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19378. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19379. <param name="keyClass" type="java.lang.Class"/>
  19380. <param name="valClass" type="java.lang.Class"/>
  19381. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19382. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  19383. <exception name="IOException" type="java.io.IOException"/>
  19384. <doc>
  19385. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19386. @param fs The configured filesystem.
  19387. @param conf The configuration.
  19388. @param name The name of the file.
  19389. @param keyClass The 'key' type.
  19390. @param valClass The 'value' type.
  19391. @param compressionType The compression type.
  19392. @param progress The Progressable object to track progress.
  19393. @return Returns the handle to the constructed SequenceFile Writer.
  19394. @throws IOException
  19395. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19396. instead.]]>
  19397. </doc>
  19398. </method>
  19399. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19400. abstract="false" native="false" synchronized="false"
  19401. static="true" final="false" visibility="public"
  19402. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19403. instead.">
  19404. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19405. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19406. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19407. <param name="keyClass" type="java.lang.Class"/>
  19408. <param name="valClass" type="java.lang.Class"/>
  19409. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19410. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19411. <exception name="IOException" type="java.io.IOException"/>
  19412. <doc>
  19413. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19414. @param fs The configured filesystem.
  19415. @param conf The configuration.
  19416. @param name The name of the file.
  19417. @param keyClass The 'key' type.
  19418. @param valClass The 'value' type.
  19419. @param compressionType The compression type.
  19420. @param codec The compression codec.
  19421. @return Returns the handle to the constructed SequenceFile Writer.
  19422. @throws IOException
  19423. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19424. instead.]]>
  19425. </doc>
  19426. </method>
  19427. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19428. abstract="false" native="false" synchronized="false"
  19429. static="true" final="false" visibility="public"
  19430. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19431. instead.">
  19432. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19433. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19434. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19435. <param name="keyClass" type="java.lang.Class"/>
  19436. <param name="valClass" type="java.lang.Class"/>
  19437. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19438. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19439. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  19440. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  19441. <exception name="IOException" type="java.io.IOException"/>
  19442. <doc>
  19443. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19444. @param fs The configured filesystem.
  19445. @param conf The configuration.
  19446. @param name The name of the file.
  19447. @param keyClass The 'key' type.
  19448. @param valClass The 'value' type.
  19449. @param compressionType The compression type.
  19450. @param codec The compression codec.
  19451. @param progress The Progressable object to track progress.
  19452. @param metadata The metadata of the file.
  19453. @return Returns the handle to the constructed SequenceFile Writer.
  19454. @throws IOException
  19455. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19456. instead.]]>
  19457. </doc>
  19458. </method>
  19459. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19460. abstract="false" native="false" synchronized="false"
  19461. static="true" final="false" visibility="public"
  19462. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19463. instead.">
  19464. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19465. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19466. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19467. <param name="keyClass" type="java.lang.Class"/>
  19468. <param name="valClass" type="java.lang.Class"/>
  19469. <param name="bufferSize" type="int"/>
  19470. <param name="replication" type="short"/>
  19471. <param name="blockSize" type="long"/>
  19472. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19473. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19474. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  19475. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  19476. <exception name="IOException" type="java.io.IOException"/>
  19477. <doc>
  19478. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19479. @param fs The configured filesystem.
  19480. @param conf The configuration.
  19481. @param name The name of the file.
  19482. @param keyClass The 'key' type.
  19483. @param valClass The 'value' type.
  19484. @param bufferSize buffer size for the underlaying outputstream.
  19485. @param replication replication factor for the file.
  19486. @param blockSize block size for the file.
  19487. @param compressionType The compression type.
  19488. @param codec The compression codec.
  19489. @param progress The Progressable object to track progress.
  19490. @param metadata The metadata of the file.
  19491. @return Returns the handle to the constructed SequenceFile Writer.
  19492. @throws IOException
  19493. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19494. instead.]]>
  19495. </doc>
  19496. </method>
  19497. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19498. abstract="false" native="false" synchronized="false"
  19499. static="true" final="false" visibility="public"
  19500. deprecated="not deprecated">
  19501. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19502. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19503. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19504. <param name="keyClass" type="java.lang.Class"/>
  19505. <param name="valClass" type="java.lang.Class"/>
  19506. <param name="bufferSize" type="int"/>
  19507. <param name="replication" type="short"/>
  19508. <param name="blockSize" type="long"/>
  19509. <param name="createParent" type="boolean"/>
  19510. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19511. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19512. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  19513. <exception name="IOException" type="java.io.IOException"/>
  19514. <doc>
  19515. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19516. @param fs The configured filesystem.
  19517. @param conf The configuration.
  19518. @param name The name of the file.
  19519. @param keyClass The 'key' type.
  19520. @param valClass The 'value' type.
  19521. @param bufferSize buffer size for the underlaying outputstream.
  19522. @param replication replication factor for the file.
  19523. @param blockSize block size for the file.
  19524. @param createParent create parent directory if non-existent
  19525. @param compressionType The compression type.
  19526. @param codec The compression codec.
  19527. @param metadata The metadata of the file.
  19528. @return Returns the handle to the constructed SequenceFile Writer.
  19529. @throws IOException]]>
  19530. </doc>
  19531. </method>
  19532. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19533. abstract="false" native="false" synchronized="false"
  19534. static="true" final="false" visibility="public"
  19535. deprecated="not deprecated">
  19536. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  19537. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19538. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19539. <param name="keyClass" type="java.lang.Class"/>
  19540. <param name="valClass" type="java.lang.Class"/>
  19541. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19542. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19543. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  19544. <param name="createFlag" type="java.util.EnumSet"/>
  19545. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  19546. <exception name="IOException" type="java.io.IOException"/>
  19547. <doc>
  19548. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19549. @param fc The context for the specified file.
  19550. @param conf The configuration.
  19551. @param name The name of the file.
  19552. @param keyClass The 'key' type.
  19553. @param valClass The 'value' type.
  19554. @param compressionType The compression type.
  19555. @param codec The compression codec.
  19556. @param metadata The metadata of the file.
  19557. @param createFlag gives the semantics of create: overwrite, append etc.
  19558. @param opts file creation options; see {@link CreateOpts}.
  19559. @return Returns the handle to the constructed SequenceFile Writer.
  19560. @throws IOException]]>
  19561. </doc>
  19562. </method>
  19563. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19564. abstract="false" native="false" synchronized="false"
  19565. static="true" final="false" visibility="public"
  19566. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19567. instead.">
  19568. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19569. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19570. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19571. <param name="keyClass" type="java.lang.Class"/>
  19572. <param name="valClass" type="java.lang.Class"/>
  19573. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19574. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19575. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  19576. <exception name="IOException" type="java.io.IOException"/>
  19577. <doc>
  19578. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19579. @param fs The configured filesystem.
  19580. @param conf The configuration.
  19581. @param name The name of the file.
  19582. @param keyClass The 'key' type.
  19583. @param valClass The 'value' type.
  19584. @param compressionType The compression type.
  19585. @param codec The compression codec.
  19586. @param progress The Progressable object to track progress.
  19587. @return Returns the handle to the constructed SequenceFile Writer.
  19588. @throws IOException
  19589. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19590. instead.]]>
  19591. </doc>
  19592. </method>
  19593. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19594. abstract="false" native="false" synchronized="false"
  19595. static="true" final="false" visibility="public"
  19596. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19597. instead.">
  19598. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19599. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  19600. <param name="keyClass" type="java.lang.Class"/>
  19601. <param name="valClass" type="java.lang.Class"/>
  19602. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19603. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19604. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  19605. <exception name="IOException" type="java.io.IOException"/>
  19606. <doc>
  19607. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  19608. @param conf The configuration.
  19609. @param out The stream on top which the writer is to be constructed.
  19610. @param keyClass The 'key' type.
  19611. @param valClass The 'value' type.
  19612. @param compressionType The compression type.
  19613. @param codec The compression codec.
  19614. @param metadata The metadata of the file.
  19615. @return Returns the handle to the constructed SequenceFile Writer.
  19616. @throws IOException
  19617. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19618. instead.]]>
  19619. </doc>
  19620. </method>
  19621. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19622. abstract="false" native="false" synchronized="false"
  19623. static="true" final="false" visibility="public"
  19624. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19625. instead.">
  19626. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19627. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  19628. <param name="keyClass" type="java.lang.Class"/>
  19629. <param name="valClass" type="java.lang.Class"/>
  19630. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19631. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19632. <exception name="IOException" type="java.io.IOException"/>
  19633. <doc>
  19634. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  19635. @param conf The configuration.
  19636. @param out The stream on top which the writer is to be constructed.
  19637. @param keyClass The 'key' type.
  19638. @param valClass The 'value' type.
  19639. @param compressionType The compression type.
  19640. @param codec The compression codec.
  19641. @return Returns the handle to the constructed SequenceFile Writer.
  19642. @throws IOException
  19643. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19644. instead.]]>
  19645. </doc>
  19646. </method>
  19647. <field name="SYNC_INTERVAL" type="int"
  19648. transient="false" volatile="false"
  19649. static="true" final="true" visibility="public"
  19650. deprecated="not deprecated">
  19651. <doc>
  19652. <![CDATA[The number of bytes between sync points. 100 KB, default.
  19653. Computed as 5 KB * 20 = 100 KB]]>
  19654. </doc>
  19655. </field>
  19656. <doc>
  19657. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  19658. pairs.
  19659. <p><code>SequenceFile</code> provides {@link SequenceFile.Writer},
  19660. {@link SequenceFile.Reader} and {@link Sorter} classes for writing,
  19661. reading and sorting respectively.</p>
  19662. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  19663. {@link CompressionType} used to compress key/value pairs:
  19664. <ol>
  19665. <li>
  19666. <code>Writer</code> : Uncompressed records.
  19667. </li>
  19668. <li>
  19669. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  19670. values.
  19671. </li>
  19672. <li>
  19673. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  19674. values are collected in 'blocks'
  19675. separately and compressed. The size of
  19676. the 'block' is configurable.
  19677. </ol>
  19678. <p>The actual compression algorithm used to compress key and/or values can be
  19679. specified by using the appropriate {@link CompressionCodec}.</p>
  19680. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  19681. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  19682. <p>The {@link SequenceFile.Reader} acts as the bridge and can read any of the
  19683. above <code>SequenceFile</code> formats.</p>
  19684. <h4 id="Formats">SequenceFile Formats</h4>
  19685. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  19686. depending on the <code>CompressionType</code> specified. All of them share a
  19687. <a href="#Header">common header</a> described below.
  19688. <h5 id="Header">SequenceFile Header</h5>
  19689. <ul>
  19690. <li>
  19691. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  19692. version number (e.g. SEQ4 or SEQ6)
  19693. </li>
  19694. <li>
  19695. keyClassName -key class
  19696. </li>
  19697. <li>
  19698. valueClassName - value class
  19699. </li>
  19700. <li>
  19701. compression - A boolean which specifies if compression is turned on for
  19702. keys/values in this file.
  19703. </li>
  19704. <li>
  19705. blockCompression - A boolean which specifies if block-compression is
  19706. turned on for keys/values in this file.
  19707. </li>
  19708. <li>
  19709. compression codec - <code>CompressionCodec</code> class which is used for
  19710. compression of keys and/or values (if compression is
  19711. enabled).
  19712. </li>
  19713. <li>
  19714. metadata - {@link Metadata} for this file.
  19715. </li>
  19716. <li>
  19717. sync - A sync marker to denote end of the header.
  19718. </li>
  19719. </ul>
  19720. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  19721. <ul>
  19722. <li>
  19723. <a href="#Header">Header</a>
  19724. </li>
  19725. <li>
  19726. Record
  19727. <ul>
  19728. <li>Record length</li>
  19729. <li>Key length</li>
  19730. <li>Key</li>
  19731. <li>Value</li>
  19732. </ul>
  19733. </li>
  19734. <li>
  19735. A sync-marker every few <code>100</code> kilobytes or so.
  19736. </li>
  19737. </ul>
  19738. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  19739. <ul>
  19740. <li>
  19741. <a href="#Header">Header</a>
  19742. </li>
  19743. <li>
  19744. Record
  19745. <ul>
  19746. <li>Record length</li>
  19747. <li>Key length</li>
  19748. <li>Key</li>
  19749. <li><i>Compressed</i> Value</li>
  19750. </ul>
  19751. </li>
  19752. <li>
  19753. A sync-marker every few <code>100</code> kilobytes or so.
  19754. </li>
  19755. </ul>
  19756. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  19757. <ul>
  19758. <li>
  19759. <a href="#Header">Header</a>
  19760. </li>
  19761. <li>
  19762. Record <i>Block</i>
  19763. <ul>
  19764. <li>Uncompressed number of records in the block</li>
  19765. <li>Compressed key-lengths block-size</li>
  19766. <li>Compressed key-lengths block</li>
  19767. <li>Compressed keys block-size</li>
  19768. <li>Compressed keys block</li>
  19769. <li>Compressed value-lengths block-size</li>
  19770. <li>Compressed value-lengths block</li>
  19771. <li>Compressed values block-size</li>
  19772. <li>Compressed values block</li>
  19773. </ul>
  19774. </li>
  19775. <li>
  19776. A sync-marker every block.
  19777. </li>
  19778. </ul>
  19779. <p>The compressed blocks of key lengths and value lengths consist of the
  19780. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  19781. format.</p>
  19782. @see CompressionCodec]]>
  19783. </doc>
  19784. </class>
  19785. <!-- end class org.apache.hadoop.io.SequenceFile -->
  19786. <!-- start class org.apache.hadoop.io.SetFile -->
  19787. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  19788. abstract="false"
  19789. static="false" final="false" visibility="public"
  19790. deprecated="not deprecated">
  19791. <constructor name="SetFile"
  19792. static="false" final="false" visibility="protected"
  19793. deprecated="not deprecated">
  19794. </constructor>
  19795. <doc>
  19796. <![CDATA[A file-based set of keys.]]>
  19797. </doc>
  19798. </class>
  19799. <!-- end class org.apache.hadoop.io.SetFile -->
  19800. <!-- start class org.apache.hadoop.io.ShortWritable -->
  19801. <class name="ShortWritable" extends="java.lang.Object"
  19802. abstract="false"
  19803. static="false" final="false" visibility="public"
  19804. deprecated="not deprecated">
  19805. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19806. <constructor name="ShortWritable"
  19807. static="false" final="false" visibility="public"
  19808. deprecated="not deprecated">
  19809. </constructor>
  19810. <constructor name="ShortWritable" type="short"
  19811. static="false" final="false" visibility="public"
  19812. deprecated="not deprecated">
  19813. </constructor>
  19814. <method name="set"
  19815. abstract="false" native="false" synchronized="false"
  19816. static="false" final="false" visibility="public"
  19817. deprecated="not deprecated">
  19818. <param name="value" type="short"/>
  19819. <doc>
  19820. <![CDATA[Set the value of this ShortWritable.]]>
  19821. </doc>
  19822. </method>
  19823. <method name="get" return="short"
  19824. abstract="false" native="false" synchronized="false"
  19825. static="false" final="false" visibility="public"
  19826. deprecated="not deprecated">
  19827. <doc>
  19828. <![CDATA[Return the value of this ShortWritable.]]>
  19829. </doc>
  19830. </method>
  19831. <method name="readFields"
  19832. abstract="false" native="false" synchronized="false"
  19833. static="false" final="false" visibility="public"
  19834. deprecated="not deprecated">
  19835. <param name="in" type="java.io.DataInput"/>
  19836. <exception name="IOException" type="java.io.IOException"/>
  19837. <doc>
  19838. <![CDATA[read the short value]]>
  19839. </doc>
  19840. </method>
  19841. <method name="write"
  19842. abstract="false" native="false" synchronized="false"
  19843. static="false" final="false" visibility="public"
  19844. deprecated="not deprecated">
  19845. <param name="out" type="java.io.DataOutput"/>
  19846. <exception name="IOException" type="java.io.IOException"/>
  19847. <doc>
  19848. <![CDATA[write short value]]>
  19849. </doc>
  19850. </method>
  19851. <method name="equals" return="boolean"
  19852. abstract="false" native="false" synchronized="false"
  19853. static="false" final="false" visibility="public"
  19854. deprecated="not deprecated">
  19855. <param name="o" type="java.lang.Object"/>
  19856. <doc>
  19857. <![CDATA[Returns true iff <code>o</code> is a ShortWritable with the same value.]]>
  19858. </doc>
  19859. </method>
  19860. <method name="hashCode" return="int"
  19861. abstract="false" native="false" synchronized="false"
  19862. static="false" final="false" visibility="public"
  19863. deprecated="not deprecated">
  19864. <doc>
  19865. <![CDATA[hash code]]>
  19866. </doc>
  19867. </method>
  19868. <method name="compareTo" return="int"
  19869. abstract="false" native="false" synchronized="false"
  19870. static="false" final="false" visibility="public"
  19871. deprecated="not deprecated">
  19872. <param name="o" type="org.apache.hadoop.io.ShortWritable"/>
  19873. <doc>
  19874. <![CDATA[Compares two ShortWritable.]]>
  19875. </doc>
  19876. </method>
  19877. <method name="toString" return="java.lang.String"
  19878. abstract="false" native="false" synchronized="false"
  19879. static="false" final="false" visibility="public"
  19880. deprecated="not deprecated">
  19881. <doc>
  19882. <![CDATA[Short values in string format]]>
  19883. </doc>
  19884. </method>
  19885. <doc>
  19886. <![CDATA[A WritableComparable for shorts.]]>
  19887. </doc>
  19888. </class>
  19889. <!-- end class org.apache.hadoop.io.ShortWritable -->
  19890. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  19891. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  19892. abstract="false"
  19893. static="false" final="false" visibility="public"
  19894. deprecated="not deprecated">
  19895. <implements name="java.util.SortedMap"/>
  19896. <constructor name="SortedMapWritable"
  19897. static="false" final="false" visibility="public"
  19898. deprecated="not deprecated">
  19899. <doc>
  19900. <![CDATA[default constructor.]]>
  19901. </doc>
  19902. </constructor>
  19903. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  19904. static="false" final="false" visibility="public"
  19905. deprecated="not deprecated">
  19906. <doc>
  19907. <![CDATA[Copy constructor.
  19908. @param other the map to copy from]]>
  19909. </doc>
  19910. </constructor>
  19911. <method name="comparator" return="java.util.Comparator"
  19912. abstract="false" native="false" synchronized="false"
  19913. static="false" final="false" visibility="public"
  19914. deprecated="not deprecated">
  19915. </method>
  19916. <method name="firstKey" return="K"
  19917. abstract="false" native="false" synchronized="false"
  19918. static="false" final="false" visibility="public"
  19919. deprecated="not deprecated">
  19920. </method>
  19921. <method name="headMap" return="java.util.SortedMap"
  19922. abstract="false" native="false" synchronized="false"
  19923. static="false" final="false" visibility="public"
  19924. deprecated="not deprecated">
  19925. <param name="toKey" type="K"/>
  19926. </method>
  19927. <method name="lastKey" return="K"
  19928. abstract="false" native="false" synchronized="false"
  19929. static="false" final="false" visibility="public"
  19930. deprecated="not deprecated">
  19931. </method>
  19932. <method name="subMap" return="java.util.SortedMap"
  19933. abstract="false" native="false" synchronized="false"
  19934. static="false" final="false" visibility="public"
  19935. deprecated="not deprecated">
  19936. <param name="fromKey" type="K"/>
  19937. <param name="toKey" type="K"/>
  19938. </method>
  19939. <method name="tailMap" return="java.util.SortedMap"
  19940. abstract="false" native="false" synchronized="false"
  19941. static="false" final="false" visibility="public"
  19942. deprecated="not deprecated">
  19943. <param name="fromKey" type="K"/>
  19944. </method>
  19945. <method name="clear"
  19946. abstract="false" native="false" synchronized="false"
  19947. static="false" final="false" visibility="public"
  19948. deprecated="not deprecated">
  19949. </method>
  19950. <method name="containsKey" return="boolean"
  19951. abstract="false" native="false" synchronized="false"
  19952. static="false" final="false" visibility="public"
  19953. deprecated="not deprecated">
  19954. <param name="key" type="java.lang.Object"/>
  19955. </method>
  19956. <method name="containsValue" return="boolean"
  19957. abstract="false" native="false" synchronized="false"
  19958. static="false" final="false" visibility="public"
  19959. deprecated="not deprecated">
  19960. <param name="value" type="java.lang.Object"/>
  19961. </method>
  19962. <method name="entrySet" return="java.util.Set"
  19963. abstract="false" native="false" synchronized="false"
  19964. static="false" final="false" visibility="public"
  19965. deprecated="not deprecated">
  19966. </method>
  19967. <method name="get" return="org.apache.hadoop.io.Writable"
  19968. abstract="false" native="false" synchronized="false"
  19969. static="false" final="false" visibility="public"
  19970. deprecated="not deprecated">
  19971. <param name="key" type="java.lang.Object"/>
  19972. </method>
  19973. <method name="isEmpty" return="boolean"
  19974. abstract="false" native="false" synchronized="false"
  19975. static="false" final="false" visibility="public"
  19976. deprecated="not deprecated">
  19977. </method>
  19978. <method name="keySet" return="java.util.Set"
  19979. abstract="false" native="false" synchronized="false"
  19980. static="false" final="false" visibility="public"
  19981. deprecated="not deprecated">
  19982. </method>
  19983. <method name="put" return="org.apache.hadoop.io.Writable"
  19984. abstract="false" native="false" synchronized="false"
  19985. static="false" final="false" visibility="public"
  19986. deprecated="not deprecated">
  19987. <param name="key" type="K"/>
  19988. <param name="value" type="org.apache.hadoop.io.Writable"/>
  19989. </method>
  19990. <method name="putAll"
  19991. abstract="false" native="false" synchronized="false"
  19992. static="false" final="false" visibility="public"
  19993. deprecated="not deprecated">
  19994. <param name="t" type="java.util.Map"/>
  19995. </method>
  19996. <method name="remove" return="org.apache.hadoop.io.Writable"
  19997. abstract="false" native="false" synchronized="false"
  19998. static="false" final="false" visibility="public"
  19999. deprecated="not deprecated">
  20000. <param name="key" type="java.lang.Object"/>
  20001. </method>
  20002. <method name="size" return="int"
  20003. abstract="false" native="false" synchronized="false"
  20004. static="false" final="false" visibility="public"
  20005. deprecated="not deprecated">
  20006. </method>
  20007. <method name="values" return="java.util.Collection"
  20008. abstract="false" native="false" synchronized="false"
  20009. static="false" final="false" visibility="public"
  20010. deprecated="not deprecated">
  20011. </method>
  20012. <method name="readFields"
  20013. abstract="false" native="false" synchronized="false"
  20014. static="false" final="false" visibility="public"
  20015. deprecated="not deprecated">
  20016. <param name="in" type="java.io.DataInput"/>
  20017. <exception name="IOException" type="java.io.IOException"/>
  20018. </method>
  20019. <method name="write"
  20020. abstract="false" native="false" synchronized="false"
  20021. static="false" final="false" visibility="public"
  20022. deprecated="not deprecated">
  20023. <param name="out" type="java.io.DataOutput"/>
  20024. <exception name="IOException" type="java.io.IOException"/>
  20025. </method>
  20026. <method name="equals" return="boolean"
  20027. abstract="false" native="false" synchronized="false"
  20028. static="false" final="false" visibility="public"
  20029. deprecated="not deprecated">
  20030. <param name="obj" type="java.lang.Object"/>
  20031. </method>
  20032. <method name="hashCode" return="int"
  20033. abstract="false" native="false" synchronized="false"
  20034. static="false" final="false" visibility="public"
  20035. deprecated="not deprecated">
  20036. </method>
  20037. <doc>
  20038. <![CDATA[A Writable SortedMap.]]>
  20039. </doc>
  20040. </class>
  20041. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  20042. <!-- start interface org.apache.hadoop.io.Stringifier -->
  20043. <interface name="Stringifier" abstract="true"
  20044. static="false" final="false" visibility="public"
  20045. deprecated="not deprecated">
  20046. <implements name="java.io.Closeable"/>
  20047. <method name="toString" return="java.lang.String"
  20048. abstract="true" native="false" synchronized="false"
  20049. static="false" final="false" visibility="public"
  20050. deprecated="not deprecated">
  20051. <param name="obj" type="T"/>
  20052. <exception name="IOException" type="java.io.IOException"/>
  20053. <doc>
  20054. <![CDATA[Converts the object to a string representation
  20055. @param obj the object to convert
  20056. @return the string representation of the object
  20057. @throws IOException if the object cannot be converted]]>
  20058. </doc>
  20059. </method>
  20060. <method name="fromString" return="T"
  20061. abstract="true" native="false" synchronized="false"
  20062. static="false" final="false" visibility="public"
  20063. deprecated="not deprecated">
  20064. <param name="str" type="java.lang.String"/>
  20065. <exception name="IOException" type="java.io.IOException"/>
  20066. <doc>
  20067. <![CDATA[Restores the object from its string representation.
  20068. @param str the string representation of the object
  20069. @return restored object
  20070. @throws IOException if the object cannot be restored]]>
  20071. </doc>
  20072. </method>
  20073. <method name="close"
  20074. abstract="true" native="false" synchronized="false"
  20075. static="false" final="false" visibility="public"
  20076. deprecated="not deprecated">
  20077. <exception name="IOException" type="java.io.IOException"/>
  20078. <doc>
  20079. <![CDATA[Closes this object.
  20080. @throws IOException if an I/O error occurs]]>
  20081. </doc>
  20082. </method>
  20083. <doc>
  20084. <![CDATA[Stringifier interface offers two methods to convert an object
  20085. to a string representation and restore the object given its
  20086. string representation.
  20087. @param <T> the class of the objects to stringify]]>
  20088. </doc>
  20089. </interface>
  20090. <!-- end interface org.apache.hadoop.io.Stringifier -->
  20091. <!-- start class org.apache.hadoop.io.Text -->
  20092. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  20093. abstract="false"
  20094. static="false" final="false" visibility="public"
  20095. deprecated="not deprecated">
  20096. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20097. <constructor name="Text"
  20098. static="false" final="false" visibility="public"
  20099. deprecated="not deprecated">
  20100. </constructor>
  20101. <constructor name="Text" type="java.lang.String"
  20102. static="false" final="false" visibility="public"
  20103. deprecated="not deprecated">
  20104. <doc>
  20105. <![CDATA[Construct from a string.]]>
  20106. </doc>
  20107. </constructor>
  20108. <constructor name="Text" type="org.apache.hadoop.io.Text"
  20109. static="false" final="false" visibility="public"
  20110. deprecated="not deprecated">
  20111. <doc>
  20112. <![CDATA[Construct from another text.]]>
  20113. </doc>
  20114. </constructor>
  20115. <constructor name="Text" type="byte[]"
  20116. static="false" final="false" visibility="public"
  20117. deprecated="not deprecated">
  20118. <doc>
  20119. <![CDATA[Construct from a byte array.]]>
  20120. </doc>
  20121. </constructor>
  20122. <method name="copyBytes" return="byte[]"
  20123. abstract="false" native="false" synchronized="false"
  20124. static="false" final="false" visibility="public"
  20125. deprecated="not deprecated">
  20126. <doc>
  20127. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  20128. See {@link #getBytes()} for faster access to the underlying array.]]>
  20129. </doc>
  20130. </method>
  20131. <method name="getBytes" return="byte[]"
  20132. abstract="false" native="false" synchronized="false"
  20133. static="false" final="false" visibility="public"
  20134. deprecated="not deprecated">
  20135. <doc>
  20136. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  20137. valid. Please use {@link #copyBytes()} if you
  20138. need the returned array to be precisely the length of the data.]]>
  20139. </doc>
  20140. </method>
  20141. <method name="getLength" return="int"
  20142. abstract="false" native="false" synchronized="false"
  20143. static="false" final="false" visibility="public"
  20144. deprecated="not deprecated">
  20145. <doc>
  20146. <![CDATA[Returns the number of bytes in the byte array]]>
  20147. </doc>
  20148. </method>
  20149. <method name="charAt" return="int"
  20150. abstract="false" native="false" synchronized="false"
  20151. static="false" final="false" visibility="public"
  20152. deprecated="not deprecated">
  20153. <param name="position" type="int"/>
  20154. <doc>
  20155. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  20156. for the character at <code>position</code>. Note that this
  20157. method avoids using the converter or doing String instantiation
  20158. @return the Unicode scalar value at position or -1
  20159. if the position is invalid or points to a
  20160. trailing byte]]>
  20161. </doc>
  20162. </method>
  20163. <method name="find" return="int"
  20164. abstract="false" native="false" synchronized="false"
  20165. static="false" final="false" visibility="public"
  20166. deprecated="not deprecated">
  20167. <param name="what" type="java.lang.String"/>
  20168. </method>
  20169. <method name="find" return="int"
  20170. abstract="false" native="false" synchronized="false"
  20171. static="false" final="false" visibility="public"
  20172. deprecated="not deprecated">
  20173. <param name="what" type="java.lang.String"/>
  20174. <param name="start" type="int"/>
  20175. <doc>
  20176. <![CDATA[Finds any occurrence of <code>what</code> in the backing
  20177. buffer, starting as position <code>start</code>. The starting
  20178. position is measured in bytes and the return value is in
  20179. terms of byte position in the buffer. The backing buffer is
  20180. not converted to a string for this operation.
  20181. @return byte position of the first occurrence of the search
  20182. string in the UTF-8 buffer or -1 if not found]]>
  20183. </doc>
  20184. </method>
  20185. <method name="set"
  20186. abstract="false" native="false" synchronized="false"
  20187. static="false" final="false" visibility="public"
  20188. deprecated="not deprecated">
  20189. <param name="string" type="java.lang.String"/>
  20190. <doc>
  20191. <![CDATA[Set to contain the contents of a string.]]>
  20192. </doc>
  20193. </method>
  20194. <method name="set"
  20195. abstract="false" native="false" synchronized="false"
  20196. static="false" final="false" visibility="public"
  20197. deprecated="not deprecated">
  20198. <param name="utf8" type="byte[]"/>
  20199. <doc>
  20200. <![CDATA[Set to a utf8 byte array]]>
  20201. </doc>
  20202. </method>
  20203. <method name="set"
  20204. abstract="false" native="false" synchronized="false"
  20205. static="false" final="false" visibility="public"
  20206. deprecated="not deprecated">
  20207. <param name="other" type="org.apache.hadoop.io.Text"/>
  20208. <doc>
  20209. <![CDATA[copy a text.]]>
  20210. </doc>
  20211. </method>
  20212. <method name="set"
  20213. abstract="false" native="false" synchronized="false"
  20214. static="false" final="false" visibility="public"
  20215. deprecated="not deprecated">
  20216. <param name="utf8" type="byte[]"/>
  20217. <param name="start" type="int"/>
  20218. <param name="len" type="int"/>
  20219. <doc>
  20220. <![CDATA[Set the Text to range of bytes
  20221. @param utf8 the data to copy from
  20222. @param start the first position of the new string
  20223. @param len the number of bytes of the new string]]>
  20224. </doc>
  20225. </method>
  20226. <method name="append"
  20227. abstract="false" native="false" synchronized="false"
  20228. static="false" final="false" visibility="public"
  20229. deprecated="not deprecated">
  20230. <param name="utf8" type="byte[]"/>
  20231. <param name="start" type="int"/>
  20232. <param name="len" type="int"/>
  20233. <doc>
  20234. <![CDATA[Append a range of bytes to the end of the given text
  20235. @param utf8 the data to copy from
  20236. @param start the first position to append from utf8
  20237. @param len the number of bytes to append]]>
  20238. </doc>
  20239. </method>
  20240. <method name="clear"
  20241. abstract="false" native="false" synchronized="false"
  20242. static="false" final="false" visibility="public"
  20243. deprecated="not deprecated">
  20244. <doc>
  20245. <![CDATA[Clear the string to empty.
  20246. <em>Note</em>: For performance reasons, this call does not clear the
  20247. underlying byte array that is retrievable via {@link #getBytes()}.
  20248. In order to free the byte-array memory, call {@link #set(byte[])}
  20249. with an empty byte array (For example, <code>new byte[0]</code>).]]>
  20250. </doc>
  20251. </method>
  20252. <method name="toString" return="java.lang.String"
  20253. abstract="false" native="false" synchronized="false"
  20254. static="false" final="false" visibility="public"
  20255. deprecated="not deprecated">
  20256. <doc>
  20257. <![CDATA[Convert text back to string
  20258. @see java.lang.Object#toString()]]>
  20259. </doc>
  20260. </method>
  20261. <method name="readFields"
  20262. abstract="false" native="false" synchronized="false"
  20263. static="false" final="false" visibility="public"
  20264. deprecated="not deprecated">
  20265. <param name="in" type="java.io.DataInput"/>
  20266. <exception name="IOException" type="java.io.IOException"/>
  20267. <doc>
  20268. <![CDATA[deserialize]]>
  20269. </doc>
  20270. </method>
  20271. <method name="readFields"
  20272. abstract="false" native="false" synchronized="false"
  20273. static="false" final="false" visibility="public"
  20274. deprecated="not deprecated">
  20275. <param name="in" type="java.io.DataInput"/>
  20276. <param name="maxLength" type="int"/>
  20277. <exception name="IOException" type="java.io.IOException"/>
  20278. </method>
  20279. <method name="skip"
  20280. abstract="false" native="false" synchronized="false"
  20281. static="true" final="false" visibility="public"
  20282. deprecated="not deprecated">
  20283. <param name="in" type="java.io.DataInput"/>
  20284. <exception name="IOException" type="java.io.IOException"/>
  20285. <doc>
  20286. <![CDATA[Skips over one Text in the input.]]>
  20287. </doc>
  20288. </method>
  20289. <method name="readWithKnownLength"
  20290. abstract="false" native="false" synchronized="false"
  20291. static="false" final="false" visibility="public"
  20292. deprecated="not deprecated">
  20293. <param name="in" type="java.io.DataInput"/>
  20294. <param name="len" type="int"/>
  20295. <exception name="IOException" type="java.io.IOException"/>
  20296. <doc>
  20297. <![CDATA[Read a Text object whose length is already known.
  20298. This allows creating Text from a stream which uses a different serialization
  20299. format.]]>
  20300. </doc>
  20301. </method>
  20302. <method name="write"
  20303. abstract="false" native="false" synchronized="false"
  20304. static="false" final="false" visibility="public"
  20305. deprecated="not deprecated">
  20306. <param name="out" type="java.io.DataOutput"/>
  20307. <exception name="IOException" type="java.io.IOException"/>
  20308. <doc>
  20309. <![CDATA[serialize
  20310. write this object to out
  20311. length uses zero-compressed encoding
  20312. @see Writable#write(DataOutput)]]>
  20313. </doc>
  20314. </method>
  20315. <method name="write"
  20316. abstract="false" native="false" synchronized="false"
  20317. static="false" final="false" visibility="public"
  20318. deprecated="not deprecated">
  20319. <param name="out" type="java.io.DataOutput"/>
  20320. <param name="maxLength" type="int"/>
  20321. <exception name="IOException" type="java.io.IOException"/>
  20322. </method>
  20323. <method name="equals" return="boolean"
  20324. abstract="false" native="false" synchronized="false"
  20325. static="false" final="false" visibility="public"
  20326. deprecated="not deprecated">
  20327. <param name="o" type="java.lang.Object"/>
  20328. <doc>
  20329. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  20330. </doc>
  20331. </method>
  20332. <method name="hashCode" return="int"
  20333. abstract="false" native="false" synchronized="false"
  20334. static="false" final="false" visibility="public"
  20335. deprecated="not deprecated">
  20336. </method>
  20337. <method name="decode" return="java.lang.String"
  20338. abstract="false" native="false" synchronized="false"
  20339. static="true" final="false" visibility="public"
  20340. deprecated="not deprecated">
  20341. <param name="utf8" type="byte[]"/>
  20342. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20343. <doc>
  20344. <![CDATA[Converts the provided byte array to a String using the
  20345. UTF-8 encoding. If the input is malformed,
  20346. replace by a default value.]]>
  20347. </doc>
  20348. </method>
  20349. <method name="decode" return="java.lang.String"
  20350. abstract="false" native="false" synchronized="false"
  20351. static="true" final="false" visibility="public"
  20352. deprecated="not deprecated">
  20353. <param name="utf8" type="byte[]"/>
  20354. <param name="start" type="int"/>
  20355. <param name="length" type="int"/>
  20356. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20357. </method>
  20358. <method name="decode" return="java.lang.String"
  20359. abstract="false" native="false" synchronized="false"
  20360. static="true" final="false" visibility="public"
  20361. deprecated="not deprecated">
  20362. <param name="utf8" type="byte[]"/>
  20363. <param name="start" type="int"/>
  20364. <param name="length" type="int"/>
  20365. <param name="replace" type="boolean"/>
  20366. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20367. <doc>
  20368. <![CDATA[Converts the provided byte array to a String using the
  20369. UTF-8 encoding. If <code>replace</code> is true, then
  20370. malformed input is replaced with the
  20371. substitution character, which is U+FFFD. Otherwise the
  20372. method throws a MalformedInputException.]]>
  20373. </doc>
  20374. </method>
  20375. <method name="encode" return="java.nio.ByteBuffer"
  20376. abstract="false" native="false" synchronized="false"
  20377. static="true" final="false" visibility="public"
  20378. deprecated="not deprecated">
  20379. <param name="string" type="java.lang.String"/>
  20380. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20381. <doc>
  20382. <![CDATA[Converts the provided String to bytes using the
  20383. UTF-8 encoding. If the input is malformed,
  20384. invalid chars are replaced by a default value.
  20385. @return ByteBuffer: bytes stores at ByteBuffer.array()
  20386. and length is ByteBuffer.limit()]]>
  20387. </doc>
  20388. </method>
  20389. <method name="encode" return="java.nio.ByteBuffer"
  20390. abstract="false" native="false" synchronized="false"
  20391. static="true" final="false" visibility="public"
  20392. deprecated="not deprecated">
  20393. <param name="string" type="java.lang.String"/>
  20394. <param name="replace" type="boolean"/>
  20395. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20396. <doc>
  20397. <![CDATA[Converts the provided String to bytes using the
  20398. UTF-8 encoding. If <code>replace</code> is true, then
  20399. malformed input is replaced with the
  20400. substitution character, which is U+FFFD. Otherwise the
  20401. method throws a MalformedInputException.
  20402. @return ByteBuffer: bytes stores at ByteBuffer.array()
  20403. and length is ByteBuffer.limit()]]>
  20404. </doc>
  20405. </method>
  20406. <method name="readString" return="java.lang.String"
  20407. abstract="false" native="false" synchronized="false"
  20408. static="true" final="false" visibility="public"
  20409. deprecated="not deprecated">
  20410. <param name="in" type="java.io.DataInput"/>
  20411. <exception name="IOException" type="java.io.IOException"/>
  20412. <doc>
  20413. <![CDATA[Read a UTF8 encoded string from in]]>
  20414. </doc>
  20415. </method>
  20416. <method name="readString" return="java.lang.String"
  20417. abstract="false" native="false" synchronized="false"
  20418. static="true" final="false" visibility="public"
  20419. deprecated="not deprecated">
  20420. <param name="in" type="java.io.DataInput"/>
  20421. <param name="maxLength" type="int"/>
  20422. <exception name="IOException" type="java.io.IOException"/>
  20423. <doc>
  20424. <![CDATA[Read a UTF8 encoded string with a maximum size]]>
  20425. </doc>
  20426. </method>
  20427. <method name="writeString" return="int"
  20428. abstract="false" native="false" synchronized="false"
  20429. static="true" final="false" visibility="public"
  20430. deprecated="not deprecated">
  20431. <param name="out" type="java.io.DataOutput"/>
  20432. <param name="s" type="java.lang.String"/>
  20433. <exception name="IOException" type="java.io.IOException"/>
  20434. <doc>
  20435. <![CDATA[Write a UTF8 encoded string to out]]>
  20436. </doc>
  20437. </method>
  20438. <method name="writeString" return="int"
  20439. abstract="false" native="false" synchronized="false"
  20440. static="true" final="false" visibility="public"
  20441. deprecated="not deprecated">
  20442. <param name="out" type="java.io.DataOutput"/>
  20443. <param name="s" type="java.lang.String"/>
  20444. <param name="maxLength" type="int"/>
  20445. <exception name="IOException" type="java.io.IOException"/>
  20446. <doc>
  20447. <![CDATA[Write a UTF8 encoded string with a maximum size to out]]>
  20448. </doc>
  20449. </method>
  20450. <method name="validateUTF8"
  20451. abstract="false" native="false" synchronized="false"
  20452. static="true" final="false" visibility="public"
  20453. deprecated="not deprecated">
  20454. <param name="utf8" type="byte[]"/>
  20455. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  20456. <doc>
  20457. <![CDATA[Check if a byte array contains valid utf-8
  20458. @param utf8 byte array
  20459. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  20460. </doc>
  20461. </method>
  20462. <method name="validateUTF8"
  20463. abstract="false" native="false" synchronized="false"
  20464. static="true" final="false" visibility="public"
  20465. deprecated="not deprecated">
  20466. <param name="utf8" type="byte[]"/>
  20467. <param name="start" type="int"/>
  20468. <param name="len" type="int"/>
  20469. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  20470. <doc>
  20471. <![CDATA[Check to see if a byte array is valid utf-8
  20472. @param utf8 the array of bytes
  20473. @param start the offset of the first byte in the array
  20474. @param len the length of the byte sequence
  20475. @throws MalformedInputException if the byte array contains invalid bytes]]>
  20476. </doc>
  20477. </method>
  20478. <method name="bytesToCodePoint" return="int"
  20479. abstract="false" native="false" synchronized="false"
  20480. static="true" final="false" visibility="public"
  20481. deprecated="not deprecated">
  20482. <param name="bytes" type="java.nio.ByteBuffer"/>
  20483. <doc>
  20484. <![CDATA[Returns the next code point at the current position in
  20485. the buffer. The buffer's position will be incremented.
  20486. Any mark set on this buffer will be changed by this method!]]>
  20487. </doc>
  20488. </method>
  20489. <method name="utf8Length" return="int"
  20490. abstract="false" native="false" synchronized="false"
  20491. static="true" final="false" visibility="public"
  20492. deprecated="not deprecated">
  20493. <param name="string" type="java.lang.String"/>
  20494. <doc>
  20495. <![CDATA[For the given string, returns the number of UTF-8 bytes
  20496. required to encode the string.
  20497. @param string text to encode
  20498. @return number of UTF-8 bytes required to encode]]>
  20499. </doc>
  20500. </method>
  20501. <field name="DEFAULT_MAX_LEN" type="int"
  20502. transient="false" volatile="false"
  20503. static="true" final="true" visibility="public"
  20504. deprecated="not deprecated">
  20505. </field>
  20506. <doc>
  20507. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  20508. to serialize, deserialize, and compare texts at byte level. The type of
  20509. length is integer and is serialized using zero-compressed format. <p>In
  20510. addition, it provides methods for string traversal without converting the
  20511. byte array to a string. <p>Also includes utilities for
  20512. serializing/deserialing a string, coding/decoding a string, checking if a
  20513. byte array contains valid UTF8 code, calculating the length of an encoded
  20514. string.]]>
  20515. </doc>
  20516. </class>
  20517. <!-- end class org.apache.hadoop.io.Text -->
  20518. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  20519. <class name="TwoDArrayWritable" extends="java.lang.Object"
  20520. abstract="false"
  20521. static="false" final="false" visibility="public"
  20522. deprecated="not deprecated">
  20523. <implements name="org.apache.hadoop.io.Writable"/>
  20524. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  20525. static="false" final="false" visibility="public"
  20526. deprecated="not deprecated">
  20527. </constructor>
  20528. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  20529. static="false" final="false" visibility="public"
  20530. deprecated="not deprecated">
  20531. </constructor>
  20532. <method name="toArray" return="java.lang.Object"
  20533. abstract="false" native="false" synchronized="false"
  20534. static="false" final="false" visibility="public"
  20535. deprecated="not deprecated">
  20536. </method>
  20537. <method name="set"
  20538. abstract="false" native="false" synchronized="false"
  20539. static="false" final="false" visibility="public"
  20540. deprecated="not deprecated">
  20541. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  20542. </method>
  20543. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  20544. abstract="false" native="false" synchronized="false"
  20545. static="false" final="false" visibility="public"
  20546. deprecated="not deprecated">
  20547. </method>
  20548. <method name="readFields"
  20549. abstract="false" native="false" synchronized="false"
  20550. static="false" final="false" visibility="public"
  20551. deprecated="not deprecated">
  20552. <param name="in" type="java.io.DataInput"/>
  20553. <exception name="IOException" type="java.io.IOException"/>
  20554. </method>
  20555. <method name="write"
  20556. abstract="false" native="false" synchronized="false"
  20557. static="false" final="false" visibility="public"
  20558. deprecated="not deprecated">
  20559. <param name="out" type="java.io.DataOutput"/>
  20560. <exception name="IOException" type="java.io.IOException"/>
  20561. </method>
  20562. <doc>
  20563. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  20564. </doc>
  20565. </class>
  20566. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  20567. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  20568. <class name="VersionedWritable" extends="java.lang.Object"
  20569. abstract="true"
  20570. static="false" final="false" visibility="public"
  20571. deprecated="not deprecated">
  20572. <implements name="org.apache.hadoop.io.Writable"/>
  20573. <constructor name="VersionedWritable"
  20574. static="false" final="false" visibility="public"
  20575. deprecated="not deprecated">
  20576. </constructor>
  20577. <method name="getVersion" return="byte"
  20578. abstract="true" native="false" synchronized="false"
  20579. static="false" final="false" visibility="public"
  20580. deprecated="not deprecated">
  20581. <doc>
  20582. <![CDATA[Return the version number of the current implementation.]]>
  20583. </doc>
  20584. </method>
  20585. <method name="write"
  20586. abstract="false" native="false" synchronized="false"
  20587. static="false" final="false" visibility="public"
  20588. deprecated="not deprecated">
  20589. <param name="out" type="java.io.DataOutput"/>
  20590. <exception name="IOException" type="java.io.IOException"/>
  20591. </method>
  20592. <method name="readFields"
  20593. abstract="false" native="false" synchronized="false"
  20594. static="false" final="false" visibility="public"
  20595. deprecated="not deprecated">
  20596. <param name="in" type="java.io.DataInput"/>
  20597. <exception name="IOException" type="java.io.IOException"/>
  20598. </method>
  20599. <doc>
  20600. <![CDATA[A base class for Writables that provides version checking.
  20601. <p>This is useful when a class may evolve, so that instances written by the
  20602. old version of the class may still be processed by the new version. To
  20603. handle this situation, {@link #readFields(DataInput)}
  20604. implementations should catch {@link VersionMismatchException}.]]>
  20605. </doc>
  20606. </class>
  20607. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  20608. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  20609. <class name="VersionMismatchException" extends="java.io.IOException"
  20610. abstract="false"
  20611. static="false" final="false" visibility="public"
  20612. deprecated="not deprecated">
  20613. <constructor name="VersionMismatchException" type="byte, byte"
  20614. static="false" final="false" visibility="public"
  20615. deprecated="not deprecated">
  20616. </constructor>
  20617. <method name="toString" return="java.lang.String"
  20618. abstract="false" native="false" synchronized="false"
  20619. static="false" final="false" visibility="public"
  20620. deprecated="not deprecated">
  20621. <doc>
  20622. <![CDATA[Returns a string representation of this object.]]>
  20623. </doc>
  20624. </method>
  20625. <doc>
  20626. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  20627. version of an object being read does not match the current implementation
  20628. version as returned by {@link VersionedWritable#getVersion()}.]]>
  20629. </doc>
  20630. </class>
  20631. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  20632. <!-- start class org.apache.hadoop.io.VIntWritable -->
  20633. <class name="VIntWritable" extends="java.lang.Object"
  20634. abstract="false"
  20635. static="false" final="false" visibility="public"
  20636. deprecated="not deprecated">
  20637. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20638. <constructor name="VIntWritable"
  20639. static="false" final="false" visibility="public"
  20640. deprecated="not deprecated">
  20641. </constructor>
  20642. <constructor name="VIntWritable" type="int"
  20643. static="false" final="false" visibility="public"
  20644. deprecated="not deprecated">
  20645. </constructor>
  20646. <method name="set"
  20647. abstract="false" native="false" synchronized="false"
  20648. static="false" final="false" visibility="public"
  20649. deprecated="not deprecated">
  20650. <param name="value" type="int"/>
  20651. <doc>
  20652. <![CDATA[Set the value of this VIntWritable.]]>
  20653. </doc>
  20654. </method>
  20655. <method name="get" return="int"
  20656. abstract="false" native="false" synchronized="false"
  20657. static="false" final="false" visibility="public"
  20658. deprecated="not deprecated">
  20659. <doc>
  20660. <![CDATA[Return the value of this VIntWritable.]]>
  20661. </doc>
  20662. </method>
  20663. <method name="readFields"
  20664. abstract="false" native="false" synchronized="false"
  20665. static="false" final="false" visibility="public"
  20666. deprecated="not deprecated">
  20667. <param name="in" type="java.io.DataInput"/>
  20668. <exception name="IOException" type="java.io.IOException"/>
  20669. </method>
  20670. <method name="write"
  20671. abstract="false" native="false" synchronized="false"
  20672. static="false" final="false" visibility="public"
  20673. deprecated="not deprecated">
  20674. <param name="out" type="java.io.DataOutput"/>
  20675. <exception name="IOException" type="java.io.IOException"/>
  20676. </method>
  20677. <method name="equals" return="boolean"
  20678. abstract="false" native="false" synchronized="false"
  20679. static="false" final="false" visibility="public"
  20680. deprecated="not deprecated">
  20681. <param name="o" type="java.lang.Object"/>
  20682. <doc>
  20683. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  20684. </doc>
  20685. </method>
  20686. <method name="hashCode" return="int"
  20687. abstract="false" native="false" synchronized="false"
  20688. static="false" final="false" visibility="public"
  20689. deprecated="not deprecated">
  20690. </method>
  20691. <method name="compareTo" return="int"
  20692. abstract="false" native="false" synchronized="false"
  20693. static="false" final="false" visibility="public"
  20694. deprecated="not deprecated">
  20695. <param name="o" type="org.apache.hadoop.io.VIntWritable"/>
  20696. <doc>
  20697. <![CDATA[Compares two VIntWritables.]]>
  20698. </doc>
  20699. </method>
  20700. <method name="toString" return="java.lang.String"
  20701. abstract="false" native="false" synchronized="false"
  20702. static="false" final="false" visibility="public"
  20703. deprecated="not deprecated">
  20704. </method>
  20705. <doc>
  20706. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  20707. Such values take between one and five bytes. Smaller values take fewer bytes.
  20708. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  20709. </doc>
  20710. </class>
  20711. <!-- end class org.apache.hadoop.io.VIntWritable -->
  20712. <!-- start class org.apache.hadoop.io.VLongWritable -->
  20713. <class name="VLongWritable" extends="java.lang.Object"
  20714. abstract="false"
  20715. static="false" final="false" visibility="public"
  20716. deprecated="not deprecated">
  20717. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20718. <constructor name="VLongWritable"
  20719. static="false" final="false" visibility="public"
  20720. deprecated="not deprecated">
  20721. </constructor>
  20722. <constructor name="VLongWritable" type="long"
  20723. static="false" final="false" visibility="public"
  20724. deprecated="not deprecated">
  20725. </constructor>
  20726. <method name="set"
  20727. abstract="false" native="false" synchronized="false"
  20728. static="false" final="false" visibility="public"
  20729. deprecated="not deprecated">
  20730. <param name="value" type="long"/>
  20731. <doc>
  20732. <![CDATA[Set the value of this LongWritable.]]>
  20733. </doc>
  20734. </method>
  20735. <method name="get" return="long"
  20736. abstract="false" native="false" synchronized="false"
  20737. static="false" final="false" visibility="public"
  20738. deprecated="not deprecated">
  20739. <doc>
  20740. <![CDATA[Return the value of this LongWritable.]]>
  20741. </doc>
  20742. </method>
  20743. <method name="readFields"
  20744. abstract="false" native="false" synchronized="false"
  20745. static="false" final="false" visibility="public"
  20746. deprecated="not deprecated">
  20747. <param name="in" type="java.io.DataInput"/>
  20748. <exception name="IOException" type="java.io.IOException"/>
  20749. </method>
  20750. <method name="write"
  20751. abstract="false" native="false" synchronized="false"
  20752. static="false" final="false" visibility="public"
  20753. deprecated="not deprecated">
  20754. <param name="out" type="java.io.DataOutput"/>
  20755. <exception name="IOException" type="java.io.IOException"/>
  20756. </method>
  20757. <method name="equals" return="boolean"
  20758. abstract="false" native="false" synchronized="false"
  20759. static="false" final="false" visibility="public"
  20760. deprecated="not deprecated">
  20761. <param name="o" type="java.lang.Object"/>
  20762. <doc>
  20763. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  20764. </doc>
  20765. </method>
  20766. <method name="hashCode" return="int"
  20767. abstract="false" native="false" synchronized="false"
  20768. static="false" final="false" visibility="public"
  20769. deprecated="not deprecated">
  20770. </method>
  20771. <method name="compareTo" return="int"
  20772. abstract="false" native="false" synchronized="false"
  20773. static="false" final="false" visibility="public"
  20774. deprecated="not deprecated">
  20775. <param name="o" type="org.apache.hadoop.io.VLongWritable"/>
  20776. <doc>
  20777. <![CDATA[Compares two VLongWritables.]]>
  20778. </doc>
  20779. </method>
  20780. <method name="toString" return="java.lang.String"
  20781. abstract="false" native="false" synchronized="false"
  20782. static="false" final="false" visibility="public"
  20783. deprecated="not deprecated">
  20784. </method>
  20785. <doc>
  20786. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  20787. between one and five bytes. Smaller values take fewer bytes.
  20788. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  20789. </doc>
  20790. </class>
  20791. <!-- end class org.apache.hadoop.io.VLongWritable -->
  20792. <!-- start interface org.apache.hadoop.io.Writable -->
  20793. <interface name="Writable" abstract="true"
  20794. static="false" final="false" visibility="public"
  20795. deprecated="not deprecated">
  20796. <method name="write"
  20797. abstract="true" native="false" synchronized="false"
  20798. static="false" final="false" visibility="public"
  20799. deprecated="not deprecated">
  20800. <param name="out" type="java.io.DataOutput"/>
  20801. <exception name="IOException" type="java.io.IOException"/>
  20802. <doc>
  20803. <![CDATA[Serialize the fields of this object to <code>out</code>.
  20804. @param out <code>DataOuput</code> to serialize this object into.
  20805. @throws IOException]]>
  20806. </doc>
  20807. </method>
  20808. <method name="readFields"
  20809. abstract="true" native="false" synchronized="false"
  20810. static="false" final="false" visibility="public"
  20811. deprecated="not deprecated">
  20812. <param name="in" type="java.io.DataInput"/>
  20813. <exception name="IOException" type="java.io.IOException"/>
  20814. <doc>
  20815. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  20816. <p>For efficiency, implementations should attempt to re-use storage in the
  20817. existing object where possible.</p>
  20818. @param in <code>DataInput</code> to deseriablize this object from.
  20819. @throws IOException]]>
  20820. </doc>
  20821. </method>
  20822. <doc>
  20823. <![CDATA[A serializable object which implements a simple, efficient, serialization
  20824. protocol, based on {@link DataInput} and {@link DataOutput}.
  20825. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  20826. framework implements this interface.</p>
  20827. <p>Implementations typically implement a static <code>read(DataInput)</code>
  20828. method which constructs a new instance, calls {@link #readFields(DataInput)}
  20829. and returns the instance.</p>
  20830. <p>Example:</p>
  20831. <p><blockquote><pre>
  20832. public class MyWritable implements Writable {
  20833. // Some data
  20834. private int counter;
  20835. private long timestamp;
  20836. // Default constructor to allow (de)serialization
  20837. MyWritable() { }
  20838. public void write(DataOutput out) throws IOException {
  20839. out.writeInt(counter);
  20840. out.writeLong(timestamp);
  20841. }
  20842. public void readFields(DataInput in) throws IOException {
  20843. counter = in.readInt();
  20844. timestamp = in.readLong();
  20845. }
  20846. public static MyWritable read(DataInput in) throws IOException {
  20847. MyWritable w = new MyWritable();
  20848. w.readFields(in);
  20849. return w;
  20850. }
  20851. }
  20852. </pre></blockquote></p>]]>
  20853. </doc>
  20854. </interface>
  20855. <!-- end interface org.apache.hadoop.io.Writable -->
  20856. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  20857. <interface name="WritableComparable" abstract="true"
  20858. static="false" final="false" visibility="public"
  20859. deprecated="not deprecated">
  20860. <implements name="org.apache.hadoop.io.Writable"/>
  20861. <implements name="java.lang.Comparable"/>
  20862. <doc>
  20863. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  20864. <p><code>WritableComparable</code>s can be compared to each other, typically
  20865. via <code>Comparator</code>s. Any type which is to be used as a
  20866. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  20867. interface.</p>
  20868. <p>Note that <code>hashCode()</code> is frequently used in Hadoop to partition
  20869. keys. It's important that your implementation of hashCode() returns the same
  20870. result across different instances of the JVM. Note also that the default
  20871. <code>hashCode()</code> implementation in <code>Object</code> does <b>not</b>
  20872. satisfy this property.</p>
  20873. <p>Example:</p>
  20874. <p><blockquote><pre>
  20875. public class MyWritableComparable implements WritableComparable<MyWritableComparable> {
  20876. // Some data
  20877. private int counter;
  20878. private long timestamp;
  20879. public void write(DataOutput out) throws IOException {
  20880. out.writeInt(counter);
  20881. out.writeLong(timestamp);
  20882. }
  20883. public void readFields(DataInput in) throws IOException {
  20884. counter = in.readInt();
  20885. timestamp = in.readLong();
  20886. }
  20887. public int compareTo(MyWritableComparable o) {
  20888. int thisValue = this.value;
  20889. int thatValue = o.value;
  20890. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  20891. }
  20892. public int hashCode() {
  20893. final int prime = 31;
  20894. int result = 1;
  20895. result = prime * result + counter;
  20896. result = prime * result + (int) (timestamp ^ (timestamp &gt;&gt;&gt; 32));
  20897. return result
  20898. }
  20899. }
  20900. </pre></blockquote></p>]]>
  20901. </doc>
  20902. </interface>
  20903. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  20904. <!-- start class org.apache.hadoop.io.WritableComparator -->
  20905. <class name="WritableComparator" extends="java.lang.Object"
  20906. abstract="false"
  20907. static="false" final="false" visibility="public"
  20908. deprecated="not deprecated">
  20909. <implements name="org.apache.hadoop.io.RawComparator"/>
  20910. <implements name="org.apache.hadoop.conf.Configurable"/>
  20911. <constructor name="WritableComparator"
  20912. static="false" final="false" visibility="protected"
  20913. deprecated="not deprecated">
  20914. </constructor>
  20915. <constructor name="WritableComparator" type="java.lang.Class"
  20916. static="false" final="false" visibility="protected"
  20917. deprecated="not deprecated">
  20918. <doc>
  20919. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  20920. </doc>
  20921. </constructor>
  20922. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  20923. static="false" final="false" visibility="protected"
  20924. deprecated="not deprecated">
  20925. </constructor>
  20926. <constructor name="WritableComparator" type="java.lang.Class, org.apache.hadoop.conf.Configuration, boolean"
  20927. static="false" final="false" visibility="protected"
  20928. deprecated="not deprecated">
  20929. </constructor>
  20930. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  20931. abstract="false" native="false" synchronized="false"
  20932. static="true" final="false" visibility="public"
  20933. deprecated="not deprecated">
  20934. <param name="c" type="java.lang.Class"/>
  20935. <doc>
  20936. <![CDATA[For backwards compatibility.]]>
  20937. </doc>
  20938. </method>
  20939. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  20940. abstract="false" native="false" synchronized="false"
  20941. static="true" final="false" visibility="public"
  20942. deprecated="not deprecated">
  20943. <param name="c" type="java.lang.Class"/>
  20944. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20945. <doc>
  20946. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  20947. </doc>
  20948. </method>
  20949. <method name="setConf"
  20950. abstract="false" native="false" synchronized="false"
  20951. static="false" final="false" visibility="public"
  20952. deprecated="not deprecated">
  20953. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20954. </method>
  20955. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  20956. abstract="false" native="false" synchronized="false"
  20957. static="false" final="false" visibility="public"
  20958. deprecated="not deprecated">
  20959. </method>
  20960. <method name="define"
  20961. abstract="false" native="false" synchronized="false"
  20962. static="true" final="false" visibility="public"
  20963. deprecated="not deprecated">
  20964. <param name="c" type="java.lang.Class"/>
  20965. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  20966. <doc>
  20967. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  20968. implementation. Comparators registered with this method must be
  20969. thread-safe.]]>
  20970. </doc>
  20971. </method>
  20972. <method name="getKeyClass" return="java.lang.Class"
  20973. abstract="false" native="false" synchronized="false"
  20974. static="false" final="false" visibility="public"
  20975. deprecated="not deprecated">
  20976. <doc>
  20977. <![CDATA[Returns the WritableComparable implementation class.]]>
  20978. </doc>
  20979. </method>
  20980. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  20981. abstract="false" native="false" synchronized="false"
  20982. static="false" final="false" visibility="public"
  20983. deprecated="not deprecated">
  20984. <doc>
  20985. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  20986. </doc>
  20987. </method>
  20988. <method name="compare" return="int"
  20989. abstract="false" native="false" synchronized="false"
  20990. static="false" final="false" visibility="public"
  20991. deprecated="not deprecated">
  20992. <param name="b1" type="byte[]"/>
  20993. <param name="s1" type="int"/>
  20994. <param name="l1" type="int"/>
  20995. <param name="b2" type="byte[]"/>
  20996. <param name="s2" type="int"/>
  20997. <param name="l2" type="int"/>
  20998. <doc>
  20999. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  21000. <p>The default implementation reads the data into two {@link
  21001. WritableComparable}s (using {@link
  21002. Writable#readFields(DataInput)}, then calls {@link
  21003. #compare(WritableComparable,WritableComparable)}.]]>
  21004. </doc>
  21005. </method>
  21006. <method name="compare" return="int"
  21007. abstract="false" native="false" synchronized="false"
  21008. static="false" final="false" visibility="public"
  21009. deprecated="not deprecated">
  21010. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  21011. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  21012. <doc>
  21013. <![CDATA[Compare two WritableComparables.
  21014. <p> The default implementation uses the natural ordering, calling {@link
  21015. Comparable#compareTo(Object)}.]]>
  21016. </doc>
  21017. </method>
  21018. <method name="compare" return="int"
  21019. abstract="false" native="false" synchronized="false"
  21020. static="false" final="false" visibility="public"
  21021. deprecated="not deprecated">
  21022. <param name="a" type="java.lang.Object"/>
  21023. <param name="b" type="java.lang.Object"/>
  21024. </method>
  21025. <method name="compareBytes" return="int"
  21026. abstract="false" native="false" synchronized="false"
  21027. static="true" final="false" visibility="public"
  21028. deprecated="not deprecated">
  21029. <param name="b1" type="byte[]"/>
  21030. <param name="s1" type="int"/>
  21031. <param name="l1" type="int"/>
  21032. <param name="b2" type="byte[]"/>
  21033. <param name="s2" type="int"/>
  21034. <param name="l2" type="int"/>
  21035. <doc>
  21036. <![CDATA[Lexicographic order of binary data.]]>
  21037. </doc>
  21038. </method>
  21039. <method name="hashBytes" return="int"
  21040. abstract="false" native="false" synchronized="false"
  21041. static="true" final="false" visibility="public"
  21042. deprecated="not deprecated">
  21043. <param name="bytes" type="byte[]"/>
  21044. <param name="offset" type="int"/>
  21045. <param name="length" type="int"/>
  21046. <doc>
  21047. <![CDATA[Compute hash for binary data.]]>
  21048. </doc>
  21049. </method>
  21050. <method name="hashBytes" return="int"
  21051. abstract="false" native="false" synchronized="false"
  21052. static="true" final="false" visibility="public"
  21053. deprecated="not deprecated">
  21054. <param name="bytes" type="byte[]"/>
  21055. <param name="length" type="int"/>
  21056. <doc>
  21057. <![CDATA[Compute hash for binary data.]]>
  21058. </doc>
  21059. </method>
  21060. <method name="readUnsignedShort" return="int"
  21061. abstract="false" native="false" synchronized="false"
  21062. static="true" final="false" visibility="public"
  21063. deprecated="not deprecated">
  21064. <param name="bytes" type="byte[]"/>
  21065. <param name="start" type="int"/>
  21066. <doc>
  21067. <![CDATA[Parse an unsigned short from a byte array.]]>
  21068. </doc>
  21069. </method>
  21070. <method name="readInt" return="int"
  21071. abstract="false" native="false" synchronized="false"
  21072. static="true" final="false" visibility="public"
  21073. deprecated="not deprecated">
  21074. <param name="bytes" type="byte[]"/>
  21075. <param name="start" type="int"/>
  21076. <doc>
  21077. <![CDATA[Parse an integer from a byte array.]]>
  21078. </doc>
  21079. </method>
  21080. <method name="readFloat" return="float"
  21081. abstract="false" native="false" synchronized="false"
  21082. static="true" final="false" visibility="public"
  21083. deprecated="not deprecated">
  21084. <param name="bytes" type="byte[]"/>
  21085. <param name="start" type="int"/>
  21086. <doc>
  21087. <![CDATA[Parse a float from a byte array.]]>
  21088. </doc>
  21089. </method>
  21090. <method name="readLong" return="long"
  21091. abstract="false" native="false" synchronized="false"
  21092. static="true" final="false" visibility="public"
  21093. deprecated="not deprecated">
  21094. <param name="bytes" type="byte[]"/>
  21095. <param name="start" type="int"/>
  21096. <doc>
  21097. <![CDATA[Parse a long from a byte array.]]>
  21098. </doc>
  21099. </method>
  21100. <method name="readDouble" return="double"
  21101. abstract="false" native="false" synchronized="false"
  21102. static="true" final="false" visibility="public"
  21103. deprecated="not deprecated">
  21104. <param name="bytes" type="byte[]"/>
  21105. <param name="start" type="int"/>
  21106. <doc>
  21107. <![CDATA[Parse a double from a byte array.]]>
  21108. </doc>
  21109. </method>
  21110. <method name="readVLong" return="long"
  21111. abstract="false" native="false" synchronized="false"
  21112. static="true" final="false" visibility="public"
  21113. deprecated="not deprecated">
  21114. <param name="bytes" type="byte[]"/>
  21115. <param name="start" type="int"/>
  21116. <exception name="IOException" type="java.io.IOException"/>
  21117. <doc>
  21118. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  21119. @param bytes byte array with decode long
  21120. @param start starting index
  21121. @throws java.io.IOException
  21122. @return deserialized long]]>
  21123. </doc>
  21124. </method>
  21125. <method name="readVInt" return="int"
  21126. abstract="false" native="false" synchronized="false"
  21127. static="true" final="false" visibility="public"
  21128. deprecated="not deprecated">
  21129. <param name="bytes" type="byte[]"/>
  21130. <param name="start" type="int"/>
  21131. <exception name="IOException" type="java.io.IOException"/>
  21132. <doc>
  21133. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  21134. @param bytes byte array with the encoded integer
  21135. @param start start index
  21136. @throws java.io.IOException
  21137. @return deserialized integer]]>
  21138. </doc>
  21139. </method>
  21140. <doc>
  21141. <![CDATA[A Comparator for {@link WritableComparable}s.
  21142. <p>This base implementation uses the natural ordering. To define alternate
  21143. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  21144. <p>One may optimize compare-intensive operations by overriding
  21145. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  21146. provided to assist in optimized implementations of this method.]]>
  21147. </doc>
  21148. </class>
  21149. <!-- end class org.apache.hadoop.io.WritableComparator -->
  21150. <!-- start class org.apache.hadoop.io.WritableFactories -->
  21151. <class name="WritableFactories" extends="java.lang.Object"
  21152. abstract="false"
  21153. static="false" final="false" visibility="public"
  21154. deprecated="not deprecated">
  21155. <method name="setFactory"
  21156. abstract="false" native="false" synchronized="false"
  21157. static="true" final="false" visibility="public"
  21158. deprecated="not deprecated">
  21159. <param name="c" type="java.lang.Class"/>
  21160. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  21161. <doc>
  21162. <![CDATA[Define a factory for a class.]]>
  21163. </doc>
  21164. </method>
  21165. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  21166. abstract="false" native="false" synchronized="false"
  21167. static="true" final="false" visibility="public"
  21168. deprecated="not deprecated">
  21169. <param name="c" type="java.lang.Class"/>
  21170. <doc>
  21171. <![CDATA[Define a factory for a class.]]>
  21172. </doc>
  21173. </method>
  21174. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  21175. abstract="false" native="false" synchronized="false"
  21176. static="true" final="false" visibility="public"
  21177. deprecated="not deprecated">
  21178. <param name="c" type="java.lang.Class"/>
  21179. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21180. <doc>
  21181. <![CDATA[Create a new instance of a class with a defined factory.]]>
  21182. </doc>
  21183. </method>
  21184. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  21185. abstract="false" native="false" synchronized="false"
  21186. static="true" final="false" visibility="public"
  21187. deprecated="not deprecated">
  21188. <param name="c" type="java.lang.Class"/>
  21189. <doc>
  21190. <![CDATA[Create a new instance of a class with a defined factory.]]>
  21191. </doc>
  21192. </method>
  21193. <doc>
  21194. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  21195. ObjectWritable} to be able to construct instances of non-public classes.]]>
  21196. </doc>
  21197. </class>
  21198. <!-- end class org.apache.hadoop.io.WritableFactories -->
  21199. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  21200. <interface name="WritableFactory" abstract="true"
  21201. static="false" final="false" visibility="public"
  21202. deprecated="not deprecated">
  21203. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  21204. abstract="true" native="false" synchronized="false"
  21205. static="false" final="false" visibility="public"
  21206. deprecated="not deprecated">
  21207. <doc>
  21208. <![CDATA[Return a new instance.]]>
  21209. </doc>
  21210. </method>
  21211. <doc>
  21212. <![CDATA[A factory for a class of Writable.
  21213. @see WritableFactories]]>
  21214. </doc>
  21215. </interface>
  21216. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  21217. <!-- start class org.apache.hadoop.io.WritableUtils -->
  21218. <class name="WritableUtils" extends="java.lang.Object"
  21219. abstract="false"
  21220. static="false" final="true" visibility="public"
  21221. deprecated="not deprecated">
  21222. <constructor name="WritableUtils"
  21223. static="false" final="false" visibility="public"
  21224. deprecated="not deprecated">
  21225. </constructor>
  21226. <method name="readCompressedByteArray" return="byte[]"
  21227. abstract="false" native="false" synchronized="false"
  21228. static="true" final="false" visibility="public"
  21229. deprecated="not deprecated">
  21230. <param name="in" type="java.io.DataInput"/>
  21231. <exception name="IOException" type="java.io.IOException"/>
  21232. </method>
  21233. <method name="skipCompressedByteArray"
  21234. abstract="false" native="false" synchronized="false"
  21235. static="true" final="false" visibility="public"
  21236. deprecated="not deprecated">
  21237. <param name="in" type="java.io.DataInput"/>
  21238. <exception name="IOException" type="java.io.IOException"/>
  21239. </method>
  21240. <method name="writeCompressedByteArray" return="int"
  21241. abstract="false" native="false" synchronized="false"
  21242. static="true" final="false" visibility="public"
  21243. deprecated="not deprecated">
  21244. <param name="out" type="java.io.DataOutput"/>
  21245. <param name="bytes" type="byte[]"/>
  21246. <exception name="IOException" type="java.io.IOException"/>
  21247. </method>
  21248. <method name="readCompressedString" return="java.lang.String"
  21249. abstract="false" native="false" synchronized="false"
  21250. static="true" final="false" visibility="public"
  21251. deprecated="not deprecated">
  21252. <param name="in" type="java.io.DataInput"/>
  21253. <exception name="IOException" type="java.io.IOException"/>
  21254. </method>
  21255. <method name="writeCompressedString" return="int"
  21256. abstract="false" native="false" synchronized="false"
  21257. static="true" final="false" visibility="public"
  21258. deprecated="not deprecated">
  21259. <param name="out" type="java.io.DataOutput"/>
  21260. <param name="s" type="java.lang.String"/>
  21261. <exception name="IOException" type="java.io.IOException"/>
  21262. </method>
  21263. <method name="writeString"
  21264. abstract="false" native="false" synchronized="false"
  21265. static="true" final="false" visibility="public"
  21266. deprecated="not deprecated">
  21267. <param name="out" type="java.io.DataOutput"/>
  21268. <param name="s" type="java.lang.String"/>
  21269. <exception name="IOException" type="java.io.IOException"/>
  21270. </method>
  21271. <method name="readString" return="java.lang.String"
  21272. abstract="false" native="false" synchronized="false"
  21273. static="true" final="false" visibility="public"
  21274. deprecated="not deprecated">
  21275. <param name="in" type="java.io.DataInput"/>
  21276. <exception name="IOException" type="java.io.IOException"/>
  21277. </method>
  21278. <method name="writeStringArray"
  21279. abstract="false" native="false" synchronized="false"
  21280. static="true" final="false" visibility="public"
  21281. deprecated="not deprecated">
  21282. <param name="out" type="java.io.DataOutput"/>
  21283. <param name="s" type="java.lang.String[]"/>
  21284. <exception name="IOException" type="java.io.IOException"/>
  21285. </method>
  21286. <method name="writeCompressedStringArray"
  21287. abstract="false" native="false" synchronized="false"
  21288. static="true" final="false" visibility="public"
  21289. deprecated="not deprecated">
  21290. <param name="out" type="java.io.DataOutput"/>
  21291. <param name="s" type="java.lang.String[]"/>
  21292. <exception name="IOException" type="java.io.IOException"/>
  21293. </method>
  21294. <method name="readStringArray" return="java.lang.String[]"
  21295. abstract="false" native="false" synchronized="false"
  21296. static="true" final="false" visibility="public"
  21297. deprecated="not deprecated">
  21298. <param name="in" type="java.io.DataInput"/>
  21299. <exception name="IOException" type="java.io.IOException"/>
  21300. </method>
  21301. <method name="readCompressedStringArray" return="java.lang.String[]"
  21302. abstract="false" native="false" synchronized="false"
  21303. static="true" final="false" visibility="public"
  21304. deprecated="not deprecated">
  21305. <param name="in" type="java.io.DataInput"/>
  21306. <exception name="IOException" type="java.io.IOException"/>
  21307. </method>
  21308. <method name="displayByteArray"
  21309. abstract="false" native="false" synchronized="false"
  21310. static="true" final="false" visibility="public"
  21311. deprecated="not deprecated">
  21312. <param name="record" type="byte[]"/>
  21313. </method>
  21314. <method name="clone" return="T"
  21315. abstract="false" native="false" synchronized="false"
  21316. static="true" final="false" visibility="public"
  21317. deprecated="not deprecated">
  21318. <param name="orig" type="T"/>
  21319. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21320. <doc>
  21321. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  21322. @param orig The object to copy
  21323. @return The copied object]]>
  21324. </doc>
  21325. </method>
  21326. <method name="cloneInto"
  21327. abstract="false" native="false" synchronized="false"
  21328. static="true" final="false" visibility="public"
  21329. deprecated="use ReflectionUtils.cloneInto instead.">
  21330. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  21331. <param name="src" type="org.apache.hadoop.io.Writable"/>
  21332. <exception name="IOException" type="java.io.IOException"/>
  21333. <doc>
  21334. <![CDATA[Make a copy of the writable object using serialization to a buffer
  21335. @param dst the object to copy from
  21336. @param src the object to copy into, which is destroyed
  21337. @throws IOException
  21338. @deprecated use ReflectionUtils.cloneInto instead.]]>
  21339. </doc>
  21340. </method>
  21341. <method name="writeVInt"
  21342. abstract="false" native="false" synchronized="false"
  21343. static="true" final="false" visibility="public"
  21344. deprecated="not deprecated">
  21345. <param name="stream" type="java.io.DataOutput"/>
  21346. <param name="i" type="int"/>
  21347. <exception name="IOException" type="java.io.IOException"/>
  21348. <doc>
  21349. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  21350. For -112 <= i <= 127, only one byte is used with the actual value.
  21351. For other values of i, the first byte value indicates whether the
  21352. integer is positive or negative, and the number of bytes that follow.
  21353. If the first byte value v is between -113 and -116, the following integer
  21354. is positive, with number of bytes that follow are -(v+112).
  21355. If the first byte value v is between -121 and -124, the following integer
  21356. is negative, with number of bytes that follow are -(v+120). Bytes are
  21357. stored in the high-non-zero-byte-first order.
  21358. @param stream Binary output stream
  21359. @param i Integer to be serialized
  21360. @throws java.io.IOException]]>
  21361. </doc>
  21362. </method>
  21363. <method name="writeVLong"
  21364. abstract="false" native="false" synchronized="false"
  21365. static="true" final="false" visibility="public"
  21366. deprecated="not deprecated">
  21367. <param name="stream" type="java.io.DataOutput"/>
  21368. <param name="i" type="long"/>
  21369. <exception name="IOException" type="java.io.IOException"/>
  21370. <doc>
  21371. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  21372. For -112 <= i <= 127, only one byte is used with the actual value.
  21373. For other values of i, the first byte value indicates whether the
  21374. long is positive or negative, and the number of bytes that follow.
  21375. If the first byte value v is between -113 and -120, the following long
  21376. is positive, with number of bytes that follow are -(v+112).
  21377. If the first byte value v is between -121 and -128, the following long
  21378. is negative, with number of bytes that follow are -(v+120). Bytes are
  21379. stored in the high-non-zero-byte-first order.
  21380. @param stream Binary output stream
  21381. @param i Long to be serialized
  21382. @throws java.io.IOException]]>
  21383. </doc>
  21384. </method>
  21385. <method name="readVLong" return="long"
  21386. abstract="false" native="false" synchronized="false"
  21387. static="true" final="false" visibility="public"
  21388. deprecated="not deprecated">
  21389. <param name="stream" type="java.io.DataInput"/>
  21390. <exception name="IOException" type="java.io.IOException"/>
  21391. <doc>
  21392. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  21393. @param stream Binary input stream
  21394. @throws java.io.IOException
  21395. @return deserialized long from stream.]]>
  21396. </doc>
  21397. </method>
  21398. <method name="readVInt" return="int"
  21399. abstract="false" native="false" synchronized="false"
  21400. static="true" final="false" visibility="public"
  21401. deprecated="not deprecated">
  21402. <param name="stream" type="java.io.DataInput"/>
  21403. <exception name="IOException" type="java.io.IOException"/>
  21404. <doc>
  21405. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  21406. @param stream Binary input stream
  21407. @throws java.io.IOException
  21408. @return deserialized integer from stream.]]>
  21409. </doc>
  21410. </method>
  21411. <method name="readVIntInRange" return="int"
  21412. abstract="false" native="false" synchronized="false"
  21413. static="true" final="false" visibility="public"
  21414. deprecated="not deprecated">
  21415. <param name="stream" type="java.io.DataInput"/>
  21416. <param name="lower" type="int"/>
  21417. <param name="upper" type="int"/>
  21418. <exception name="IOException" type="java.io.IOException"/>
  21419. <doc>
  21420. <![CDATA[Reads an integer from the input stream and returns it.
  21421. This function validates that the integer is between [lower, upper],
  21422. inclusive.
  21423. @param stream Binary input stream
  21424. @throws java.io.IOException
  21425. @return deserialized integer from stream]]>
  21426. </doc>
  21427. </method>
  21428. <method name="isNegativeVInt" return="boolean"
  21429. abstract="false" native="false" synchronized="false"
  21430. static="true" final="false" visibility="public"
  21431. deprecated="not deprecated">
  21432. <param name="value" type="byte"/>
  21433. <doc>
  21434. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  21435. @param value the first byte
  21436. @return is the value negative]]>
  21437. </doc>
  21438. </method>
  21439. <method name="decodeVIntSize" return="int"
  21440. abstract="false" native="false" synchronized="false"
  21441. static="true" final="false" visibility="public"
  21442. deprecated="not deprecated">
  21443. <param name="value" type="byte"/>
  21444. <doc>
  21445. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  21446. @param value the first byte of the vint/vlong
  21447. @return the total number of bytes (1 to 9)]]>
  21448. </doc>
  21449. </method>
  21450. <method name="getVIntSize" return="int"
  21451. abstract="false" native="false" synchronized="false"
  21452. static="true" final="false" visibility="public"
  21453. deprecated="not deprecated">
  21454. <param name="i" type="long"/>
  21455. <doc>
  21456. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  21457. @return the encoded length]]>
  21458. </doc>
  21459. </method>
  21460. <method name="readEnum" return="T"
  21461. abstract="false" native="false" synchronized="false"
  21462. static="true" final="false" visibility="public"
  21463. deprecated="not deprecated">
  21464. <param name="in" type="java.io.DataInput"/>
  21465. <param name="enumType" type="java.lang.Class"/>
  21466. <exception name="IOException" type="java.io.IOException"/>
  21467. <doc>
  21468. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  21469. using String values.
  21470. @param <T> Enum type
  21471. @param in DataInput to read from
  21472. @param enumType Class type of Enum
  21473. @return Enum represented by String read from DataInput
  21474. @throws IOException]]>
  21475. </doc>
  21476. </method>
  21477. <method name="writeEnum"
  21478. abstract="false" native="false" synchronized="false"
  21479. static="true" final="false" visibility="public"
  21480. deprecated="not deprecated">
  21481. <param name="out" type="java.io.DataOutput"/>
  21482. <param name="enumVal" type="java.lang.Enum"/>
  21483. <exception name="IOException" type="java.io.IOException"/>
  21484. <doc>
  21485. <![CDATA[writes String value of enum to DataOutput.
  21486. @param out Dataoutput stream
  21487. @param enumVal enum value
  21488. @throws IOException]]>
  21489. </doc>
  21490. </method>
  21491. <method name="skipFully"
  21492. abstract="false" native="false" synchronized="false"
  21493. static="true" final="false" visibility="public"
  21494. deprecated="not deprecated">
  21495. <param name="in" type="java.io.DataInput"/>
  21496. <param name="len" type="int"/>
  21497. <exception name="IOException" type="java.io.IOException"/>
  21498. <doc>
  21499. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  21500. @param in input stream
  21501. @param len number of bytes to skip
  21502. @throws IOException when skipped less number of bytes]]>
  21503. </doc>
  21504. </method>
  21505. <method name="toByteArray" return="byte[]"
  21506. abstract="false" native="false" synchronized="false"
  21507. static="true" final="false" visibility="public"
  21508. deprecated="not deprecated">
  21509. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  21510. <doc>
  21511. <![CDATA[Convert writables to a byte array]]>
  21512. </doc>
  21513. </method>
  21514. <method name="readStringSafely" return="java.lang.String"
  21515. abstract="false" native="false" synchronized="false"
  21516. static="true" final="false" visibility="public"
  21517. deprecated="not deprecated">
  21518. <param name="in" type="java.io.DataInput"/>
  21519. <param name="maxLength" type="int"/>
  21520. <exception name="IOException" type="java.io.IOException"/>
  21521. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  21522. <doc>
  21523. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  21524. followed by the given number of bytes.
  21525. @param in the stream to read from
  21526. @param maxLength the largest acceptable length of the encoded string
  21527. @return the bytes as a string
  21528. @throws IOException if reading from the DataInput fails
  21529. @throws IllegalArgumentException if the encoded byte size for string
  21530. is negative or larger than maxSize. Only the vint is read.]]>
  21531. </doc>
  21532. </method>
  21533. </class>
  21534. <!-- end class org.apache.hadoop.io.WritableUtils -->
  21535. <doc>
  21536. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  21537. to databases, and to files.]]>
  21538. </doc>
  21539. </package>
  21540. <package name="org.apache.hadoop.io.compress">
  21541. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  21542. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  21543. abstract="false"
  21544. static="false" final="false" visibility="public"
  21545. deprecated="not deprecated">
  21546. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  21547. static="false" final="false" visibility="public"
  21548. deprecated="not deprecated">
  21549. <doc>
  21550. <![CDATA[Create a {@link BlockCompressorStream}.
  21551. @param out stream
  21552. @param compressor compressor to be used
  21553. @param bufferSize size of buffer
  21554. @param compressionOverhead maximum 'overhead' of the compression
  21555. algorithm with given bufferSize]]>
  21556. </doc>
  21557. </constructor>
  21558. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  21559. static="false" final="false" visibility="public"
  21560. deprecated="not deprecated">
  21561. <doc>
  21562. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  21563. compressor.
  21564. Use default of 512 as bufferSize and compressionOverhead of
  21565. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  21566. @param out stream
  21567. @param compressor compressor to be used]]>
  21568. </doc>
  21569. </constructor>
  21570. <method name="write"
  21571. abstract="false" native="false" synchronized="false"
  21572. static="false" final="false" visibility="public"
  21573. deprecated="not deprecated">
  21574. <param name="b" type="byte[]"/>
  21575. <param name="off" type="int"/>
  21576. <param name="len" type="int"/>
  21577. <exception name="IOException" type="java.io.IOException"/>
  21578. <doc>
  21579. <![CDATA[Write the data provided to the compression codec, compressing no more
  21580. than the buffer size less the compression overhead as specified during
  21581. construction for each block.
  21582. Each block contains the uncompressed length for the block, followed by
  21583. one or more length-prefixed blocks of compressed data.]]>
  21584. </doc>
  21585. </method>
  21586. <method name="finish"
  21587. abstract="false" native="false" synchronized="false"
  21588. static="false" final="false" visibility="public"
  21589. deprecated="not deprecated">
  21590. <exception name="IOException" type="java.io.IOException"/>
  21591. </method>
  21592. <method name="compress"
  21593. abstract="false" native="false" synchronized="false"
  21594. static="false" final="false" visibility="protected"
  21595. deprecated="not deprecated">
  21596. <exception name="IOException" type="java.io.IOException"/>
  21597. </method>
  21598. <doc>
  21599. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  21600. with 'block-based' based compression algorithms, as opposed to
  21601. 'stream-based' compression algorithms.
  21602. It should be noted that this wrapper does not guarantee that blocks will
  21603. be sized for the compressor. If the
  21604. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  21605. effect meaningful compression, it is responsible for it.]]>
  21606. </doc>
  21607. </class>
  21608. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  21609. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  21610. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  21611. abstract="false"
  21612. static="false" final="false" visibility="public"
  21613. deprecated="not deprecated">
  21614. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  21615. static="false" final="false" visibility="public"
  21616. deprecated="not deprecated">
  21617. <exception name="IOException" type="java.io.IOException"/>
  21618. <doc>
  21619. <![CDATA[Create a {@link BlockDecompressorStream}.
  21620. @param in input stream
  21621. @param decompressor decompressor to use
  21622. @param bufferSize size of buffer
  21623. @throws IOException]]>
  21624. </doc>
  21625. </constructor>
  21626. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  21627. static="false" final="false" visibility="public"
  21628. deprecated="not deprecated">
  21629. <exception name="IOException" type="java.io.IOException"/>
  21630. <doc>
  21631. <![CDATA[Create a {@link BlockDecompressorStream}.
  21632. @param in input stream
  21633. @param decompressor decompressor to use
  21634. @throws IOException]]>
  21635. </doc>
  21636. </constructor>
  21637. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  21638. static="false" final="false" visibility="protected"
  21639. deprecated="not deprecated">
  21640. <exception name="IOException" type="java.io.IOException"/>
  21641. </constructor>
  21642. <method name="decompress" return="int"
  21643. abstract="false" native="false" synchronized="false"
  21644. static="false" final="false" visibility="protected"
  21645. deprecated="not deprecated">
  21646. <param name="b" type="byte[]"/>
  21647. <param name="off" type="int"/>
  21648. <param name="len" type="int"/>
  21649. <exception name="IOException" type="java.io.IOException"/>
  21650. </method>
  21651. <method name="getCompressedData" return="int"
  21652. abstract="false" native="false" synchronized="false"
  21653. static="false" final="false" visibility="protected"
  21654. deprecated="not deprecated">
  21655. <exception name="IOException" type="java.io.IOException"/>
  21656. </method>
  21657. <method name="resetState"
  21658. abstract="false" native="false" synchronized="false"
  21659. static="false" final="false" visibility="public"
  21660. deprecated="not deprecated">
  21661. <exception name="IOException" type="java.io.IOException"/>
  21662. </method>
  21663. <doc>
  21664. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  21665. with 'block-based' based compression algorithms, as opposed to
  21666. 'stream-based' compression algorithms.]]>
  21667. </doc>
  21668. </class>
  21669. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  21670. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  21671. <class name="BZip2Codec" extends="java.lang.Object"
  21672. abstract="false"
  21673. static="false" final="false" visibility="public"
  21674. deprecated="not deprecated">
  21675. <implements name="org.apache.hadoop.conf.Configurable"/>
  21676. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  21677. <constructor name="BZip2Codec"
  21678. static="false" final="false" visibility="public"
  21679. deprecated="not deprecated">
  21680. <doc>
  21681. <![CDATA[Creates a new instance of BZip2Codec.]]>
  21682. </doc>
  21683. </constructor>
  21684. <method name="setConf"
  21685. abstract="false" native="false" synchronized="false"
  21686. static="false" final="false" visibility="public"
  21687. deprecated="not deprecated">
  21688. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21689. <doc>
  21690. <![CDATA[Set the configuration to be used by this object.
  21691. @param conf the configuration object.]]>
  21692. </doc>
  21693. </method>
  21694. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  21695. abstract="false" native="false" synchronized="false"
  21696. static="false" final="false" visibility="public"
  21697. deprecated="not deprecated">
  21698. <doc>
  21699. <![CDATA[Return the configuration used by this object.
  21700. @return the configuration object used by this objec.]]>
  21701. </doc>
  21702. </method>
  21703. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  21704. abstract="false" native="false" synchronized="false"
  21705. static="false" final="false" visibility="public"
  21706. deprecated="not deprecated">
  21707. <param name="out" type="java.io.OutputStream"/>
  21708. <exception name="IOException" type="java.io.IOException"/>
  21709. <doc>
  21710. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  21711. {@link OutputStream}.
  21712. @param out the location for the final output stream
  21713. @return a stream the user can write uncompressed data to, to have it
  21714. compressed
  21715. @throws IOException]]>
  21716. </doc>
  21717. </method>
  21718. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  21719. abstract="false" native="false" synchronized="false"
  21720. static="false" final="false" visibility="public"
  21721. deprecated="not deprecated">
  21722. <param name="out" type="java.io.OutputStream"/>
  21723. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  21724. <exception name="IOException" type="java.io.IOException"/>
  21725. <doc>
  21726. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  21727. {@link OutputStream} with the given {@link Compressor}.
  21728. @param out the location for the final output stream
  21729. @param compressor compressor to use
  21730. @return a stream the user can write uncompressed data to, to have it
  21731. compressed
  21732. @throws IOException]]>
  21733. </doc>
  21734. </method>
  21735. <method name="getCompressorType" return="java.lang.Class"
  21736. abstract="false" native="false" synchronized="false"
  21737. static="false" final="false" visibility="public"
  21738. deprecated="not deprecated">
  21739. <doc>
  21740. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  21741. @return the type of compressor needed by this codec.]]>
  21742. </doc>
  21743. </method>
  21744. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  21745. abstract="false" native="false" synchronized="false"
  21746. static="false" final="false" visibility="public"
  21747. deprecated="not deprecated">
  21748. <doc>
  21749. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  21750. @return a new compressor for use by this codec]]>
  21751. </doc>
  21752. </method>
  21753. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  21754. abstract="false" native="false" synchronized="false"
  21755. static="false" final="false" visibility="public"
  21756. deprecated="not deprecated">
  21757. <param name="in" type="java.io.InputStream"/>
  21758. <exception name="IOException" type="java.io.IOException"/>
  21759. <doc>
  21760. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  21761. input stream and return a stream for uncompressed data.
  21762. @param in the stream to read compressed bytes from
  21763. @return a stream to read uncompressed bytes from
  21764. @throws IOException]]>
  21765. </doc>
  21766. </method>
  21767. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  21768. abstract="false" native="false" synchronized="false"
  21769. static="false" final="false" visibility="public"
  21770. deprecated="not deprecated">
  21771. <param name="in" type="java.io.InputStream"/>
  21772. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  21773. <exception name="IOException" type="java.io.IOException"/>
  21774. <doc>
  21775. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  21776. {@link InputStream} with the given {@link Decompressor}, and return a
  21777. stream for uncompressed data.
  21778. @param in the stream to read compressed bytes from
  21779. @param decompressor decompressor to use
  21780. @return a stream to read uncompressed bytes from
  21781. @throws IOException]]>
  21782. </doc>
  21783. </method>
  21784. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  21785. abstract="false" native="false" synchronized="false"
  21786. static="false" final="false" visibility="public"
  21787. deprecated="not deprecated">
  21788. <param name="seekableIn" type="java.io.InputStream"/>
  21789. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  21790. <param name="start" type="long"/>
  21791. <param name="end" type="long"/>
  21792. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  21793. <exception name="IOException" type="java.io.IOException"/>
  21794. <doc>
  21795. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  21796. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  21797. @param seekableIn The InputStream
  21798. @param start The start offset into the compressed stream
  21799. @param end The end offset into the compressed stream
  21800. @param readMode Controls whether progress is reported continuously or
  21801. only at block boundaries.
  21802. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  21803. </doc>
  21804. </method>
  21805. <method name="getDecompressorType" return="java.lang.Class"
  21806. abstract="false" native="false" synchronized="false"
  21807. static="false" final="false" visibility="public"
  21808. deprecated="not deprecated">
  21809. <doc>
  21810. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  21811. @return the type of decompressor needed by this codec.]]>
  21812. </doc>
  21813. </method>
  21814. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  21815. abstract="false" native="false" synchronized="false"
  21816. static="false" final="false" visibility="public"
  21817. deprecated="not deprecated">
  21818. <doc>
  21819. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  21820. @return a new decompressor for use by this codec]]>
  21821. </doc>
  21822. </method>
  21823. <method name="getDefaultExtension" return="java.lang.String"
  21824. abstract="false" native="false" synchronized="false"
  21825. static="false" final="false" visibility="public"
  21826. deprecated="not deprecated">
  21827. <doc>
  21828. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  21829. @return A String telling the default bzip2 file extension]]>
  21830. </doc>
  21831. </method>
  21832. <doc>
  21833. <![CDATA[This class provides output and input streams for bzip2 compression
  21834. and decompression. It uses the native bzip2 library on the system
  21835. if possible, else it uses a pure-Java implementation of the bzip2
  21836. algorithm. The configuration parameter
  21837. io.compression.codec.bzip2.library can be used to control this
  21838. behavior.
  21839. In the pure-Java mode, the Compressor and Decompressor interfaces
  21840. are not implemented. Therefore, in that mode, those methods of
  21841. CompressionCodec which have a Compressor or Decompressor type
  21842. argument, throw UnsupportedOperationException.
  21843. Currently, support for splittability is available only in the
  21844. pure-Java mode; therefore, if a SplitCompressionInputStream is
  21845. requested, the pure-Java implementation is used, regardless of the
  21846. setting of the configuration parameter mentioned above.]]>
  21847. </doc>
  21848. </class>
  21849. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  21850. <!-- start class org.apache.hadoop.io.compress.CodecConstants -->
  21851. <class name="CodecConstants" extends="java.lang.Object"
  21852. abstract="false"
  21853. static="false" final="true" visibility="public"
  21854. deprecated="not deprecated">
  21855. <field name="DEFAULT_CODEC_EXTENSION" type="java.lang.String"
  21856. transient="false" volatile="false"
  21857. static="true" final="true" visibility="public"
  21858. deprecated="not deprecated">
  21859. <doc>
  21860. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.DefaultCodec}.]]>
  21861. </doc>
  21862. </field>
  21863. <field name="BZIP2_CODEC_EXTENSION" type="java.lang.String"
  21864. transient="false" volatile="false"
  21865. static="true" final="true" visibility="public"
  21866. deprecated="not deprecated">
  21867. <doc>
  21868. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.BZip2Codec}.]]>
  21869. </doc>
  21870. </field>
  21871. <field name="GZIP_CODEC_EXTENSION" type="java.lang.String"
  21872. transient="false" volatile="false"
  21873. static="true" final="true" visibility="public"
  21874. deprecated="not deprecated">
  21875. <doc>
  21876. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.GzipCodec}.]]>
  21877. </doc>
  21878. </field>
  21879. <field name="LZ4_CODEC_EXTENSION" type="java.lang.String"
  21880. transient="false" volatile="false"
  21881. static="true" final="true" visibility="public"
  21882. deprecated="not deprecated">
  21883. <doc>
  21884. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.Lz4Codec}.]]>
  21885. </doc>
  21886. </field>
  21887. <field name="SNAPPY_CODEC_EXTENSION" type="java.lang.String"
  21888. transient="false" volatile="false"
  21889. static="true" final="true" visibility="public"
  21890. deprecated="not deprecated">
  21891. <doc>
  21892. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.SnappyCodec}.]]>
  21893. </doc>
  21894. </field>
  21895. <field name="ZSTANDARD_CODEC_EXTENSION" type="java.lang.String"
  21896. transient="false" volatile="false"
  21897. static="true" final="true" visibility="public"
  21898. deprecated="not deprecated">
  21899. <doc>
  21900. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.ZStandardCodec}.]]>
  21901. </doc>
  21902. </field>
  21903. <doc>
  21904. <![CDATA[Codec related constants.]]>
  21905. </doc>
  21906. </class>
  21907. <!-- end class org.apache.hadoop.io.compress.CodecConstants -->
  21908. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  21909. <class name="CodecPool" extends="java.lang.Object"
  21910. abstract="false"
  21911. static="false" final="false" visibility="public"
  21912. deprecated="not deprecated">
  21913. <constructor name="CodecPool"
  21914. static="false" final="false" visibility="public"
  21915. deprecated="not deprecated">
  21916. </constructor>
  21917. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  21918. abstract="false" native="false" synchronized="false"
  21919. static="true" final="false" visibility="public"
  21920. deprecated="not deprecated">
  21921. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21922. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21923. <doc>
  21924. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  21925. pool or a new one.
  21926. @param codec the <code>CompressionCodec</code> for which to get the
  21927. <code>Compressor</code>
  21928. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  21929. @return <code>Compressor</code> for the given
  21930. <code>CompressionCodec</code> from the pool or a new one]]>
  21931. </doc>
  21932. </method>
  21933. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  21934. abstract="false" native="false" synchronized="false"
  21935. static="true" final="false" visibility="public"
  21936. deprecated="not deprecated">
  21937. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21938. </method>
  21939. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  21940. abstract="false" native="false" synchronized="false"
  21941. static="true" final="false" visibility="public"
  21942. deprecated="not deprecated">
  21943. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21944. <doc>
  21945. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  21946. pool or a new one.
  21947. @param codec the <code>CompressionCodec</code> for which to get the
  21948. <code>Decompressor</code>
  21949. @return <code>Decompressor</code> for the given
  21950. <code>CompressionCodec</code> the pool or a new one]]>
  21951. </doc>
  21952. </method>
  21953. <method name="returnCompressor"
  21954. abstract="false" native="false" synchronized="false"
  21955. static="true" final="false" visibility="public"
  21956. deprecated="not deprecated">
  21957. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  21958. <doc>
  21959. <![CDATA[Return the {@link Compressor} to the pool.
  21960. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  21961. </doc>
  21962. </method>
  21963. <method name="returnDecompressor"
  21964. abstract="false" native="false" synchronized="false"
  21965. static="true" final="false" visibility="public"
  21966. deprecated="not deprecated">
  21967. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  21968. <doc>
  21969. <![CDATA[Return the {@link Decompressor} to the pool.
  21970. @param decompressor the <code>Decompressor</code> to be returned to the
  21971. pool]]>
  21972. </doc>
  21973. </method>
  21974. <method name="getLeasedCompressorsCount" return="int"
  21975. abstract="false" native="false" synchronized="false"
  21976. static="true" final="false" visibility="public"
  21977. deprecated="not deprecated">
  21978. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21979. <doc>
  21980. <![CDATA[Return the number of leased {@link Compressor}s for this
  21981. {@link CompressionCodec}]]>
  21982. </doc>
  21983. </method>
  21984. <method name="getLeasedDecompressorsCount" return="int"
  21985. abstract="false" native="false" synchronized="false"
  21986. static="true" final="false" visibility="public"
  21987. deprecated="not deprecated">
  21988. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21989. <doc>
  21990. <![CDATA[Return the number of leased {@link Decompressor}s for this
  21991. {@link CompressionCodec}]]>
  21992. </doc>
  21993. </method>
  21994. <doc>
  21995. <![CDATA[A global compressor/decompressor pool used to save and reuse
  21996. (possibly native) compression/decompression codecs.]]>
  21997. </doc>
  21998. </class>
  21999. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  22000. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  22001. <interface name="CompressionCodec" abstract="true"
  22002. static="false" final="false" visibility="public"
  22003. deprecated="not deprecated">
  22004. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22005. abstract="true" native="false" synchronized="false"
  22006. static="false" final="false" visibility="public"
  22007. deprecated="not deprecated">
  22008. <param name="out" type="java.io.OutputStream"/>
  22009. <exception name="IOException" type="java.io.IOException"/>
  22010. <doc>
  22011. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22012. {@link OutputStream}.
  22013. @param out the location for the final output stream
  22014. @return a stream the user can write uncompressed data to have it compressed
  22015. @throws IOException]]>
  22016. </doc>
  22017. </method>
  22018. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22019. abstract="true" native="false" synchronized="false"
  22020. static="false" final="false" visibility="public"
  22021. deprecated="not deprecated">
  22022. <param name="out" type="java.io.OutputStream"/>
  22023. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22024. <exception name="IOException" type="java.io.IOException"/>
  22025. <doc>
  22026. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22027. {@link OutputStream} with the given {@link Compressor}.
  22028. @param out the location for the final output stream
  22029. @param compressor compressor to use
  22030. @return a stream the user can write uncompressed data to have it compressed
  22031. @throws IOException]]>
  22032. </doc>
  22033. </method>
  22034. <method name="getCompressorType" return="java.lang.Class"
  22035. abstract="true" native="false" synchronized="false"
  22036. static="false" final="false" visibility="public"
  22037. deprecated="not deprecated">
  22038. <doc>
  22039. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  22040. @return the type of compressor needed by this codec.]]>
  22041. </doc>
  22042. </method>
  22043. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22044. abstract="true" native="false" synchronized="false"
  22045. static="false" final="false" visibility="public"
  22046. deprecated="not deprecated">
  22047. <doc>
  22048. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  22049. @return a new compressor for use by this codec]]>
  22050. </doc>
  22051. </method>
  22052. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22053. abstract="true" native="false" synchronized="false"
  22054. static="false" final="false" visibility="public"
  22055. deprecated="not deprecated">
  22056. <param name="in" type="java.io.InputStream"/>
  22057. <exception name="IOException" type="java.io.IOException"/>
  22058. <doc>
  22059. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22060. input stream.
  22061. @param in the stream to read compressed bytes from
  22062. @return a stream to read uncompressed bytes from
  22063. @throws IOException]]>
  22064. </doc>
  22065. </method>
  22066. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22067. abstract="true" native="false" synchronized="false"
  22068. static="false" final="false" visibility="public"
  22069. deprecated="not deprecated">
  22070. <param name="in" type="java.io.InputStream"/>
  22071. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22072. <exception name="IOException" type="java.io.IOException"/>
  22073. <doc>
  22074. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22075. {@link InputStream} with the given {@link Decompressor}.
  22076. @param in the stream to read compressed bytes from
  22077. @param decompressor decompressor to use
  22078. @return a stream to read uncompressed bytes from
  22079. @throws IOException]]>
  22080. </doc>
  22081. </method>
  22082. <method name="getDecompressorType" return="java.lang.Class"
  22083. abstract="true" native="false" synchronized="false"
  22084. static="false" final="false" visibility="public"
  22085. deprecated="not deprecated">
  22086. <doc>
  22087. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  22088. @return the type of decompressor needed by this codec.]]>
  22089. </doc>
  22090. </method>
  22091. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22092. abstract="true" native="false" synchronized="false"
  22093. static="false" final="false" visibility="public"
  22094. deprecated="not deprecated">
  22095. <doc>
  22096. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  22097. @return a new decompressor for use by this codec]]>
  22098. </doc>
  22099. </method>
  22100. <method name="getDefaultExtension" return="java.lang.String"
  22101. abstract="true" native="false" synchronized="false"
  22102. static="false" final="false" visibility="public"
  22103. deprecated="not deprecated">
  22104. <doc>
  22105. <![CDATA[Get the default filename extension for this kind of compression.
  22106. @return the extension including the '.']]>
  22107. </doc>
  22108. </method>
  22109. <doc>
  22110. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  22111. </doc>
  22112. </interface>
  22113. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  22114. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  22115. <class name="CompressionCodecFactory" extends="java.lang.Object"
  22116. abstract="false"
  22117. static="false" final="false" visibility="public"
  22118. deprecated="not deprecated">
  22119. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  22120. static="false" final="false" visibility="public"
  22121. deprecated="not deprecated">
  22122. <doc>
  22123. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  22124. and register them. Defaults to gzip and deflate.]]>
  22125. </doc>
  22126. </constructor>
  22127. <method name="toString" return="java.lang.String"
  22128. abstract="false" native="false" synchronized="false"
  22129. static="false" final="false" visibility="public"
  22130. deprecated="not deprecated">
  22131. <doc>
  22132. <![CDATA[Print the extension map out as a string.]]>
  22133. </doc>
  22134. </method>
  22135. <method name="getCodecClasses" return="java.util.List"
  22136. abstract="false" native="false" synchronized="false"
  22137. static="true" final="false" visibility="public"
  22138. deprecated="not deprecated">
  22139. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22140. <doc>
  22141. <![CDATA[Get the list of codecs discovered via a Java ServiceLoader, or
  22142. listed in the configuration. Codecs specified in configuration come
  22143. later in the returned list, and are considered to override those
  22144. from the ServiceLoader.
  22145. @param conf the configuration to look in
  22146. @return a list of the {@link CompressionCodec} classes]]>
  22147. </doc>
  22148. </method>
  22149. <method name="setCodecClasses"
  22150. abstract="false" native="false" synchronized="false"
  22151. static="true" final="false" visibility="public"
  22152. deprecated="not deprecated">
  22153. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22154. <param name="classes" type="java.util.List"/>
  22155. <doc>
  22156. <![CDATA[Sets a list of codec classes in the configuration. In addition to any
  22157. classes specified using this method, {@link CompressionCodec} classes on
  22158. the classpath are discovered using a Java ServiceLoader.
  22159. @param conf the configuration to modify
  22160. @param classes the list of classes to set]]>
  22161. </doc>
  22162. </method>
  22163. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  22164. abstract="false" native="false" synchronized="false"
  22165. static="false" final="false" visibility="public"
  22166. deprecated="not deprecated">
  22167. <param name="file" type="org.apache.hadoop.fs.Path"/>
  22168. <doc>
  22169. <![CDATA[Find the relevant compression codec for the given file based on its
  22170. filename suffix.
  22171. @param file the filename to check
  22172. @return the codec object]]>
  22173. </doc>
  22174. </method>
  22175. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  22176. abstract="false" native="false" synchronized="false"
  22177. static="false" final="false" visibility="public"
  22178. deprecated="not deprecated">
  22179. <param name="classname" type="java.lang.String"/>
  22180. <doc>
  22181. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  22182. @param classname the canonical class name of the codec
  22183. @return the codec object]]>
  22184. </doc>
  22185. </method>
  22186. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  22187. abstract="false" native="false" synchronized="false"
  22188. static="false" final="false" visibility="public"
  22189. deprecated="not deprecated">
  22190. <param name="codecName" type="java.lang.String"/>
  22191. <doc>
  22192. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  22193. or by codec alias.
  22194. <p/>
  22195. Codec aliases are case insensitive.
  22196. <p/>
  22197. The code alias is the short class name (without the package name).
  22198. If the short class name ends with 'Codec', then there are two aliases for
  22199. the codec, the complete short class name and the short class name without
  22200. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  22201. alias are 'gzip' and 'gzipcodec'.
  22202. @param codecName the canonical class name of the codec
  22203. @return the codec object]]>
  22204. </doc>
  22205. </method>
  22206. <method name="getCodecClassByName" return="java.lang.Class"
  22207. abstract="false" native="false" synchronized="false"
  22208. static="false" final="false" visibility="public"
  22209. deprecated="not deprecated">
  22210. <param name="codecName" type="java.lang.String"/>
  22211. <doc>
  22212. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  22213. or by codec alias and returns its implemetation class.
  22214. <p/>
  22215. Codec aliases are case insensitive.
  22216. <p/>
  22217. The code alias is the short class name (without the package name).
  22218. If the short class name ends with 'Codec', then there are two aliases for
  22219. the codec, the complete short class name and the short class name without
  22220. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  22221. alias are 'gzip' and 'gzipcodec'.
  22222. @param codecName the canonical class name of the codec
  22223. @return the codec class]]>
  22224. </doc>
  22225. </method>
  22226. <method name="removeSuffix" return="java.lang.String"
  22227. abstract="false" native="false" synchronized="false"
  22228. static="true" final="false" visibility="public"
  22229. deprecated="not deprecated">
  22230. <param name="filename" type="java.lang.String"/>
  22231. <param name="suffix" type="java.lang.String"/>
  22232. <doc>
  22233. <![CDATA[Removes a suffix from a filename, if it has it.
  22234. @param filename the filename to strip
  22235. @param suffix the suffix to remove
  22236. @return the shortened filename]]>
  22237. </doc>
  22238. </method>
  22239. <method name="main"
  22240. abstract="false" native="false" synchronized="false"
  22241. static="true" final="false" visibility="public"
  22242. deprecated="not deprecated">
  22243. <param name="args" type="java.lang.String[]"/>
  22244. <exception name="Exception" type="java.lang.Exception"/>
  22245. <doc>
  22246. <![CDATA[A little test program.
  22247. @param args]]>
  22248. </doc>
  22249. </method>
  22250. <field name="LOG" type="org.slf4j.Logger"
  22251. transient="false" volatile="false"
  22252. static="true" final="true" visibility="public"
  22253. deprecated="not deprecated">
  22254. </field>
  22255. <doc>
  22256. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  22257. </doc>
  22258. </class>
  22259. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  22260. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  22261. <class name="CompressionInputStream" extends="java.io.InputStream"
  22262. abstract="true"
  22263. static="false" final="false" visibility="public"
  22264. deprecated="not deprecated">
  22265. <implements name="org.apache.hadoop.fs.Seekable"/>
  22266. <constructor name="CompressionInputStream" type="java.io.InputStream"
  22267. static="false" final="false" visibility="protected"
  22268. deprecated="not deprecated">
  22269. <exception name="IOException" type="java.io.IOException"/>
  22270. <doc>
  22271. <![CDATA[Create a compression input stream that reads
  22272. the decompressed bytes from the given stream.
  22273. @param in The input stream to be compressed.
  22274. @throws IOException]]>
  22275. </doc>
  22276. </constructor>
  22277. <method name="close"
  22278. abstract="false" native="false" synchronized="false"
  22279. static="false" final="false" visibility="public"
  22280. deprecated="not deprecated">
  22281. <exception name="IOException" type="java.io.IOException"/>
  22282. </method>
  22283. <method name="read" return="int"
  22284. abstract="true" native="false" synchronized="false"
  22285. static="false" final="false" visibility="public"
  22286. deprecated="not deprecated">
  22287. <param name="b" type="byte[]"/>
  22288. <param name="off" type="int"/>
  22289. <param name="len" type="int"/>
  22290. <exception name="IOException" type="java.io.IOException"/>
  22291. <doc>
  22292. <![CDATA[Read bytes from the stream.
  22293. Made abstract to prevent leakage to underlying stream.]]>
  22294. </doc>
  22295. </method>
  22296. <method name="resetState"
  22297. abstract="true" native="false" synchronized="false"
  22298. static="false" final="false" visibility="public"
  22299. deprecated="not deprecated">
  22300. <exception name="IOException" type="java.io.IOException"/>
  22301. <doc>
  22302. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  22303. as the underlying stream may have been repositioned.]]>
  22304. </doc>
  22305. </method>
  22306. <method name="getPos" return="long"
  22307. abstract="false" native="false" synchronized="false"
  22308. static="false" final="false" visibility="public"
  22309. deprecated="not deprecated">
  22310. <exception name="IOException" type="java.io.IOException"/>
  22311. <doc>
  22312. <![CDATA[This method returns the current position in the stream.
  22313. @return Current position in stream as a long]]>
  22314. </doc>
  22315. </method>
  22316. <method name="seek"
  22317. abstract="false" native="false" synchronized="false"
  22318. static="false" final="false" visibility="public"
  22319. deprecated="not deprecated">
  22320. <param name="pos" type="long"/>
  22321. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  22322. <doc>
  22323. <![CDATA[This method is current not supported.
  22324. @throws UnsupportedOperationException]]>
  22325. </doc>
  22326. </method>
  22327. <method name="seekToNewSource" return="boolean"
  22328. abstract="false" native="false" synchronized="false"
  22329. static="false" final="false" visibility="public"
  22330. deprecated="not deprecated">
  22331. <param name="targetPos" type="long"/>
  22332. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  22333. <doc>
  22334. <![CDATA[This method is current not supported.
  22335. @throws UnsupportedOperationException]]>
  22336. </doc>
  22337. </method>
  22338. <field name="in" type="java.io.InputStream"
  22339. transient="false" volatile="false"
  22340. static="false" final="true" visibility="protected"
  22341. deprecated="not deprecated">
  22342. <doc>
  22343. <![CDATA[The input stream to be compressed.]]>
  22344. </doc>
  22345. </field>
  22346. <field name="maxAvailableData" type="long"
  22347. transient="false" volatile="false"
  22348. static="false" final="false" visibility="protected"
  22349. deprecated="not deprecated">
  22350. </field>
  22351. <doc>
  22352. <![CDATA[A compression input stream.
  22353. <p>Implementations are assumed to be buffered. This permits clients to
  22354. reposition the underlying input stream then call {@link #resetState()},
  22355. without having to also synchronize client buffers.]]>
  22356. </doc>
  22357. </class>
  22358. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  22359. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  22360. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  22361. abstract="true"
  22362. static="false" final="false" visibility="public"
  22363. deprecated="not deprecated">
  22364. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  22365. static="false" final="false" visibility="protected"
  22366. deprecated="not deprecated">
  22367. <doc>
  22368. <![CDATA[Create a compression output stream that writes
  22369. the compressed bytes to the given stream.
  22370. @param out]]>
  22371. </doc>
  22372. </constructor>
  22373. <method name="close"
  22374. abstract="false" native="false" synchronized="false"
  22375. static="false" final="false" visibility="public"
  22376. deprecated="not deprecated">
  22377. <exception name="IOException" type="java.io.IOException"/>
  22378. </method>
  22379. <method name="flush"
  22380. abstract="false" native="false" synchronized="false"
  22381. static="false" final="false" visibility="public"
  22382. deprecated="not deprecated">
  22383. <exception name="IOException" type="java.io.IOException"/>
  22384. </method>
  22385. <method name="write"
  22386. abstract="true" native="false" synchronized="false"
  22387. static="false" final="false" visibility="public"
  22388. deprecated="not deprecated">
  22389. <param name="b" type="byte[]"/>
  22390. <param name="off" type="int"/>
  22391. <param name="len" type="int"/>
  22392. <exception name="IOException" type="java.io.IOException"/>
  22393. <doc>
  22394. <![CDATA[Write compressed bytes to the stream.
  22395. Made abstract to prevent leakage to underlying stream.]]>
  22396. </doc>
  22397. </method>
  22398. <method name="finish"
  22399. abstract="true" native="false" synchronized="false"
  22400. static="false" final="false" visibility="public"
  22401. deprecated="not deprecated">
  22402. <exception name="IOException" type="java.io.IOException"/>
  22403. <doc>
  22404. <![CDATA[Finishes writing compressed data to the output stream
  22405. without closing the underlying stream.]]>
  22406. </doc>
  22407. </method>
  22408. <method name="resetState"
  22409. abstract="true" native="false" synchronized="false"
  22410. static="false" final="false" visibility="public"
  22411. deprecated="not deprecated">
  22412. <exception name="IOException" type="java.io.IOException"/>
  22413. <doc>
  22414. <![CDATA[Reset the compression to the initial state.
  22415. Does not reset the underlying stream.]]>
  22416. </doc>
  22417. </method>
  22418. <field name="out" type="java.io.OutputStream"
  22419. transient="false" volatile="false"
  22420. static="false" final="true" visibility="protected"
  22421. deprecated="not deprecated">
  22422. <doc>
  22423. <![CDATA[The output stream to be compressed.]]>
  22424. </doc>
  22425. </field>
  22426. <doc>
  22427. <![CDATA[A compression output stream.]]>
  22428. </doc>
  22429. </class>
  22430. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  22431. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  22432. <interface name="Compressor" abstract="true"
  22433. static="false" final="false" visibility="public"
  22434. deprecated="not deprecated">
  22435. <method name="setInput"
  22436. abstract="true" native="false" synchronized="false"
  22437. static="false" final="false" visibility="public"
  22438. deprecated="not deprecated">
  22439. <param name="b" type="byte[]"/>
  22440. <param name="off" type="int"/>
  22441. <param name="len" type="int"/>
  22442. <doc>
  22443. <![CDATA[Sets input data for compression.
  22444. This should be called whenever #needsInput() returns
  22445. <code>true</code> indicating that more input data is required.
  22446. @param b Input data
  22447. @param off Start offset
  22448. @param len Length]]>
  22449. </doc>
  22450. </method>
  22451. <method name="needsInput" return="boolean"
  22452. abstract="true" native="false" synchronized="false"
  22453. static="false" final="false" visibility="public"
  22454. deprecated="not deprecated">
  22455. <doc>
  22456. <![CDATA[Returns true if the input data buffer is empty and
  22457. #setInput() should be called to provide more input.
  22458. @return <code>true</code> if the input data buffer is empty and
  22459. #setInput() should be called in order to provide more input.]]>
  22460. </doc>
  22461. </method>
  22462. <method name="setDictionary"
  22463. abstract="true" native="false" synchronized="false"
  22464. static="false" final="false" visibility="public"
  22465. deprecated="not deprecated">
  22466. <param name="b" type="byte[]"/>
  22467. <param name="off" type="int"/>
  22468. <param name="len" type="int"/>
  22469. <doc>
  22470. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  22471. is used when the history buffer can be predetermined.
  22472. @param b Dictionary data bytes
  22473. @param off Start offset
  22474. @param len Length]]>
  22475. </doc>
  22476. </method>
  22477. <method name="getBytesRead" return="long"
  22478. abstract="true" native="false" synchronized="false"
  22479. static="false" final="false" visibility="public"
  22480. deprecated="not deprecated">
  22481. <doc>
  22482. <![CDATA[Return number of uncompressed bytes input so far.]]>
  22483. </doc>
  22484. </method>
  22485. <method name="getBytesWritten" return="long"
  22486. abstract="true" native="false" synchronized="false"
  22487. static="false" final="false" visibility="public"
  22488. deprecated="not deprecated">
  22489. <doc>
  22490. <![CDATA[Return number of compressed bytes output so far.]]>
  22491. </doc>
  22492. </method>
  22493. <method name="finish"
  22494. abstract="true" native="false" synchronized="false"
  22495. static="false" final="false" visibility="public"
  22496. deprecated="not deprecated">
  22497. <doc>
  22498. <![CDATA[When called, indicates that compression should end
  22499. with the current contents of the input buffer.]]>
  22500. </doc>
  22501. </method>
  22502. <method name="finished" return="boolean"
  22503. abstract="true" native="false" synchronized="false"
  22504. static="false" final="false" visibility="public"
  22505. deprecated="not deprecated">
  22506. <doc>
  22507. <![CDATA[Returns true if the end of the compressed
  22508. data output stream has been reached.
  22509. @return <code>true</code> if the end of the compressed
  22510. data output stream has been reached.]]>
  22511. </doc>
  22512. </method>
  22513. <method name="compress" return="int"
  22514. abstract="true" native="false" synchronized="false"
  22515. static="false" final="false" visibility="public"
  22516. deprecated="not deprecated">
  22517. <param name="b" type="byte[]"/>
  22518. <param name="off" type="int"/>
  22519. <param name="len" type="int"/>
  22520. <exception name="IOException" type="java.io.IOException"/>
  22521. <doc>
  22522. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  22523. of bytes of compressed data. A return value of 0 indicates that
  22524. needsInput() should be called in order to determine if more input
  22525. data is required.
  22526. @param b Buffer for the compressed data
  22527. @param off Start offset of the data
  22528. @param len Size of the buffer
  22529. @return The actual number of bytes of compressed data.]]>
  22530. </doc>
  22531. </method>
  22532. <method name="reset"
  22533. abstract="true" native="false" synchronized="false"
  22534. static="false" final="false" visibility="public"
  22535. deprecated="not deprecated">
  22536. <doc>
  22537. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  22538. </doc>
  22539. </method>
  22540. <method name="end"
  22541. abstract="true" native="false" synchronized="false"
  22542. static="false" final="false" visibility="public"
  22543. deprecated="not deprecated">
  22544. <doc>
  22545. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  22546. </doc>
  22547. </method>
  22548. <method name="reinit"
  22549. abstract="true" native="false" synchronized="false"
  22550. static="false" final="false" visibility="public"
  22551. deprecated="not deprecated">
  22552. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22553. <doc>
  22554. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  22555. the given Configuration
  22556. @param conf Configuration from which new setting are fetched]]>
  22557. </doc>
  22558. </method>
  22559. <doc>
  22560. <![CDATA[Specification of a stream-based 'compressor' which can be
  22561. plugged into a {@link CompressionOutputStream} to compress data.
  22562. This is modelled after {@link java.util.zip.Deflater}]]>
  22563. </doc>
  22564. </interface>
  22565. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  22566. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  22567. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  22568. abstract="false"
  22569. static="false" final="false" visibility="public"
  22570. deprecated="not deprecated">
  22571. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  22572. static="false" final="false" visibility="public"
  22573. deprecated="not deprecated">
  22574. </constructor>
  22575. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  22576. static="false" final="false" visibility="public"
  22577. deprecated="not deprecated">
  22578. </constructor>
  22579. <constructor name="CompressorStream" type="java.io.OutputStream"
  22580. static="false" final="false" visibility="protected"
  22581. deprecated="not deprecated">
  22582. <doc>
  22583. <![CDATA[Allow derived classes to directly set the underlying stream.
  22584. @param out Underlying output stream.]]>
  22585. </doc>
  22586. </constructor>
  22587. <method name="write"
  22588. abstract="false" native="false" synchronized="false"
  22589. static="false" final="false" visibility="public"
  22590. deprecated="not deprecated">
  22591. <param name="b" type="byte[]"/>
  22592. <param name="off" type="int"/>
  22593. <param name="len" type="int"/>
  22594. <exception name="IOException" type="java.io.IOException"/>
  22595. </method>
  22596. <method name="compress"
  22597. abstract="false" native="false" synchronized="false"
  22598. static="false" final="false" visibility="protected"
  22599. deprecated="not deprecated">
  22600. <exception name="IOException" type="java.io.IOException"/>
  22601. </method>
  22602. <method name="finish"
  22603. abstract="false" native="false" synchronized="false"
  22604. static="false" final="false" visibility="public"
  22605. deprecated="not deprecated">
  22606. <exception name="IOException" type="java.io.IOException"/>
  22607. </method>
  22608. <method name="resetState"
  22609. abstract="false" native="false" synchronized="false"
  22610. static="false" final="false" visibility="public"
  22611. deprecated="not deprecated">
  22612. <exception name="IOException" type="java.io.IOException"/>
  22613. </method>
  22614. <method name="close"
  22615. abstract="false" native="false" synchronized="false"
  22616. static="false" final="false" visibility="public"
  22617. deprecated="not deprecated">
  22618. <exception name="IOException" type="java.io.IOException"/>
  22619. </method>
  22620. <method name="write"
  22621. abstract="false" native="false" synchronized="false"
  22622. static="false" final="false" visibility="public"
  22623. deprecated="not deprecated">
  22624. <param name="b" type="int"/>
  22625. <exception name="IOException" type="java.io.IOException"/>
  22626. </method>
  22627. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  22628. transient="false" volatile="false"
  22629. static="false" final="false" visibility="protected"
  22630. deprecated="not deprecated">
  22631. </field>
  22632. <field name="buffer" type="byte[]"
  22633. transient="false" volatile="false"
  22634. static="false" final="false" visibility="protected"
  22635. deprecated="not deprecated">
  22636. </field>
  22637. <field name="closed" type="boolean"
  22638. transient="false" volatile="false"
  22639. static="false" final="false" visibility="protected"
  22640. deprecated="not deprecated">
  22641. </field>
  22642. </class>
  22643. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  22644. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  22645. <interface name="Decompressor" abstract="true"
  22646. static="false" final="false" visibility="public"
  22647. deprecated="not deprecated">
  22648. <method name="setInput"
  22649. abstract="true" native="false" synchronized="false"
  22650. static="false" final="false" visibility="public"
  22651. deprecated="not deprecated">
  22652. <param name="b" type="byte[]"/>
  22653. <param name="off" type="int"/>
  22654. <param name="len" type="int"/>
  22655. <doc>
  22656. <![CDATA[Sets input data for decompression.
  22657. This should be called if and only if {@link #needsInput()} returns
  22658. <code>true</code> indicating that more input data is required.
  22659. (Both native and non-native versions of various Decompressors require
  22660. that the data passed in via <code>b[]</code> remain unmodified until
  22661. the caller is explicitly notified--via {@link #needsInput()}--that the
  22662. buffer may be safely modified. With this requirement, an extra
  22663. buffer-copy can be avoided.)
  22664. @param b Input data
  22665. @param off Start offset
  22666. @param len Length]]>
  22667. </doc>
  22668. </method>
  22669. <method name="needsInput" return="boolean"
  22670. abstract="true" native="false" synchronized="false"
  22671. static="false" final="false" visibility="public"
  22672. deprecated="not deprecated">
  22673. <doc>
  22674. <![CDATA[Returns <code>true</code> if the input data buffer is empty and
  22675. {@link #setInput(byte[], int, int)} should be called to
  22676. provide more input.
  22677. @return <code>true</code> if the input data buffer is empty and
  22678. {@link #setInput(byte[], int, int)} should be called in
  22679. order to provide more input.]]>
  22680. </doc>
  22681. </method>
  22682. <method name="setDictionary"
  22683. abstract="true" native="false" synchronized="false"
  22684. static="false" final="false" visibility="public"
  22685. deprecated="not deprecated">
  22686. <param name="b" type="byte[]"/>
  22687. <param name="off" type="int"/>
  22688. <param name="len" type="int"/>
  22689. <doc>
  22690. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  22691. is used when the history buffer can be predetermined.
  22692. @param b Dictionary data bytes
  22693. @param off Start offset
  22694. @param len Length]]>
  22695. </doc>
  22696. </method>
  22697. <method name="needsDictionary" return="boolean"
  22698. abstract="true" native="false" synchronized="false"
  22699. static="false" final="false" visibility="public"
  22700. deprecated="not deprecated">
  22701. <doc>
  22702. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  22703. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  22704. </doc>
  22705. </method>
  22706. <method name="finished" return="boolean"
  22707. abstract="true" native="false" synchronized="false"
  22708. static="false" final="false" visibility="public"
  22709. deprecated="not deprecated">
  22710. <doc>
  22711. <![CDATA[Returns <code>true</code> if the end of the decompressed
  22712. data output stream has been reached. Indicates a concatenated data stream
  22713. when finished() returns <code>true</code> and {@link #getRemaining()}
  22714. returns a positive value. finished() will be reset with the
  22715. {@link #reset()} method.
  22716. @return <code>true</code> if the end of the decompressed
  22717. data output stream has been reached.]]>
  22718. </doc>
  22719. </method>
  22720. <method name="decompress" return="int"
  22721. abstract="true" native="false" synchronized="false"
  22722. static="false" final="false" visibility="public"
  22723. deprecated="not deprecated">
  22724. <param name="b" type="byte[]"/>
  22725. <param name="off" type="int"/>
  22726. <param name="len" type="int"/>
  22727. <exception name="IOException" type="java.io.IOException"/>
  22728. <doc>
  22729. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  22730. of bytes of uncompressed data. A return value of 0 indicates that
  22731. {@link #needsInput()} should be called in order to determine if more
  22732. input data is required.
  22733. @param b Buffer for the compressed data
  22734. @param off Start offset of the data
  22735. @param len Size of the buffer
  22736. @return The actual number of bytes of uncompressed data.
  22737. @throws IOException]]>
  22738. </doc>
  22739. </method>
  22740. <method name="getRemaining" return="int"
  22741. abstract="true" native="false" synchronized="false"
  22742. static="false" final="false" visibility="public"
  22743. deprecated="not deprecated">
  22744. <doc>
  22745. <![CDATA[Returns the number of bytes remaining in the compressed data buffer.
  22746. Indicates a concatenated data stream if {@link #finished()} returns
  22747. <code>true</code> and getRemaining() returns a positive value. If
  22748. {@link #finished()} returns <code>true</code> and getRemaining() returns
  22749. a zero value, indicates that the end of data stream has been reached and
  22750. is not a concatenated data stream.
  22751. @return The number of bytes remaining in the compressed data buffer.]]>
  22752. </doc>
  22753. </method>
  22754. <method name="reset"
  22755. abstract="true" native="false" synchronized="false"
  22756. static="false" final="false" visibility="public"
  22757. deprecated="not deprecated">
  22758. <doc>
  22759. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  22760. input data can be processed. If {@link #finished()}} returns
  22761. <code>true</code> and {@link #getRemaining()} returns a positive value,
  22762. reset() is called before processing of the next data stream in the
  22763. concatenated data stream. {@link #finished()} will be reset and will
  22764. return <code>false</code> when reset() is called.]]>
  22765. </doc>
  22766. </method>
  22767. <method name="end"
  22768. abstract="true" native="false" synchronized="false"
  22769. static="false" final="false" visibility="public"
  22770. deprecated="not deprecated">
  22771. <doc>
  22772. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  22773. </doc>
  22774. </method>
  22775. <doc>
  22776. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  22777. plugged into a {@link CompressionInputStream} to compress data.
  22778. This is modelled after {@link java.util.zip.Inflater}]]>
  22779. </doc>
  22780. </interface>
  22781. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  22782. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  22783. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  22784. abstract="false"
  22785. static="false" final="false" visibility="public"
  22786. deprecated="not deprecated">
  22787. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  22788. static="false" final="false" visibility="public"
  22789. deprecated="not deprecated">
  22790. <exception name="IOException" type="java.io.IOException"/>
  22791. </constructor>
  22792. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  22793. static="false" final="false" visibility="public"
  22794. deprecated="not deprecated">
  22795. <exception name="IOException" type="java.io.IOException"/>
  22796. </constructor>
  22797. <constructor name="DecompressorStream" type="java.io.InputStream"
  22798. static="false" final="false" visibility="protected"
  22799. deprecated="not deprecated">
  22800. <exception name="IOException" type="java.io.IOException"/>
  22801. <doc>
  22802. <![CDATA[Allow derived classes to directly set the underlying stream.
  22803. @param in Underlying input stream.
  22804. @throws IOException]]>
  22805. </doc>
  22806. </constructor>
  22807. <method name="read" return="int"
  22808. abstract="false" native="false" synchronized="false"
  22809. static="false" final="false" visibility="public"
  22810. deprecated="not deprecated">
  22811. <exception name="IOException" type="java.io.IOException"/>
  22812. </method>
  22813. <method name="read" return="int"
  22814. abstract="false" native="false" synchronized="false"
  22815. static="false" final="false" visibility="public"
  22816. deprecated="not deprecated">
  22817. <param name="b" type="byte[]"/>
  22818. <param name="off" type="int"/>
  22819. <param name="len" type="int"/>
  22820. <exception name="IOException" type="java.io.IOException"/>
  22821. </method>
  22822. <method name="decompress" return="int"
  22823. abstract="false" native="false" synchronized="false"
  22824. static="false" final="false" visibility="protected"
  22825. deprecated="not deprecated">
  22826. <param name="b" type="byte[]"/>
  22827. <param name="off" type="int"/>
  22828. <param name="len" type="int"/>
  22829. <exception name="IOException" type="java.io.IOException"/>
  22830. </method>
  22831. <method name="getCompressedData" return="int"
  22832. abstract="false" native="false" synchronized="false"
  22833. static="false" final="false" visibility="protected"
  22834. deprecated="not deprecated">
  22835. <exception name="IOException" type="java.io.IOException"/>
  22836. </method>
  22837. <method name="checkStream"
  22838. abstract="false" native="false" synchronized="false"
  22839. static="false" final="false" visibility="protected"
  22840. deprecated="not deprecated">
  22841. <exception name="IOException" type="java.io.IOException"/>
  22842. </method>
  22843. <method name="resetState"
  22844. abstract="false" native="false" synchronized="false"
  22845. static="false" final="false" visibility="public"
  22846. deprecated="not deprecated">
  22847. <exception name="IOException" type="java.io.IOException"/>
  22848. </method>
  22849. <method name="skip" return="long"
  22850. abstract="false" native="false" synchronized="false"
  22851. static="false" final="false" visibility="public"
  22852. deprecated="not deprecated">
  22853. <param name="n" type="long"/>
  22854. <exception name="IOException" type="java.io.IOException"/>
  22855. </method>
  22856. <method name="available" return="int"
  22857. abstract="false" native="false" synchronized="false"
  22858. static="false" final="false" visibility="public"
  22859. deprecated="not deprecated">
  22860. <exception name="IOException" type="java.io.IOException"/>
  22861. </method>
  22862. <method name="close"
  22863. abstract="false" native="false" synchronized="false"
  22864. static="false" final="false" visibility="public"
  22865. deprecated="not deprecated">
  22866. <exception name="IOException" type="java.io.IOException"/>
  22867. </method>
  22868. <method name="markSupported" return="boolean"
  22869. abstract="false" native="false" synchronized="false"
  22870. static="false" final="false" visibility="public"
  22871. deprecated="not deprecated">
  22872. </method>
  22873. <method name="mark"
  22874. abstract="false" native="false" synchronized="true"
  22875. static="false" final="false" visibility="public"
  22876. deprecated="not deprecated">
  22877. <param name="readlimit" type="int"/>
  22878. </method>
  22879. <method name="reset"
  22880. abstract="false" native="false" synchronized="true"
  22881. static="false" final="false" visibility="public"
  22882. deprecated="not deprecated">
  22883. <exception name="IOException" type="java.io.IOException"/>
  22884. </method>
  22885. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  22886. transient="false" volatile="false"
  22887. static="false" final="false" visibility="protected"
  22888. deprecated="not deprecated">
  22889. </field>
  22890. <field name="buffer" type="byte[]"
  22891. transient="false" volatile="false"
  22892. static="false" final="false" visibility="protected"
  22893. deprecated="not deprecated">
  22894. </field>
  22895. <field name="eof" type="boolean"
  22896. transient="false" volatile="false"
  22897. static="false" final="false" visibility="protected"
  22898. deprecated="not deprecated">
  22899. </field>
  22900. <field name="closed" type="boolean"
  22901. transient="false" volatile="false"
  22902. static="false" final="false" visibility="protected"
  22903. deprecated="not deprecated">
  22904. </field>
  22905. </class>
  22906. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  22907. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  22908. <class name="DefaultCodec" extends="java.lang.Object"
  22909. abstract="false"
  22910. static="false" final="false" visibility="public"
  22911. deprecated="not deprecated">
  22912. <implements name="org.apache.hadoop.conf.Configurable"/>
  22913. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  22914. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  22915. <constructor name="DefaultCodec"
  22916. static="false" final="false" visibility="public"
  22917. deprecated="not deprecated">
  22918. </constructor>
  22919. <method name="setConf"
  22920. abstract="false" native="false" synchronized="false"
  22921. static="false" final="false" visibility="public"
  22922. deprecated="not deprecated">
  22923. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22924. </method>
  22925. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22926. abstract="false" native="false" synchronized="false"
  22927. static="false" final="false" visibility="public"
  22928. deprecated="not deprecated">
  22929. </method>
  22930. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22931. abstract="false" native="false" synchronized="false"
  22932. static="false" final="false" visibility="public"
  22933. deprecated="not deprecated">
  22934. <param name="out" type="java.io.OutputStream"/>
  22935. <exception name="IOException" type="java.io.IOException"/>
  22936. </method>
  22937. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22938. abstract="false" native="false" synchronized="false"
  22939. static="false" final="false" visibility="public"
  22940. deprecated="not deprecated">
  22941. <param name="out" type="java.io.OutputStream"/>
  22942. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22943. <exception name="IOException" type="java.io.IOException"/>
  22944. </method>
  22945. <method name="getCompressorType" return="java.lang.Class"
  22946. abstract="false" native="false" synchronized="false"
  22947. static="false" final="false" visibility="public"
  22948. deprecated="not deprecated">
  22949. </method>
  22950. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22951. abstract="false" native="false" synchronized="false"
  22952. static="false" final="false" visibility="public"
  22953. deprecated="not deprecated">
  22954. </method>
  22955. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22956. abstract="false" native="false" synchronized="false"
  22957. static="false" final="false" visibility="public"
  22958. deprecated="not deprecated">
  22959. <param name="in" type="java.io.InputStream"/>
  22960. <exception name="IOException" type="java.io.IOException"/>
  22961. </method>
  22962. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22963. abstract="false" native="false" synchronized="false"
  22964. static="false" final="false" visibility="public"
  22965. deprecated="not deprecated">
  22966. <param name="in" type="java.io.InputStream"/>
  22967. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22968. <exception name="IOException" type="java.io.IOException"/>
  22969. </method>
  22970. <method name="getDecompressorType" return="java.lang.Class"
  22971. abstract="false" native="false" synchronized="false"
  22972. static="false" final="false" visibility="public"
  22973. deprecated="not deprecated">
  22974. </method>
  22975. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22976. abstract="false" native="false" synchronized="false"
  22977. static="false" final="false" visibility="public"
  22978. deprecated="not deprecated">
  22979. </method>
  22980. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  22981. abstract="false" native="false" synchronized="false"
  22982. static="false" final="false" visibility="public"
  22983. deprecated="not deprecated">
  22984. <doc>
  22985. <![CDATA[{@inheritDoc}]]>
  22986. </doc>
  22987. </method>
  22988. <method name="getDefaultExtension" return="java.lang.String"
  22989. abstract="false" native="false" synchronized="false"
  22990. static="false" final="false" visibility="public"
  22991. deprecated="not deprecated">
  22992. </method>
  22993. </class>
  22994. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  22995. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  22996. <interface name="DirectDecompressionCodec" abstract="true"
  22997. static="false" final="false" visibility="public"
  22998. deprecated="not deprecated">
  22999. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  23000. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  23001. abstract="true" native="false" synchronized="false"
  23002. static="false" final="false" visibility="public"
  23003. deprecated="not deprecated">
  23004. <doc>
  23005. <![CDATA[Create a new {@link DirectDecompressor} for use by this {@link DirectDecompressionCodec}.
  23006. @return a new direct decompressor for use by this codec]]>
  23007. </doc>
  23008. </method>
  23009. <doc>
  23010. <![CDATA[This class encapsulates a codec which can decompress direct bytebuffers.]]>
  23011. </doc>
  23012. </interface>
  23013. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  23014. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressor -->
  23015. <interface name="DirectDecompressor" abstract="true"
  23016. static="false" final="false" visibility="public"
  23017. deprecated="not deprecated">
  23018. <method name="decompress"
  23019. abstract="true" native="false" synchronized="false"
  23020. static="false" final="false" visibility="public"
  23021. deprecated="not deprecated">
  23022. <param name="src" type="java.nio.ByteBuffer"/>
  23023. <param name="dst" type="java.nio.ByteBuffer"/>
  23024. <exception name="IOException" type="java.io.IOException"/>
  23025. </method>
  23026. <doc>
  23027. <![CDATA[Specification of a direct ByteBuffer 'de-compressor'.]]>
  23028. </doc>
  23029. </interface>
  23030. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressor -->
  23031. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  23032. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  23033. abstract="false"
  23034. static="false" final="false" visibility="public"
  23035. deprecated="not deprecated">
  23036. <constructor name="GzipCodec"
  23037. static="false" final="false" visibility="public"
  23038. deprecated="not deprecated">
  23039. </constructor>
  23040. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23041. abstract="false" native="false" synchronized="false"
  23042. static="false" final="false" visibility="public"
  23043. deprecated="not deprecated">
  23044. <param name="out" type="java.io.OutputStream"/>
  23045. <exception name="IOException" type="java.io.IOException"/>
  23046. </method>
  23047. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23048. abstract="false" native="false" synchronized="false"
  23049. static="false" final="false" visibility="public"
  23050. deprecated="not deprecated">
  23051. <param name="out" type="java.io.OutputStream"/>
  23052. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  23053. <exception name="IOException" type="java.io.IOException"/>
  23054. </method>
  23055. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  23056. abstract="false" native="false" synchronized="false"
  23057. static="false" final="false" visibility="public"
  23058. deprecated="not deprecated">
  23059. </method>
  23060. <method name="getCompressorType" return="java.lang.Class"
  23061. abstract="false" native="false" synchronized="false"
  23062. static="false" final="false" visibility="public"
  23063. deprecated="not deprecated">
  23064. </method>
  23065. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23066. abstract="false" native="false" synchronized="false"
  23067. static="false" final="false" visibility="public"
  23068. deprecated="not deprecated">
  23069. <param name="in" type="java.io.InputStream"/>
  23070. <exception name="IOException" type="java.io.IOException"/>
  23071. </method>
  23072. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23073. abstract="false" native="false" synchronized="false"
  23074. static="false" final="false" visibility="public"
  23075. deprecated="not deprecated">
  23076. <param name="in" type="java.io.InputStream"/>
  23077. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  23078. <exception name="IOException" type="java.io.IOException"/>
  23079. </method>
  23080. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  23081. abstract="false" native="false" synchronized="false"
  23082. static="false" final="false" visibility="public"
  23083. deprecated="not deprecated">
  23084. </method>
  23085. <method name="getDecompressorType" return="java.lang.Class"
  23086. abstract="false" native="false" synchronized="false"
  23087. static="false" final="false" visibility="public"
  23088. deprecated="not deprecated">
  23089. </method>
  23090. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  23091. abstract="false" native="false" synchronized="false"
  23092. static="false" final="false" visibility="public"
  23093. deprecated="not deprecated">
  23094. </method>
  23095. <method name="getDefaultExtension" return="java.lang.String"
  23096. abstract="false" native="false" synchronized="false"
  23097. static="false" final="false" visibility="public"
  23098. deprecated="not deprecated">
  23099. </method>
  23100. <doc>
  23101. <![CDATA[This class creates gzip compressors/decompressors.]]>
  23102. </doc>
  23103. </class>
  23104. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  23105. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  23106. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  23107. abstract="true"
  23108. static="false" final="false" visibility="public"
  23109. deprecated="not deprecated">
  23110. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  23111. static="false" final="false" visibility="public"
  23112. deprecated="not deprecated">
  23113. <exception name="IOException" type="java.io.IOException"/>
  23114. </constructor>
  23115. <method name="setStart"
  23116. abstract="false" native="false" synchronized="false"
  23117. static="false" final="false" visibility="protected"
  23118. deprecated="not deprecated">
  23119. <param name="start" type="long"/>
  23120. </method>
  23121. <method name="setEnd"
  23122. abstract="false" native="false" synchronized="false"
  23123. static="false" final="false" visibility="protected"
  23124. deprecated="not deprecated">
  23125. <param name="end" type="long"/>
  23126. </method>
  23127. <method name="getAdjustedStart" return="long"
  23128. abstract="false" native="false" synchronized="false"
  23129. static="false" final="false" visibility="public"
  23130. deprecated="not deprecated">
  23131. <doc>
  23132. <![CDATA[After calling createInputStream, the values of start or end
  23133. might change. So this method can be used to get the new value of start.
  23134. @return The changed value of start]]>
  23135. </doc>
  23136. </method>
  23137. <method name="getAdjustedEnd" return="long"
  23138. abstract="false" native="false" synchronized="false"
  23139. static="false" final="false" visibility="public"
  23140. deprecated="not deprecated">
  23141. <doc>
  23142. <![CDATA[After calling createInputStream, the values of start or end
  23143. might change. So this method can be used to get the new value of end.
  23144. @return The changed value of end]]>
  23145. </doc>
  23146. </method>
  23147. <doc>
  23148. <![CDATA[An InputStream covering a range of compressed data. The start and end
  23149. offsets requested by a client may be modified by the codec to fit block
  23150. boundaries or other algorithm-dependent requirements.]]>
  23151. </doc>
  23152. </class>
  23153. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  23154. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  23155. <interface name="SplittableCompressionCodec" abstract="true"
  23156. static="false" final="false" visibility="public"
  23157. deprecated="not deprecated">
  23158. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  23159. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  23160. abstract="true" native="false" synchronized="false"
  23161. static="false" final="false" visibility="public"
  23162. deprecated="not deprecated">
  23163. <param name="seekableIn" type="java.io.InputStream"/>
  23164. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  23165. <param name="start" type="long"/>
  23166. <param name="end" type="long"/>
  23167. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  23168. <exception name="IOException" type="java.io.IOException"/>
  23169. <doc>
  23170. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  23171. the codecs wants the ability to work with the underlying stream positions.
  23172. @param seekableIn The seekable input stream (seeks in compressed data)
  23173. @param start The start offset into the compressed stream. May be changed
  23174. by the underlying codec.
  23175. @param end The end offset into the compressed stream. May be changed by
  23176. the underlying codec.
  23177. @param readMode Controls whether stream position is reported continuously
  23178. from the compressed stream only only at block boundaries.
  23179. @return a stream to read uncompressed bytes from]]>
  23180. </doc>
  23181. </method>
  23182. <doc>
  23183. <![CDATA[This interface is meant to be implemented by those compression codecs
  23184. which are capable to compress / de-compress a stream starting at any
  23185. arbitrary position.
  23186. Especially the process of de-compressing a stream starting at some arbitrary
  23187. position is challenging. Most of the codecs are only able to successfully
  23188. de-compress a stream, if they start from the very beginning till the end.
  23189. One of the reasons is the stored state at the beginning of the stream which
  23190. is crucial for de-compression.
  23191. Yet there are few codecs which do not save the whole state at the beginning
  23192. of the stream and hence can be used to de-compress stream starting at any
  23193. arbitrary points. This interface is meant to be used by such codecs. Such
  23194. codecs are highly valuable, especially in the context of Hadoop, because
  23195. an input compressed file can be split and hence can be worked on by multiple
  23196. machines in parallel.]]>
  23197. </doc>
  23198. </interface>
  23199. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  23200. </package>
  23201. <package name="org.apache.hadoop.io.erasurecode">
  23202. <!-- start class org.apache.hadoop.io.erasurecode.ECSchema -->
  23203. <class name="ECSchema" extends="java.lang.Object"
  23204. abstract="false"
  23205. static="false" final="true" visibility="public"
  23206. deprecated="not deprecated">
  23207. <implements name="java.io.Serializable"/>
  23208. <constructor name="ECSchema" type="java.util.Map"
  23209. static="false" final="false" visibility="public"
  23210. deprecated="not deprecated">
  23211. <doc>
  23212. <![CDATA[Constructor with schema name and provided all options. Note the options may
  23213. contain additional information for the erasure codec to interpret further.
  23214. @param allOptions all schema options]]>
  23215. </doc>
  23216. </constructor>
  23217. <constructor name="ECSchema" type="java.lang.String, int, int"
  23218. static="false" final="false" visibility="public"
  23219. deprecated="not deprecated">
  23220. <doc>
  23221. <![CDATA[Constructor with key parameters provided.
  23222. @param codecName codec name
  23223. @param numDataUnits number of data units used in the schema
  23224. @param numParityUnits number os parity units used in the schema]]>
  23225. </doc>
  23226. </constructor>
  23227. <constructor name="ECSchema" type="java.lang.String, int, int, java.util.Map"
  23228. static="false" final="false" visibility="public"
  23229. deprecated="not deprecated">
  23230. <doc>
  23231. <![CDATA[Constructor with key parameters provided. Note the extraOptions may contain
  23232. additional information for the erasure codec to interpret further.
  23233. @param codecName codec name
  23234. @param numDataUnits number of data units used in the schema
  23235. @param numParityUnits number os parity units used in the schema
  23236. @param extraOptions extra options to configure the codec]]>
  23237. </doc>
  23238. </constructor>
  23239. <method name="getCodecName" return="java.lang.String"
  23240. abstract="false" native="false" synchronized="false"
  23241. static="false" final="false" visibility="public"
  23242. deprecated="not deprecated">
  23243. <doc>
  23244. <![CDATA[Get the codec name
  23245. @return codec name]]>
  23246. </doc>
  23247. </method>
  23248. <method name="getExtraOptions" return="java.util.Map"
  23249. abstract="false" native="false" synchronized="false"
  23250. static="false" final="false" visibility="public"
  23251. deprecated="not deprecated">
  23252. <doc>
  23253. <![CDATA[Get extra options specific to a erasure code.
  23254. @return extra options]]>
  23255. </doc>
  23256. </method>
  23257. <method name="getNumDataUnits" return="int"
  23258. abstract="false" native="false" synchronized="false"
  23259. static="false" final="false" visibility="public"
  23260. deprecated="not deprecated">
  23261. <doc>
  23262. <![CDATA[Get required data units count in a coding group
  23263. @return count of data units]]>
  23264. </doc>
  23265. </method>
  23266. <method name="getNumParityUnits" return="int"
  23267. abstract="false" native="false" synchronized="false"
  23268. static="false" final="false" visibility="public"
  23269. deprecated="not deprecated">
  23270. <doc>
  23271. <![CDATA[Get required parity units count in a coding group
  23272. @return count of parity units]]>
  23273. </doc>
  23274. </method>
  23275. <method name="toString" return="java.lang.String"
  23276. abstract="false" native="false" synchronized="false"
  23277. static="false" final="false" visibility="public"
  23278. deprecated="not deprecated">
  23279. <doc>
  23280. <![CDATA[Make a meaningful string representation for log output.
  23281. @return string representation]]>
  23282. </doc>
  23283. </method>
  23284. <method name="equals" return="boolean"
  23285. abstract="false" native="false" synchronized="false"
  23286. static="false" final="false" visibility="public"
  23287. deprecated="not deprecated">
  23288. <param name="o" type="java.lang.Object"/>
  23289. </method>
  23290. <method name="hashCode" return="int"
  23291. abstract="false" native="false" synchronized="false"
  23292. static="false" final="false" visibility="public"
  23293. deprecated="not deprecated">
  23294. </method>
  23295. <field name="NUM_DATA_UNITS_KEY" type="java.lang.String"
  23296. transient="false" volatile="false"
  23297. static="true" final="true" visibility="public"
  23298. deprecated="not deprecated">
  23299. </field>
  23300. <field name="NUM_PARITY_UNITS_KEY" type="java.lang.String"
  23301. transient="false" volatile="false"
  23302. static="true" final="true" visibility="public"
  23303. deprecated="not deprecated">
  23304. </field>
  23305. <field name="CODEC_NAME_KEY" type="java.lang.String"
  23306. transient="false" volatile="false"
  23307. static="true" final="true" visibility="public"
  23308. deprecated="not deprecated">
  23309. </field>
  23310. <doc>
  23311. <![CDATA[Erasure coding schema to housekeeper relevant information.]]>
  23312. </doc>
  23313. </class>
  23314. <!-- end class org.apache.hadoop.io.erasurecode.ECSchema -->
  23315. </package>
  23316. <package name="org.apache.hadoop.io.erasurecode.coder.util">
  23317. </package>
  23318. <package name="org.apache.hadoop.io.erasurecode.grouper">
  23319. </package>
  23320. <package name="org.apache.hadoop.io.file.tfile">
  23321. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  23322. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  23323. abstract="false"
  23324. static="false" final="false" visibility="public"
  23325. deprecated="not deprecated">
  23326. <doc>
  23327. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  23328. </doc>
  23329. </class>
  23330. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  23331. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  23332. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  23333. abstract="false"
  23334. static="false" final="false" visibility="public"
  23335. deprecated="not deprecated">
  23336. <doc>
  23337. <![CDATA[Exception - No such Meta Block with the given name.]]>
  23338. </doc>
  23339. </class>
  23340. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  23341. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  23342. <interface name="RawComparable" abstract="true"
  23343. static="false" final="false" visibility="public"
  23344. deprecated="not deprecated">
  23345. <method name="buffer" return="byte[]"
  23346. abstract="true" native="false" synchronized="false"
  23347. static="false" final="false" visibility="public"
  23348. deprecated="not deprecated">
  23349. <doc>
  23350. <![CDATA[Get the underlying byte array.
  23351. @return The underlying byte array.]]>
  23352. </doc>
  23353. </method>
  23354. <method name="offset" return="int"
  23355. abstract="true" native="false" synchronized="false"
  23356. static="false" final="false" visibility="public"
  23357. deprecated="not deprecated">
  23358. <doc>
  23359. <![CDATA[Get the offset of the first byte in the byte array.
  23360. @return The offset of the first byte in the byte array.]]>
  23361. </doc>
  23362. </method>
  23363. <method name="size" return="int"
  23364. abstract="true" native="false" synchronized="false"
  23365. static="false" final="false" visibility="public"
  23366. deprecated="not deprecated">
  23367. <doc>
  23368. <![CDATA[Get the size of the byte range in the byte array.
  23369. @return The size of the byte range in the byte array.]]>
  23370. </doc>
  23371. </method>
  23372. <doc>
  23373. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  23374. This is useful in places where we need a single object reference to specify a
  23375. range of bytes in a byte array, such as {@link Comparable} or
  23376. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  23377. The actual comparison among RawComparable's requires an external
  23378. RawComparator and it is applications' responsibility to ensure two
  23379. RawComparable are supposed to be semantically comparable with the same
  23380. RawComparator.]]>
  23381. </doc>
  23382. </interface>
  23383. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  23384. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  23385. <class name="TFile" extends="java.lang.Object"
  23386. abstract="false"
  23387. static="false" final="false" visibility="public"
  23388. deprecated="not deprecated">
  23389. <method name="makeComparator" return="java.util.Comparator"
  23390. abstract="false" native="false" synchronized="false"
  23391. static="true" final="false" visibility="public"
  23392. deprecated="not deprecated">
  23393. <param name="name" type="java.lang.String"/>
  23394. <doc>
  23395. <![CDATA[Make a raw comparator from a string name.
  23396. @param name
  23397. Comparator name
  23398. @return A RawComparable comparator.]]>
  23399. </doc>
  23400. </method>
  23401. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  23402. abstract="false" native="false" synchronized="false"
  23403. static="true" final="false" visibility="public"
  23404. deprecated="not deprecated">
  23405. <doc>
  23406. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  23407. TFile.Writer.
  23408. @return Array of strings, each represents a supported compression
  23409. algorithm. Currently, the following compression algorithms are
  23410. supported.
  23411. <ul>
  23412. <li>"none" - No compression.
  23413. <li>"lzo" - LZO compression.
  23414. <li>"gz" - GZIP compression.
  23415. </ul>]]>
  23416. </doc>
  23417. </method>
  23418. <method name="main"
  23419. abstract="false" native="false" synchronized="false"
  23420. static="true" final="false" visibility="public"
  23421. deprecated="not deprecated">
  23422. <param name="args" type="java.lang.String[]"/>
  23423. <doc>
  23424. <![CDATA[Dumping the TFile information.
  23425. @param args
  23426. A list of TFile paths.]]>
  23427. </doc>
  23428. </method>
  23429. <field name="COMPRESSION_GZ" type="java.lang.String"
  23430. transient="false" volatile="false"
  23431. static="true" final="true" visibility="public"
  23432. deprecated="not deprecated">
  23433. <doc>
  23434. <![CDATA[compression: gzip]]>
  23435. </doc>
  23436. </field>
  23437. <field name="COMPRESSION_LZO" type="java.lang.String"
  23438. transient="false" volatile="false"
  23439. static="true" final="true" visibility="public"
  23440. deprecated="not deprecated">
  23441. <doc>
  23442. <![CDATA[compression: lzo]]>
  23443. </doc>
  23444. </field>
  23445. <field name="COMPRESSION_NONE" type="java.lang.String"
  23446. transient="false" volatile="false"
  23447. static="true" final="true" visibility="public"
  23448. deprecated="not deprecated">
  23449. <doc>
  23450. <![CDATA[compression: none]]>
  23451. </doc>
  23452. </field>
  23453. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  23454. transient="false" volatile="false"
  23455. static="true" final="true" visibility="public"
  23456. deprecated="not deprecated">
  23457. <doc>
  23458. <![CDATA[comparator: memcmp]]>
  23459. </doc>
  23460. </field>
  23461. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  23462. transient="false" volatile="false"
  23463. static="true" final="true" visibility="public"
  23464. deprecated="not deprecated">
  23465. <doc>
  23466. <![CDATA[comparator prefix: java class]]>
  23467. </doc>
  23468. </field>
  23469. <doc>
  23470. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  23471. bytes. Keys are restricted to 64KB, value length is not restricted
  23472. (practically limited to the available disk storage). TFile further provides
  23473. the following features:
  23474. <ul>
  23475. <li>Block Compression.
  23476. <li>Named meta data blocks.
  23477. <li>Sorted or unsorted keys.
  23478. <li>Seek by key or by file offset.
  23479. </ul>
  23480. The memory footprint of a TFile includes the following:
  23481. <ul>
  23482. <li>Some constant overhead of reading or writing a compressed block.
  23483. <ul>
  23484. <li>Each compressed block requires one compression/decompression codec for
  23485. I/O.
  23486. <li>Temporary space to buffer the key.
  23487. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  23488. chunk encoded, so that we buffer at most one chunk of user data. By default,
  23489. the chunk buffer is 1MB. Reading chunked value does not require additional
  23490. memory.
  23491. </ul>
  23492. <li>TFile index, which is proportional to the total number of Data Blocks.
  23493. The total amount of memory needed to hold the index can be estimated as
  23494. (56+AvgKeySize)*NumBlocks.
  23495. <li>MetaBlock index, which is proportional to the total number of Meta
  23496. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  23497. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  23498. </ul>
  23499. <p>
  23500. The behavior of TFile can be customized by the following variables through
  23501. Configuration:
  23502. <ul>
  23503. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  23504. to 1MB. Values of the length less than the chunk size is guaranteed to have
  23505. known value length in read time (See
  23506. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  23507. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  23508. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  23509. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  23510. FSDataInputStream. Integer (in bytes). Default to 256KB.
  23511. </ul>
  23512. <p>
  23513. Suggestions on performance optimization.
  23514. <ul>
  23515. <li>Minimum block size. We recommend a setting of minimum block size between
  23516. 256KB to 1MB for general usage. Larger block size is preferred if files are
  23517. primarily for sequential access. However, it would lead to inefficient random
  23518. access (because there are more data to decompress). Smaller blocks are good
  23519. for random access, but require more memory to hold the block index, and may
  23520. be slower to create (because we must flush the compressor stream at the
  23521. conclusion of each data block, which leads to an FS I/O flush). Further, due
  23522. to the internal caching in Compression codec, the smallest possible block
  23523. size would be around 20KB-30KB.
  23524. <li>The current implementation does not offer true multi-threading for
  23525. reading. The implementation uses FSDataInputStream seek()+read(), which is
  23526. shown to be much faster than positioned-read call in single thread mode.
  23527. However, it also means that if multiple threads attempt to access the same
  23528. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  23529. sequentially even if they access different DFS blocks.
  23530. <li>Compression codec. Use "none" if the data is not very compressable (by
  23531. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  23532. as the starting point for experimenting. "gz" overs slightly better
  23533. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  23534. decompress, comparing to "lzo".
  23535. <li>File system buffering, if the underlying FSDataInputStream and
  23536. FSDataOutputStream is already adequately buffered; or if applications
  23537. reads/writes keys and values in large buffers, we can reduce the sizes of
  23538. input/output buffering in TFile layer by setting the configuration parameters
  23539. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  23540. </ul>
  23541. Some design rationale behind TFile can be found at <a
  23542. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  23543. </doc>
  23544. </class>
  23545. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  23546. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  23547. <class name="Utils" extends="java.lang.Object"
  23548. abstract="false"
  23549. static="false" final="true" visibility="public"
  23550. deprecated="not deprecated">
  23551. <method name="writeVInt"
  23552. abstract="false" native="false" synchronized="false"
  23553. static="true" final="false" visibility="public"
  23554. deprecated="not deprecated">
  23555. <param name="out" type="java.io.DataOutput"/>
  23556. <param name="n" type="int"/>
  23557. <exception name="IOException" type="java.io.IOException"/>
  23558. <doc>
  23559. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  23560. <code>Utils#writeVLong(out, n)</code>.
  23561. @param out
  23562. output stream
  23563. @param n
  23564. The integer to be encoded
  23565. @throws IOException
  23566. @see Utils#writeVLong(DataOutput, long)]]>
  23567. </doc>
  23568. </method>
  23569. <method name="writeVLong"
  23570. abstract="false" native="false" synchronized="false"
  23571. static="true" final="false" visibility="public"
  23572. deprecated="not deprecated">
  23573. <param name="out" type="java.io.DataOutput"/>
  23574. <param name="n" type="long"/>
  23575. <exception name="IOException" type="java.io.IOException"/>
  23576. <doc>
  23577. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  23578. <ul>
  23579. <li>if n in [-32, 127): encode in one byte with the actual value.
  23580. Otherwise,
  23581. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  23582. byte[1]=n&0xff. Otherwise,
  23583. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  23584. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  23585. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  23586. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  23587. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  23588. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  23589. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  23590. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  23591. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  23592. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  23593. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  23594. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  23595. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  23596. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  23597. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  23598. byte[7]=n&0xff;
  23599. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  23600. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  23601. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  23602. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  23603. </ul>
  23604. @param out
  23605. output stream
  23606. @param n
  23607. the integer number
  23608. @throws IOException]]>
  23609. </doc>
  23610. </method>
  23611. <method name="readVInt" return="int"
  23612. abstract="false" native="false" synchronized="false"
  23613. static="true" final="false" visibility="public"
  23614. deprecated="not deprecated">
  23615. <param name="in" type="java.io.DataInput"/>
  23616. <exception name="IOException" type="java.io.IOException"/>
  23617. <doc>
  23618. <![CDATA[Decoding the variable-length integer. Synonymous to
  23619. <code>(int)Utils#readVLong(in)</code>.
  23620. @param in
  23621. input stream
  23622. @return the decoded integer
  23623. @throws IOException
  23624. @see Utils#readVLong(DataInput)]]>
  23625. </doc>
  23626. </method>
  23627. <method name="readVLong" return="long"
  23628. abstract="false" native="false" synchronized="false"
  23629. static="true" final="false" visibility="public"
  23630. deprecated="not deprecated">
  23631. <param name="in" type="java.io.DataInput"/>
  23632. <exception name="IOException" type="java.io.IOException"/>
  23633. <doc>
  23634. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  23635. is FB, and the following bytes are NB[*].
  23636. <ul>
  23637. <li>if (FB >= -32), return (long)FB;
  23638. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  23639. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  23640. NB[1]&0xff;
  23641. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  23642. (NB[1]&0xff)<<8 + NB[2]&0xff;
  23643. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  23644. big-endian integer.
  23645. @param in
  23646. input stream
  23647. @return the decoded long integer.
  23648. @throws IOException]]>
  23649. </doc>
  23650. </method>
  23651. <method name="writeString"
  23652. abstract="false" native="false" synchronized="false"
  23653. static="true" final="false" visibility="public"
  23654. deprecated="not deprecated">
  23655. <param name="out" type="java.io.DataOutput"/>
  23656. <param name="s" type="java.lang.String"/>
  23657. <exception name="IOException" type="java.io.IOException"/>
  23658. <doc>
  23659. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  23660. @param out
  23661. @param s
  23662. @throws IOException]]>
  23663. </doc>
  23664. </method>
  23665. <method name="readString" return="java.lang.String"
  23666. abstract="false" native="false" synchronized="false"
  23667. static="true" final="false" visibility="public"
  23668. deprecated="not deprecated">
  23669. <param name="in" type="java.io.DataInput"/>
  23670. <exception name="IOException" type="java.io.IOException"/>
  23671. <doc>
  23672. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  23673. @param in
  23674. The input stream.
  23675. @return The string
  23676. @throws IOException]]>
  23677. </doc>
  23678. </method>
  23679. <method name="lowerBound" return="int"
  23680. abstract="false" native="false" synchronized="false"
  23681. static="true" final="false" visibility="public"
  23682. deprecated="not deprecated">
  23683. <param name="list" type="java.util.List"/>
  23684. <param name="key" type="T"/>
  23685. <param name="cmp" type="java.util.Comparator"/>
  23686. <doc>
  23687. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  23688. that compares greater than or equal to key.
  23689. @param <T>
  23690. Type of the input key.
  23691. @param list
  23692. The list
  23693. @param key
  23694. The input key.
  23695. @param cmp
  23696. Comparator for the key.
  23697. @return The index to the desired element if it exists; or list.size()
  23698. otherwise.]]>
  23699. </doc>
  23700. </method>
  23701. <method name="upperBound" return="int"
  23702. abstract="false" native="false" synchronized="false"
  23703. static="true" final="false" visibility="public"
  23704. deprecated="not deprecated">
  23705. <param name="list" type="java.util.List"/>
  23706. <param name="key" type="T"/>
  23707. <param name="cmp" type="java.util.Comparator"/>
  23708. <doc>
  23709. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  23710. that compares greater than the input key.
  23711. @param <T>
  23712. Type of the input key.
  23713. @param list
  23714. The list
  23715. @param key
  23716. The input key.
  23717. @param cmp
  23718. Comparator for the key.
  23719. @return The index to the desired element if it exists; or list.size()
  23720. otherwise.]]>
  23721. </doc>
  23722. </method>
  23723. <method name="lowerBound" return="int"
  23724. abstract="false" native="false" synchronized="false"
  23725. static="true" final="false" visibility="public"
  23726. deprecated="not deprecated">
  23727. <param name="list" type="java.util.List"/>
  23728. <param name="key" type="T"/>
  23729. <doc>
  23730. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  23731. that compares greater than or equal to key.
  23732. @param <T>
  23733. Type of the input key.
  23734. @param list
  23735. The list
  23736. @param key
  23737. The input key.
  23738. @return The index to the desired element if it exists; or list.size()
  23739. otherwise.]]>
  23740. </doc>
  23741. </method>
  23742. <method name="upperBound" return="int"
  23743. abstract="false" native="false" synchronized="false"
  23744. static="true" final="false" visibility="public"
  23745. deprecated="not deprecated">
  23746. <param name="list" type="java.util.List"/>
  23747. <param name="key" type="T"/>
  23748. <doc>
  23749. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  23750. that compares greater than the input key.
  23751. @param <T>
  23752. Type of the input key.
  23753. @param list
  23754. The list
  23755. @param key
  23756. The input key.
  23757. @return The index to the desired element if it exists; or list.size()
  23758. otherwise.]]>
  23759. </doc>
  23760. </method>
  23761. <doc>
  23762. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  23763. </doc>
  23764. </class>
  23765. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  23766. </package>
  23767. <package name="org.apache.hadoop.io.serializer">
  23768. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  23769. <class name="JavaSerialization" extends="java.lang.Object"
  23770. abstract="false"
  23771. static="false" final="false" visibility="public"
  23772. deprecated="not deprecated">
  23773. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  23774. <constructor name="JavaSerialization"
  23775. static="false" final="false" visibility="public"
  23776. deprecated="not deprecated">
  23777. </constructor>
  23778. <doc>
  23779. <![CDATA[<p>
  23780. An experimental {@link Serialization} for Java {@link Serializable} classes.
  23781. </p>
  23782. @see JavaSerializationComparator]]>
  23783. </doc>
  23784. </class>
  23785. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  23786. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  23787. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  23788. abstract="false"
  23789. static="false" final="false" visibility="public"
  23790. deprecated="not deprecated">
  23791. <constructor name="JavaSerializationComparator"
  23792. static="false" final="false" visibility="public"
  23793. deprecated="not deprecated">
  23794. <exception name="IOException" type="java.io.IOException"/>
  23795. </constructor>
  23796. <doc>
  23797. <![CDATA[<p>
  23798. A {@link RawComparator} that uses a {@link JavaSerialization}
  23799. {@link Deserializer} to deserialize objects that are then compared via
  23800. their {@link Comparable} interfaces.
  23801. </p>
  23802. @param <T>
  23803. @see JavaSerialization]]>
  23804. </doc>
  23805. </class>
  23806. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  23807. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  23808. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  23809. abstract="false"
  23810. static="false" final="false" visibility="public"
  23811. deprecated="not deprecated">
  23812. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  23813. <constructor name="WritableSerialization"
  23814. static="false" final="false" visibility="public"
  23815. deprecated="not deprecated">
  23816. </constructor>
  23817. <doc>
  23818. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  23819. {@link Writable#write(java.io.DataOutput)} and
  23820. {@link Writable#readFields(java.io.DataInput)}.]]>
  23821. </doc>
  23822. </class>
  23823. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  23824. <doc>
  23825. <![CDATA[<p>
  23826. This package provides a mechanism for using different serialization frameworks
  23827. in Hadoop. The property "io.serializations" defines a list of
  23828. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  23829. {@link org.apache.hadoop.io.serializer.Serializer}s and
  23830. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  23831. </p>
  23832. <p>
  23833. To add a new serialization framework write an implementation of
  23834. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  23835. "io.serializations" property.
  23836. </p>]]>
  23837. </doc>
  23838. </package>
  23839. <package name="org.apache.hadoop.io.serializer.avro">
  23840. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  23841. <interface name="AvroReflectSerializable" abstract="true"
  23842. static="false" final="false" visibility="public"
  23843. deprecated="not deprecated">
  23844. <doc>
  23845. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  23846. this interface can be serialized/deserialized using
  23847. {@link AvroReflectSerialization}.]]>
  23848. </doc>
  23849. </interface>
  23850. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  23851. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  23852. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  23853. abstract="false"
  23854. static="false" final="false" visibility="public"
  23855. deprecated="not deprecated">
  23856. <constructor name="AvroReflectSerialization"
  23857. static="false" final="false" visibility="public"
  23858. deprecated="not deprecated">
  23859. </constructor>
  23860. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  23861. transient="false" volatile="false"
  23862. static="true" final="true" visibility="public"
  23863. deprecated="not deprecated">
  23864. <doc>
  23865. <![CDATA[Key to configure packages that contain classes to be serialized and
  23866. deserialized using this class. Multiple packages can be specified using
  23867. comma-separated list.]]>
  23868. </doc>
  23869. </field>
  23870. <doc>
  23871. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  23872. serialization, it must either be in the package list configured via
  23873. <code>avro.reflect.pkgs</code> or implement
  23874. {@link AvroReflectSerializable} interface.]]>
  23875. </doc>
  23876. </class>
  23877. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  23878. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  23879. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  23880. abstract="true"
  23881. static="false" final="false" visibility="public"
  23882. deprecated="not deprecated">
  23883. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  23884. <constructor name="AvroSerialization"
  23885. static="false" final="false" visibility="public"
  23886. deprecated="not deprecated">
  23887. </constructor>
  23888. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  23889. transient="false" volatile="false"
  23890. static="true" final="true" visibility="public"
  23891. deprecated="not deprecated">
  23892. </field>
  23893. <doc>
  23894. <![CDATA[Base class for providing serialization to Avro types.]]>
  23895. </doc>
  23896. </class>
  23897. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  23898. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  23899. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  23900. abstract="false"
  23901. static="false" final="false" visibility="public"
  23902. deprecated="not deprecated">
  23903. <constructor name="AvroSpecificSerialization"
  23904. static="false" final="false" visibility="public"
  23905. deprecated="not deprecated">
  23906. </constructor>
  23907. <doc>
  23908. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  23909. for classes generated by Avro's 'specific' compiler.]]>
  23910. </doc>
  23911. </class>
  23912. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  23913. <doc>
  23914. <![CDATA[<p>
  23915. This package provides Avro serialization in Hadoop. This can be used to
  23916. serialize/deserialize Avro types in Hadoop.
  23917. </p>
  23918. <p>
  23919. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  23920. serialization of classes generated by Avro's 'specific' compiler.
  23921. </p>
  23922. <p>
  23923. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  23924. other classes.
  23925. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  23926. any class which is either in the package list configured via
  23927. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  23928. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  23929. interface.
  23930. </p>]]>
  23931. </doc>
  23932. </package>
  23933. <package name="org.apache.hadoop.ipc.protocolPB">
  23934. </package>
  23935. <package name="org.apache.hadoop.log">
  23936. </package>
  23937. <package name="org.apache.hadoop.log.metrics">
  23938. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  23939. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  23940. abstract="false"
  23941. static="false" final="false" visibility="public"
  23942. deprecated="not deprecated">
  23943. <constructor name="EventCounter"
  23944. static="false" final="false" visibility="public"
  23945. deprecated="not deprecated">
  23946. </constructor>
  23947. <method name="append"
  23948. abstract="false" native="false" synchronized="false"
  23949. static="false" final="false" visibility="public"
  23950. deprecated="not deprecated">
  23951. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  23952. </method>
  23953. <method name="close"
  23954. abstract="false" native="false" synchronized="false"
  23955. static="false" final="false" visibility="public"
  23956. deprecated="not deprecated">
  23957. </method>
  23958. <method name="requiresLayout" return="boolean"
  23959. abstract="false" native="false" synchronized="false"
  23960. static="false" final="false" visibility="public"
  23961. deprecated="not deprecated">
  23962. </method>
  23963. <doc>
  23964. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  23965. fatal, error and warn. The class name is used in log4j.properties]]>
  23966. </doc>
  23967. </class>
  23968. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  23969. </package>
  23970. <package name="org.apache.hadoop.metrics2">
  23971. <!-- start class org.apache.hadoop.metrics2.AbstractMetric -->
  23972. <class name="AbstractMetric" extends="java.lang.Object"
  23973. abstract="true"
  23974. static="false" final="false" visibility="public"
  23975. deprecated="not deprecated">
  23976. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  23977. <constructor name="AbstractMetric" type="org.apache.hadoop.metrics2.MetricsInfo"
  23978. static="false" final="false" visibility="protected"
  23979. deprecated="not deprecated">
  23980. <doc>
  23981. <![CDATA[Construct the metric
  23982. @param info about the metric]]>
  23983. </doc>
  23984. </constructor>
  23985. <method name="name" return="java.lang.String"
  23986. abstract="false" native="false" synchronized="false"
  23987. static="false" final="false" visibility="public"
  23988. deprecated="not deprecated">
  23989. </method>
  23990. <method name="description" return="java.lang.String"
  23991. abstract="false" native="false" synchronized="false"
  23992. static="false" final="false" visibility="public"
  23993. deprecated="not deprecated">
  23994. </method>
  23995. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  23996. abstract="false" native="false" synchronized="false"
  23997. static="false" final="false" visibility="protected"
  23998. deprecated="not deprecated">
  23999. </method>
  24000. <method name="value" return="java.lang.Number"
  24001. abstract="true" native="false" synchronized="false"
  24002. static="false" final="false" visibility="public"
  24003. deprecated="not deprecated">
  24004. <doc>
  24005. <![CDATA[Get the value of the metric
  24006. @return the value of the metric]]>
  24007. </doc>
  24008. </method>
  24009. <method name="type" return="org.apache.hadoop.metrics2.MetricType"
  24010. abstract="true" native="false" synchronized="false"
  24011. static="false" final="false" visibility="public"
  24012. deprecated="not deprecated">
  24013. <doc>
  24014. <![CDATA[Get the type of the metric
  24015. @return the type of the metric]]>
  24016. </doc>
  24017. </method>
  24018. <method name="visit"
  24019. abstract="true" native="false" synchronized="false"
  24020. static="false" final="false" visibility="public"
  24021. deprecated="not deprecated">
  24022. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  24023. <doc>
  24024. <![CDATA[Accept a visitor interface
  24025. @param visitor of the metric]]>
  24026. </doc>
  24027. </method>
  24028. <method name="equals" return="boolean"
  24029. abstract="false" native="false" synchronized="false"
  24030. static="false" final="false" visibility="public"
  24031. deprecated="not deprecated">
  24032. <param name="obj" type="java.lang.Object"/>
  24033. </method>
  24034. <method name="hashCode" return="int"
  24035. abstract="false" native="false" synchronized="false"
  24036. static="false" final="false" visibility="public"
  24037. deprecated="not deprecated">
  24038. </method>
  24039. <method name="toString" return="java.lang.String"
  24040. abstract="false" native="false" synchronized="false"
  24041. static="false" final="false" visibility="public"
  24042. deprecated="not deprecated">
  24043. </method>
  24044. <doc>
  24045. <![CDATA[The immutable metric]]>
  24046. </doc>
  24047. </class>
  24048. <!-- end class org.apache.hadoop.metrics2.AbstractMetric -->
  24049. <!-- start interface org.apache.hadoop.metrics2.MetricsCollector -->
  24050. <interface name="MetricsCollector" abstract="true"
  24051. static="false" final="false" visibility="public"
  24052. deprecated="not deprecated">
  24053. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24054. abstract="true" native="false" synchronized="false"
  24055. static="false" final="false" visibility="public"
  24056. deprecated="not deprecated">
  24057. <param name="name" type="java.lang.String"/>
  24058. <doc>
  24059. <![CDATA[Add a metrics record
  24060. @param name of the record
  24061. @return a {@link MetricsRecordBuilder} for the record {@code name}]]>
  24062. </doc>
  24063. </method>
  24064. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24065. abstract="true" native="false" synchronized="false"
  24066. static="false" final="false" visibility="public"
  24067. deprecated="not deprecated">
  24068. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24069. <doc>
  24070. <![CDATA[Add a metrics record
  24071. @param info of the record
  24072. @return a {@link MetricsRecordBuilder} for metrics {@code info}]]>
  24073. </doc>
  24074. </method>
  24075. <doc>
  24076. <![CDATA[The metrics collector interface]]>
  24077. </doc>
  24078. </interface>
  24079. <!-- end interface org.apache.hadoop.metrics2.MetricsCollector -->
  24080. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  24081. <class name="MetricsException" extends="java.lang.RuntimeException"
  24082. abstract="false"
  24083. static="false" final="false" visibility="public"
  24084. deprecated="not deprecated">
  24085. <constructor name="MetricsException" type="java.lang.String"
  24086. static="false" final="false" visibility="public"
  24087. deprecated="not deprecated">
  24088. <doc>
  24089. <![CDATA[Construct the exception with a message
  24090. @param message for the exception]]>
  24091. </doc>
  24092. </constructor>
  24093. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  24094. static="false" final="false" visibility="public"
  24095. deprecated="not deprecated">
  24096. <doc>
  24097. <![CDATA[Construct the exception with a message and a cause
  24098. @param message for the exception
  24099. @param cause of the exception]]>
  24100. </doc>
  24101. </constructor>
  24102. <constructor name="MetricsException" type="java.lang.Throwable"
  24103. static="false" final="false" visibility="public"
  24104. deprecated="not deprecated">
  24105. <doc>
  24106. <![CDATA[Construct the exception with a cause
  24107. @param cause of the exception]]>
  24108. </doc>
  24109. </constructor>
  24110. <doc>
  24111. <![CDATA[A general metrics exception wrapper]]>
  24112. </doc>
  24113. </class>
  24114. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  24115. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  24116. <class name="MetricsFilter" extends="java.lang.Object"
  24117. abstract="true"
  24118. static="false" final="false" visibility="public"
  24119. deprecated="not deprecated">
  24120. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  24121. <constructor name="MetricsFilter"
  24122. static="false" final="false" visibility="public"
  24123. deprecated="not deprecated">
  24124. </constructor>
  24125. <method name="accepts" return="boolean"
  24126. abstract="true" native="false" synchronized="false"
  24127. static="false" final="false" visibility="public"
  24128. deprecated="not deprecated">
  24129. <param name="name" type="java.lang.String"/>
  24130. <doc>
  24131. <![CDATA[Whether to accept the name
  24132. @param name to filter on
  24133. @return true to accept; false otherwise.]]>
  24134. </doc>
  24135. </method>
  24136. <method name="accepts" return="boolean"
  24137. abstract="true" native="false" synchronized="false"
  24138. static="false" final="false" visibility="public"
  24139. deprecated="not deprecated">
  24140. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24141. <doc>
  24142. <![CDATA[Whether to accept the tag
  24143. @param tag to filter on
  24144. @return true to accept; false otherwise]]>
  24145. </doc>
  24146. </method>
  24147. <method name="accepts" return="boolean"
  24148. abstract="true" native="false" synchronized="false"
  24149. static="false" final="false" visibility="public"
  24150. deprecated="not deprecated">
  24151. <param name="tags" type="java.lang.Iterable"/>
  24152. <doc>
  24153. <![CDATA[Whether to accept the tags
  24154. @param tags to filter on
  24155. @return true to accept; false otherwise]]>
  24156. </doc>
  24157. </method>
  24158. <method name="accepts" return="boolean"
  24159. abstract="false" native="false" synchronized="false"
  24160. static="false" final="false" visibility="public"
  24161. deprecated="not deprecated">
  24162. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  24163. <doc>
  24164. <![CDATA[Whether to accept the record
  24165. @param record to filter on
  24166. @return true to accept; false otherwise.]]>
  24167. </doc>
  24168. </method>
  24169. <doc>
  24170. <![CDATA[The metrics filter interface. The MetricsFilter objects can be used either to
  24171. filter the metrics from {@link MetricsSource}s or to filter metrics per
  24172. {@link MetricsSink}.]]>
  24173. </doc>
  24174. </class>
  24175. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  24176. <!-- start interface org.apache.hadoop.metrics2.MetricsInfo -->
  24177. <interface name="MetricsInfo" abstract="true"
  24178. static="false" final="false" visibility="public"
  24179. deprecated="not deprecated">
  24180. <method name="name" return="java.lang.String"
  24181. abstract="true" native="false" synchronized="false"
  24182. static="false" final="false" visibility="public"
  24183. deprecated="not deprecated">
  24184. <doc>
  24185. <![CDATA[Typically name corresponds to annotation {@link Metric#value()} or
  24186. the name of the class.
  24187. @return the name of the metric/tag]]>
  24188. </doc>
  24189. </method>
  24190. <method name="description" return="java.lang.String"
  24191. abstract="true" native="false" synchronized="false"
  24192. static="false" final="false" visibility="public"
  24193. deprecated="not deprecated">
  24194. <doc>
  24195. <![CDATA[Typically the description corresponds to annotation {@link Metric#about()}
  24196. or the name of the class.
  24197. @return the description of the metric/tag]]>
  24198. </doc>
  24199. </method>
  24200. <doc>
  24201. <![CDATA[Interface to provide immutable metainfo for metrics.]]>
  24202. </doc>
  24203. </interface>
  24204. <!-- end interface org.apache.hadoop.metrics2.MetricsInfo -->
  24205. <!-- start class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  24206. <class name="MetricsJsonBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24207. abstract="false"
  24208. static="false" final="false" visibility="public"
  24209. deprecated="not deprecated">
  24210. <constructor name="MetricsJsonBuilder" type="org.apache.hadoop.metrics2.MetricsCollector"
  24211. static="false" final="false" visibility="public"
  24212. deprecated="not deprecated">
  24213. <doc>
  24214. <![CDATA[Build an instance.
  24215. @param parent parent collector. Unused in this instance; only used for
  24216. the {@link #parent()} method]]>
  24217. </doc>
  24218. </constructor>
  24219. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24220. abstract="false" native="false" synchronized="false"
  24221. static="false" final="false" visibility="public"
  24222. deprecated="not deprecated">
  24223. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24224. <param name="value" type="java.lang.String"/>
  24225. </method>
  24226. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24227. abstract="false" native="false" synchronized="false"
  24228. static="false" final="false" visibility="public"
  24229. deprecated="not deprecated">
  24230. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24231. </method>
  24232. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24233. abstract="false" native="false" synchronized="false"
  24234. static="false" final="false" visibility="public"
  24235. deprecated="not deprecated">
  24236. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  24237. </method>
  24238. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24239. abstract="false" native="false" synchronized="false"
  24240. static="false" final="false" visibility="public"
  24241. deprecated="not deprecated">
  24242. <param name="value" type="java.lang.String"/>
  24243. </method>
  24244. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24245. abstract="false" native="false" synchronized="false"
  24246. static="false" final="false" visibility="public"
  24247. deprecated="not deprecated">
  24248. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24249. <param name="value" type="int"/>
  24250. </method>
  24251. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24252. abstract="false" native="false" synchronized="false"
  24253. static="false" final="false" visibility="public"
  24254. deprecated="not deprecated">
  24255. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24256. <param name="value" type="long"/>
  24257. </method>
  24258. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24259. abstract="false" native="false" synchronized="false"
  24260. static="false" final="false" visibility="public"
  24261. deprecated="not deprecated">
  24262. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24263. <param name="value" type="int"/>
  24264. </method>
  24265. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24266. abstract="false" native="false" synchronized="false"
  24267. static="false" final="false" visibility="public"
  24268. deprecated="not deprecated">
  24269. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24270. <param name="value" type="long"/>
  24271. </method>
  24272. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24273. abstract="false" native="false" synchronized="false"
  24274. static="false" final="false" visibility="public"
  24275. deprecated="not deprecated">
  24276. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24277. <param name="value" type="float"/>
  24278. </method>
  24279. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24280. abstract="false" native="false" synchronized="false"
  24281. static="false" final="false" visibility="public"
  24282. deprecated="not deprecated">
  24283. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24284. <param name="value" type="double"/>
  24285. </method>
  24286. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  24287. abstract="false" native="false" synchronized="false"
  24288. static="false" final="false" visibility="public"
  24289. deprecated="not deprecated">
  24290. </method>
  24291. <method name="toString" return="java.lang.String"
  24292. abstract="false" native="false" synchronized="false"
  24293. static="false" final="false" visibility="public"
  24294. deprecated="not deprecated">
  24295. </method>
  24296. <field name="LOG" type="org.slf4j.Logger"
  24297. transient="false" volatile="false"
  24298. static="true" final="true" visibility="public"
  24299. deprecated="not deprecated">
  24300. </field>
  24301. <doc>
  24302. <![CDATA[Build a JSON dump of the metrics.
  24303. The {@link #toString()} operator dumps out all values collected.]]>
  24304. </doc>
  24305. </class>
  24306. <!-- end class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  24307. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  24308. <interface name="MetricsPlugin" abstract="true"
  24309. static="false" final="false" visibility="public"
  24310. deprecated="not deprecated">
  24311. <method name="init"
  24312. abstract="true" native="false" synchronized="false"
  24313. static="false" final="false" visibility="public"
  24314. deprecated="not deprecated">
  24315. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  24316. <doc>
  24317. <![CDATA[Initialize the plugin
  24318. @param conf the configuration object for the plugin]]>
  24319. </doc>
  24320. </method>
  24321. <doc>
  24322. <![CDATA[The plugin interface for the metrics framework]]>
  24323. </doc>
  24324. </interface>
  24325. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  24326. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  24327. <interface name="MetricsRecord" abstract="true"
  24328. static="false" final="false" visibility="public"
  24329. deprecated="not deprecated">
  24330. <method name="timestamp" return="long"
  24331. abstract="true" native="false" synchronized="false"
  24332. static="false" final="false" visibility="public"
  24333. deprecated="not deprecated">
  24334. <doc>
  24335. <![CDATA[Get the timestamp of the metrics
  24336. @return the timestamp]]>
  24337. </doc>
  24338. </method>
  24339. <method name="name" return="java.lang.String"
  24340. abstract="true" native="false" synchronized="false"
  24341. static="false" final="false" visibility="public"
  24342. deprecated="not deprecated">
  24343. <doc>
  24344. <![CDATA[@return the metrics record name]]>
  24345. </doc>
  24346. </method>
  24347. <method name="description" return="java.lang.String"
  24348. abstract="true" native="false" synchronized="false"
  24349. static="false" final="false" visibility="public"
  24350. deprecated="not deprecated">
  24351. <doc>
  24352. <![CDATA[@return the description of the metrics record]]>
  24353. </doc>
  24354. </method>
  24355. <method name="context" return="java.lang.String"
  24356. abstract="true" native="false" synchronized="false"
  24357. static="false" final="false" visibility="public"
  24358. deprecated="not deprecated">
  24359. <doc>
  24360. <![CDATA[@return the context name of the metrics record]]>
  24361. </doc>
  24362. </method>
  24363. <method name="tags" return="java.util.Collection"
  24364. abstract="true" native="false" synchronized="false"
  24365. static="false" final="false" visibility="public"
  24366. deprecated="not deprecated">
  24367. <doc>
  24368. <![CDATA[Get the tags of the record
  24369. Note: returning a collection instead of iterable as we
  24370. need to use tags as keys (hence Collection#hashCode etc.) in maps
  24371. @return an unmodifiable collection of tags]]>
  24372. </doc>
  24373. </method>
  24374. <method name="metrics" return="java.lang.Iterable"
  24375. abstract="true" native="false" synchronized="false"
  24376. static="false" final="false" visibility="public"
  24377. deprecated="not deprecated">
  24378. <doc>
  24379. <![CDATA[Get the metrics of the record
  24380. @return an immutable iterable interface for metrics]]>
  24381. </doc>
  24382. </method>
  24383. <doc>
  24384. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  24385. </doc>
  24386. </interface>
  24387. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  24388. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  24389. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  24390. abstract="true"
  24391. static="false" final="false" visibility="public"
  24392. deprecated="not deprecated">
  24393. <constructor name="MetricsRecordBuilder"
  24394. static="false" final="false" visibility="public"
  24395. deprecated="not deprecated">
  24396. </constructor>
  24397. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24398. abstract="true" native="false" synchronized="false"
  24399. static="false" final="false" visibility="public"
  24400. deprecated="not deprecated">
  24401. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24402. <param name="value" type="java.lang.String"/>
  24403. <doc>
  24404. <![CDATA[Add a metrics value with metrics information
  24405. @param info metadata of the tag
  24406. @param value of the tag
  24407. @return self]]>
  24408. </doc>
  24409. </method>
  24410. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24411. abstract="true" native="false" synchronized="false"
  24412. static="false" final="false" visibility="public"
  24413. deprecated="not deprecated">
  24414. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24415. <doc>
  24416. <![CDATA[Add an immutable metrics tag object
  24417. @param tag a pre-made tag object (potentially save an object construction)
  24418. @return self]]>
  24419. </doc>
  24420. </method>
  24421. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24422. abstract="true" native="false" synchronized="false"
  24423. static="false" final="false" visibility="public"
  24424. deprecated="not deprecated">
  24425. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  24426. <doc>
  24427. <![CDATA[Add a pre-made immutable metric object
  24428. @param metric the pre-made metric to save an object construction
  24429. @return self]]>
  24430. </doc>
  24431. </method>
  24432. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24433. abstract="true" native="false" synchronized="false"
  24434. static="false" final="false" visibility="public"
  24435. deprecated="not deprecated">
  24436. <param name="value" type="java.lang.String"/>
  24437. <doc>
  24438. <![CDATA[Set the context tag
  24439. @param value of the context
  24440. @return self]]>
  24441. </doc>
  24442. </method>
  24443. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24444. abstract="true" native="false" synchronized="false"
  24445. static="false" final="false" visibility="public"
  24446. deprecated="not deprecated">
  24447. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24448. <param name="value" type="int"/>
  24449. <doc>
  24450. <![CDATA[Add an integer metric
  24451. @param info metadata of the metric
  24452. @param value of the metric
  24453. @return self]]>
  24454. </doc>
  24455. </method>
  24456. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24457. abstract="true" native="false" synchronized="false"
  24458. static="false" final="false" visibility="public"
  24459. deprecated="not deprecated">
  24460. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24461. <param name="value" type="long"/>
  24462. <doc>
  24463. <![CDATA[Add an long metric
  24464. @param info metadata of the metric
  24465. @param value of the metric
  24466. @return self]]>
  24467. </doc>
  24468. </method>
  24469. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24470. abstract="true" native="false" synchronized="false"
  24471. static="false" final="false" visibility="public"
  24472. deprecated="not deprecated">
  24473. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24474. <param name="value" type="int"/>
  24475. <doc>
  24476. <![CDATA[Add a integer gauge metric
  24477. @param info metadata of the metric
  24478. @param value of the metric
  24479. @return self]]>
  24480. </doc>
  24481. </method>
  24482. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24483. abstract="true" native="false" synchronized="false"
  24484. static="false" final="false" visibility="public"
  24485. deprecated="not deprecated">
  24486. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24487. <param name="value" type="long"/>
  24488. <doc>
  24489. <![CDATA[Add a long gauge metric
  24490. @param info metadata of the metric
  24491. @param value of the metric
  24492. @return self]]>
  24493. </doc>
  24494. </method>
  24495. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24496. abstract="true" native="false" synchronized="false"
  24497. static="false" final="false" visibility="public"
  24498. deprecated="not deprecated">
  24499. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24500. <param name="value" type="float"/>
  24501. <doc>
  24502. <![CDATA[Add a float gauge metric
  24503. @param info metadata of the metric
  24504. @param value of the metric
  24505. @return self]]>
  24506. </doc>
  24507. </method>
  24508. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24509. abstract="true" native="false" synchronized="false"
  24510. static="false" final="false" visibility="public"
  24511. deprecated="not deprecated">
  24512. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24513. <param name="value" type="double"/>
  24514. <doc>
  24515. <![CDATA[Add a double gauge metric
  24516. @param info metadata of the metric
  24517. @param value of the metric
  24518. @return self]]>
  24519. </doc>
  24520. </method>
  24521. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  24522. abstract="true" native="false" synchronized="false"
  24523. static="false" final="false" visibility="public"
  24524. deprecated="not deprecated">
  24525. <doc>
  24526. <![CDATA[@return the parent metrics collector object]]>
  24527. </doc>
  24528. </method>
  24529. <method name="endRecord" return="org.apache.hadoop.metrics2.MetricsCollector"
  24530. abstract="false" native="false" synchronized="false"
  24531. static="false" final="false" visibility="public"
  24532. deprecated="not deprecated">
  24533. <doc>
  24534. <![CDATA[Syntactic sugar to add multiple records in a collector in a one liner.
  24535. @return the parent metrics collector object]]>
  24536. </doc>
  24537. </method>
  24538. <doc>
  24539. <![CDATA[The metrics record builder interface]]>
  24540. </doc>
  24541. </class>
  24542. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  24543. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  24544. <interface name="MetricsSink" abstract="true"
  24545. static="false" final="false" visibility="public"
  24546. deprecated="not deprecated">
  24547. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  24548. <method name="putMetrics"
  24549. abstract="true" native="false" synchronized="false"
  24550. static="false" final="false" visibility="public"
  24551. deprecated="not deprecated">
  24552. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  24553. <doc>
  24554. <![CDATA[Put a metrics record in the sink
  24555. @param record the record to put]]>
  24556. </doc>
  24557. </method>
  24558. <method name="flush"
  24559. abstract="true" native="false" synchronized="false"
  24560. static="false" final="false" visibility="public"
  24561. deprecated="not deprecated">
  24562. <doc>
  24563. <![CDATA[Flush any buffered metrics]]>
  24564. </doc>
  24565. </method>
  24566. <doc>
  24567. <![CDATA[The metrics sink interface. <p>
  24568. Implementations of this interface consume the {@link MetricsRecord} generated
  24569. from {@link MetricsSource}. It registers with {@link MetricsSystem} which
  24570. periodically pushes the {@link MetricsRecord} to the sink using
  24571. {@link #putMetrics(MetricsRecord)} method. If the implementing class also
  24572. implements {@link Closeable}, then the MetricsSystem will close the sink when
  24573. it is stopped.]]>
  24574. </doc>
  24575. </interface>
  24576. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  24577. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  24578. <interface name="MetricsSource" abstract="true"
  24579. static="false" final="false" visibility="public"
  24580. deprecated="not deprecated">
  24581. <method name="getMetrics"
  24582. abstract="true" native="false" synchronized="false"
  24583. static="false" final="false" visibility="public"
  24584. deprecated="not deprecated">
  24585. <param name="collector" type="org.apache.hadoop.metrics2.MetricsCollector"/>
  24586. <param name="all" type="boolean"/>
  24587. <doc>
  24588. <![CDATA[Get metrics from the metrics source
  24589. @param collector to contain the resulting metrics snapshot
  24590. @param all if true, return all metrics even if unchanged.]]>
  24591. </doc>
  24592. </method>
  24593. <doc>
  24594. <![CDATA[The source of metrics information. It generates and updates metrics. It
  24595. registers with {@link MetricsSystem}, which periodically polls it to collect
  24596. {@link MetricsRecord} and passes it to {@link MetricsSink}.]]>
  24597. </doc>
  24598. </interface>
  24599. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  24600. <!-- start class org.apache.hadoop.metrics2.MetricsSystem -->
  24601. <class name="MetricsSystem" extends="java.lang.Object"
  24602. abstract="true"
  24603. static="false" final="false" visibility="public"
  24604. deprecated="not deprecated">
  24605. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  24606. <constructor name="MetricsSystem"
  24607. static="false" final="false" visibility="public"
  24608. deprecated="not deprecated">
  24609. </constructor>
  24610. <method name="unregisterSource"
  24611. abstract="true" native="false" synchronized="false"
  24612. static="false" final="false" visibility="public"
  24613. deprecated="not deprecated">
  24614. <param name="name" type="java.lang.String"/>
  24615. <doc>
  24616. <![CDATA[Unregister a metrics source
  24617. @param name of the source. This is the name you use to call register()]]>
  24618. </doc>
  24619. </method>
  24620. <method name="register" return="T"
  24621. abstract="false" native="false" synchronized="false"
  24622. static="false" final="false" visibility="public"
  24623. deprecated="not deprecated">
  24624. <param name="source" type="T"/>
  24625. <doc>
  24626. <![CDATA[Register a metrics source (deriving name and description from the object)
  24627. @param <T> the actual type of the source object
  24628. @param source object to register
  24629. @return the source object
  24630. @exception MetricsException]]>
  24631. </doc>
  24632. </method>
  24633. <method name="register" return="T"
  24634. abstract="true" native="false" synchronized="false"
  24635. static="false" final="false" visibility="public"
  24636. deprecated="not deprecated">
  24637. <param name="name" type="java.lang.String"/>
  24638. <param name="desc" type="java.lang.String"/>
  24639. <param name="source" type="T"/>
  24640. <doc>
  24641. <![CDATA[Register a metrics source
  24642. @param <T> the actual type of the source object
  24643. @param source object to register
  24644. @param name of the source. Must be unique or null (then extracted from
  24645. the annotations of the source object.)
  24646. @param desc the description of the source (or null. See above.)
  24647. @return the source object
  24648. @exception MetricsException]]>
  24649. </doc>
  24650. </method>
  24651. <method name="register"
  24652. abstract="true" native="false" synchronized="false"
  24653. static="false" final="false" visibility="public"
  24654. deprecated="not deprecated">
  24655. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  24656. <doc>
  24657. <![CDATA[Register a callback interface for JMX events
  24658. @param callback the callback object implementing the MBean interface.]]>
  24659. </doc>
  24660. </method>
  24661. <method name="publishMetricsNow"
  24662. abstract="true" native="false" synchronized="false"
  24663. static="false" final="false" visibility="public"
  24664. deprecated="not deprecated">
  24665. <doc>
  24666. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  24667. This is a "soft" request: the expectation is that a best effort will be
  24668. done to synchronously snapshot the metrics from all the sources and put
  24669. them in all the sinks (including flushing the sinks) before returning to
  24670. the caller. If this can't be accomplished in reasonable time it's OK to
  24671. return to the caller before everything is done.]]>
  24672. </doc>
  24673. </method>
  24674. <method name="shutdown" return="boolean"
  24675. abstract="true" native="false" synchronized="false"
  24676. static="false" final="false" visibility="public"
  24677. deprecated="not deprecated">
  24678. <doc>
  24679. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  24680. The MetricsSystemMXBean will be unregistered.
  24681. @return true if shutdown completed]]>
  24682. </doc>
  24683. </method>
  24684. <doc>
  24685. <![CDATA[The metrics system interface.
  24686. The following components are used for metrics.
  24687. <ul>
  24688. <li>{@link MetricsSource} generate and update metrics information.</li>
  24689. <li>{@link MetricsSink} consume the metrics information</li>
  24690. </ul>
  24691. {@link MetricsSource} and {@link MetricsSink} register with the metrics
  24692. system. Implementations of {@link MetricsSystem} polls the
  24693. {@link MetricsSource}s periodically and pass the {@link MetricsRecord}s to
  24694. {@link MetricsSink}.]]>
  24695. </doc>
  24696. </class>
  24697. <!-- end class org.apache.hadoop.metrics2.MetricsSystem -->
  24698. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  24699. <interface name="MetricsSystemMXBean" abstract="true"
  24700. static="false" final="false" visibility="public"
  24701. deprecated="not deprecated">
  24702. <method name="start"
  24703. abstract="true" native="false" synchronized="false"
  24704. static="false" final="false" visibility="public"
  24705. deprecated="not deprecated">
  24706. <doc>
  24707. <![CDATA[Start the metrics system
  24708. @throws MetricsException]]>
  24709. </doc>
  24710. </method>
  24711. <method name="stop"
  24712. abstract="true" native="false" synchronized="false"
  24713. static="false" final="false" visibility="public"
  24714. deprecated="not deprecated">
  24715. <doc>
  24716. <![CDATA[Stop the metrics system
  24717. @throws MetricsException]]>
  24718. </doc>
  24719. </method>
  24720. <method name="startMetricsMBeans"
  24721. abstract="true" native="false" synchronized="false"
  24722. static="false" final="false" visibility="public"
  24723. deprecated="not deprecated">
  24724. <doc>
  24725. <![CDATA[Start metrics MBeans
  24726. @throws MetricsException]]>
  24727. </doc>
  24728. </method>
  24729. <method name="stopMetricsMBeans"
  24730. abstract="true" native="false" synchronized="false"
  24731. static="false" final="false" visibility="public"
  24732. deprecated="not deprecated">
  24733. <doc>
  24734. <![CDATA[Stop metrics MBeans.
  24735. Note, it doesn't stop the metrics system control MBean,
  24736. i.e this interface.
  24737. @throws MetricsException]]>
  24738. </doc>
  24739. </method>
  24740. <method name="currentConfig" return="java.lang.String"
  24741. abstract="true" native="false" synchronized="false"
  24742. static="false" final="false" visibility="public"
  24743. deprecated="not deprecated">
  24744. <doc>
  24745. <![CDATA[@return the current config
  24746. Avoided getConfig, as it'll turn into a "Config" attribute,
  24747. which doesn't support multiple line values in jconsole.
  24748. @throws MetricsException]]>
  24749. </doc>
  24750. </method>
  24751. <doc>
  24752. <![CDATA[The JMX interface to the metrics system]]>
  24753. </doc>
  24754. </interface>
  24755. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  24756. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  24757. <class name="MetricsTag" extends="java.lang.Object"
  24758. abstract="false"
  24759. static="false" final="false" visibility="public"
  24760. deprecated="not deprecated">
  24761. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  24762. <constructor name="MetricsTag" type="org.apache.hadoop.metrics2.MetricsInfo, java.lang.String"
  24763. static="false" final="false" visibility="public"
  24764. deprecated="not deprecated">
  24765. <doc>
  24766. <![CDATA[Construct the tag with name, description and value
  24767. @param info of the tag
  24768. @param value of the tag]]>
  24769. </doc>
  24770. </constructor>
  24771. <method name="name" return="java.lang.String"
  24772. abstract="false" native="false" synchronized="false"
  24773. static="false" final="false" visibility="public"
  24774. deprecated="not deprecated">
  24775. </method>
  24776. <method name="description" return="java.lang.String"
  24777. abstract="false" native="false" synchronized="false"
  24778. static="false" final="false" visibility="public"
  24779. deprecated="not deprecated">
  24780. </method>
  24781. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  24782. abstract="false" native="false" synchronized="false"
  24783. static="false" final="false" visibility="public"
  24784. deprecated="not deprecated">
  24785. <doc>
  24786. <![CDATA[@return the info object of the tag]]>
  24787. </doc>
  24788. </method>
  24789. <method name="value" return="java.lang.String"
  24790. abstract="false" native="false" synchronized="false"
  24791. static="false" final="false" visibility="public"
  24792. deprecated="not deprecated">
  24793. <doc>
  24794. <![CDATA[Get the value of the tag
  24795. @return the value]]>
  24796. </doc>
  24797. </method>
  24798. <method name="equals" return="boolean"
  24799. abstract="false" native="false" synchronized="false"
  24800. static="false" final="false" visibility="public"
  24801. deprecated="not deprecated">
  24802. <param name="obj" type="java.lang.Object"/>
  24803. </method>
  24804. <method name="hashCode" return="int"
  24805. abstract="false" native="false" synchronized="false"
  24806. static="false" final="false" visibility="public"
  24807. deprecated="not deprecated">
  24808. </method>
  24809. <method name="toString" return="java.lang.String"
  24810. abstract="false" native="false" synchronized="false"
  24811. static="false" final="false" visibility="public"
  24812. deprecated="not deprecated">
  24813. </method>
  24814. <doc>
  24815. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  24816. </doc>
  24817. </class>
  24818. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  24819. <!-- start class org.apache.hadoop.metrics2.MetricStringBuilder -->
  24820. <class name="MetricStringBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24821. abstract="false"
  24822. static="false" final="false" visibility="public"
  24823. deprecated="not deprecated">
  24824. <constructor name="MetricStringBuilder" type="org.apache.hadoop.metrics2.MetricsCollector, java.lang.String, java.lang.String, java.lang.String"
  24825. static="false" final="false" visibility="public"
  24826. deprecated="not deprecated">
  24827. <doc>
  24828. <![CDATA[Build an instance.
  24829. @param parent parent collector. Unused in this instance; only used for
  24830. the {@link #parent()} method
  24831. @param prefix string before each entry
  24832. @param separator separator between name and value
  24833. @param suffix suffix after each entry]]>
  24834. </doc>
  24835. </constructor>
  24836. <method name="add" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  24837. abstract="false" native="false" synchronized="false"
  24838. static="false" final="false" visibility="public"
  24839. deprecated="not deprecated">
  24840. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24841. <param name="value" type="java.lang.Object"/>
  24842. </method>
  24843. <method name="tuple" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  24844. abstract="false" native="false" synchronized="false"
  24845. static="false" final="false" visibility="public"
  24846. deprecated="not deprecated">
  24847. <param name="key" type="java.lang.String"/>
  24848. <param name="value" type="java.lang.String"/>
  24849. <doc>
  24850. <![CDATA[Add any key,val pair to the string, between the prefix and suffix,
  24851. separated by the separator.
  24852. @param key key
  24853. @param value value
  24854. @return this instance]]>
  24855. </doc>
  24856. </method>
  24857. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24858. abstract="false" native="false" synchronized="false"
  24859. static="false" final="false" visibility="public"
  24860. deprecated="not deprecated">
  24861. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24862. <param name="value" type="java.lang.String"/>
  24863. </method>
  24864. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24865. abstract="false" native="false" synchronized="false"
  24866. static="false" final="false" visibility="public"
  24867. deprecated="not deprecated">
  24868. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24869. </method>
  24870. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24871. abstract="false" native="false" synchronized="false"
  24872. static="false" final="false" visibility="public"
  24873. deprecated="not deprecated">
  24874. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  24875. </method>
  24876. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24877. abstract="false" native="false" synchronized="false"
  24878. static="false" final="false" visibility="public"
  24879. deprecated="not deprecated">
  24880. <param name="value" type="java.lang.String"/>
  24881. </method>
  24882. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24883. abstract="false" native="false" synchronized="false"
  24884. static="false" final="false" visibility="public"
  24885. deprecated="not deprecated">
  24886. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24887. <param name="value" type="int"/>
  24888. </method>
  24889. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24890. abstract="false" 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. </method>
  24896. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24897. abstract="false" native="false" synchronized="false"
  24898. static="false" final="false" visibility="public"
  24899. deprecated="not deprecated">
  24900. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24901. <param name="value" type="int"/>
  24902. </method>
  24903. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24904. abstract="false" native="false" synchronized="false"
  24905. static="false" final="false" visibility="public"
  24906. deprecated="not deprecated">
  24907. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24908. <param name="value" type="long"/>
  24909. </method>
  24910. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24911. abstract="false" native="false" synchronized="false"
  24912. static="false" final="false" visibility="public"
  24913. deprecated="not deprecated">
  24914. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24915. <param name="value" type="float"/>
  24916. </method>
  24917. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24918. abstract="false" native="false" synchronized="false"
  24919. static="false" final="false" visibility="public"
  24920. deprecated="not deprecated">
  24921. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24922. <param name="value" type="double"/>
  24923. </method>
  24924. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  24925. abstract="false" native="false" synchronized="false"
  24926. static="false" final="false" visibility="public"
  24927. deprecated="not deprecated">
  24928. </method>
  24929. <method name="toString" return="java.lang.String"
  24930. abstract="false" native="false" synchronized="false"
  24931. static="false" final="false" visibility="public"
  24932. deprecated="not deprecated">
  24933. </method>
  24934. <doc>
  24935. <![CDATA[Build a string dump of the metrics.
  24936. The {@link #toString()} operator dumps out all values collected.
  24937. Every entry is formatted as
  24938. {@code prefix + name + separator + value + suffix}]]>
  24939. </doc>
  24940. </class>
  24941. <!-- end class org.apache.hadoop.metrics2.MetricStringBuilder -->
  24942. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  24943. <interface name="MetricsVisitor" abstract="true"
  24944. static="false" final="false" visibility="public"
  24945. deprecated="not deprecated">
  24946. <method name="gauge"
  24947. abstract="true" native="false" synchronized="false"
  24948. static="false" final="false" visibility="public"
  24949. deprecated="not deprecated">
  24950. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24951. <param name="value" type="int"/>
  24952. <doc>
  24953. <![CDATA[Callback for integer value gauges
  24954. @param info the metric info
  24955. @param value of the metric]]>
  24956. </doc>
  24957. </method>
  24958. <method name="gauge"
  24959. abstract="true" native="false" synchronized="false"
  24960. static="false" final="false" visibility="public"
  24961. deprecated="not deprecated">
  24962. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24963. <param name="value" type="long"/>
  24964. <doc>
  24965. <![CDATA[Callback for long value gauges
  24966. @param info the metric info
  24967. @param value of the metric]]>
  24968. </doc>
  24969. </method>
  24970. <method name="gauge"
  24971. abstract="true" native="false" synchronized="false"
  24972. static="false" final="false" visibility="public"
  24973. deprecated="not deprecated">
  24974. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24975. <param name="value" type="float"/>
  24976. <doc>
  24977. <![CDATA[Callback for float value gauges
  24978. @param info the metric info
  24979. @param value of the metric]]>
  24980. </doc>
  24981. </method>
  24982. <method name="gauge"
  24983. abstract="true" native="false" synchronized="false"
  24984. static="false" final="false" visibility="public"
  24985. deprecated="not deprecated">
  24986. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24987. <param name="value" type="double"/>
  24988. <doc>
  24989. <![CDATA[Callback for double value gauges
  24990. @param info the metric info
  24991. @param value of the metric]]>
  24992. </doc>
  24993. </method>
  24994. <method name="counter"
  24995. abstract="true" native="false" synchronized="false"
  24996. static="false" final="false" visibility="public"
  24997. deprecated="not deprecated">
  24998. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24999. <param name="value" type="int"/>
  25000. <doc>
  25001. <![CDATA[Callback for integer value counters
  25002. @param info the metric info
  25003. @param value of the metric]]>
  25004. </doc>
  25005. </method>
  25006. <method name="counter"
  25007. abstract="true" native="false" synchronized="false"
  25008. static="false" final="false" visibility="public"
  25009. deprecated="not deprecated">
  25010. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25011. <param name="value" type="long"/>
  25012. <doc>
  25013. <![CDATA[Callback for long value counters
  25014. @param info the metric info
  25015. @param value of the metric]]>
  25016. </doc>
  25017. </method>
  25018. <doc>
  25019. <![CDATA[A visitor interface for metrics]]>
  25020. </doc>
  25021. </interface>
  25022. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  25023. </package>
  25024. <package name="org.apache.hadoop.metrics2.annotation">
  25025. <!-- start class org.apache.hadoop.metrics2.annotation.Metric -->
  25026. <class name="Metric" abstract="true"
  25027. static="false" final="false" visibility="public"
  25028. deprecated="not deprecated">
  25029. <implements name="java.lang.annotation.Annotation"/>
  25030. <doc>
  25031. <![CDATA[Annotation interface for a single metric used to annotate a field or a method
  25032. in the class.]]>
  25033. </doc>
  25034. </class>
  25035. <!-- end class org.apache.hadoop.metrics2.annotation.Metric -->
  25036. <!-- start class org.apache.hadoop.metrics2.annotation.Metrics -->
  25037. <class name="Metrics" abstract="true"
  25038. static="false" final="false" visibility="public"
  25039. deprecated="not deprecated">
  25040. <implements name="java.lang.annotation.Annotation"/>
  25041. <doc>
  25042. <![CDATA[Annotation interface for a group of metrics]]>
  25043. </doc>
  25044. </class>
  25045. <!-- end class org.apache.hadoop.metrics2.annotation.Metrics -->
  25046. </package>
  25047. <package name="org.apache.hadoop.metrics2.filter">
  25048. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  25049. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  25050. abstract="false"
  25051. static="false" final="false" visibility="public"
  25052. deprecated="not deprecated">
  25053. <constructor name="GlobFilter"
  25054. static="false" final="false" visibility="public"
  25055. deprecated="not deprecated">
  25056. </constructor>
  25057. <method name="compile" return="com.google.re2j.Pattern"
  25058. abstract="false" native="false" synchronized="false"
  25059. static="false" final="false" visibility="protected"
  25060. deprecated="not deprecated">
  25061. <param name="s" type="java.lang.String"/>
  25062. </method>
  25063. <doc>
  25064. <![CDATA[A glob pattern filter for metrics.
  25065. The class name is used in metrics config files]]>
  25066. </doc>
  25067. </class>
  25068. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  25069. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  25070. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  25071. abstract="false"
  25072. static="false" final="false" visibility="public"
  25073. deprecated="not deprecated">
  25074. <constructor name="RegexFilter"
  25075. static="false" final="false" visibility="public"
  25076. deprecated="not deprecated">
  25077. </constructor>
  25078. <method name="compile" return="com.google.re2j.Pattern"
  25079. abstract="false" native="false" synchronized="false"
  25080. static="false" final="false" visibility="protected"
  25081. deprecated="not deprecated">
  25082. <param name="s" type="java.lang.String"/>
  25083. </method>
  25084. <doc>
  25085. <![CDATA[A regex pattern filter for metrics]]>
  25086. </doc>
  25087. </class>
  25088. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  25089. </package>
  25090. <package name="org.apache.hadoop.metrics2.lib">
  25091. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  25092. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  25093. abstract="false"
  25094. static="false" final="true" visibility="public"
  25095. deprecated="not deprecated">
  25096. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  25097. abstract="false" native="false" synchronized="false"
  25098. static="true" final="false" visibility="public"
  25099. deprecated="not deprecated">
  25100. </method>
  25101. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  25102. abstract="false" native="false" synchronized="false"
  25103. static="true" final="false" visibility="public"
  25104. deprecated="not deprecated">
  25105. <param name="name" type="java.lang.String"/>
  25106. </method>
  25107. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  25108. abstract="false" native="false" synchronized="false"
  25109. static="true" final="false" visibility="public"
  25110. deprecated="not deprecated">
  25111. <param name="prefix" type="java.lang.String"/>
  25112. <doc>
  25113. <![CDATA[Convenience method to initialize the metrics system
  25114. @param prefix for the metrics system configuration
  25115. @return the metrics system instance]]>
  25116. </doc>
  25117. </method>
  25118. <method name="instance" return="org.apache.hadoop.metrics2.MetricsSystem"
  25119. abstract="false" native="false" synchronized="false"
  25120. static="true" final="false" visibility="public"
  25121. deprecated="not deprecated">
  25122. <doc>
  25123. <![CDATA[@return the metrics system object]]>
  25124. </doc>
  25125. </method>
  25126. <method name="shutdown"
  25127. abstract="false" native="false" synchronized="false"
  25128. static="true" final="false" visibility="public"
  25129. deprecated="not deprecated">
  25130. <doc>
  25131. <![CDATA[Shutdown the metrics system]]>
  25132. </doc>
  25133. </method>
  25134. <method name="setMiniClusterMode"
  25135. abstract="false" native="false" synchronized="false"
  25136. static="true" final="false" visibility="public"
  25137. deprecated="not deprecated">
  25138. <param name="choice" type="boolean"/>
  25139. </method>
  25140. <method name="inMiniClusterMode" return="boolean"
  25141. abstract="false" native="false" synchronized="false"
  25142. static="true" final="false" visibility="public"
  25143. deprecated="not deprecated">
  25144. </method>
  25145. <doc>
  25146. <![CDATA[The default metrics system singleton. This class is used by all the daemon
  25147. processes(such as NameNode, DataNode, JobTracker etc.). During daemon process
  25148. initialization the processes call {@link DefaultMetricsSystem#init(String)}
  25149. to initialize the {@link MetricsSystem}.]]>
  25150. </doc>
  25151. </class>
  25152. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  25153. <!-- start class org.apache.hadoop.metrics2.lib.Interns -->
  25154. <class name="Interns" extends="java.lang.Object"
  25155. abstract="false"
  25156. static="false" final="false" visibility="public"
  25157. deprecated="not deprecated">
  25158. <constructor name="Interns"
  25159. static="false" final="false" visibility="public"
  25160. deprecated="not deprecated">
  25161. </constructor>
  25162. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25163. abstract="false" native="false" synchronized="false"
  25164. static="true" final="false" visibility="public"
  25165. deprecated="not deprecated">
  25166. <param name="name" type="java.lang.String"/>
  25167. <param name="description" type="java.lang.String"/>
  25168. <doc>
  25169. <![CDATA[Get a metric info object.
  25170. @param name Name of metric info object
  25171. @param description Description of metric info object
  25172. @return an interned metric info object]]>
  25173. </doc>
  25174. </method>
  25175. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  25176. abstract="false" native="false" synchronized="false"
  25177. static="true" final="false" visibility="public"
  25178. deprecated="not deprecated">
  25179. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25180. <param name="value" type="java.lang.String"/>
  25181. <doc>
  25182. <![CDATA[Get a metrics tag.
  25183. @param info of the tag
  25184. @param value of the tag
  25185. @return an interned metrics tag]]>
  25186. </doc>
  25187. </method>
  25188. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  25189. abstract="false" native="false" synchronized="false"
  25190. static="true" final="false" visibility="public"
  25191. deprecated="not deprecated">
  25192. <param name="name" type="java.lang.String"/>
  25193. <param name="description" type="java.lang.String"/>
  25194. <param name="value" type="java.lang.String"/>
  25195. <doc>
  25196. <![CDATA[Get a metrics tag.
  25197. @param name of the tag
  25198. @param description of the tag
  25199. @param value of the tag
  25200. @return an interned metrics tag]]>
  25201. </doc>
  25202. </method>
  25203. <doc>
  25204. <![CDATA[Helpers to create interned metrics info.]]>
  25205. </doc>
  25206. </class>
  25207. <!-- end class org.apache.hadoop.metrics2.lib.Interns -->
  25208. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  25209. <class name="MetricsRegistry" extends="java.lang.Object"
  25210. abstract="false"
  25211. static="false" final="false" visibility="public"
  25212. deprecated="not deprecated">
  25213. <constructor name="MetricsRegistry" type="java.lang.String"
  25214. static="false" final="false" visibility="public"
  25215. deprecated="not deprecated">
  25216. <doc>
  25217. <![CDATA[Construct the registry with a record name
  25218. @param name of the record of the metrics]]>
  25219. </doc>
  25220. </constructor>
  25221. <constructor name="MetricsRegistry" type="org.apache.hadoop.metrics2.MetricsInfo"
  25222. static="false" final="false" visibility="public"
  25223. deprecated="not deprecated">
  25224. <doc>
  25225. <![CDATA[Construct the registry with a metadata object
  25226. @param info the info object for the metrics record/group]]>
  25227. </doc>
  25228. </constructor>
  25229. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25230. abstract="false" native="false" synchronized="false"
  25231. static="false" final="false" visibility="public"
  25232. deprecated="not deprecated">
  25233. <doc>
  25234. <![CDATA[@return the info object of the metrics registry]]>
  25235. </doc>
  25236. </method>
  25237. <method name="get" return="org.apache.hadoop.metrics2.lib.MutableMetric"
  25238. abstract="false" native="false" synchronized="true"
  25239. static="false" final="false" visibility="public"
  25240. deprecated="not deprecated">
  25241. <param name="name" type="java.lang.String"/>
  25242. <doc>
  25243. <![CDATA[Get a metric by name
  25244. @param name of the metric
  25245. @return the metric object]]>
  25246. </doc>
  25247. </method>
  25248. <method name="getTag" return="org.apache.hadoop.metrics2.MetricsTag"
  25249. abstract="false" native="false" synchronized="true"
  25250. static="false" final="false" visibility="public"
  25251. deprecated="not deprecated">
  25252. <param name="name" type="java.lang.String"/>
  25253. <doc>
  25254. <![CDATA[Get a tag by name
  25255. @param name of the tag
  25256. @return the tag object]]>
  25257. </doc>
  25258. </method>
  25259. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  25260. abstract="false" native="false" synchronized="false"
  25261. static="false" final="false" visibility="public"
  25262. deprecated="not deprecated">
  25263. <param name="name" type="java.lang.String"/>
  25264. <param name="desc" type="java.lang.String"/>
  25265. <param name="iVal" type="int"/>
  25266. <doc>
  25267. <![CDATA[Create a mutable integer counter
  25268. @param name of the metric
  25269. @param desc metric description
  25270. @param iVal initial value
  25271. @return a new counter object]]>
  25272. </doc>
  25273. </method>
  25274. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  25275. abstract="false" native="false" synchronized="true"
  25276. static="false" final="false" visibility="public"
  25277. deprecated="not deprecated">
  25278. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25279. <param name="iVal" type="int"/>
  25280. <doc>
  25281. <![CDATA[Create a mutable integer counter
  25282. @param info metadata of the metric
  25283. @param iVal initial value
  25284. @return a new counter object]]>
  25285. </doc>
  25286. </method>
  25287. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  25288. abstract="false" native="false" synchronized="false"
  25289. static="false" final="false" visibility="public"
  25290. deprecated="not deprecated">
  25291. <param name="name" type="java.lang.String"/>
  25292. <param name="desc" type="java.lang.String"/>
  25293. <param name="iVal" type="long"/>
  25294. <doc>
  25295. <![CDATA[Create a mutable long integer counter
  25296. @param name of the metric
  25297. @param desc metric description
  25298. @param iVal initial value
  25299. @return a new counter object]]>
  25300. </doc>
  25301. </method>
  25302. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  25303. abstract="false" native="false" synchronized="true"
  25304. static="false" final="false" visibility="public"
  25305. deprecated="not deprecated">
  25306. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25307. <param name="iVal" type="long"/>
  25308. <doc>
  25309. <![CDATA[Create a mutable long integer counter
  25310. @param info metadata of the metric
  25311. @param iVal initial value
  25312. @return a new counter object]]>
  25313. </doc>
  25314. </method>
  25315. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  25316. abstract="false" native="false" synchronized="false"
  25317. static="false" final="false" visibility="public"
  25318. deprecated="not deprecated">
  25319. <param name="name" type="java.lang.String"/>
  25320. <param name="desc" type="java.lang.String"/>
  25321. <param name="iVal" type="int"/>
  25322. <doc>
  25323. <![CDATA[Create a mutable integer gauge
  25324. @param name of the metric
  25325. @param desc metric description
  25326. @param iVal initial value
  25327. @return a new gauge object]]>
  25328. </doc>
  25329. </method>
  25330. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  25331. abstract="false" native="false" synchronized="true"
  25332. static="false" final="false" visibility="public"
  25333. deprecated="not deprecated">
  25334. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25335. <param name="iVal" type="int"/>
  25336. <doc>
  25337. <![CDATA[Create a mutable integer gauge
  25338. @param info metadata of the metric
  25339. @param iVal initial value
  25340. @return a new gauge object]]>
  25341. </doc>
  25342. </method>
  25343. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  25344. abstract="false" native="false" synchronized="false"
  25345. static="false" final="false" visibility="public"
  25346. deprecated="not deprecated">
  25347. <param name="name" type="java.lang.String"/>
  25348. <param name="desc" type="java.lang.String"/>
  25349. <param name="iVal" type="long"/>
  25350. <doc>
  25351. <![CDATA[Create a mutable long integer gauge
  25352. @param name of the metric
  25353. @param desc metric description
  25354. @param iVal initial value
  25355. @return a new gauge object]]>
  25356. </doc>
  25357. </method>
  25358. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  25359. abstract="false" native="false" synchronized="true"
  25360. static="false" final="false" visibility="public"
  25361. deprecated="not deprecated">
  25362. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25363. <param name="iVal" type="long"/>
  25364. <doc>
  25365. <![CDATA[Create a mutable long integer gauge
  25366. @param info metadata of the metric
  25367. @param iVal initial value
  25368. @return a new gauge object]]>
  25369. </doc>
  25370. </method>
  25371. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  25372. abstract="false" native="false" synchronized="false"
  25373. static="false" final="false" visibility="public"
  25374. deprecated="not deprecated">
  25375. <param name="name" type="java.lang.String"/>
  25376. <param name="desc" type="java.lang.String"/>
  25377. <param name="iVal" type="float"/>
  25378. <doc>
  25379. <![CDATA[Create a mutable float gauge
  25380. @param name of the metric
  25381. @param desc metric description
  25382. @param iVal initial value
  25383. @return a new gauge object]]>
  25384. </doc>
  25385. </method>
  25386. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  25387. abstract="false" native="false" synchronized="true"
  25388. static="false" final="false" visibility="public"
  25389. deprecated="not deprecated">
  25390. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25391. <param name="iVal" type="float"/>
  25392. <doc>
  25393. <![CDATA[Create a mutable float gauge
  25394. @param info metadata of the metric
  25395. @param iVal initial value
  25396. @return a new gauge object]]>
  25397. </doc>
  25398. </method>
  25399. <method name="newQuantiles" return="org.apache.hadoop.metrics2.lib.MutableQuantiles"
  25400. abstract="false" native="false" synchronized="true"
  25401. static="false" final="false" visibility="public"
  25402. deprecated="not deprecated">
  25403. <param name="name" type="java.lang.String"/>
  25404. <param name="desc" type="java.lang.String"/>
  25405. <param name="sampleName" type="java.lang.String"/>
  25406. <param name="valueName" type="java.lang.String"/>
  25407. <param name="interval" type="int"/>
  25408. <doc>
  25409. <![CDATA[Create a mutable metric that estimates quantiles of a stream of values
  25410. @param name of the metric
  25411. @param desc metric description
  25412. @param sampleName of the metric (e.g., "Ops")
  25413. @param valueName of the metric (e.g., "Time" or "Latency")
  25414. @param interval rollover interval of estimator in seconds
  25415. @return a new quantile estimator object
  25416. @throws MetricsException if interval is not a positive integer]]>
  25417. </doc>
  25418. </method>
  25419. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  25420. abstract="false" native="false" synchronized="true"
  25421. static="false" final="false" visibility="public"
  25422. deprecated="not deprecated">
  25423. <param name="name" type="java.lang.String"/>
  25424. <param name="desc" type="java.lang.String"/>
  25425. <param name="sampleName" type="java.lang.String"/>
  25426. <param name="valueName" type="java.lang.String"/>
  25427. <param name="extended" type="boolean"/>
  25428. <doc>
  25429. <![CDATA[Create a mutable metric with stats
  25430. @param name of the metric
  25431. @param desc metric description
  25432. @param sampleName of the metric (e.g., "Ops")
  25433. @param valueName of the metric (e.g., "Time" or "Latency")
  25434. @param extended produce extended stat (stdev, min/max etc.) if true.
  25435. @return a new mutable stat metric object]]>
  25436. </doc>
  25437. </method>
  25438. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  25439. abstract="false" native="false" synchronized="false"
  25440. static="false" final="false" visibility="public"
  25441. deprecated="not deprecated">
  25442. <param name="name" type="java.lang.String"/>
  25443. <param name="desc" type="java.lang.String"/>
  25444. <param name="sampleName" type="java.lang.String"/>
  25445. <param name="valueName" type="java.lang.String"/>
  25446. <doc>
  25447. <![CDATA[Create a mutable metric with stats
  25448. @param name of the metric
  25449. @param desc metric description
  25450. @param sampleName of the metric (e.g., "Ops")
  25451. @param valueName of the metric (e.g., "Time" or "Latency")
  25452. @return a new mutable metric object]]>
  25453. </doc>
  25454. </method>
  25455. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25456. abstract="false" native="false" synchronized="false"
  25457. static="false" final="false" visibility="public"
  25458. deprecated="not deprecated">
  25459. <param name="name" type="java.lang.String"/>
  25460. <doc>
  25461. <![CDATA[Create a mutable rate metric
  25462. @param name of the metric
  25463. @return a new mutable metric object]]>
  25464. </doc>
  25465. </method>
  25466. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25467. abstract="false" native="false" synchronized="false"
  25468. static="false" final="false" visibility="public"
  25469. deprecated="not deprecated">
  25470. <param name="name" type="java.lang.String"/>
  25471. <param name="description" type="java.lang.String"/>
  25472. <doc>
  25473. <![CDATA[Create a mutable rate metric
  25474. @param name of the metric
  25475. @param description of the metric
  25476. @return a new mutable rate metric object]]>
  25477. </doc>
  25478. </method>
  25479. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25480. abstract="false" native="false" synchronized="false"
  25481. static="false" final="false" visibility="public"
  25482. deprecated="not deprecated">
  25483. <param name="name" type="java.lang.String"/>
  25484. <param name="desc" type="java.lang.String"/>
  25485. <param name="extended" type="boolean"/>
  25486. <doc>
  25487. <![CDATA[Create a mutable rate metric (for throughput measurement)
  25488. @param name of the metric
  25489. @param desc description
  25490. @param extended produce extended stat (stdev/min/max etc.) if true
  25491. @return a new mutable rate metric object]]>
  25492. </doc>
  25493. </method>
  25494. <method name="newRatesWithAggregation" return="org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation"
  25495. abstract="false" native="false" synchronized="true"
  25496. static="false" final="false" visibility="public"
  25497. deprecated="not deprecated">
  25498. <param name="name" type="java.lang.String"/>
  25499. </method>
  25500. <method name="newMutableRollingAverages" return="org.apache.hadoop.metrics2.lib.MutableRollingAverages"
  25501. abstract="false" native="false" synchronized="true"
  25502. static="false" final="false" visibility="public"
  25503. deprecated="not deprecated">
  25504. <param name="name" type="java.lang.String"/>
  25505. <param name="valueName" type="java.lang.String"/>
  25506. </method>
  25507. <method name="add"
  25508. abstract="false" native="false" synchronized="true"
  25509. static="false" final="false" visibility="public"
  25510. deprecated="not deprecated">
  25511. <param name="name" type="java.lang.String"/>
  25512. <param name="value" type="long"/>
  25513. <doc>
  25514. <![CDATA[Add sample to a stat metric by name.
  25515. @param name of the metric
  25516. @param value of the snapshot to add]]>
  25517. </doc>
  25518. </method>
  25519. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25520. abstract="false" native="false" synchronized="false"
  25521. static="false" final="false" visibility="public"
  25522. deprecated="not deprecated">
  25523. <param name="name" type="java.lang.String"/>
  25524. <doc>
  25525. <![CDATA[Set the metrics context tag
  25526. @param name of the context
  25527. @return the registry itself as a convenience]]>
  25528. </doc>
  25529. </method>
  25530. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25531. abstract="false" native="false" synchronized="false"
  25532. static="false" final="false" visibility="public"
  25533. deprecated="not deprecated">
  25534. <param name="name" type="java.lang.String"/>
  25535. <param name="description" type="java.lang.String"/>
  25536. <param name="value" type="java.lang.String"/>
  25537. <doc>
  25538. <![CDATA[Add a tag to the metrics
  25539. @param name of the tag
  25540. @param description of the tag
  25541. @param value of the tag
  25542. @return the registry (for keep adding tags)]]>
  25543. </doc>
  25544. </method>
  25545. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25546. abstract="false" native="false" synchronized="false"
  25547. static="false" final="false" visibility="public"
  25548. deprecated="not deprecated">
  25549. <param name="name" type="java.lang.String"/>
  25550. <param name="description" type="java.lang.String"/>
  25551. <param name="value" type="java.lang.String"/>
  25552. <param name="override" type="boolean"/>
  25553. <doc>
  25554. <![CDATA[Add a tag to the metrics
  25555. @param name of the tag
  25556. @param description of the tag
  25557. @param value of the tag
  25558. @param override existing tag if true
  25559. @return the registry (for keep adding tags)]]>
  25560. </doc>
  25561. </method>
  25562. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25563. abstract="false" native="false" synchronized="true"
  25564. static="false" final="false" visibility="public"
  25565. deprecated="not deprecated">
  25566. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25567. <param name="value" type="java.lang.String"/>
  25568. <param name="override" type="boolean"/>
  25569. <doc>
  25570. <![CDATA[Add a tag to the metrics
  25571. @param info metadata of the tag
  25572. @param value of the tag
  25573. @param override existing tag if true
  25574. @return the registry (for keep adding tags etc.)]]>
  25575. </doc>
  25576. </method>
  25577. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25578. abstract="false" native="false" synchronized="false"
  25579. static="false" final="false" visibility="public"
  25580. deprecated="not deprecated">
  25581. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25582. <param name="value" type="java.lang.String"/>
  25583. </method>
  25584. <method name="snapshot"
  25585. abstract="false" native="false" synchronized="true"
  25586. static="false" final="false" visibility="public"
  25587. deprecated="not deprecated">
  25588. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25589. <param name="all" type="boolean"/>
  25590. <doc>
  25591. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  25592. @param builder to contain the metrics snapshot
  25593. @param all get all the metrics even if the values are not changed.]]>
  25594. </doc>
  25595. </method>
  25596. <method name="toString" return="java.lang.String"
  25597. abstract="false" native="false" synchronized="false"
  25598. static="false" final="false" visibility="public"
  25599. deprecated="not deprecated">
  25600. </method>
  25601. <doc>
  25602. <![CDATA[An optional metrics registry class for creating and maintaining a
  25603. collection of MetricsMutables, making writing metrics source easier.]]>
  25604. </doc>
  25605. </class>
  25606. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  25607. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounter -->
  25608. <class name="MutableCounter" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25609. abstract="true"
  25610. static="false" final="false" visibility="public"
  25611. deprecated="not deprecated">
  25612. <constructor name="MutableCounter" type="org.apache.hadoop.metrics2.MetricsInfo"
  25613. static="false" final="false" visibility="protected"
  25614. deprecated="not deprecated">
  25615. </constructor>
  25616. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25617. abstract="false" native="false" synchronized="false"
  25618. static="false" final="false" visibility="protected"
  25619. deprecated="not deprecated">
  25620. </method>
  25621. <method name="incr"
  25622. abstract="true" native="false" synchronized="false"
  25623. static="false" final="false" visibility="public"
  25624. deprecated="not deprecated">
  25625. <doc>
  25626. <![CDATA[Increment the metric value by 1.]]>
  25627. </doc>
  25628. </method>
  25629. <doc>
  25630. <![CDATA[The mutable counter (monotonically increasing) metric interface]]>
  25631. </doc>
  25632. </class>
  25633. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounter -->
  25634. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  25635. <class name="MutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  25636. abstract="false"
  25637. static="false" final="false" visibility="public"
  25638. deprecated="not deprecated">
  25639. <method name="incr"
  25640. abstract="false" native="false" synchronized="false"
  25641. static="false" final="false" visibility="public"
  25642. deprecated="not deprecated">
  25643. </method>
  25644. <method name="incr"
  25645. abstract="false" native="false" synchronized="true"
  25646. static="false" final="false" visibility="public"
  25647. deprecated="not deprecated">
  25648. <param name="delta" type="int"/>
  25649. <doc>
  25650. <![CDATA[Increment the value by a delta
  25651. @param delta of the increment]]>
  25652. </doc>
  25653. </method>
  25654. <method name="value" return="int"
  25655. abstract="false" native="false" synchronized="false"
  25656. static="false" final="false" visibility="public"
  25657. deprecated="not deprecated">
  25658. </method>
  25659. <method name="snapshot"
  25660. abstract="false" native="false" synchronized="false"
  25661. static="false" final="false" visibility="public"
  25662. deprecated="not deprecated">
  25663. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25664. <param name="all" type="boolean"/>
  25665. </method>
  25666. <doc>
  25667. <![CDATA[A mutable int counter for implementing metrics sources]]>
  25668. </doc>
  25669. </class>
  25670. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  25671. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  25672. <class name="MutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  25673. abstract="false"
  25674. static="false" final="false" visibility="public"
  25675. deprecated="not deprecated">
  25676. <constructor name="MutableCounterLong" type="org.apache.hadoop.metrics2.MetricsInfo, long"
  25677. static="false" final="false" visibility="public"
  25678. deprecated="not deprecated">
  25679. </constructor>
  25680. <method name="incr"
  25681. abstract="false" native="false" synchronized="false"
  25682. static="false" final="false" visibility="public"
  25683. deprecated="not deprecated">
  25684. </method>
  25685. <method name="incr"
  25686. abstract="false" native="false" synchronized="false"
  25687. static="false" final="false" visibility="public"
  25688. deprecated="not deprecated">
  25689. <param name="delta" type="long"/>
  25690. <doc>
  25691. <![CDATA[Increment the value by a delta
  25692. @param delta of the increment]]>
  25693. </doc>
  25694. </method>
  25695. <method name="value" return="long"
  25696. abstract="false" native="false" synchronized="false"
  25697. static="false" final="false" visibility="public"
  25698. deprecated="not deprecated">
  25699. </method>
  25700. <method name="snapshot"
  25701. abstract="false" native="false" synchronized="false"
  25702. static="false" final="false" visibility="public"
  25703. deprecated="not deprecated">
  25704. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25705. <param name="all" type="boolean"/>
  25706. </method>
  25707. <doc>
  25708. <![CDATA[A mutable long counter]]>
  25709. </doc>
  25710. </class>
  25711. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  25712. <!-- start class org.apache.hadoop.metrics2.lib.MutableGauge -->
  25713. <class name="MutableGauge" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25714. abstract="true"
  25715. static="false" final="false" visibility="public"
  25716. deprecated="not deprecated">
  25717. <constructor name="MutableGauge" type="org.apache.hadoop.metrics2.MetricsInfo"
  25718. static="false" final="false" visibility="protected"
  25719. deprecated="not deprecated">
  25720. </constructor>
  25721. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25722. abstract="false" native="false" synchronized="false"
  25723. static="false" final="false" visibility="protected"
  25724. deprecated="not deprecated">
  25725. </method>
  25726. <method name="incr"
  25727. abstract="true" native="false" synchronized="false"
  25728. static="false" final="false" visibility="public"
  25729. deprecated="not deprecated">
  25730. <doc>
  25731. <![CDATA[Increment the value of the metric by 1]]>
  25732. </doc>
  25733. </method>
  25734. <method name="decr"
  25735. abstract="true" native="false" synchronized="false"
  25736. static="false" final="false" visibility="public"
  25737. deprecated="not deprecated">
  25738. <doc>
  25739. <![CDATA[Decrement the value of the metric by 1]]>
  25740. </doc>
  25741. </method>
  25742. <doc>
  25743. <![CDATA[The mutable gauge metric interface]]>
  25744. </doc>
  25745. </class>
  25746. <!-- end class org.apache.hadoop.metrics2.lib.MutableGauge -->
  25747. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  25748. <class name="MutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  25749. abstract="false"
  25750. static="false" final="false" visibility="public"
  25751. deprecated="not deprecated">
  25752. <method name="value" return="int"
  25753. abstract="false" native="false" synchronized="false"
  25754. static="false" final="false" visibility="public"
  25755. deprecated="not deprecated">
  25756. </method>
  25757. <method name="incr"
  25758. abstract="false" native="false" synchronized="false"
  25759. static="false" final="false" visibility="public"
  25760. deprecated="not deprecated">
  25761. </method>
  25762. <method name="incr"
  25763. abstract="false" native="false" synchronized="false"
  25764. static="false" final="false" visibility="public"
  25765. deprecated="not deprecated">
  25766. <param name="delta" type="int"/>
  25767. <doc>
  25768. <![CDATA[Increment by delta
  25769. @param delta of the increment]]>
  25770. </doc>
  25771. </method>
  25772. <method name="decr"
  25773. abstract="false" native="false" synchronized="false"
  25774. static="false" final="false" visibility="public"
  25775. deprecated="not deprecated">
  25776. </method>
  25777. <method name="decr"
  25778. abstract="false" native="false" synchronized="false"
  25779. static="false" final="false" visibility="public"
  25780. deprecated="not deprecated">
  25781. <param name="delta" type="int"/>
  25782. <doc>
  25783. <![CDATA[decrement by delta
  25784. @param delta of the decrement]]>
  25785. </doc>
  25786. </method>
  25787. <method name="set"
  25788. abstract="false" native="false" synchronized="false"
  25789. static="false" final="false" visibility="public"
  25790. deprecated="not deprecated">
  25791. <param name="value" type="int"/>
  25792. <doc>
  25793. <![CDATA[Set the value of the metric
  25794. @param value to set]]>
  25795. </doc>
  25796. </method>
  25797. <method name="snapshot"
  25798. abstract="false" native="false" synchronized="false"
  25799. static="false" final="false" visibility="public"
  25800. deprecated="not deprecated">
  25801. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25802. <param name="all" type="boolean"/>
  25803. </method>
  25804. <method name="toString" return="java.lang.String"
  25805. abstract="false" native="false" synchronized="false"
  25806. static="false" final="false" visibility="public"
  25807. deprecated="not deprecated">
  25808. <doc>
  25809. <![CDATA[@return the value of the metric]]>
  25810. </doc>
  25811. </method>
  25812. <doc>
  25813. <![CDATA[A mutable int gauge]]>
  25814. </doc>
  25815. </class>
  25816. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  25817. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  25818. <class name="MutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  25819. abstract="false"
  25820. static="false" final="false" visibility="public"
  25821. deprecated="not deprecated">
  25822. <method name="value" return="long"
  25823. abstract="false" native="false" synchronized="false"
  25824. static="false" final="false" visibility="public"
  25825. deprecated="not deprecated">
  25826. </method>
  25827. <method name="incr"
  25828. abstract="false" native="false" synchronized="false"
  25829. static="false" final="false" visibility="public"
  25830. deprecated="not deprecated">
  25831. </method>
  25832. <method name="incr"
  25833. abstract="false" native="false" synchronized="false"
  25834. static="false" final="false" visibility="public"
  25835. deprecated="not deprecated">
  25836. <param name="delta" type="long"/>
  25837. <doc>
  25838. <![CDATA[Increment by delta
  25839. @param delta of the increment]]>
  25840. </doc>
  25841. </method>
  25842. <method name="decr"
  25843. abstract="false" native="false" synchronized="false"
  25844. static="false" final="false" visibility="public"
  25845. deprecated="not deprecated">
  25846. </method>
  25847. <method name="decr"
  25848. abstract="false" native="false" synchronized="false"
  25849. static="false" final="false" visibility="public"
  25850. deprecated="not deprecated">
  25851. <param name="delta" type="long"/>
  25852. <doc>
  25853. <![CDATA[decrement by delta
  25854. @param delta of the decrement]]>
  25855. </doc>
  25856. </method>
  25857. <method name="set"
  25858. abstract="false" native="false" synchronized="false"
  25859. static="false" final="false" visibility="public"
  25860. deprecated="not deprecated">
  25861. <param name="value" type="long"/>
  25862. <doc>
  25863. <![CDATA[Set the value of the metric
  25864. @param value to set]]>
  25865. </doc>
  25866. </method>
  25867. <method name="snapshot"
  25868. abstract="false" native="false" synchronized="false"
  25869. static="false" final="false" visibility="public"
  25870. deprecated="not deprecated">
  25871. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25872. <param name="all" type="boolean"/>
  25873. </method>
  25874. <method name="toString" return="java.lang.String"
  25875. abstract="false" native="false" synchronized="false"
  25876. static="false" final="false" visibility="public"
  25877. deprecated="not deprecated">
  25878. <doc>
  25879. <![CDATA[@return the value of the metric]]>
  25880. </doc>
  25881. </method>
  25882. <doc>
  25883. <![CDATA[A mutable long gauge]]>
  25884. </doc>
  25885. </class>
  25886. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  25887. <!-- start class org.apache.hadoop.metrics2.lib.MutableMetric -->
  25888. <class name="MutableMetric" extends="java.lang.Object"
  25889. abstract="true"
  25890. static="false" final="false" visibility="public"
  25891. deprecated="not deprecated">
  25892. <constructor name="MutableMetric"
  25893. static="false" final="false" visibility="public"
  25894. deprecated="not deprecated">
  25895. </constructor>
  25896. <method name="snapshot"
  25897. abstract="true" native="false" synchronized="false"
  25898. static="false" final="false" visibility="public"
  25899. deprecated="not deprecated">
  25900. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25901. <param name="all" type="boolean"/>
  25902. <doc>
  25903. <![CDATA[Get a snapshot of the metric
  25904. @param builder the metrics record builder
  25905. @param all if true, snapshot unchanged metrics as well]]>
  25906. </doc>
  25907. </method>
  25908. <method name="snapshot"
  25909. abstract="false" native="false" synchronized="false"
  25910. static="false" final="false" visibility="public"
  25911. deprecated="not deprecated">
  25912. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25913. <doc>
  25914. <![CDATA[Get a snapshot of metric if changed
  25915. @param builder the metrics record builder]]>
  25916. </doc>
  25917. </method>
  25918. <method name="setChanged"
  25919. abstract="false" native="false" synchronized="false"
  25920. static="false" final="false" visibility="protected"
  25921. deprecated="not deprecated">
  25922. <doc>
  25923. <![CDATA[Set the changed flag in mutable operations]]>
  25924. </doc>
  25925. </method>
  25926. <method name="clearChanged"
  25927. abstract="false" native="false" synchronized="false"
  25928. static="false" final="false" visibility="protected"
  25929. deprecated="not deprecated">
  25930. <doc>
  25931. <![CDATA[Clear the changed flag in the snapshot operations]]>
  25932. </doc>
  25933. </method>
  25934. <method name="changed" return="boolean"
  25935. abstract="false" native="false" synchronized="false"
  25936. static="false" final="false" visibility="public"
  25937. deprecated="not deprecated">
  25938. <doc>
  25939. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  25940. </doc>
  25941. </method>
  25942. <doc>
  25943. <![CDATA[The mutable metric interface]]>
  25944. </doc>
  25945. </class>
  25946. <!-- end class org.apache.hadoop.metrics2.lib.MutableMetric -->
  25947. <!-- start class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  25948. <class name="MutableQuantiles" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25949. abstract="false"
  25950. static="false" final="false" visibility="public"
  25951. deprecated="not deprecated">
  25952. <constructor name="MutableQuantiles" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, int"
  25953. static="false" final="false" visibility="public"
  25954. deprecated="not deprecated">
  25955. <doc>
  25956. <![CDATA[Instantiates a new {@link MutableQuantiles} for a metric that rolls itself
  25957. over on the specified time interval.
  25958. @param name
  25959. of the metric
  25960. @param description
  25961. long-form textual description of the metric
  25962. @param sampleName
  25963. type of items in the stream (e.g., "Ops")
  25964. @param valueName
  25965. type of the values
  25966. @param interval
  25967. rollover interval (in seconds) of the estimator]]>
  25968. </doc>
  25969. </constructor>
  25970. <method name="snapshot"
  25971. abstract="false" native="false" synchronized="true"
  25972. static="false" final="false" visibility="public"
  25973. deprecated="not deprecated">
  25974. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25975. <param name="all" type="boolean"/>
  25976. </method>
  25977. <method name="add"
  25978. abstract="false" native="false" synchronized="true"
  25979. static="false" final="false" visibility="public"
  25980. deprecated="not deprecated">
  25981. <param name="value" type="long"/>
  25982. </method>
  25983. <method name="getInterval" return="int"
  25984. abstract="false" native="false" synchronized="false"
  25985. static="false" final="false" visibility="public"
  25986. deprecated="not deprecated">
  25987. </method>
  25988. <method name="stop"
  25989. abstract="false" native="false" synchronized="false"
  25990. static="false" final="false" visibility="public"
  25991. deprecated="not deprecated">
  25992. </method>
  25993. <method name="getEstimator" return="org.apache.hadoop.metrics2.util.QuantileEstimator"
  25994. abstract="false" native="false" synchronized="true"
  25995. static="false" final="false" visibility="public"
  25996. deprecated="not deprecated">
  25997. <doc>
  25998. <![CDATA[Get the quantile estimator.
  25999. @return the quantile estimator]]>
  26000. </doc>
  26001. </method>
  26002. <method name="setEstimator"
  26003. abstract="false" native="false" synchronized="true"
  26004. static="false" final="false" visibility="public"
  26005. deprecated="not deprecated">
  26006. <param name="quantileEstimator" type="org.apache.hadoop.metrics2.util.QuantileEstimator"/>
  26007. </method>
  26008. <field name="quantiles" type="org.apache.hadoop.metrics2.util.Quantile[]"
  26009. transient="false" volatile="false"
  26010. static="true" final="true" visibility="public"
  26011. deprecated="not deprecated">
  26012. </field>
  26013. <field name="previousSnapshot" type="java.util.Map"
  26014. transient="false" volatile="false"
  26015. static="false" final="false" visibility="protected"
  26016. deprecated="not deprecated">
  26017. </field>
  26018. <doc>
  26019. <![CDATA[Watches a stream of long values, maintaining online estimates of specific
  26020. quantiles with provably low error bounds. This is particularly useful for
  26021. accurate high-percentile (e.g. 95th, 99th) latency metrics.]]>
  26022. </doc>
  26023. </class>
  26024. <!-- end class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  26025. <!-- start class org.apache.hadoop.metrics2.lib.MutableRate -->
  26026. <class name="MutableRate" extends="org.apache.hadoop.metrics2.lib.MutableStat"
  26027. abstract="false"
  26028. static="false" final="false" visibility="public"
  26029. deprecated="not deprecated">
  26030. <doc>
  26031. <![CDATA[A convenient mutable metric for throughput measurement]]>
  26032. </doc>
  26033. </class>
  26034. <!-- end class org.apache.hadoop.metrics2.lib.MutableRate -->
  26035. <!-- start class org.apache.hadoop.metrics2.lib.MutableRates -->
  26036. <class name="MutableRates" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26037. abstract="false"
  26038. static="false" final="false" visibility="public"
  26039. deprecated="not deprecated">
  26040. <method name="init"
  26041. abstract="false" native="false" synchronized="false"
  26042. static="false" final="false" visibility="public"
  26043. deprecated="not deprecated">
  26044. <param name="protocol" type="java.lang.Class"/>
  26045. <doc>
  26046. <![CDATA[Initialize the registry with all the methods in a protocol
  26047. so they all show up in the first snapshot.
  26048. Convenient for JMX implementations.
  26049. @param protocol the protocol class]]>
  26050. </doc>
  26051. </method>
  26052. <method name="add"
  26053. abstract="false" native="false" synchronized="false"
  26054. static="false" final="false" visibility="public"
  26055. deprecated="not deprecated">
  26056. <param name="name" type="java.lang.String"/>
  26057. <param name="elapsed" type="long"/>
  26058. <doc>
  26059. <![CDATA[Add a rate sample for a rate metric
  26060. @param name of the rate metric
  26061. @param elapsed time]]>
  26062. </doc>
  26063. </method>
  26064. <method name="snapshot"
  26065. abstract="false" native="false" synchronized="false"
  26066. static="false" final="false" visibility="public"
  26067. deprecated="not deprecated">
  26068. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26069. <param name="all" type="boolean"/>
  26070. </method>
  26071. <doc>
  26072. <![CDATA[Helper class to manage a group of mutable rate metrics
  26073. This class synchronizes all accesses to the metrics it
  26074. contains, so it should not be used in situations where
  26075. there is high contention on the metrics.
  26076. {@link MutableRatesWithAggregation} is preferable in that
  26077. situation.]]>
  26078. </doc>
  26079. </class>
  26080. <!-- end class org.apache.hadoop.metrics2.lib.MutableRates -->
  26081. <!-- start class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  26082. <class name="MutableRatesWithAggregation" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26083. abstract="false"
  26084. static="false" final="false" visibility="public"
  26085. deprecated="not deprecated">
  26086. <constructor name="MutableRatesWithAggregation"
  26087. static="false" final="false" visibility="public"
  26088. deprecated="not deprecated">
  26089. </constructor>
  26090. <method name="init"
  26091. abstract="false" native="false" synchronized="false"
  26092. static="false" final="false" visibility="public"
  26093. deprecated="not deprecated">
  26094. <param name="protocol" type="java.lang.Class"/>
  26095. <doc>
  26096. <![CDATA[Initialize the registry with all the methods in a protocol
  26097. so they all show up in the first snapshot.
  26098. Convenient for JMX implementations.
  26099. @param protocol the protocol class]]>
  26100. </doc>
  26101. </method>
  26102. <method name="add"
  26103. abstract="false" native="false" synchronized="false"
  26104. static="false" final="false" visibility="public"
  26105. deprecated="not deprecated">
  26106. <param name="name" type="java.lang.String"/>
  26107. <param name="elapsed" type="long"/>
  26108. <doc>
  26109. <![CDATA[Add a rate sample for a rate metric.
  26110. @param name of the rate metric
  26111. @param elapsed time]]>
  26112. </doc>
  26113. </method>
  26114. <method name="snapshot"
  26115. abstract="false" native="false" synchronized="true"
  26116. static="false" final="false" visibility="public"
  26117. deprecated="not deprecated">
  26118. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26119. <param name="all" type="boolean"/>
  26120. </method>
  26121. <doc>
  26122. <![CDATA[Helper class to manage a group of mutable rate metrics.
  26123. Each thread will maintain a local rate count, and upon snapshot,
  26124. these values will be aggregated into a global rate. This class
  26125. should only be used for long running threads, as any metrics
  26126. produced between the last snapshot and the death of a thread
  26127. will be lost. This allows for significantly higher concurrency
  26128. than {@link MutableRates}. See HADOOP-24420.]]>
  26129. </doc>
  26130. </class>
  26131. <!-- end class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  26132. <!-- start class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  26133. <class name="MutableRollingAverages" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26134. abstract="false"
  26135. static="false" final="false" visibility="public"
  26136. deprecated="not deprecated">
  26137. <implements name="java.io.Closeable"/>
  26138. <constructor name="MutableRollingAverages" type="java.lang.String"
  26139. static="false" final="false" visibility="public"
  26140. deprecated="not deprecated">
  26141. <doc>
  26142. <![CDATA[Constructor for {@link MutableRollingAverages}.
  26143. @param metricValueName]]>
  26144. </doc>
  26145. </constructor>
  26146. <method name="snapshot"
  26147. abstract="false" native="false" synchronized="false"
  26148. static="false" final="false" visibility="public"
  26149. deprecated="not deprecated">
  26150. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26151. <param name="all" type="boolean"/>
  26152. </method>
  26153. <method name="collectThreadLocalStates"
  26154. abstract="false" native="false" synchronized="false"
  26155. static="false" final="false" visibility="public"
  26156. deprecated="not deprecated">
  26157. <doc>
  26158. <![CDATA[Collects states maintained in {@link ThreadLocal}, if any.]]>
  26159. </doc>
  26160. </method>
  26161. <method name="add"
  26162. abstract="false" native="false" synchronized="false"
  26163. static="false" final="false" visibility="public"
  26164. deprecated="not deprecated">
  26165. <param name="name" type="java.lang.String"/>
  26166. <param name="value" type="long"/>
  26167. <doc>
  26168. <![CDATA[@param name
  26169. name of metric
  26170. @param value
  26171. value of metric]]>
  26172. </doc>
  26173. </method>
  26174. <method name="close"
  26175. abstract="false" native="false" synchronized="false"
  26176. static="false" final="false" visibility="public"
  26177. deprecated="not deprecated">
  26178. <exception name="IOException" type="java.io.IOException"/>
  26179. </method>
  26180. <method name="getStats" return="java.util.Map"
  26181. abstract="false" native="false" synchronized="true"
  26182. static="false" final="false" visibility="public"
  26183. deprecated="not deprecated">
  26184. <param name="minSamples" type="long"/>
  26185. <doc>
  26186. <![CDATA[Retrieve a map of metric name -> (aggregate).
  26187. Filter out entries that don't have at least minSamples.
  26188. @return a map of peer DataNode Id to the average latency to that
  26189. node seen over the measurement period.]]>
  26190. </doc>
  26191. </method>
  26192. <method name="setRecordValidityMs"
  26193. abstract="false" native="false" synchronized="true"
  26194. static="false" final="false" visibility="public"
  26195. deprecated="not deprecated">
  26196. <param name="value" type="long"/>
  26197. <doc>
  26198. <![CDATA[Use for test only.]]>
  26199. </doc>
  26200. </method>
  26201. <doc>
  26202. <![CDATA[<p>
  26203. This class maintains a group of rolling average metrics. It implements the
  26204. algorithm of rolling average, i.e. a number of sliding windows are kept to
  26205. roll over and evict old subsets of samples. Each window has a subset of
  26206. samples in a stream, where sub-sum and sub-total are collected. All sub-sums
  26207. and sub-totals in all windows will be aggregated to final-sum and final-total
  26208. used to compute final average, which is called rolling average.
  26209. </p>]]>
  26210. </doc>
  26211. </class>
  26212. <!-- end class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  26213. <!-- start class org.apache.hadoop.metrics2.lib.MutableStat -->
  26214. <class name="MutableStat" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26215. abstract="false"
  26216. static="false" final="false" visibility="public"
  26217. deprecated="not deprecated">
  26218. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  26219. static="false" final="false" visibility="public"
  26220. deprecated="not deprecated">
  26221. <doc>
  26222. <![CDATA[Construct a sample statistics metric
  26223. @param name of the metric
  26224. @param description of the metric
  26225. @param sampleName of the metric (e.g. "Ops")
  26226. @param valueName of the metric (e.g. "Time", "Latency")
  26227. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  26228. </doc>
  26229. </constructor>
  26230. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  26231. static="false" final="false" visibility="public"
  26232. deprecated="not deprecated">
  26233. <doc>
  26234. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  26235. @param name of the metric
  26236. @param description of the metric
  26237. @param sampleName of the metric (e.g. "Ops")
  26238. @param valueName of the metric (e.g. "Time", "Latency")]]>
  26239. </doc>
  26240. </constructor>
  26241. <method name="setExtended"
  26242. abstract="false" native="false" synchronized="true"
  26243. static="false" final="false" visibility="public"
  26244. deprecated="not deprecated">
  26245. <param name="extended" type="boolean"/>
  26246. <doc>
  26247. <![CDATA[Set whether to display the extended stats (stdev, min/max etc.) or not
  26248. @param extended enable/disable displaying extended stats]]>
  26249. </doc>
  26250. </method>
  26251. <method name="setUpdateTimeStamp"
  26252. abstract="false" native="false" synchronized="true"
  26253. static="false" final="false" visibility="public"
  26254. deprecated="not deprecated">
  26255. <param name="updateTimeStamp" type="boolean"/>
  26256. <doc>
  26257. <![CDATA[Set whether to update the snapshot time or not.
  26258. @param updateTimeStamp enable update stats snapshot timestamp]]>
  26259. </doc>
  26260. </method>
  26261. <method name="add"
  26262. abstract="false" native="false" synchronized="true"
  26263. static="false" final="false" visibility="public"
  26264. deprecated="not deprecated">
  26265. <param name="numSamples" type="long"/>
  26266. <param name="sum" type="long"/>
  26267. <doc>
  26268. <![CDATA[Add a number of samples and their sum to the running stat
  26269. Note that although use of this method will preserve accurate mean values,
  26270. large values for numSamples may result in inaccurate variance values due
  26271. to the use of a single step of the Welford method for variance calculation.
  26272. @param numSamples number of samples
  26273. @param sum of the samples]]>
  26274. </doc>
  26275. </method>
  26276. <method name="add"
  26277. abstract="false" native="false" synchronized="true"
  26278. static="false" final="false" visibility="public"
  26279. deprecated="not deprecated">
  26280. <param name="value" type="long"/>
  26281. <doc>
  26282. <![CDATA[Add a snapshot to the metric.
  26283. @param value of the metric]]>
  26284. </doc>
  26285. </method>
  26286. <method name="snapshot"
  26287. abstract="false" native="false" synchronized="true"
  26288. static="false" final="false" visibility="public"
  26289. deprecated="not deprecated">
  26290. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26291. <param name="all" type="boolean"/>
  26292. </method>
  26293. <method name="lastStat" return="org.apache.hadoop.metrics2.util.SampleStat"
  26294. abstract="false" native="false" synchronized="false"
  26295. static="false" final="false" visibility="public"
  26296. deprecated="not deprecated">
  26297. <doc>
  26298. <![CDATA[Return a SampleStat object that supports
  26299. calls like StdDev and Mean.
  26300. @return SampleStat]]>
  26301. </doc>
  26302. </method>
  26303. <method name="resetMinMax"
  26304. abstract="false" native="false" synchronized="false"
  26305. static="false" final="false" visibility="public"
  26306. deprecated="not deprecated">
  26307. <doc>
  26308. <![CDATA[Reset the all time min max of the metric]]>
  26309. </doc>
  26310. </method>
  26311. <method name="getSnapshotTimeStamp" return="long"
  26312. abstract="false" native="false" synchronized="false"
  26313. static="false" final="false" visibility="public"
  26314. deprecated="not deprecated">
  26315. <doc>
  26316. <![CDATA[Return the SampleStat snapshot timestamp]]>
  26317. </doc>
  26318. </method>
  26319. <method name="toString" return="java.lang.String"
  26320. abstract="false" native="false" synchronized="false"
  26321. static="false" final="false" visibility="public"
  26322. deprecated="not deprecated">
  26323. </method>
  26324. <doc>
  26325. <![CDATA[A mutable metric with stats.
  26326. Useful for keeping throughput/latency stats.]]>
  26327. </doc>
  26328. </class>
  26329. <!-- end class org.apache.hadoop.metrics2.lib.MutableStat -->
  26330. </package>
  26331. <package name="org.apache.hadoop.metrics2.sink">
  26332. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  26333. <class name="FileSink" extends="java.lang.Object"
  26334. abstract="false"
  26335. static="false" final="false" visibility="public"
  26336. deprecated="not deprecated">
  26337. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26338. <implements name="java.io.Closeable"/>
  26339. <constructor name="FileSink"
  26340. static="false" final="false" visibility="public"
  26341. deprecated="not deprecated">
  26342. </constructor>
  26343. <method name="init"
  26344. abstract="false" native="false" synchronized="false"
  26345. static="false" final="false" visibility="public"
  26346. deprecated="not deprecated">
  26347. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  26348. </method>
  26349. <method name="putMetrics"
  26350. abstract="false" native="false" synchronized="false"
  26351. static="false" final="false" visibility="public"
  26352. deprecated="not deprecated">
  26353. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26354. </method>
  26355. <method name="flush"
  26356. abstract="false" native="false" synchronized="false"
  26357. static="false" final="false" visibility="public"
  26358. deprecated="not deprecated">
  26359. </method>
  26360. <method name="close"
  26361. abstract="false" native="false" synchronized="false"
  26362. static="false" final="false" visibility="public"
  26363. deprecated="not deprecated">
  26364. <exception name="IOException" type="java.io.IOException"/>
  26365. </method>
  26366. <doc>
  26367. <![CDATA[A metrics sink that writes to a file]]>
  26368. </doc>
  26369. </class>
  26370. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  26371. <!-- start class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  26372. <class name="GraphiteSink" extends="java.lang.Object"
  26373. abstract="false"
  26374. static="false" final="false" visibility="public"
  26375. deprecated="not deprecated">
  26376. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26377. <implements name="java.io.Closeable"/>
  26378. <constructor name="GraphiteSink"
  26379. static="false" final="false" visibility="public"
  26380. deprecated="not deprecated">
  26381. </constructor>
  26382. <method name="init"
  26383. abstract="false" native="false" synchronized="false"
  26384. static="false" final="false" visibility="public"
  26385. deprecated="not deprecated">
  26386. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  26387. </method>
  26388. <method name="putMetrics"
  26389. abstract="false" native="false" synchronized="false"
  26390. static="false" final="false" visibility="public"
  26391. deprecated="not deprecated">
  26392. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26393. </method>
  26394. <method name="flush"
  26395. abstract="false" native="false" synchronized="false"
  26396. static="false" final="false" visibility="public"
  26397. deprecated="not deprecated">
  26398. </method>
  26399. <method name="close"
  26400. abstract="false" native="false" synchronized="false"
  26401. static="false" final="false" visibility="public"
  26402. deprecated="not deprecated">
  26403. <exception name="IOException" type="java.io.IOException"/>
  26404. </method>
  26405. <doc>
  26406. <![CDATA[A metrics sink that writes to a Graphite server]]>
  26407. </doc>
  26408. </class>
  26409. <!-- end class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  26410. <!-- start class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  26411. <class name="RollingFileSystemSink" extends="java.lang.Object"
  26412. abstract="false"
  26413. static="false" final="false" visibility="public"
  26414. deprecated="not deprecated">
  26415. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26416. <implements name="java.io.Closeable"/>
  26417. <constructor name="RollingFileSystemSink"
  26418. static="false" final="false" visibility="public"
  26419. deprecated="not deprecated">
  26420. <doc>
  26421. <![CDATA[Create an empty instance. Required for reflection.]]>
  26422. </doc>
  26423. </constructor>
  26424. <constructor name="RollingFileSystemSink" type="long, long"
  26425. static="false" final="false" visibility="protected"
  26426. deprecated="not deprecated">
  26427. <doc>
  26428. <![CDATA[Create an instance for testing.
  26429. @param flushIntervalMillis the roll interval in millis
  26430. @param flushOffsetIntervalMillis the roll offset interval in millis]]>
  26431. </doc>
  26432. </constructor>
  26433. <method name="init"
  26434. abstract="false" native="false" synchronized="false"
  26435. static="false" final="false" visibility="public"
  26436. deprecated="not deprecated">
  26437. <param name="metrics2Properties" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  26438. </method>
  26439. <method name="getRollInterval" return="long"
  26440. abstract="false" native="false" synchronized="false"
  26441. static="false" final="false" visibility="protected"
  26442. deprecated="not deprecated">
  26443. <doc>
  26444. <![CDATA[Extract the roll interval from the configuration and return it in
  26445. milliseconds.
  26446. @return the roll interval in millis]]>
  26447. </doc>
  26448. </method>
  26449. <method name="updateFlushTime"
  26450. abstract="false" native="false" synchronized="false"
  26451. static="false" final="false" visibility="protected"
  26452. deprecated="not deprecated">
  26453. <param name="now" type="java.util.Date"/>
  26454. <doc>
  26455. <![CDATA[Update the {@link #nextFlush} variable to the next flush time. Add
  26456. an integer number of flush intervals, preserving the initial random offset.
  26457. @param now the current time]]>
  26458. </doc>
  26459. </method>
  26460. <method name="setInitialFlushTime"
  26461. abstract="false" native="false" synchronized="false"
  26462. static="false" final="false" visibility="protected"
  26463. deprecated="not deprecated">
  26464. <param name="now" type="java.util.Date"/>
  26465. <doc>
  26466. <![CDATA[Set the {@link #nextFlush} variable to the initial flush time. The initial
  26467. flush will be an integer number of flush intervals past the beginning of
  26468. the current hour and will have a random offset added, up to
  26469. {@link #rollOffsetIntervalMillis}. The initial flush will be a time in
  26470. past that can be used from which to calculate future flush times.
  26471. @param now the current time]]>
  26472. </doc>
  26473. </method>
  26474. <method name="putMetrics"
  26475. abstract="false" native="false" synchronized="false"
  26476. static="false" final="false" visibility="public"
  26477. deprecated="not deprecated">
  26478. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26479. </method>
  26480. <method name="flush"
  26481. abstract="false" native="false" synchronized="false"
  26482. static="false" final="false" visibility="public"
  26483. deprecated="not deprecated">
  26484. </method>
  26485. <method name="close"
  26486. abstract="false" native="false" synchronized="false"
  26487. static="false" final="false" visibility="public"
  26488. deprecated="not deprecated">
  26489. </method>
  26490. <field name="source" type="java.lang.String"
  26491. transient="false" volatile="false"
  26492. static="false" final="false" visibility="protected"
  26493. deprecated="not deprecated">
  26494. </field>
  26495. <field name="ignoreError" type="boolean"
  26496. transient="false" volatile="false"
  26497. static="false" final="false" visibility="protected"
  26498. deprecated="not deprecated">
  26499. </field>
  26500. <field name="allowAppend" type="boolean"
  26501. transient="false" volatile="false"
  26502. static="false" final="false" visibility="protected"
  26503. deprecated="not deprecated">
  26504. </field>
  26505. <field name="basePath" type="org.apache.hadoop.fs.Path"
  26506. transient="false" volatile="false"
  26507. static="false" final="false" visibility="protected"
  26508. deprecated="not deprecated">
  26509. </field>
  26510. <field name="rollIntervalMillis" type="long"
  26511. transient="false" volatile="false"
  26512. static="false" final="false" visibility="protected"
  26513. deprecated="not deprecated">
  26514. </field>
  26515. <field name="rollOffsetIntervalMillis" type="long"
  26516. transient="false" volatile="false"
  26517. static="false" final="false" visibility="protected"
  26518. deprecated="not deprecated">
  26519. </field>
  26520. <field name="nextFlush" type="java.util.Calendar"
  26521. transient="false" volatile="false"
  26522. static="false" final="false" visibility="protected"
  26523. deprecated="not deprecated">
  26524. </field>
  26525. <field name="forceFlush" type="boolean"
  26526. transient="false" volatile="false"
  26527. static="true" final="false" visibility="protected"
  26528. deprecated="not deprecated">
  26529. </field>
  26530. <field name="hasFlushed" type="boolean"
  26531. transient="false" volatile="true"
  26532. static="true" final="false" visibility="protected"
  26533. deprecated="not deprecated">
  26534. </field>
  26535. <field name="suppliedConf" type="org.apache.hadoop.conf.Configuration"
  26536. transient="false" volatile="false"
  26537. static="true" final="false" visibility="protected"
  26538. deprecated="not deprecated">
  26539. </field>
  26540. <field name="suppliedFilesystem" type="org.apache.hadoop.fs.FileSystem"
  26541. transient="false" volatile="false"
  26542. static="true" final="false" visibility="protected"
  26543. deprecated="not deprecated">
  26544. </field>
  26545. <doc>
  26546. <![CDATA[<p>This class is a metrics sink that uses
  26547. {@link org.apache.hadoop.fs.FileSystem} to write the metrics logs. Every
  26548. roll interval a new directory will be created under the path specified by the
  26549. <code>basepath</code> property. All metrics will be logged to a file in the
  26550. current interval's directory in a file named &lt;hostname&gt;.log, where
  26551. &lt;hostname&gt; is the name of the host on which the metrics logging
  26552. process is running. The base path is set by the
  26553. <code>&lt;prefix&gt;.sink.&lt;instance&gt;.basepath</code> property. The
  26554. time zone used to create the current interval's directory name is GMT. If
  26555. the <code>basepath</code> property isn't specified, it will default to
  26556. &quot;/tmp&quot;, which is the temp directory on whatever default file
  26557. system is configured for the cluster.</p>
  26558. <p>The <code>&lt;prefix&gt;.sink.&lt;instance&gt;.ignore-error</code>
  26559. property controls whether an exception is thrown when an error is encountered
  26560. writing a log file. The default value is <code>true</code>. When set to
  26561. <code>false</code>, file errors are quietly swallowed.</p>
  26562. <p>The <code>roll-interval</code> property sets the amount of time before
  26563. rolling the directory. The default value is 1 hour. The roll interval may
  26564. not be less than 1 minute. The property's value should be given as
  26565. <i>number unit</i>, where <i>number</i> is an integer value, and
  26566. <i>unit</i> is a valid unit. Valid units are <i>minute</i>, <i>hour</i>,
  26567. and <i>day</i>. The units are case insensitive and may be abbreviated or
  26568. plural. If no units are specified, hours are assumed. For example,
  26569. &quot;2&quot;, &quot;2h&quot;, &quot;2 hour&quot;, and
  26570. &quot;2 hours&quot; are all valid ways to specify two hours.</p>
  26571. <p>The <code>roll-offset-interval-millis</code> property sets the upper
  26572. bound on a random time interval (in milliseconds) that is used to delay
  26573. before the initial roll. All subsequent rolls will happen an integer
  26574. number of roll intervals after the initial roll, hence retaining the original
  26575. offset. The purpose of this property is to insert some variance in the roll
  26576. times so that large clusters using this sink on every node don't cause a
  26577. performance impact on HDFS by rolling simultaneously. The default value is
  26578. 30000 (30s). When writing to HDFS, as a rule of thumb, the roll offset in
  26579. millis should be no less than the number of sink instances times 5.
  26580. <p>The primary use of this class is for logging to HDFS. As it uses
  26581. {@link org.apache.hadoop.fs.FileSystem} to access the target file system,
  26582. however, it can be used to write to the local file system, Amazon S3, or any
  26583. other supported file system. The base path for the sink will determine the
  26584. file system used. An unqualified path will write to the default file system
  26585. set by the configuration.</p>
  26586. <p>Not all file systems support the ability to append to files. In file
  26587. systems without the ability to append to files, only one writer can write to
  26588. a file at a time. To allow for concurrent writes from multiple daemons on a
  26589. single host, the <code>source</code> property is used to set unique headers
  26590. for the log files. The property should be set to the name of
  26591. the source daemon, e.g. <i>namenode</i>. The value of the
  26592. <code>source</code> property should typically be the same as the property's
  26593. prefix. If this property is not set, the source is taken to be
  26594. <i>unknown</i>.</p>
  26595. <p>Instead of appending to an existing file, by default the sink
  26596. will create a new file with a suffix of &quot;.&lt;n&gt;&quet;, where
  26597. <i>n</i> is the next lowest integer that isn't already used in a file name,
  26598. similar to the Hadoop daemon logs. NOTE: the file with the <b>highest</b>
  26599. sequence number is the <b>newest</b> file, unlike the Hadoop daemon logs.</p>
  26600. <p>For file systems that allow append, the sink supports appending to the
  26601. existing file instead. If the <code>allow-append</code> property is set to
  26602. true, the sink will instead append to the existing file on file systems that
  26603. support appends. By default, the <code>allow-append</code> property is
  26604. false.</p>
  26605. <p>Note that when writing to HDFS with <code>allow-append</code> set to true,
  26606. there is a minimum acceptable number of data nodes. If the number of data
  26607. nodes drops below that minimum, the append will succeed, but reading the
  26608. data will fail with an IOException in the DataStreamer class. The minimum
  26609. number of data nodes required for a successful append is generally 2 or
  26610. 3.</p>
  26611. <p>Note also that when writing to HDFS, the file size information is not
  26612. updated until the file is closed (at the end of the interval) even though
  26613. the data is being written successfully. This is a known HDFS limitation that
  26614. exists because of the performance cost of updating the metadata. See
  26615. <a href="https://issues.apache.org/jira/browse/HDFS-5478">HDFS-5478</a>.</p>
  26616. <p>When using this sink in a secure (Kerberos) environment, two additional
  26617. properties must be set: <code>keytab-key</code> and
  26618. <code>principal-key</code>. <code>keytab-key</code> should contain the key by
  26619. which the keytab file can be found in the configuration, for example,
  26620. <code>yarn.nodemanager.keytab</code>. <code>principal-key</code> should
  26621. contain the key by which the principal can be found in the configuration,
  26622. for example, <code>yarn.nodemanager.principal</code>.]]>
  26623. </doc>
  26624. </class>
  26625. <!-- end class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  26626. <!-- start class org.apache.hadoop.metrics2.sink.StatsDSink -->
  26627. <class name="StatsDSink" extends="java.lang.Object"
  26628. abstract="false"
  26629. static="false" final="false" visibility="public"
  26630. deprecated="not deprecated">
  26631. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26632. <implements name="java.io.Closeable"/>
  26633. <constructor name="StatsDSink"
  26634. static="false" final="false" visibility="public"
  26635. deprecated="not deprecated">
  26636. </constructor>
  26637. <method name="init"
  26638. abstract="false" native="false" synchronized="false"
  26639. static="false" final="false" visibility="public"
  26640. deprecated="not deprecated">
  26641. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  26642. </method>
  26643. <method name="putMetrics"
  26644. abstract="false" native="false" synchronized="false"
  26645. static="false" final="false" visibility="public"
  26646. deprecated="not deprecated">
  26647. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26648. </method>
  26649. <method name="writeMetric"
  26650. abstract="false" native="false" synchronized="false"
  26651. static="false" final="false" visibility="public"
  26652. deprecated="not deprecated">
  26653. <param name="line" type="java.lang.String"/>
  26654. </method>
  26655. <method name="flush"
  26656. abstract="false" native="false" synchronized="false"
  26657. static="false" final="false" visibility="public"
  26658. deprecated="not deprecated">
  26659. </method>
  26660. <method name="close"
  26661. abstract="false" native="false" synchronized="false"
  26662. static="false" final="false" visibility="public"
  26663. deprecated="not deprecated">
  26664. <exception name="IOException" type="java.io.IOException"/>
  26665. </method>
  26666. <doc>
  26667. <![CDATA[A metrics sink that writes metrics to a StatsD daemon.
  26668. This sink will produce metrics of the form
  26669. '[hostname].servicename.context.name.metricname:value|type'
  26670. where hostname is optional. This is useful when sending to
  26671. a daemon that is running on the localhost and will add the
  26672. hostname to the metric (such as the
  26673. <a href="https://collectd.org/">CollectD</a> StatsD plugin).
  26674. <br/>
  26675. To configure this plugin, you will need to add the following
  26676. entries to your hadoop-metrics2.properties file:
  26677. <br/>
  26678. <pre>
  26679. *.sink.statsd.class=org.apache.hadoop.metrics2.sink.StatsDSink
  26680. [prefix].sink.statsd.server.host=
  26681. [prefix].sink.statsd.server.port=
  26682. [prefix].sink.statsd.skip.hostname=true|false (optional)
  26683. [prefix].sink.statsd.service.name=NameNode (name you want for service)
  26684. </pre>]]>
  26685. </doc>
  26686. </class>
  26687. <!-- end class org.apache.hadoop.metrics2.sink.StatsDSink -->
  26688. </package>
  26689. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  26690. </package>
  26691. <package name="org.apache.hadoop.metrics2.source">
  26692. </package>
  26693. <package name="org.apache.hadoop.metrics2.util">
  26694. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  26695. <class name="MBeans" extends="java.lang.Object"
  26696. abstract="false"
  26697. static="false" final="true" visibility="public"
  26698. deprecated="not deprecated">
  26699. <method name="register" return="javax.management.ObjectName"
  26700. abstract="false" native="false" synchronized="false"
  26701. static="true" final="false" visibility="public"
  26702. deprecated="not deprecated">
  26703. <param name="serviceName" type="java.lang.String"/>
  26704. <param name="nameName" type="java.lang.String"/>
  26705. <param name="theMbean" type="java.lang.Object"/>
  26706. <doc>
  26707. <![CDATA[Register the MBean using our standard MBeanName format
  26708. "hadoop:service=<serviceName>,name=<nameName>"
  26709. Where the <serviceName> and <nameName> are the supplied parameters.
  26710. @param serviceName
  26711. @param nameName
  26712. @param theMbean - the MBean to register
  26713. @return the named used to register the MBean]]>
  26714. </doc>
  26715. </method>
  26716. <method name="register" return="javax.management.ObjectName"
  26717. abstract="false" native="false" synchronized="false"
  26718. static="true" final="false" visibility="public"
  26719. deprecated="not deprecated">
  26720. <param name="serviceName" type="java.lang.String"/>
  26721. <param name="nameName" type="java.lang.String"/>
  26722. <param name="properties" type="java.util.Map"/>
  26723. <param name="theMbean" type="java.lang.Object"/>
  26724. <doc>
  26725. <![CDATA[Register the MBean using our standard MBeanName format
  26726. "hadoop:service=<serviceName>,name=<nameName>"
  26727. Where the <serviceName> and <nameName> are the supplied parameters.
  26728. @param serviceName
  26729. @param nameName
  26730. @param properties - Key value pairs to define additional JMX ObjectName
  26731. properties.
  26732. @param theMbean - the MBean to register
  26733. @return the named used to register the MBean]]>
  26734. </doc>
  26735. </method>
  26736. <method name="getMbeanNameService" return="java.lang.String"
  26737. abstract="false" native="false" synchronized="false"
  26738. static="true" final="false" visibility="public"
  26739. deprecated="not deprecated">
  26740. <param name="objectName" type="javax.management.ObjectName"/>
  26741. </method>
  26742. <method name="getMbeanNameName" return="java.lang.String"
  26743. abstract="false" native="false" synchronized="false"
  26744. static="true" final="false" visibility="public"
  26745. deprecated="not deprecated">
  26746. <param name="objectName" type="javax.management.ObjectName"/>
  26747. </method>
  26748. <method name="unregister"
  26749. abstract="false" native="false" synchronized="false"
  26750. static="true" final="false" visibility="public"
  26751. deprecated="not deprecated">
  26752. <param name="mbeanName" type="javax.management.ObjectName"/>
  26753. </method>
  26754. <doc>
  26755. <![CDATA[This util class provides a method to register an MBean using
  26756. our standard naming convention as described in the doc
  26757. for {link {@link #register(String, String, Object)}.]]>
  26758. </doc>
  26759. </class>
  26760. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  26761. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  26762. <class name="MetricsCache" extends="java.lang.Object"
  26763. abstract="false"
  26764. static="false" final="false" visibility="public"
  26765. deprecated="not deprecated">
  26766. <constructor name="MetricsCache"
  26767. static="false" final="false" visibility="public"
  26768. deprecated="not deprecated">
  26769. </constructor>
  26770. <constructor name="MetricsCache" type="int"
  26771. static="false" final="false" visibility="public"
  26772. deprecated="not deprecated">
  26773. <doc>
  26774. <![CDATA[Construct a metrics cache
  26775. @param maxRecsPerName limit of the number records per record name]]>
  26776. </doc>
  26777. </constructor>
  26778. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  26779. abstract="false" native="false" synchronized="false"
  26780. static="false" final="false" visibility="public"
  26781. deprecated="not deprecated">
  26782. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26783. <param name="includingTags" type="boolean"/>
  26784. <doc>
  26785. <![CDATA[Update the cache and return the current cached record
  26786. @param mr the update record
  26787. @param includingTags cache tag values (for later lookup by name) if true
  26788. @return the updated cache record]]>
  26789. </doc>
  26790. </method>
  26791. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  26792. abstract="false" native="false" synchronized="false"
  26793. static="false" final="false" visibility="public"
  26794. deprecated="not deprecated">
  26795. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26796. <doc>
  26797. <![CDATA[Update the cache and return the current cache record
  26798. @param mr the update record
  26799. @return the updated cache record]]>
  26800. </doc>
  26801. </method>
  26802. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  26803. abstract="false" native="false" synchronized="false"
  26804. static="false" final="false" visibility="public"
  26805. deprecated="not deprecated">
  26806. <param name="name" type="java.lang.String"/>
  26807. <param name="tags" type="java.util.Collection"/>
  26808. <doc>
  26809. <![CDATA[Get the cached record
  26810. @param name of the record
  26811. @param tags of the record
  26812. @return the cached record or null]]>
  26813. </doc>
  26814. </method>
  26815. <doc>
  26816. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  26817. </doc>
  26818. </class>
  26819. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  26820. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  26821. <class name="Servers" extends="java.lang.Object"
  26822. abstract="false"
  26823. static="false" final="false" visibility="public"
  26824. deprecated="not deprecated">
  26825. <method name="parse" return="java.util.List"
  26826. abstract="false" native="false" synchronized="false"
  26827. static="true" final="false" visibility="public"
  26828. deprecated="not deprecated">
  26829. <param name="specs" type="java.lang.String"/>
  26830. <param name="defaultPort" type="int"/>
  26831. <doc>
  26832. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  26833. of the form <i>hostname</i> or <i>hostname:port</i>. If
  26834. the specs string is null, defaults to localhost:defaultPort.
  26835. @param specs server specs (see description)
  26836. @param defaultPort the default port if not specified
  26837. @return a list of InetSocketAddress objects.]]>
  26838. </doc>
  26839. </method>
  26840. <doc>
  26841. <![CDATA[Helpers to handle server addresses]]>
  26842. </doc>
  26843. </class>
  26844. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  26845. </package>
  26846. <package name="org.apache.hadoop.net">
  26847. <!-- start class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  26848. <class name="AbstractDNSToSwitchMapping" extends="java.lang.Object"
  26849. abstract="true"
  26850. static="false" final="false" visibility="public"
  26851. deprecated="not deprecated">
  26852. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  26853. <implements name="org.apache.hadoop.conf.Configurable"/>
  26854. <constructor name="AbstractDNSToSwitchMapping"
  26855. static="false" final="false" visibility="protected"
  26856. deprecated="not deprecated">
  26857. <doc>
  26858. <![CDATA[Create an unconfigured instance]]>
  26859. </doc>
  26860. </constructor>
  26861. <constructor name="AbstractDNSToSwitchMapping" type="org.apache.hadoop.conf.Configuration"
  26862. static="false" final="false" visibility="protected"
  26863. deprecated="not deprecated">
  26864. <doc>
  26865. <![CDATA[Create an instance, caching the configuration file.
  26866. This constructor does not call {@link #setConf(Configuration)}; if
  26867. a subclass extracts information in that method, it must call it explicitly.
  26868. @param conf the configuration]]>
  26869. </doc>
  26870. </constructor>
  26871. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26872. abstract="false" native="false" synchronized="false"
  26873. static="false" final="false" visibility="public"
  26874. deprecated="not deprecated">
  26875. </method>
  26876. <method name="setConf"
  26877. abstract="false" native="false" synchronized="false"
  26878. static="false" final="false" visibility="public"
  26879. deprecated="not deprecated">
  26880. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26881. </method>
  26882. <method name="isSingleSwitch" return="boolean"
  26883. abstract="false" native="false" synchronized="false"
  26884. static="false" final="false" visibility="public"
  26885. deprecated="not deprecated">
  26886. <doc>
  26887. <![CDATA[Predicate that indicates that the switch mapping is known to be
  26888. single-switch. The base class returns false: it assumes all mappings are
  26889. multi-rack. Subclasses may override this with methods that are more aware
  26890. of their topologies.
  26891. <p/>
  26892. This method is used when parts of Hadoop need know whether to apply
  26893. single rack vs multi-rack policies, such as during block placement.
  26894. Such algorithms behave differently if they are on multi-switch systems.
  26895. </p>
  26896. @return true if the mapping thinks that it is on a single switch]]>
  26897. </doc>
  26898. </method>
  26899. <method name="getSwitchMap" return="java.util.Map"
  26900. abstract="false" native="false" synchronized="false"
  26901. static="false" final="false" visibility="public"
  26902. deprecated="not deprecated">
  26903. <doc>
  26904. <![CDATA[Get a copy of the map (for diagnostics)
  26905. @return a clone of the map or null for none known]]>
  26906. </doc>
  26907. </method>
  26908. <method name="dumpTopology" return="java.lang.String"
  26909. abstract="false" native="false" synchronized="false"
  26910. static="false" final="false" visibility="public"
  26911. deprecated="not deprecated">
  26912. <doc>
  26913. <![CDATA[Generate a string listing the switch mapping implementation,
  26914. the mapping for every known node and the number of nodes and
  26915. unique switches known about -each entry to a separate line.
  26916. @return a string that can be presented to the ops team or used in
  26917. debug messages.]]>
  26918. </doc>
  26919. </method>
  26920. <method name="isSingleSwitchByScriptPolicy" return="boolean"
  26921. abstract="false" native="false" synchronized="false"
  26922. static="false" final="false" visibility="protected"
  26923. deprecated="not deprecated">
  26924. </method>
  26925. <method name="isMappingSingleSwitch" return="boolean"
  26926. abstract="false" native="false" synchronized="false"
  26927. static="true" final="false" visibility="public"
  26928. deprecated="not deprecated">
  26929. <param name="mapping" type="org.apache.hadoop.net.DNSToSwitchMapping"/>
  26930. <doc>
  26931. <![CDATA[Query for a {@link DNSToSwitchMapping} instance being on a single
  26932. switch.
  26933. <p/>
  26934. This predicate simply assumes that all mappings not derived from
  26935. this class are multi-switch.
  26936. @param mapping the mapping to query
  26937. @return true if the base class says it is single switch, or the mapping
  26938. is not derived from this class.]]>
  26939. </doc>
  26940. </method>
  26941. <doc>
  26942. <![CDATA[This is a base class for DNS to Switch mappings. <p/> It is not mandatory to
  26943. derive {@link DNSToSwitchMapping} implementations from it, but it is strongly
  26944. recommended, as it makes it easy for the Hadoop developers to add new methods
  26945. to this base class that are automatically picked up by all implementations.
  26946. <p/>
  26947. This class does not extend the <code>Configured</code>
  26948. base class, and should not be changed to do so, as it causes problems
  26949. for subclasses. The constructor of the <code>Configured</code> calls
  26950. the {@link #setConf(Configuration)} method, which will call into the
  26951. subclasses before they have been fully constructed.]]>
  26952. </doc>
  26953. </class>
  26954. <!-- end class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  26955. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  26956. <class name="CachedDNSToSwitchMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  26957. abstract="false"
  26958. static="false" final="false" visibility="public"
  26959. deprecated="not deprecated">
  26960. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  26961. static="false" final="false" visibility="public"
  26962. deprecated="not deprecated">
  26963. <doc>
  26964. <![CDATA[cache a raw DNS mapping
  26965. @param rawMapping the raw mapping to cache]]>
  26966. </doc>
  26967. </constructor>
  26968. <method name="resolve" return="java.util.List"
  26969. abstract="false" native="false" synchronized="false"
  26970. static="false" final="false" visibility="public"
  26971. deprecated="not deprecated">
  26972. <param name="names" type="java.util.List"/>
  26973. </method>
  26974. <method name="getSwitchMap" return="java.util.Map"
  26975. abstract="false" native="false" synchronized="false"
  26976. static="false" final="false" visibility="public"
  26977. deprecated="not deprecated">
  26978. <doc>
  26979. <![CDATA[Get the (host x switch) map.
  26980. @return a copy of the cached map of hosts to rack]]>
  26981. </doc>
  26982. </method>
  26983. <method name="toString" return="java.lang.String"
  26984. abstract="false" native="false" synchronized="false"
  26985. static="false" final="false" visibility="public"
  26986. deprecated="not deprecated">
  26987. </method>
  26988. <method name="isSingleSwitch" return="boolean"
  26989. abstract="false" native="false" synchronized="false"
  26990. static="false" final="false" visibility="public"
  26991. deprecated="not deprecated">
  26992. <doc>
  26993. <![CDATA[Delegate the switch topology query to the raw mapping, via
  26994. {@link AbstractDNSToSwitchMapping#isMappingSingleSwitch(DNSToSwitchMapping)}
  26995. @return true iff the raw mapper is considered single-switch.]]>
  26996. </doc>
  26997. </method>
  26998. <method name="reloadCachedMappings"
  26999. abstract="false" native="false" synchronized="false"
  27000. static="false" final="false" visibility="public"
  27001. deprecated="not deprecated">
  27002. </method>
  27003. <method name="reloadCachedMappings"
  27004. abstract="false" native="false" synchronized="false"
  27005. static="false" final="false" visibility="public"
  27006. deprecated="not deprecated">
  27007. <param name="names" type="java.util.List"/>
  27008. </method>
  27009. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  27010. transient="false" volatile="false"
  27011. static="false" final="true" visibility="protected"
  27012. deprecated="not deprecated">
  27013. <doc>
  27014. <![CDATA[The uncached mapping]]>
  27015. </doc>
  27016. </field>
  27017. <doc>
  27018. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  27019. raw DNSToSwitchMapping and stores the resolved network location in
  27020. a cache. The following calls to a resolved network location
  27021. will get its location from the cache.]]>
  27022. </doc>
  27023. </class>
  27024. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  27025. <!-- start class org.apache.hadoop.net.ConnectTimeoutException -->
  27026. <class name="ConnectTimeoutException" extends="java.net.SocketTimeoutException"
  27027. abstract="false"
  27028. static="false" final="false" visibility="public"
  27029. deprecated="not deprecated">
  27030. <constructor name="ConnectTimeoutException" type="java.lang.String"
  27031. static="false" final="false" visibility="public"
  27032. deprecated="not deprecated">
  27033. </constructor>
  27034. <doc>
  27035. <![CDATA[Thrown by {@link NetUtils#connect(java.net.Socket, java.net.SocketAddress, int)}
  27036. if it times out while connecting to the remote host.]]>
  27037. </doc>
  27038. </class>
  27039. <!-- end class org.apache.hadoop.net.ConnectTimeoutException -->
  27040. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  27041. <interface name="DNSToSwitchMapping" abstract="true"
  27042. static="false" final="false" visibility="public"
  27043. deprecated="not deprecated">
  27044. <method name="resolve" return="java.util.List"
  27045. abstract="true" native="false" synchronized="false"
  27046. static="false" final="false" visibility="public"
  27047. deprecated="not deprecated">
  27048. <param name="names" type="java.util.List"/>
  27049. <doc>
  27050. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  27051. switch information (network paths). One-to-one correspondence must be
  27052. maintained between the elements in the lists.
  27053. Consider an element in the argument list - x.y.com. The switch information
  27054. that is returned must be a network path of the form /foo/rack,
  27055. where / is the root, and 'foo' is the switch where 'rack' is connected.
  27056. Note the hostname/ip-address is not part of the returned path.
  27057. The network topology of the cluster would determine the number of
  27058. components in the network path.
  27059. <p/>
  27060. If a name cannot be resolved to a rack, the implementation
  27061. should return {@link NetworkTopology#DEFAULT_RACK}. This
  27062. is what the bundled implementations do, though it is not a formal requirement
  27063. @param names the list of hosts to resolve (can be empty)
  27064. @return list of resolved network paths.
  27065. If <i>names</i> is empty, the returned list is also empty]]>
  27066. </doc>
  27067. </method>
  27068. <method name="reloadCachedMappings"
  27069. abstract="true" native="false" synchronized="false"
  27070. static="false" final="false" visibility="public"
  27071. deprecated="not deprecated">
  27072. <doc>
  27073. <![CDATA[Reload all of the cached mappings.
  27074. If there is a cache, this method will clear it, so that future accesses
  27075. will get a chance to see the new data.]]>
  27076. </doc>
  27077. </method>
  27078. <method name="reloadCachedMappings"
  27079. abstract="true" native="false" synchronized="false"
  27080. static="false" final="false" visibility="public"
  27081. deprecated="not deprecated">
  27082. <param name="names" type="java.util.List"/>
  27083. <doc>
  27084. <![CDATA[Reload cached mappings on specific nodes.
  27085. If there is a cache on these nodes, this method will clear it, so that
  27086. future accesses will see updated data.]]>
  27087. </doc>
  27088. </method>
  27089. <doc>
  27090. <![CDATA[An interface that must be implemented to allow pluggable
  27091. DNS-name/IP-address to RackID resolvers.]]>
  27092. </doc>
  27093. </interface>
  27094. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  27095. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  27096. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  27097. abstract="false"
  27098. static="false" final="false" visibility="public"
  27099. deprecated="not deprecated">
  27100. <constructor name="ScriptBasedMapping"
  27101. static="false" final="false" visibility="public"
  27102. deprecated="not deprecated">
  27103. <doc>
  27104. <![CDATA[Create an instance with the default configuration.
  27105. </p>
  27106. Calling {@link #setConf(Configuration)} will trigger a
  27107. re-evaluation of the configuration settings and so be used to
  27108. set up the mapping script.]]>
  27109. </doc>
  27110. </constructor>
  27111. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  27112. static="false" final="false" visibility="public"
  27113. deprecated="not deprecated">
  27114. <doc>
  27115. <![CDATA[Create an instance from the given raw mapping
  27116. @param rawMap raw DNSTOSwithMapping]]>
  27117. </doc>
  27118. </constructor>
  27119. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  27120. static="false" final="false" visibility="public"
  27121. deprecated="not deprecated">
  27122. <doc>
  27123. <![CDATA[Create an instance from the given configuration
  27124. @param conf configuration]]>
  27125. </doc>
  27126. </constructor>
  27127. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27128. abstract="false" native="false" synchronized="false"
  27129. static="false" final="false" visibility="public"
  27130. deprecated="not deprecated">
  27131. </method>
  27132. <method name="toString" return="java.lang.String"
  27133. abstract="false" native="false" synchronized="false"
  27134. static="false" final="false" visibility="public"
  27135. deprecated="not deprecated">
  27136. </method>
  27137. <method name="setConf"
  27138. abstract="false" native="false" synchronized="false"
  27139. static="false" final="false" visibility="public"
  27140. deprecated="not deprecated">
  27141. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27142. <doc>
  27143. <![CDATA[{@inheritDoc}
  27144. <p/>
  27145. This will get called in the superclass constructor, so a check is needed
  27146. to ensure that the raw mapping is defined before trying to relaying a null
  27147. configuration.
  27148. @param conf]]>
  27149. </doc>
  27150. </method>
  27151. <field name="NO_SCRIPT" type="java.lang.String"
  27152. transient="false" volatile="false"
  27153. static="true" final="true" visibility="public"
  27154. deprecated="not deprecated">
  27155. <doc>
  27156. <![CDATA[Text used in the {@link #toString()} method if there is no string
  27157. {@value}]]>
  27158. </doc>
  27159. </field>
  27160. <doc>
  27161. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  27162. script configured via the
  27163. {@link CommonConfigurationKeys#NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY} option.
  27164. <p/>
  27165. It contains a static class <code>RawScriptBasedMapping</code> that performs
  27166. the work: reading the configuration parameters, executing any defined
  27167. script, handling errors and such like. The outer
  27168. class extends {@link CachedDNSToSwitchMapping} to cache the delegated
  27169. queries.
  27170. <p/>
  27171. This DNS mapper's {@link #isSingleSwitch()} predicate returns
  27172. true if and only if a script is defined.]]>
  27173. </doc>
  27174. </class>
  27175. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  27176. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  27177. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  27178. abstract="false"
  27179. static="false" final="false" visibility="public"
  27180. deprecated="not deprecated">
  27181. <implements name="org.apache.hadoop.conf.Configurable"/>
  27182. <constructor name="SocksSocketFactory"
  27183. static="false" final="false" visibility="public"
  27184. deprecated="not deprecated">
  27185. <doc>
  27186. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  27187. </doc>
  27188. </constructor>
  27189. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  27190. static="false" final="false" visibility="public"
  27191. deprecated="not deprecated">
  27192. <doc>
  27193. <![CDATA[Constructor with a supplied Proxy
  27194. @param proxy the proxy to use to create sockets]]>
  27195. </doc>
  27196. </constructor>
  27197. <method name="createSocket" return="java.net.Socket"
  27198. abstract="false" native="false" synchronized="false"
  27199. static="false" final="false" visibility="public"
  27200. deprecated="not deprecated">
  27201. <exception name="IOException" type="java.io.IOException"/>
  27202. </method>
  27203. <method name="createSocket" return="java.net.Socket"
  27204. abstract="false" native="false" synchronized="false"
  27205. static="false" final="false" visibility="public"
  27206. deprecated="not deprecated">
  27207. <param name="addr" type="java.net.InetAddress"/>
  27208. <param name="port" type="int"/>
  27209. <exception name="IOException" type="java.io.IOException"/>
  27210. </method>
  27211. <method name="createSocket" return="java.net.Socket"
  27212. abstract="false" native="false" synchronized="false"
  27213. static="false" final="false" visibility="public"
  27214. deprecated="not deprecated">
  27215. <param name="addr" type="java.net.InetAddress"/>
  27216. <param name="port" type="int"/>
  27217. <param name="localHostAddr" type="java.net.InetAddress"/>
  27218. <param name="localPort" type="int"/>
  27219. <exception name="IOException" type="java.io.IOException"/>
  27220. </method>
  27221. <method name="createSocket" return="java.net.Socket"
  27222. abstract="false" native="false" synchronized="false"
  27223. static="false" final="false" visibility="public"
  27224. deprecated="not deprecated">
  27225. <param name="host" type="java.lang.String"/>
  27226. <param name="port" type="int"/>
  27227. <exception name="IOException" type="java.io.IOException"/>
  27228. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27229. </method>
  27230. <method name="createSocket" return="java.net.Socket"
  27231. abstract="false" native="false" synchronized="false"
  27232. static="false" final="false" visibility="public"
  27233. deprecated="not deprecated">
  27234. <param name="host" type="java.lang.String"/>
  27235. <param name="port" type="int"/>
  27236. <param name="localHostAddr" type="java.net.InetAddress"/>
  27237. <param name="localPort" type="int"/>
  27238. <exception name="IOException" type="java.io.IOException"/>
  27239. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27240. </method>
  27241. <method name="hashCode" return="int"
  27242. abstract="false" native="false" synchronized="false"
  27243. static="false" final="false" visibility="public"
  27244. deprecated="not deprecated">
  27245. </method>
  27246. <method name="equals" return="boolean"
  27247. abstract="false" native="false" synchronized="false"
  27248. static="false" final="false" visibility="public"
  27249. deprecated="not deprecated">
  27250. <param name="obj" type="java.lang.Object"/>
  27251. </method>
  27252. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27253. abstract="false" native="false" synchronized="false"
  27254. static="false" final="false" visibility="public"
  27255. deprecated="not deprecated">
  27256. </method>
  27257. <method name="setConf"
  27258. abstract="false" native="false" synchronized="false"
  27259. static="false" final="false" visibility="public"
  27260. deprecated="not deprecated">
  27261. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27262. </method>
  27263. <doc>
  27264. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  27265. </doc>
  27266. </class>
  27267. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  27268. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  27269. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  27270. abstract="false"
  27271. static="false" final="false" visibility="public"
  27272. deprecated="not deprecated">
  27273. <constructor name="StandardSocketFactory"
  27274. static="false" final="false" visibility="public"
  27275. deprecated="not deprecated">
  27276. <doc>
  27277. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  27278. </doc>
  27279. </constructor>
  27280. <method name="createSocket" return="java.net.Socket"
  27281. abstract="false" native="false" synchronized="false"
  27282. static="false" final="false" visibility="public"
  27283. deprecated="not deprecated">
  27284. <exception name="IOException" type="java.io.IOException"/>
  27285. </method>
  27286. <method name="createSocket" return="java.net.Socket"
  27287. abstract="false" native="false" synchronized="false"
  27288. static="false" final="false" visibility="public"
  27289. deprecated="not deprecated">
  27290. <param name="addr" type="java.net.InetAddress"/>
  27291. <param name="port" type="int"/>
  27292. <exception name="IOException" type="java.io.IOException"/>
  27293. </method>
  27294. <method name="createSocket" return="java.net.Socket"
  27295. abstract="false" native="false" synchronized="false"
  27296. static="false" final="false" visibility="public"
  27297. deprecated="not deprecated">
  27298. <param name="addr" type="java.net.InetAddress"/>
  27299. <param name="port" type="int"/>
  27300. <param name="localHostAddr" type="java.net.InetAddress"/>
  27301. <param name="localPort" type="int"/>
  27302. <exception name="IOException" type="java.io.IOException"/>
  27303. </method>
  27304. <method name="createSocket" return="java.net.Socket"
  27305. abstract="false" native="false" synchronized="false"
  27306. static="false" final="false" visibility="public"
  27307. deprecated="not deprecated">
  27308. <param name="host" type="java.lang.String"/>
  27309. <param name="port" type="int"/>
  27310. <exception name="IOException" type="java.io.IOException"/>
  27311. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27312. </method>
  27313. <method name="createSocket" return="java.net.Socket"
  27314. abstract="false" native="false" synchronized="false"
  27315. static="false" final="false" visibility="public"
  27316. deprecated="not deprecated">
  27317. <param name="host" type="java.lang.String"/>
  27318. <param name="port" type="int"/>
  27319. <param name="localHostAddr" type="java.net.InetAddress"/>
  27320. <param name="localPort" type="int"/>
  27321. <exception name="IOException" type="java.io.IOException"/>
  27322. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27323. </method>
  27324. <method name="equals" return="boolean"
  27325. abstract="false" native="false" synchronized="false"
  27326. static="false" final="false" visibility="public"
  27327. deprecated="not deprecated">
  27328. <param name="obj" type="java.lang.Object"/>
  27329. </method>
  27330. <method name="hashCode" return="int"
  27331. abstract="false" native="false" synchronized="false"
  27332. static="false" final="false" visibility="public"
  27333. deprecated="not deprecated">
  27334. </method>
  27335. <doc>
  27336. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  27337. </doc>
  27338. </class>
  27339. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  27340. <!-- start class org.apache.hadoop.net.TableMapping -->
  27341. <class name="TableMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  27342. abstract="false"
  27343. static="false" final="false" visibility="public"
  27344. deprecated="not deprecated">
  27345. <constructor name="TableMapping"
  27346. static="false" final="false" visibility="public"
  27347. deprecated="not deprecated">
  27348. </constructor>
  27349. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27350. abstract="false" native="false" synchronized="false"
  27351. static="false" final="false" visibility="public"
  27352. deprecated="not deprecated">
  27353. </method>
  27354. <method name="setConf"
  27355. abstract="false" native="false" synchronized="false"
  27356. static="false" final="false" visibility="public"
  27357. deprecated="not deprecated">
  27358. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27359. </method>
  27360. <method name="reloadCachedMappings"
  27361. abstract="false" native="false" synchronized="false"
  27362. static="false" final="false" visibility="public"
  27363. deprecated="not deprecated">
  27364. </method>
  27365. <doc>
  27366. <![CDATA[<p>
  27367. Simple {@link DNSToSwitchMapping} implementation that reads a 2 column text
  27368. file. The columns are separated by whitespace. The first column is a DNS or
  27369. IP address and the second column specifies the rack where the address maps.
  27370. </p>
  27371. <p>
  27372. This class uses the configuration parameter {@code
  27373. net.topology.table.file.name} to locate the mapping file.
  27374. </p>
  27375. <p>
  27376. Calls to {@link #resolve(List)} will look up the address as defined in the
  27377. mapping file. If no entry corresponding to the address is found, the value
  27378. {@code /default-rack} is returned.
  27379. </p>]]>
  27380. </doc>
  27381. </class>
  27382. <!-- end class org.apache.hadoop.net.TableMapping -->
  27383. <doc>
  27384. <![CDATA[Network-related classes.]]>
  27385. </doc>
  27386. </package>
  27387. <package name="org.apache.hadoop.net.unix">
  27388. </package>
  27389. <package name="org.apache.hadoop.security">
  27390. <!-- start class org.apache.hadoop.security.AccessControlException -->
  27391. <class name="AccessControlException" extends="java.io.IOException"
  27392. abstract="false"
  27393. static="false" final="false" visibility="public"
  27394. deprecated="not deprecated">
  27395. <constructor name="AccessControlException"
  27396. static="false" final="false" visibility="public"
  27397. deprecated="not deprecated">
  27398. <doc>
  27399. <![CDATA[Default constructor is needed for unwrapping from
  27400. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  27401. </doc>
  27402. </constructor>
  27403. <constructor name="AccessControlException" type="java.lang.String"
  27404. static="false" final="false" visibility="public"
  27405. deprecated="not deprecated">
  27406. <doc>
  27407. <![CDATA[Constructs an {@link AccessControlException}
  27408. with the specified detail message.
  27409. @param s the detail message.]]>
  27410. </doc>
  27411. </constructor>
  27412. <constructor name="AccessControlException" type="java.lang.Throwable"
  27413. static="false" final="false" visibility="public"
  27414. deprecated="not deprecated">
  27415. <doc>
  27416. <![CDATA[Constructs a new exception with the specified cause and a detail
  27417. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  27418. typically contains the class and detail message of <tt>cause</tt>).
  27419. @param cause the cause (which is saved for later retrieval by the
  27420. {@link #getCause()} method). (A <tt>null</tt> value is
  27421. permitted, and indicates that the cause is nonexistent or
  27422. unknown.)]]>
  27423. </doc>
  27424. </constructor>
  27425. <doc>
  27426. <![CDATA[An exception class for access control related issues.]]>
  27427. </doc>
  27428. </class>
  27429. <!-- end class org.apache.hadoop.security.AccessControlException -->
  27430. <!-- start class org.apache.hadoop.security.Credentials -->
  27431. <class name="Credentials" extends="java.lang.Object"
  27432. abstract="false"
  27433. static="false" final="false" visibility="public"
  27434. deprecated="not deprecated">
  27435. <implements name="org.apache.hadoop.io.Writable"/>
  27436. <constructor name="Credentials"
  27437. static="false" final="false" visibility="public"
  27438. deprecated="not deprecated">
  27439. <doc>
  27440. <![CDATA[Create an empty credentials instance.]]>
  27441. </doc>
  27442. </constructor>
  27443. <constructor name="Credentials" type="org.apache.hadoop.security.Credentials"
  27444. static="false" final="false" visibility="public"
  27445. deprecated="not deprecated">
  27446. <doc>
  27447. <![CDATA[Create a copy of the given credentials.
  27448. @param credentials to copy]]>
  27449. </doc>
  27450. </constructor>
  27451. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  27452. abstract="false" native="false" synchronized="false"
  27453. static="false" final="false" visibility="public"
  27454. deprecated="not deprecated">
  27455. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27456. <doc>
  27457. <![CDATA[Returns the Token object for the alias.
  27458. @param alias the alias for the Token
  27459. @return token for this alias]]>
  27460. </doc>
  27461. </method>
  27462. <method name="addToken"
  27463. abstract="false" native="false" synchronized="false"
  27464. static="false" final="false" visibility="public"
  27465. deprecated="not deprecated">
  27466. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27467. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  27468. <doc>
  27469. <![CDATA[Add a token in the storage (in memory).
  27470. @param alias the alias for the key
  27471. @param t the token object]]>
  27472. </doc>
  27473. </method>
  27474. <method name="getAllTokens" return="java.util.Collection"
  27475. abstract="false" native="false" synchronized="false"
  27476. static="false" final="false" visibility="public"
  27477. deprecated="not deprecated">
  27478. <doc>
  27479. <![CDATA[Return all the tokens in the in-memory map.]]>
  27480. </doc>
  27481. </method>
  27482. <method name="getTokenMap" return="java.util.Map"
  27483. abstract="false" native="false" synchronized="false"
  27484. static="false" final="false" visibility="public"
  27485. deprecated="not deprecated">
  27486. <doc>
  27487. <![CDATA[Returns an unmodifiable version of the full map of aliases to Tokens.]]>
  27488. </doc>
  27489. </method>
  27490. <method name="numberOfTokens" return="int"
  27491. abstract="false" native="false" synchronized="false"
  27492. static="false" final="false" visibility="public"
  27493. deprecated="not deprecated">
  27494. <doc>
  27495. <![CDATA[@return number of Tokens in the in-memory map]]>
  27496. </doc>
  27497. </method>
  27498. <method name="getSecretKey" return="byte[]"
  27499. abstract="false" native="false" synchronized="false"
  27500. static="false" final="false" visibility="public"
  27501. deprecated="not deprecated">
  27502. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27503. <doc>
  27504. <![CDATA[Returns the key bytes for the alias.
  27505. @param alias the alias for the key
  27506. @return key for this alias]]>
  27507. </doc>
  27508. </method>
  27509. <method name="numberOfSecretKeys" return="int"
  27510. abstract="false" native="false" synchronized="false"
  27511. static="false" final="false" visibility="public"
  27512. deprecated="not deprecated">
  27513. <doc>
  27514. <![CDATA[@return number of keys in the in-memory map]]>
  27515. </doc>
  27516. </method>
  27517. <method name="addSecretKey"
  27518. abstract="false" native="false" synchronized="false"
  27519. static="false" final="false" visibility="public"
  27520. deprecated="not deprecated">
  27521. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27522. <param name="key" type="byte[]"/>
  27523. <doc>
  27524. <![CDATA[Set the key for an alias.
  27525. @param alias the alias for the key
  27526. @param key the key bytes]]>
  27527. </doc>
  27528. </method>
  27529. <method name="removeSecretKey"
  27530. abstract="false" native="false" synchronized="false"
  27531. static="false" final="false" visibility="public"
  27532. deprecated="not deprecated">
  27533. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27534. <doc>
  27535. <![CDATA[Remove the key for a given alias.
  27536. @param alias the alias for the key]]>
  27537. </doc>
  27538. </method>
  27539. <method name="getAllSecretKeys" return="java.util.List"
  27540. abstract="false" native="false" synchronized="false"
  27541. static="false" final="false" visibility="public"
  27542. deprecated="not deprecated">
  27543. <doc>
  27544. <![CDATA[Return all the secret key entries in the in-memory map.]]>
  27545. </doc>
  27546. </method>
  27547. <method name="getSecretKeyMap" return="java.util.Map"
  27548. abstract="false" native="false" synchronized="false"
  27549. static="false" final="false" visibility="public"
  27550. deprecated="not deprecated">
  27551. <doc>
  27552. <![CDATA[Returns an unmodifiable version of the full map of aliases to secret keys.]]>
  27553. </doc>
  27554. </method>
  27555. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  27556. abstract="false" native="false" synchronized="false"
  27557. static="true" final="false" visibility="public"
  27558. deprecated="not deprecated">
  27559. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  27560. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27561. <exception name="IOException" type="java.io.IOException"/>
  27562. <doc>
  27563. <![CDATA[Convenience method for reading a token storage file and loading its Tokens.
  27564. @param filename
  27565. @param conf
  27566. @throws IOException]]>
  27567. </doc>
  27568. </method>
  27569. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  27570. abstract="false" native="false" synchronized="false"
  27571. static="true" final="false" visibility="public"
  27572. deprecated="not deprecated">
  27573. <param name="filename" type="java.io.File"/>
  27574. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27575. <exception name="IOException" type="java.io.IOException"/>
  27576. <doc>
  27577. <![CDATA[Convenience method for reading a token storage file and loading its Tokens.
  27578. @param filename
  27579. @param conf
  27580. @throws IOException]]>
  27581. </doc>
  27582. </method>
  27583. <method name="readTokenStorageStream"
  27584. abstract="false" native="false" synchronized="false"
  27585. static="false" final="false" visibility="public"
  27586. deprecated="not deprecated">
  27587. <param name="in" type="java.io.DataInputStream"/>
  27588. <exception name="IOException" type="java.io.IOException"/>
  27589. <doc>
  27590. <![CDATA[Convenience method for reading a token from a DataInputStream.]]>
  27591. </doc>
  27592. </method>
  27593. <method name="writeTokenStorageToStream"
  27594. abstract="false" native="false" synchronized="false"
  27595. static="false" final="false" visibility="public"
  27596. deprecated="not deprecated">
  27597. <param name="os" type="java.io.DataOutputStream"/>
  27598. <exception name="IOException" type="java.io.IOException"/>
  27599. </method>
  27600. <method name="writeTokenStorageToStream"
  27601. abstract="false" native="false" synchronized="false"
  27602. static="false" final="false" visibility="public"
  27603. deprecated="not deprecated">
  27604. <param name="os" type="java.io.DataOutputStream"/>
  27605. <param name="format" type="org.apache.hadoop.security.Credentials.SerializedFormat"/>
  27606. <exception name="IOException" type="java.io.IOException"/>
  27607. </method>
  27608. <method name="writeTokenStorageFile"
  27609. abstract="false" native="false" synchronized="false"
  27610. static="false" final="false" visibility="public"
  27611. deprecated="not deprecated">
  27612. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  27613. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27614. <exception name="IOException" type="java.io.IOException"/>
  27615. </method>
  27616. <method name="writeTokenStorageFile"
  27617. abstract="false" native="false" synchronized="false"
  27618. static="false" final="false" visibility="public"
  27619. deprecated="not deprecated">
  27620. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  27621. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27622. <param name="format" type="org.apache.hadoop.security.Credentials.SerializedFormat"/>
  27623. <exception name="IOException" type="java.io.IOException"/>
  27624. </method>
  27625. <method name="write"
  27626. abstract="false" native="false" synchronized="false"
  27627. static="false" final="false" visibility="public"
  27628. deprecated="not deprecated">
  27629. <param name="out" type="java.io.DataOutput"/>
  27630. <exception name="IOException" type="java.io.IOException"/>
  27631. <doc>
  27632. <![CDATA[Stores all the keys to DataOutput.
  27633. @param out
  27634. @throws IOException]]>
  27635. </doc>
  27636. </method>
  27637. <method name="readFields"
  27638. abstract="false" native="false" synchronized="false"
  27639. static="false" final="false" visibility="public"
  27640. deprecated="not deprecated">
  27641. <param name="in" type="java.io.DataInput"/>
  27642. <exception name="IOException" type="java.io.IOException"/>
  27643. <doc>
  27644. <![CDATA[Loads all the keys.
  27645. @param in
  27646. @throws IOException]]>
  27647. </doc>
  27648. </method>
  27649. <method name="addAll"
  27650. abstract="false" native="false" synchronized="false"
  27651. static="false" final="false" visibility="public"
  27652. deprecated="not deprecated">
  27653. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  27654. <doc>
  27655. <![CDATA[Copy all of the credentials from one credential object into another.
  27656. Existing secrets and tokens are overwritten.
  27657. @param other the credentials to copy]]>
  27658. </doc>
  27659. </method>
  27660. <method name="mergeAll"
  27661. abstract="false" native="false" synchronized="false"
  27662. static="false" final="false" visibility="public"
  27663. deprecated="not deprecated">
  27664. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  27665. <doc>
  27666. <![CDATA[Copy all of the credentials from one credential object into another.
  27667. Existing secrets and tokens are not overwritten.
  27668. @param other the credentials to copy]]>
  27669. </doc>
  27670. </method>
  27671. <doc>
  27672. <![CDATA[A class that provides the facilities of reading and writing
  27673. secret keys and Tokens.]]>
  27674. </doc>
  27675. </class>
  27676. <!-- end class org.apache.hadoop.security.Credentials -->
  27677. <!-- start interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  27678. <interface name="GroupMappingServiceProvider" abstract="true"
  27679. static="false" final="false" visibility="public"
  27680. deprecated="not deprecated">
  27681. <method name="getGroups" return="java.util.List"
  27682. abstract="true" native="false" synchronized="false"
  27683. static="false" final="false" visibility="public"
  27684. deprecated="not deprecated">
  27685. <param name="user" type="java.lang.String"/>
  27686. <exception name="IOException" type="java.io.IOException"/>
  27687. <doc>
  27688. <![CDATA[Get all various group memberships of a given user.
  27689. Returns EMPTY list in case of non-existing user
  27690. @param user User's name
  27691. @return group memberships of user
  27692. @throws IOException]]>
  27693. </doc>
  27694. </method>
  27695. <method name="cacheGroupsRefresh"
  27696. abstract="true" native="false" synchronized="false"
  27697. static="false" final="false" visibility="public"
  27698. deprecated="not deprecated">
  27699. <exception name="IOException" type="java.io.IOException"/>
  27700. <doc>
  27701. <![CDATA[Refresh the cache of groups and user mapping
  27702. @throws IOException]]>
  27703. </doc>
  27704. </method>
  27705. <method name="cacheGroupsAdd"
  27706. abstract="true" native="false" synchronized="false"
  27707. static="false" final="false" visibility="public"
  27708. deprecated="not deprecated">
  27709. <param name="groups" type="java.util.List"/>
  27710. <exception name="IOException" type="java.io.IOException"/>
  27711. <doc>
  27712. <![CDATA[Caches the group user information
  27713. @param groups list of groups to add to cache
  27714. @throws IOException]]>
  27715. </doc>
  27716. </method>
  27717. <field name="GROUP_MAPPING_CONFIG_PREFIX" type="java.lang.String"
  27718. transient="false" volatile="false"
  27719. static="true" final="true" visibility="public"
  27720. deprecated="not deprecated">
  27721. </field>
  27722. <doc>
  27723. <![CDATA[An interface for the implementation of a user-to-groups mapping service
  27724. used by {@link Groups}.]]>
  27725. </doc>
  27726. </interface>
  27727. <!-- end interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  27728. <!-- start interface org.apache.hadoop.security.IdMappingServiceProvider -->
  27729. <interface name="IdMappingServiceProvider" abstract="true"
  27730. static="false" final="false" visibility="public"
  27731. deprecated="not deprecated">
  27732. <method name="getUid" return="int"
  27733. abstract="true" native="false" synchronized="false"
  27734. static="false" final="false" visibility="public"
  27735. deprecated="not deprecated">
  27736. <param name="user" type="java.lang.String"/>
  27737. <exception name="IOException" type="java.io.IOException"/>
  27738. </method>
  27739. <method name="getGid" return="int"
  27740. abstract="true" native="false" synchronized="false"
  27741. static="false" final="false" visibility="public"
  27742. deprecated="not deprecated">
  27743. <param name="group" type="java.lang.String"/>
  27744. <exception name="IOException" type="java.io.IOException"/>
  27745. </method>
  27746. <method name="getUserName" return="java.lang.String"
  27747. abstract="true" native="false" synchronized="false"
  27748. static="false" final="false" visibility="public"
  27749. deprecated="not deprecated">
  27750. <param name="uid" type="int"/>
  27751. <param name="unknown" type="java.lang.String"/>
  27752. </method>
  27753. <method name="getGroupName" return="java.lang.String"
  27754. abstract="true" native="false" synchronized="false"
  27755. static="false" final="false" visibility="public"
  27756. deprecated="not deprecated">
  27757. <param name="gid" type="int"/>
  27758. <param name="unknown" type="java.lang.String"/>
  27759. </method>
  27760. <method name="getUidAllowingUnknown" return="int"
  27761. abstract="true" native="false" synchronized="false"
  27762. static="false" final="false" visibility="public"
  27763. deprecated="not deprecated">
  27764. <param name="user" type="java.lang.String"/>
  27765. </method>
  27766. <method name="getGidAllowingUnknown" return="int"
  27767. abstract="true" native="false" synchronized="false"
  27768. static="false" final="false" visibility="public"
  27769. deprecated="not deprecated">
  27770. <param name="group" type="java.lang.String"/>
  27771. </method>
  27772. <doc>
  27773. <![CDATA[An interface for the implementation of <userId, userName> mapping
  27774. and <groupId, groupName> mapping]]>
  27775. </doc>
  27776. </interface>
  27777. <!-- end interface org.apache.hadoop.security.IdMappingServiceProvider -->
  27778. <!-- start class org.apache.hadoop.security.KerberosAuthException -->
  27779. <class name="KerberosAuthException" extends="java.io.IOException"
  27780. abstract="false"
  27781. static="false" final="false" visibility="public"
  27782. deprecated="not deprecated">
  27783. <constructor name="KerberosAuthException" type="java.lang.String"
  27784. static="false" final="false" visibility="public"
  27785. deprecated="not deprecated">
  27786. </constructor>
  27787. <constructor name="KerberosAuthException" type="java.lang.Throwable"
  27788. static="false" final="false" visibility="public"
  27789. deprecated="not deprecated">
  27790. </constructor>
  27791. <constructor name="KerberosAuthException" type="java.lang.String, java.lang.Throwable"
  27792. static="false" final="false" visibility="public"
  27793. deprecated="not deprecated">
  27794. </constructor>
  27795. <method name="setUser"
  27796. abstract="false" native="false" synchronized="false"
  27797. static="false" final="false" visibility="public"
  27798. deprecated="not deprecated">
  27799. <param name="u" type="java.lang.String"/>
  27800. </method>
  27801. <method name="setPrincipal"
  27802. abstract="false" native="false" synchronized="false"
  27803. static="false" final="false" visibility="public"
  27804. deprecated="not deprecated">
  27805. <param name="p" type="java.lang.String"/>
  27806. </method>
  27807. <method name="setKeytabFile"
  27808. abstract="false" native="false" synchronized="false"
  27809. static="false" final="false" visibility="public"
  27810. deprecated="not deprecated">
  27811. <param name="k" type="java.lang.String"/>
  27812. </method>
  27813. <method name="setTicketCacheFile"
  27814. abstract="false" native="false" synchronized="false"
  27815. static="false" final="false" visibility="public"
  27816. deprecated="not deprecated">
  27817. <param name="t" type="java.lang.String"/>
  27818. </method>
  27819. <method name="getInitialMessage" return="java.lang.String"
  27820. abstract="false" native="false" synchronized="false"
  27821. static="false" final="false" visibility="public"
  27822. deprecated="not deprecated">
  27823. <doc>
  27824. <![CDATA[@return The initial message, or null if not set.]]>
  27825. </doc>
  27826. </method>
  27827. <method name="getKeytabFile" return="java.lang.String"
  27828. abstract="false" native="false" synchronized="false"
  27829. static="false" final="false" visibility="public"
  27830. deprecated="not deprecated">
  27831. <doc>
  27832. <![CDATA[@return The keytab file path, or null if not set.]]>
  27833. </doc>
  27834. </method>
  27835. <method name="getPrincipal" return="java.lang.String"
  27836. abstract="false" native="false" synchronized="false"
  27837. static="false" final="false" visibility="public"
  27838. deprecated="not deprecated">
  27839. <doc>
  27840. <![CDATA[@return The principal, or null if not set.]]>
  27841. </doc>
  27842. </method>
  27843. <method name="getTicketCacheFile" return="java.lang.String"
  27844. abstract="false" native="false" synchronized="false"
  27845. static="false" final="false" visibility="public"
  27846. deprecated="not deprecated">
  27847. <doc>
  27848. <![CDATA[@return The ticket cache file path, or null if not set.]]>
  27849. </doc>
  27850. </method>
  27851. <method name="getUser" return="java.lang.String"
  27852. abstract="false" native="false" synchronized="false"
  27853. static="false" final="false" visibility="public"
  27854. deprecated="not deprecated">
  27855. <doc>
  27856. <![CDATA[@return The user, or null if not set.]]>
  27857. </doc>
  27858. </method>
  27859. <method name="getMessage" return="java.lang.String"
  27860. abstract="false" native="false" synchronized="false"
  27861. static="false" final="false" visibility="public"
  27862. deprecated="not deprecated">
  27863. </method>
  27864. <doc>
  27865. <![CDATA[Thrown when {@link UserGroupInformation} failed with an unrecoverable error,
  27866. such as failure in kerberos login/logout, invalid subject etc.
  27867. Caller should not retry when catching this exception.]]>
  27868. </doc>
  27869. </class>
  27870. <!-- end class org.apache.hadoop.security.KerberosAuthException -->
  27871. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  27872. <class name="SecurityUtil" extends="java.lang.Object"
  27873. abstract="false"
  27874. static="false" final="true" visibility="public"
  27875. deprecated="not deprecated">
  27876. <method name="setConfiguration"
  27877. abstract="false" native="false" synchronized="false"
  27878. static="true" final="false" visibility="public"
  27879. deprecated="not deprecated">
  27880. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27881. </method>
  27882. <method name="isOriginalTGT" return="boolean"
  27883. abstract="false" native="false" synchronized="false"
  27884. static="true" final="false" visibility="protected"
  27885. deprecated="not deprecated">
  27886. <param name="ticket" type="javax.security.auth.kerberos.KerberosTicket"/>
  27887. <doc>
  27888. <![CDATA[Check whether the server principal is the TGS's principal
  27889. @param ticket the original TGT (the ticket that is obtained when a
  27890. kinit is done)
  27891. @return true or false]]>
  27892. </doc>
  27893. </method>
  27894. <method name="getServerPrincipal" return="java.lang.String"
  27895. abstract="false" native="false" synchronized="false"
  27896. static="true" final="false" visibility="public"
  27897. deprecated="not deprecated">
  27898. <param name="principalConfig" type="java.lang.String"/>
  27899. <param name="hostname" type="java.lang.String"/>
  27900. <exception name="IOException" type="java.io.IOException"/>
  27901. <doc>
  27902. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  27903. names. It replaces hostname pattern with hostname, which should be
  27904. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  27905. dynamically looked-up fqdn of the current host instead.
  27906. @param principalConfig
  27907. the Kerberos principal name conf value to convert
  27908. @param hostname
  27909. the fully-qualified domain name used for substitution
  27910. @return converted Kerberos principal name
  27911. @throws IOException if the client address cannot be determined]]>
  27912. </doc>
  27913. </method>
  27914. <method name="getServerPrincipal" return="java.lang.String"
  27915. abstract="false" native="false" synchronized="false"
  27916. static="true" final="false" visibility="public"
  27917. deprecated="not deprecated">
  27918. <param name="principalConfig" type="java.lang.String"/>
  27919. <param name="addr" type="java.net.InetAddress"/>
  27920. <exception name="IOException" type="java.io.IOException"/>
  27921. <doc>
  27922. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  27923. This method is similar to {@link #getServerPrincipal(String, String)},
  27924. except 1) the reverse DNS lookup from addr to hostname is done only when
  27925. necessary, 2) param addr can't be null (no default behavior of using local
  27926. hostname when addr is null).
  27927. @param principalConfig
  27928. Kerberos principal name pattern to convert
  27929. @param addr
  27930. InetAddress of the host used for substitution
  27931. @return converted Kerberos principal name
  27932. @throws IOException if the client address cannot be determined]]>
  27933. </doc>
  27934. </method>
  27935. <method name="login"
  27936. abstract="false" native="false" synchronized="false"
  27937. static="true" final="false" visibility="public"
  27938. deprecated="not deprecated">
  27939. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27940. <param name="keytabFileKey" type="java.lang.String"/>
  27941. <param name="userNameKey" type="java.lang.String"/>
  27942. <exception name="IOException" type="java.io.IOException"/>
  27943. <doc>
  27944. <![CDATA[Login as a principal specified in config. Substitute $host in
  27945. user's Kerberos principal name with a dynamically looked-up fully-qualified
  27946. domain name of the current host.
  27947. @param conf
  27948. conf to use
  27949. @param keytabFileKey
  27950. the key to look for keytab file in conf
  27951. @param userNameKey
  27952. the key to look for user's Kerberos principal name in conf
  27953. @throws IOException if login fails]]>
  27954. </doc>
  27955. </method>
  27956. <method name="login"
  27957. abstract="false" native="false" synchronized="false"
  27958. static="true" final="false" visibility="public"
  27959. deprecated="not deprecated">
  27960. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27961. <param name="keytabFileKey" type="java.lang.String"/>
  27962. <param name="userNameKey" type="java.lang.String"/>
  27963. <param name="hostname" type="java.lang.String"/>
  27964. <exception name="IOException" type="java.io.IOException"/>
  27965. <doc>
  27966. <![CDATA[Login as a principal specified in config. Substitute $host in user's Kerberos principal
  27967. name with hostname. If non-secure mode - return. If no keytab available -
  27968. bail out with an exception
  27969. @param conf
  27970. conf to use
  27971. @param keytabFileKey
  27972. the key to look for keytab file in conf
  27973. @param userNameKey
  27974. the key to look for user's Kerberos principal name in conf
  27975. @param hostname
  27976. hostname to use for substitution
  27977. @throws IOException if the config doesn't specify a keytab]]>
  27978. </doc>
  27979. </method>
  27980. <method name="buildDTServiceName" return="java.lang.String"
  27981. abstract="false" native="false" synchronized="false"
  27982. static="true" final="false" visibility="public"
  27983. deprecated="not deprecated">
  27984. <param name="uri" type="java.net.URI"/>
  27985. <param name="defPort" type="int"/>
  27986. <doc>
  27987. <![CDATA[create the service name for a Delegation token
  27988. @param uri of the service
  27989. @param defPort is used if the uri lacks a port
  27990. @return the token service, or null if no authority
  27991. @see #buildTokenService(InetSocketAddress)]]>
  27992. </doc>
  27993. </method>
  27994. <method name="getHostFromPrincipal" return="java.lang.String"
  27995. abstract="false" native="false" synchronized="false"
  27996. static="true" final="false" visibility="public"
  27997. deprecated="not deprecated">
  27998. <param name="principalName" type="java.lang.String"/>
  27999. <doc>
  28000. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  28001. @param principalName principal name of format as described above
  28002. @return host name if the the string conforms to the above format, else null]]>
  28003. </doc>
  28004. </method>
  28005. <method name="getKerberosInfo" return="org.apache.hadoop.security.KerberosInfo"
  28006. abstract="false" native="false" synchronized="false"
  28007. static="true" final="false" visibility="public"
  28008. deprecated="not deprecated">
  28009. <param name="protocol" type="java.lang.Class"/>
  28010. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28011. <doc>
  28012. <![CDATA[Look up the KerberosInfo for a given protocol. It searches all known
  28013. SecurityInfo providers.
  28014. @param protocol the protocol class to get the information for
  28015. @param conf configuration object
  28016. @return the KerberosInfo or null if it has no KerberosInfo defined]]>
  28017. </doc>
  28018. </method>
  28019. <method name="getClientPrincipal" return="java.lang.String"
  28020. abstract="false" native="false" synchronized="false"
  28021. static="true" final="false" visibility="public"
  28022. deprecated="not deprecated">
  28023. <param name="protocol" type="java.lang.Class"/>
  28024. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28025. <doc>
  28026. <![CDATA[Look up the client principal for a given protocol. It searches all known
  28027. SecurityInfo providers.
  28028. @param protocol the protocol class to get the information for
  28029. @param conf configuration object
  28030. @return client principal or null if it has no client principal defined.]]>
  28031. </doc>
  28032. </method>
  28033. <method name="getTokenInfo" return="org.apache.hadoop.security.token.TokenInfo"
  28034. abstract="false" native="false" synchronized="false"
  28035. static="true" final="false" visibility="public"
  28036. deprecated="not deprecated">
  28037. <param name="protocol" type="java.lang.Class"/>
  28038. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28039. <doc>
  28040. <![CDATA[Look up the TokenInfo for a given protocol. It searches all known
  28041. SecurityInfo providers.
  28042. @param protocol The protocol class to get the information for.
  28043. @param conf Configuration object
  28044. @return the TokenInfo or null if it has no KerberosInfo defined]]>
  28045. </doc>
  28046. </method>
  28047. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  28048. abstract="false" native="false" synchronized="false"
  28049. static="true" final="false" visibility="public"
  28050. deprecated="not deprecated">
  28051. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  28052. <doc>
  28053. <![CDATA[Decode the given token's service field into an InetAddress
  28054. @param token from which to obtain the service
  28055. @return InetAddress for the service]]>
  28056. </doc>
  28057. </method>
  28058. <method name="setTokenService"
  28059. abstract="false" native="false" synchronized="false"
  28060. static="true" final="false" visibility="public"
  28061. deprecated="not deprecated">
  28062. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  28063. <param name="addr" type="java.net.InetSocketAddress"/>
  28064. <doc>
  28065. <![CDATA[Set the given token's service to the format expected by the RPC client
  28066. @param token a delegation token
  28067. @param addr the socket for the rpc connection]]>
  28068. </doc>
  28069. </method>
  28070. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  28071. abstract="false" native="false" synchronized="false"
  28072. static="true" final="false" visibility="public"
  28073. deprecated="not deprecated">
  28074. <param name="addr" type="java.net.InetSocketAddress"/>
  28075. <doc>
  28076. <![CDATA[Construct the service key for a token
  28077. @param addr InetSocketAddress of remote connection with a token
  28078. @return "ip:port" or "host:port" depending on the value of
  28079. hadoop.security.token.service.use_ip]]>
  28080. </doc>
  28081. </method>
  28082. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  28083. abstract="false" native="false" synchronized="false"
  28084. static="true" final="false" visibility="public"
  28085. deprecated="not deprecated">
  28086. <param name="uri" type="java.net.URI"/>
  28087. <doc>
  28088. <![CDATA[Construct the service key for a token
  28089. @param uri of remote connection with a token
  28090. @return "ip:port" or "host:port" depending on the value of
  28091. hadoop.security.token.service.use_ip]]>
  28092. </doc>
  28093. </method>
  28094. <method name="doAsLoginUserOrFatal" return="T"
  28095. abstract="false" native="false" synchronized="false"
  28096. static="true" final="false" visibility="public"
  28097. deprecated="not deprecated">
  28098. <param name="action" type="java.security.PrivilegedAction"/>
  28099. <doc>
  28100. <![CDATA[Perform the given action as the daemon's login user. If the login
  28101. user cannot be determined, this will log a FATAL error and exit
  28102. the whole JVM.]]>
  28103. </doc>
  28104. </method>
  28105. <method name="doAsLoginUser" return="T"
  28106. abstract="false" native="false" synchronized="false"
  28107. static="true" final="false" visibility="public"
  28108. deprecated="not deprecated">
  28109. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  28110. <exception name="IOException" type="java.io.IOException"/>
  28111. <doc>
  28112. <![CDATA[Perform the given action as the daemon's login user. If an
  28113. InterruptedException is thrown, it is converted to an IOException.
  28114. @param action the action to perform
  28115. @return the result of the action
  28116. @throws IOException in the event of error]]>
  28117. </doc>
  28118. </method>
  28119. <method name="doAsCurrentUser" return="T"
  28120. abstract="false" native="false" synchronized="false"
  28121. static="true" final="false" visibility="public"
  28122. deprecated="not deprecated">
  28123. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  28124. <exception name="IOException" type="java.io.IOException"/>
  28125. <doc>
  28126. <![CDATA[Perform the given action as the daemon's current user. If an
  28127. InterruptedException is thrown, it is converted to an IOException.
  28128. @param action the action to perform
  28129. @return the result of the action
  28130. @throws IOException in the event of error]]>
  28131. </doc>
  28132. </method>
  28133. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28134. abstract="false" native="false" synchronized="false"
  28135. static="true" final="false" visibility="public"
  28136. deprecated="not deprecated">
  28137. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28138. </method>
  28139. <method name="setAuthenticationMethod"
  28140. abstract="false" native="false" synchronized="false"
  28141. static="true" final="false" visibility="public"
  28142. deprecated="not deprecated">
  28143. <param name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  28144. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28145. </method>
  28146. <method name="isPrivilegedPort" return="boolean"
  28147. abstract="false" native="false" synchronized="false"
  28148. static="true" final="false" visibility="public"
  28149. deprecated="not deprecated">
  28150. <param name="port" type="int"/>
  28151. </method>
  28152. <method name="getZKAuthInfos" return="java.util.List"
  28153. abstract="false" native="false" synchronized="false"
  28154. static="true" final="false" visibility="public"
  28155. deprecated="not deprecated">
  28156. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28157. <param name="configKey" type="java.lang.String"/>
  28158. <exception name="IOException" type="java.io.IOException"/>
  28159. <doc>
  28160. <![CDATA[Utility method to fetch ZK auth info from the configuration.
  28161. @throws java.io.IOException if the Zookeeper ACLs configuration file
  28162. cannot be read
  28163. @throws ZKUtil.BadAuthFormatException if the auth format is invalid]]>
  28164. </doc>
  28165. </method>
  28166. <field name="LOG" type="org.slf4j.Logger"
  28167. transient="false" volatile="false"
  28168. static="true" final="true" visibility="public"
  28169. deprecated="not deprecated">
  28170. </field>
  28171. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  28172. transient="false" volatile="false"
  28173. static="true" final="true" visibility="public"
  28174. deprecated="not deprecated">
  28175. </field>
  28176. <field name="FAILED_TO_GET_UGI_MSG_HEADER" type="java.lang.String"
  28177. transient="false" volatile="false"
  28178. static="true" final="true" visibility="public"
  28179. deprecated="not deprecated">
  28180. </field>
  28181. <doc>
  28182. <![CDATA[Security Utils.]]>
  28183. </doc>
  28184. </class>
  28185. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  28186. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  28187. <class name="UserGroupInformation" extends="java.lang.Object"
  28188. abstract="false"
  28189. static="false" final="false" visibility="public"
  28190. deprecated="not deprecated">
  28191. <method name="setShouldRenewImmediatelyForTests"
  28192. abstract="false" native="false" synchronized="false"
  28193. static="true" final="false" visibility="public"
  28194. deprecated="not deprecated">
  28195. <param name="immediate" type="boolean"/>
  28196. <doc>
  28197. <![CDATA[For the purposes of unit tests, we want to test login
  28198. from keytab and don't want to wait until the renew
  28199. window (controlled by TICKET_RENEW_WINDOW).
  28200. @param immediate true if we should login without waiting for ticket window]]>
  28201. </doc>
  28202. </method>
  28203. <method name="reattachMetrics"
  28204. abstract="false" native="false" synchronized="false"
  28205. static="true" final="false" visibility="public"
  28206. deprecated="not deprecated">
  28207. <doc>
  28208. <![CDATA[Reattach the class's metrics to a new metric system.]]>
  28209. </doc>
  28210. </method>
  28211. <method name="isInitialized" return="boolean"
  28212. abstract="false" native="false" synchronized="false"
  28213. static="true" final="false" visibility="public"
  28214. deprecated="not deprecated">
  28215. </method>
  28216. <method name="setConfiguration"
  28217. abstract="false" native="false" synchronized="false"
  28218. static="true" final="false" visibility="public"
  28219. deprecated="not deprecated">
  28220. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28221. <doc>
  28222. <![CDATA[Set the static configuration for UGI.
  28223. In particular, set the security authentication mechanism and the
  28224. group look up service.
  28225. @param conf the configuration to use]]>
  28226. </doc>
  28227. </method>
  28228. <method name="isSecurityEnabled" return="boolean"
  28229. abstract="false" native="false" synchronized="false"
  28230. static="true" final="false" visibility="public"
  28231. deprecated="not deprecated">
  28232. <doc>
  28233. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  28234. user identities or is relying on simple authentication
  28235. @return true if UGI is working in a secure environment]]>
  28236. </doc>
  28237. </method>
  28238. <method name="hasKerberosCredentials" return="boolean"
  28239. abstract="false" native="false" synchronized="false"
  28240. static="false" final="false" visibility="public"
  28241. deprecated="not deprecated">
  28242. <doc>
  28243. <![CDATA[checks if logged in using kerberos
  28244. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  28245. </doc>
  28246. </method>
  28247. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  28248. abstract="false" native="false" synchronized="false"
  28249. static="true" final="false" visibility="public"
  28250. deprecated="not deprecated">
  28251. <exception name="IOException" type="java.io.IOException"/>
  28252. <doc>
  28253. <![CDATA[Return the current user, including any doAs in the current stack.
  28254. @return the current user
  28255. @throws IOException if login fails]]>
  28256. </doc>
  28257. </method>
  28258. <method name="getBestUGI" return="org.apache.hadoop.security.UserGroupInformation"
  28259. abstract="false" native="false" synchronized="false"
  28260. static="true" final="false" visibility="public"
  28261. deprecated="not deprecated">
  28262. <param name="ticketCachePath" type="java.lang.String"/>
  28263. <param name="user" type="java.lang.String"/>
  28264. <exception name="IOException" type="java.io.IOException"/>
  28265. <doc>
  28266. <![CDATA[Find the most appropriate UserGroupInformation to use
  28267. @param ticketCachePath The Kerberos ticket cache path, or NULL
  28268. if none is specfied
  28269. @param user The user name, or NULL if none is specified.
  28270. @return The most appropriate UserGroupInformation]]>
  28271. </doc>
  28272. </method>
  28273. <method name="getUGIFromTicketCache" return="org.apache.hadoop.security.UserGroupInformation"
  28274. abstract="false" native="false" synchronized="false"
  28275. static="true" final="false" visibility="public"
  28276. deprecated="not deprecated">
  28277. <param name="ticketCache" type="java.lang.String"/>
  28278. <param name="user" type="java.lang.String"/>
  28279. <exception name="IOException" type="java.io.IOException"/>
  28280. <doc>
  28281. <![CDATA[Create a UserGroupInformation from a Kerberos ticket cache.
  28282. @param user The principal name to load from the ticket
  28283. cache
  28284. @param ticketCache the path to the ticket cache file
  28285. @throws IOException if the kerberos login fails]]>
  28286. </doc>
  28287. </method>
  28288. <method name="getUGIFromSubject" return="org.apache.hadoop.security.UserGroupInformation"
  28289. abstract="false" native="false" synchronized="false"
  28290. static="true" final="false" visibility="public"
  28291. deprecated="not deprecated">
  28292. <param name="subject" type="javax.security.auth.Subject"/>
  28293. <exception name="IOException" type="java.io.IOException"/>
  28294. <doc>
  28295. <![CDATA[Create a UserGroupInformation from a Subject with Kerberos principal.
  28296. @param subject The KerberosPrincipal to use in UGI.
  28297. The creator of subject is responsible for
  28298. renewing credentials.
  28299. @throws IOException
  28300. @throws KerberosAuthException if the kerberos login fails]]>
  28301. </doc>
  28302. </method>
  28303. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  28304. abstract="false" native="false" synchronized="false"
  28305. static="true" final="false" visibility="public"
  28306. deprecated="not deprecated">
  28307. <exception name="IOException" type="java.io.IOException"/>
  28308. <doc>
  28309. <![CDATA[Get the currently logged in user. If no explicit login has occurred,
  28310. the user will automatically be logged in with either kerberos credentials
  28311. if available, or as the local OS user, based on security settings.
  28312. @return the logged in user
  28313. @throws IOException if login fails]]>
  28314. </doc>
  28315. </method>
  28316. <method name="trimLoginMethod" return="java.lang.String"
  28317. abstract="false" native="false" synchronized="false"
  28318. static="true" final="false" visibility="public"
  28319. deprecated="not deprecated">
  28320. <param name="userName" type="java.lang.String"/>
  28321. <doc>
  28322. <![CDATA[remove the login method that is followed by a space from the username
  28323. e.g. "jack (auth:SIMPLE)" -> "jack"
  28324. @param userName
  28325. @return userName without login method]]>
  28326. </doc>
  28327. </method>
  28328. <method name="loginUserFromSubject"
  28329. abstract="false" native="false" synchronized="false"
  28330. static="true" final="false" visibility="public"
  28331. deprecated="not deprecated">
  28332. <param name="subject" type="javax.security.auth.Subject"/>
  28333. <exception name="IOException" type="java.io.IOException"/>
  28334. <doc>
  28335. <![CDATA[Log in a user using the given subject
  28336. @param subject the subject to use when logging in a user, or null to
  28337. create a new subject.
  28338. If subject is not null, the creator of subject is responsible for renewing
  28339. credentials.
  28340. @throws IOException if login fails]]>
  28341. </doc>
  28342. </method>
  28343. <method name="isFromKeytab" return="boolean"
  28344. abstract="false" native="false" synchronized="false"
  28345. static="false" final="false" visibility="public"
  28346. deprecated="not deprecated">
  28347. <doc>
  28348. <![CDATA[Is this user logged in from a keytab file managed by the UGI?
  28349. @return true if the credentials are from a keytab file.]]>
  28350. </doc>
  28351. </method>
  28352. <method name="loginUserFromKeytab"
  28353. abstract="false" native="false" synchronized="false"
  28354. static="true" final="false" visibility="public"
  28355. deprecated="not deprecated">
  28356. <param name="user" type="java.lang.String"/>
  28357. <param name="path" type="java.lang.String"/>
  28358. <exception name="IOException" type="java.io.IOException"/>
  28359. <doc>
  28360. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  28361. file and logs them in. They become the currently logged-in user.
  28362. @param user the principal name to load from the keytab
  28363. @param path the path to the keytab file
  28364. @throws IOException
  28365. @throws KerberosAuthException if it's a kerberos login exception.]]>
  28366. </doc>
  28367. </method>
  28368. <method name="logoutUserFromKeytab"
  28369. abstract="false" native="false" synchronized="false"
  28370. static="false" final="false" visibility="public"
  28371. deprecated="not deprecated">
  28372. <exception name="IOException" type="java.io.IOException"/>
  28373. <doc>
  28374. <![CDATA[Log the current user out who previously logged in using keytab.
  28375. This method assumes that the user logged in by calling
  28376. {@link #loginUserFromKeytab(String, String)}.
  28377. @throws IOException
  28378. @throws KerberosAuthException if a failure occurred in logout,
  28379. or if the user did not log in by invoking loginUserFromKeyTab() before.]]>
  28380. </doc>
  28381. </method>
  28382. <method name="checkTGTAndReloginFromKeytab"
  28383. abstract="false" native="false" synchronized="false"
  28384. static="false" final="false" visibility="public"
  28385. deprecated="not deprecated">
  28386. <exception name="IOException" type="java.io.IOException"/>
  28387. <doc>
  28388. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  28389. @throws IOException
  28390. @throws KerberosAuthException if it's a kerberos login exception.]]>
  28391. </doc>
  28392. </method>
  28393. <method name="reloginFromKeytab"
  28394. abstract="false" native="false" synchronized="false"
  28395. static="false" final="false" visibility="public"
  28396. deprecated="not deprecated">
  28397. <exception name="IOException" type="java.io.IOException"/>
  28398. <doc>
  28399. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  28400. file and logs them in. They become the currently logged-in user. This
  28401. method assumes that {@link #loginUserFromKeytab(String, String)} had
  28402. happened already.
  28403. The Subject field of this UserGroupInformation object is updated to have
  28404. the new credentials.
  28405. @throws IOException
  28406. @throws KerberosAuthException on a failure]]>
  28407. </doc>
  28408. </method>
  28409. <method name="forceReloginFromKeytab"
  28410. abstract="false" native="false" synchronized="false"
  28411. static="false" final="false" visibility="public"
  28412. deprecated="not deprecated">
  28413. <exception name="IOException" type="java.io.IOException"/>
  28414. <doc>
  28415. <![CDATA[Force re-Login a user in from a keytab file irrespective of the last login
  28416. time. Loads a user identity from a keytab file and logs them in. They
  28417. become the currently logged-in user. This method assumes that
  28418. {@link #loginUserFromKeytab(String, String)} had happened already. The
  28419. Subject field of this UserGroupInformation object is updated to have the
  28420. new credentials.
  28421. @throws IOException
  28422. @throws KerberosAuthException on a failure]]>
  28423. </doc>
  28424. </method>
  28425. <method name="reloginFromTicketCache"
  28426. abstract="false" native="false" synchronized="false"
  28427. static="false" final="false" visibility="public"
  28428. deprecated="not deprecated">
  28429. <exception name="IOException" type="java.io.IOException"/>
  28430. <doc>
  28431. <![CDATA[Re-Login a user in from the ticket cache. This
  28432. method assumes that login had happened already.
  28433. The Subject field of this UserGroupInformation object is updated to have
  28434. the new credentials.
  28435. @throws IOException
  28436. @throws KerberosAuthException on a failure]]>
  28437. </doc>
  28438. </method>
  28439. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  28440. abstract="false" native="false" synchronized="false"
  28441. static="true" final="false" visibility="public"
  28442. deprecated="not deprecated">
  28443. <param name="user" type="java.lang.String"/>
  28444. <param name="path" type="java.lang.String"/>
  28445. <exception name="IOException" type="java.io.IOException"/>
  28446. <doc>
  28447. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  28448. file and login them in. This new user does not affect the currently
  28449. logged-in user.
  28450. @param user the principal name to load from the keytab
  28451. @param path the path to the keytab file
  28452. @throws IOException if the keytab file can't be read]]>
  28453. </doc>
  28454. </method>
  28455. <method name="isLoginKeytabBased" return="boolean"
  28456. abstract="false" native="false" synchronized="false"
  28457. static="true" final="false" visibility="public"
  28458. deprecated="not deprecated">
  28459. <exception name="IOException" type="java.io.IOException"/>
  28460. <doc>
  28461. <![CDATA[Did the login happen via keytab
  28462. @return true or false]]>
  28463. </doc>
  28464. </method>
  28465. <method name="isLoginTicketBased" return="boolean"
  28466. abstract="false" native="false" synchronized="false"
  28467. static="true" final="false" visibility="public"
  28468. deprecated="not deprecated">
  28469. <exception name="IOException" type="java.io.IOException"/>
  28470. <doc>
  28471. <![CDATA[Did the login happen via ticket cache
  28472. @return true or false]]>
  28473. </doc>
  28474. </method>
  28475. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  28476. abstract="false" native="false" synchronized="false"
  28477. static="true" final="false" visibility="public"
  28478. deprecated="not deprecated">
  28479. <param name="user" type="java.lang.String"/>
  28480. <doc>
  28481. <![CDATA[Create a user from a login name. It is intended to be used for remote
  28482. users in RPC, since it won't have any credentials.
  28483. @param user the full user principal name, must not be empty or null
  28484. @return the UserGroupInformation for the remote user.]]>
  28485. </doc>
  28486. </method>
  28487. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  28488. abstract="false" native="false" synchronized="false"
  28489. static="true" final="false" visibility="public"
  28490. deprecated="not deprecated">
  28491. <param name="user" type="java.lang.String"/>
  28492. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  28493. <doc>
  28494. <![CDATA[Create a user from a login name. It is intended to be used for remote
  28495. users in RPC, since it won't have any credentials.
  28496. @param user the full user principal name, must not be empty or null
  28497. @return the UserGroupInformation for the remote user.]]>
  28498. </doc>
  28499. </method>
  28500. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  28501. abstract="false" native="false" synchronized="false"
  28502. static="true" final="false" visibility="public"
  28503. deprecated="not deprecated">
  28504. <param name="user" type="java.lang.String"/>
  28505. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  28506. <doc>
  28507. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  28508. real user.
  28509. @param user
  28510. @param realUser
  28511. @return proxyUser ugi]]>
  28512. </doc>
  28513. </method>
  28514. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  28515. abstract="false" native="false" synchronized="false"
  28516. static="false" final="false" visibility="public"
  28517. deprecated="not deprecated">
  28518. <doc>
  28519. <![CDATA[get RealUser (vs. EffectiveUser)
  28520. @return realUser running over proxy user]]>
  28521. </doc>
  28522. </method>
  28523. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  28524. abstract="false" native="false" synchronized="false"
  28525. static="true" final="false" visibility="public"
  28526. deprecated="not deprecated">
  28527. <param name="user" type="java.lang.String"/>
  28528. <param name="userGroups" type="java.lang.String[]"/>
  28529. <doc>
  28530. <![CDATA[Create a UGI for testing HDFS and MapReduce
  28531. @param user the full user principal name
  28532. @param userGroups the names of the groups that the user belongs to
  28533. @return a fake user for running unit tests]]>
  28534. </doc>
  28535. </method>
  28536. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  28537. abstract="false" native="false" synchronized="false"
  28538. static="true" final="false" visibility="public"
  28539. deprecated="not deprecated">
  28540. <param name="user" type="java.lang.String"/>
  28541. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  28542. <param name="userGroups" type="java.lang.String[]"/>
  28543. <doc>
  28544. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  28545. @param user
  28546. the full user principal name for effective user
  28547. @param realUser
  28548. UGI of the real user
  28549. @param userGroups
  28550. the names of the groups that the user belongs to
  28551. @return a fake user for running unit tests]]>
  28552. </doc>
  28553. </method>
  28554. <method name="getShortUserName" return="java.lang.String"
  28555. abstract="false" native="false" synchronized="false"
  28556. static="false" final="false" visibility="public"
  28557. deprecated="not deprecated">
  28558. <doc>
  28559. <![CDATA[Get the user's login name.
  28560. @return the user's name up to the first '/' or '@'.]]>
  28561. </doc>
  28562. </method>
  28563. <method name="getPrimaryGroupName" return="java.lang.String"
  28564. abstract="false" native="false" synchronized="false"
  28565. static="false" final="false" visibility="public"
  28566. deprecated="not deprecated">
  28567. <exception name="IOException" type="java.io.IOException"/>
  28568. </method>
  28569. <method name="getUserName" return="java.lang.String"
  28570. abstract="false" native="false" synchronized="false"
  28571. static="false" final="false" visibility="public"
  28572. deprecated="not deprecated">
  28573. <doc>
  28574. <![CDATA[Get the user's full principal name.
  28575. @return the user's full principal name.]]>
  28576. </doc>
  28577. </method>
  28578. <method name="addTokenIdentifier" return="boolean"
  28579. abstract="false" native="false" synchronized="true"
  28580. static="false" final="false" visibility="public"
  28581. deprecated="not deprecated">
  28582. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  28583. <doc>
  28584. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  28585. authenticated by the RPC layer as belonging to the user represented by this
  28586. UGI.
  28587. @param tokenId
  28588. tokenIdentifier to be added
  28589. @return true on successful add of new tokenIdentifier]]>
  28590. </doc>
  28591. </method>
  28592. <method name="getTokenIdentifiers" return="java.util.Set"
  28593. abstract="false" native="false" synchronized="true"
  28594. static="false" final="false" visibility="public"
  28595. deprecated="not deprecated">
  28596. <doc>
  28597. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  28598. @return the set of TokenIdentifiers belonging to this UGI]]>
  28599. </doc>
  28600. </method>
  28601. <method name="addToken" return="boolean"
  28602. abstract="false" native="false" synchronized="false"
  28603. static="false" final="false" visibility="public"
  28604. deprecated="not deprecated">
  28605. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  28606. <doc>
  28607. <![CDATA[Add a token to this UGI
  28608. @param token Token to be added
  28609. @return true on successful add of new token]]>
  28610. </doc>
  28611. </method>
  28612. <method name="addToken" return="boolean"
  28613. abstract="false" native="false" synchronized="false"
  28614. static="false" final="false" visibility="public"
  28615. deprecated="not deprecated">
  28616. <param name="alias" type="org.apache.hadoop.io.Text"/>
  28617. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  28618. <doc>
  28619. <![CDATA[Add a named token to this UGI
  28620. @param alias Name of the token
  28621. @param token Token to be added
  28622. @return true on successful add of new token]]>
  28623. </doc>
  28624. </method>
  28625. <method name="getTokens" return="java.util.Collection"
  28626. abstract="false" native="false" synchronized="false"
  28627. static="false" final="false" visibility="public"
  28628. deprecated="not deprecated">
  28629. <doc>
  28630. <![CDATA[Obtain the collection of tokens associated with this user.
  28631. @return an unmodifiable collection of tokens associated with user]]>
  28632. </doc>
  28633. </method>
  28634. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  28635. abstract="false" native="false" synchronized="false"
  28636. static="false" final="false" visibility="public"
  28637. deprecated="not deprecated">
  28638. <doc>
  28639. <![CDATA[Obtain the tokens in credentials form associated with this user.
  28640. @return Credentials of tokens associated with this user]]>
  28641. </doc>
  28642. </method>
  28643. <method name="addCredentials"
  28644. abstract="false" native="false" synchronized="false"
  28645. static="false" final="false" visibility="public"
  28646. deprecated="not deprecated">
  28647. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  28648. <doc>
  28649. <![CDATA[Add the given Credentials to this user.
  28650. @param credentials of tokens and secrets]]>
  28651. </doc>
  28652. </method>
  28653. <method name="getGroupNames" return="java.lang.String[]"
  28654. abstract="false" native="false" synchronized="false"
  28655. static="false" final="false" visibility="public"
  28656. deprecated="not deprecated">
  28657. <doc>
  28658. <![CDATA[Get the group names for this user. {@link #getGroups()} is less
  28659. expensive alternative when checking for a contained element.
  28660. @return the list of users with the primary group first. If the command
  28661. fails, it returns an empty list.]]>
  28662. </doc>
  28663. </method>
  28664. <method name="getGroups" return="java.util.List"
  28665. abstract="false" native="false" synchronized="false"
  28666. static="false" final="false" visibility="public"
  28667. deprecated="not deprecated">
  28668. <doc>
  28669. <![CDATA[Get the group names for this user.
  28670. @return the list of users with the primary group first. If the command
  28671. fails, it returns an empty list.]]>
  28672. </doc>
  28673. </method>
  28674. <method name="toString" return="java.lang.String"
  28675. abstract="false" native="false" synchronized="false"
  28676. static="false" final="false" visibility="public"
  28677. deprecated="not deprecated">
  28678. <doc>
  28679. <![CDATA[Return the username.]]>
  28680. </doc>
  28681. </method>
  28682. <method name="setAuthenticationMethod"
  28683. abstract="false" native="false" synchronized="true"
  28684. static="false" final="false" visibility="public"
  28685. deprecated="not deprecated">
  28686. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  28687. <doc>
  28688. <![CDATA[Sets the authentication method in the subject
  28689. @param authMethod]]>
  28690. </doc>
  28691. </method>
  28692. <method name="setAuthenticationMethod"
  28693. abstract="false" native="false" synchronized="false"
  28694. static="false" final="false" visibility="public"
  28695. deprecated="not deprecated">
  28696. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  28697. <doc>
  28698. <![CDATA[Sets the authentication method in the subject
  28699. @param authMethod]]>
  28700. </doc>
  28701. </method>
  28702. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28703. abstract="false" native="false" synchronized="true"
  28704. static="false" final="false" visibility="public"
  28705. deprecated="not deprecated">
  28706. <doc>
  28707. <![CDATA[Get the authentication method from the subject
  28708. @return AuthenticationMethod in the subject, null if not present.]]>
  28709. </doc>
  28710. </method>
  28711. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28712. abstract="false" native="false" synchronized="true"
  28713. static="false" final="false" visibility="public"
  28714. deprecated="not deprecated">
  28715. <doc>
  28716. <![CDATA[Get the authentication method from the real user's subject. If there
  28717. is no real user, return the given user's authentication method.
  28718. @return AuthenticationMethod in the subject, null if not present.]]>
  28719. </doc>
  28720. </method>
  28721. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28722. abstract="false" native="false" synchronized="false"
  28723. static="true" final="false" visibility="public"
  28724. deprecated="not deprecated">
  28725. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  28726. <doc>
  28727. <![CDATA[Returns the authentication method of a ugi. If the authentication method is
  28728. PROXY, returns the authentication method of the real user.
  28729. @param ugi
  28730. @return AuthenticationMethod]]>
  28731. </doc>
  28732. </method>
  28733. <method name="equals" return="boolean"
  28734. abstract="false" native="false" synchronized="false"
  28735. static="false" final="false" visibility="public"
  28736. deprecated="not deprecated">
  28737. <param name="o" type="java.lang.Object"/>
  28738. <doc>
  28739. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  28740. </doc>
  28741. </method>
  28742. <method name="hashCode" return="int"
  28743. abstract="false" native="false" synchronized="false"
  28744. static="false" final="false" visibility="public"
  28745. deprecated="not deprecated">
  28746. <doc>
  28747. <![CDATA[Return the hash of the subject.]]>
  28748. </doc>
  28749. </method>
  28750. <method name="getSubject" return="javax.security.auth.Subject"
  28751. abstract="false" native="false" synchronized="false"
  28752. static="false" final="false" visibility="protected"
  28753. deprecated="not deprecated">
  28754. <doc>
  28755. <![CDATA[Get the underlying subject from this ugi.
  28756. @return the subject that represents this user.]]>
  28757. </doc>
  28758. </method>
  28759. <method name="doAs" return="T"
  28760. abstract="false" native="false" synchronized="false"
  28761. static="false" final="false" visibility="public"
  28762. deprecated="not deprecated">
  28763. <param name="action" type="java.security.PrivilegedAction"/>
  28764. <doc>
  28765. <![CDATA[Run the given action as the user.
  28766. @param <T> the return type of the run method
  28767. @param action the method to execute
  28768. @return the value from the run method]]>
  28769. </doc>
  28770. </method>
  28771. <method name="doAs" return="T"
  28772. abstract="false" native="false" synchronized="false"
  28773. static="false" final="false" visibility="public"
  28774. deprecated="not deprecated">
  28775. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  28776. <exception name="IOException" type="java.io.IOException"/>
  28777. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  28778. <doc>
  28779. <![CDATA[Run the given action as the user, potentially throwing an exception.
  28780. @param <T> the return type of the run method
  28781. @param action the method to execute
  28782. @return the value from the run method
  28783. @throws IOException if the action throws an IOException
  28784. @throws Error if the action throws an Error
  28785. @throws RuntimeException if the action throws a RuntimeException
  28786. @throws InterruptedException if the action throws an InterruptedException
  28787. @throws UndeclaredThrowableException if the action throws something else]]>
  28788. </doc>
  28789. </method>
  28790. <method name="logAllUserInfo"
  28791. abstract="false" native="false" synchronized="false"
  28792. static="true" final="false" visibility="public"
  28793. deprecated="not deprecated">
  28794. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  28795. <exception name="IOException" type="java.io.IOException"/>
  28796. <doc>
  28797. <![CDATA[Log all (current, real, login) UGI and token info into UGI debug log.
  28798. @param ugi - UGI
  28799. @throws IOException]]>
  28800. </doc>
  28801. </method>
  28802. <method name="main"
  28803. abstract="false" native="false" synchronized="false"
  28804. static="true" final="false" visibility="public"
  28805. deprecated="not deprecated">
  28806. <param name="args" type="java.lang.String[]"/>
  28807. <exception name="Exception" type="java.lang.Exception"/>
  28808. <doc>
  28809. <![CDATA[A test method to print out the current user's UGI.
  28810. @param args if there are two arguments, read the user from the keytab
  28811. and print it out.
  28812. @throws Exception]]>
  28813. </doc>
  28814. </method>
  28815. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  28816. transient="false" volatile="false"
  28817. static="true" final="true" visibility="public"
  28818. deprecated="not deprecated">
  28819. <doc>
  28820. <![CDATA[Environment variable pointing to the token cache file]]>
  28821. </doc>
  28822. </field>
  28823. <doc>
  28824. <![CDATA[User and group information for Hadoop.
  28825. This class wraps around a JAAS Subject and provides methods to determine the
  28826. user's username and groups. It supports both the Windows, Unix and Kerberos
  28827. login modules.]]>
  28828. </doc>
  28829. </class>
  28830. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  28831. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  28832. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  28833. abstract="false"
  28834. static="true" final="true" visibility="public"
  28835. deprecated="not deprecated">
  28836. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  28837. abstract="false" native="false" synchronized="false"
  28838. static="true" final="false" visibility="public"
  28839. deprecated="not deprecated">
  28840. </method>
  28841. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28842. abstract="false" native="false" synchronized="false"
  28843. static="true" final="false" visibility="public"
  28844. deprecated="not deprecated">
  28845. <param name="name" type="java.lang.String"/>
  28846. </method>
  28847. <method name="getAuthMethod" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  28848. abstract="false" native="false" synchronized="false"
  28849. static="false" final="false" visibility="public"
  28850. deprecated="not deprecated">
  28851. </method>
  28852. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28853. abstract="false" native="false" synchronized="false"
  28854. static="true" final="false" visibility="public"
  28855. deprecated="not deprecated">
  28856. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  28857. </method>
  28858. <doc>
  28859. <![CDATA[existing types of authentications' methods]]>
  28860. </doc>
  28861. </class>
  28862. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  28863. </package>
  28864. <package name="org.apache.hadoop.security.alias">
  28865. <!-- start class org.apache.hadoop.security.alias.CredentialProvider -->
  28866. <class name="CredentialProvider" extends="java.lang.Object"
  28867. abstract="true"
  28868. static="false" final="false" visibility="public"
  28869. deprecated="not deprecated">
  28870. <constructor name="CredentialProvider"
  28871. static="false" final="false" visibility="public"
  28872. deprecated="not deprecated">
  28873. </constructor>
  28874. <method name="isTransient" return="boolean"
  28875. abstract="false" native="false" synchronized="false"
  28876. static="false" final="false" visibility="public"
  28877. deprecated="not deprecated">
  28878. <doc>
  28879. <![CDATA[Indicates whether this provider represents a store
  28880. that is intended for transient use - such as the UserProvider
  28881. is. These providers are generally used to provide job access to
  28882. passwords rather than for long term storage.
  28883. @return true if transient, false otherwise]]>
  28884. </doc>
  28885. </method>
  28886. <method name="flush"
  28887. abstract="true" native="false" synchronized="false"
  28888. static="false" final="false" visibility="public"
  28889. deprecated="not deprecated">
  28890. <exception name="IOException" type="java.io.IOException"/>
  28891. <doc>
  28892. <![CDATA[Ensures that any changes to the credentials are written to persistent
  28893. store.
  28894. @throws IOException]]>
  28895. </doc>
  28896. </method>
  28897. <method name="getCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  28898. abstract="true" native="false" synchronized="false"
  28899. static="false" final="false" visibility="public"
  28900. deprecated="not deprecated">
  28901. <param name="alias" type="java.lang.String"/>
  28902. <exception name="IOException" type="java.io.IOException"/>
  28903. <doc>
  28904. <![CDATA[Get the credential entry for a specific alias.
  28905. @param alias the name of a specific credential
  28906. @return the credentialEntry
  28907. @throws IOException]]>
  28908. </doc>
  28909. </method>
  28910. <method name="getAliases" return="java.util.List"
  28911. abstract="true" native="false" synchronized="false"
  28912. static="false" final="false" visibility="public"
  28913. deprecated="not deprecated">
  28914. <exception name="IOException" type="java.io.IOException"/>
  28915. <doc>
  28916. <![CDATA[Get the aliases for all credentials.
  28917. @return the list of alias names
  28918. @throws IOException]]>
  28919. </doc>
  28920. </method>
  28921. <method name="createCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  28922. abstract="true" native="false" synchronized="false"
  28923. static="false" final="false" visibility="public"
  28924. deprecated="not deprecated">
  28925. <param name="name" type="java.lang.String"/>
  28926. <param name="credential" type="char[]"/>
  28927. <exception name="IOException" type="java.io.IOException"/>
  28928. <doc>
  28929. <![CDATA[Create a new credential. The given alias must not already exist.
  28930. @param name the alias of the credential
  28931. @param credential the credential value for the alias.
  28932. @throws IOException]]>
  28933. </doc>
  28934. </method>
  28935. <method name="deleteCredentialEntry"
  28936. abstract="true" native="false" synchronized="false"
  28937. static="false" final="false" visibility="public"
  28938. deprecated="not deprecated">
  28939. <param name="name" type="java.lang.String"/>
  28940. <exception name="IOException" type="java.io.IOException"/>
  28941. <doc>
  28942. <![CDATA[Delete the given credential.
  28943. @param name the alias of the credential to delete
  28944. @throws IOException]]>
  28945. </doc>
  28946. </method>
  28947. <method name="needsPassword" return="boolean"
  28948. abstract="false" native="false" synchronized="false"
  28949. static="false" final="false" visibility="public"
  28950. deprecated="not deprecated">
  28951. <exception name="IOException" type="java.io.IOException"/>
  28952. <doc>
  28953. <![CDATA[Does this provider require a password? This means that a password is
  28954. required for normal operation, and it has not been found through normal
  28955. means. If true, the password should be provided by the caller using
  28956. setPassword().
  28957. @return Whether or not the provider requires a password
  28958. @throws IOException]]>
  28959. </doc>
  28960. </method>
  28961. <method name="noPasswordWarning" return="java.lang.String"
  28962. abstract="false" native="false" synchronized="false"
  28963. static="false" final="false" visibility="public"
  28964. deprecated="not deprecated">
  28965. <doc>
  28966. <![CDATA[If a password for the provider is needed, but is not provided, this will
  28967. return a warning and instructions for supplying said password to the
  28968. provider.
  28969. @return A warning and instructions for supplying the password]]>
  28970. </doc>
  28971. </method>
  28972. <method name="noPasswordError" return="java.lang.String"
  28973. abstract="false" native="false" synchronized="false"
  28974. static="false" final="false" visibility="public"
  28975. deprecated="not deprecated">
  28976. <doc>
  28977. <![CDATA[If a password for the provider is needed, but is not provided, this will
  28978. return an error message and instructions for supplying said password to
  28979. the provider.
  28980. @return An error message and instructions for supplying the password]]>
  28981. </doc>
  28982. </method>
  28983. <field name="CLEAR_TEXT_FALLBACK" type="java.lang.String"
  28984. transient="false" volatile="false"
  28985. static="true" final="true" visibility="public"
  28986. deprecated="not deprecated">
  28987. </field>
  28988. <doc>
  28989. <![CDATA[A provider of credentials or password for Hadoop applications. Provides an
  28990. abstraction to separate credential storage from users of them. It
  28991. is intended to support getting or storing passwords in a variety of ways,
  28992. including third party bindings.
  28993. <code>CredentialProvider</code> implementations must be thread safe.]]>
  28994. </doc>
  28995. </class>
  28996. <!-- end class org.apache.hadoop.security.alias.CredentialProvider -->
  28997. <!-- start class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  28998. <class name="CredentialProviderFactory" extends="java.lang.Object"
  28999. abstract="true"
  29000. static="false" final="false" visibility="public"
  29001. deprecated="not deprecated">
  29002. <constructor name="CredentialProviderFactory"
  29003. static="false" final="false" visibility="public"
  29004. deprecated="not deprecated">
  29005. </constructor>
  29006. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  29007. abstract="true" native="false" synchronized="false"
  29008. static="false" final="false" visibility="public"
  29009. deprecated="not deprecated">
  29010. <param name="providerName" type="java.net.URI"/>
  29011. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29012. <exception name="IOException" type="java.io.IOException"/>
  29013. </method>
  29014. <method name="getProviders" return="java.util.List"
  29015. abstract="false" native="false" synchronized="false"
  29016. static="true" final="false" visibility="public"
  29017. deprecated="not deprecated">
  29018. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29019. <exception name="IOException" type="java.io.IOException"/>
  29020. </method>
  29021. <field name="CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  29022. transient="false" volatile="false"
  29023. static="true" final="true" visibility="public"
  29024. deprecated="not deprecated">
  29025. </field>
  29026. <doc>
  29027. <![CDATA[A factory to create a list of CredentialProvider based on the path given in a
  29028. Configuration. It uses a service loader interface to find the available
  29029. CredentialProviders and create them based on the list of URIs.]]>
  29030. </doc>
  29031. </class>
  29032. <!-- end class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  29033. </package>
  29034. <package name="org.apache.hadoop.security.authorize">
  29035. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  29036. <class name="AccessControlList" extends="java.lang.Object"
  29037. abstract="false"
  29038. static="false" final="false" visibility="public"
  29039. deprecated="not deprecated">
  29040. <implements name="org.apache.hadoop.io.Writable"/>
  29041. <constructor name="AccessControlList"
  29042. static="false" final="false" visibility="public"
  29043. deprecated="not deprecated">
  29044. <doc>
  29045. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  29046. </doc>
  29047. </constructor>
  29048. <constructor name="AccessControlList" type="java.lang.String"
  29049. static="false" final="false" visibility="public"
  29050. deprecated="not deprecated">
  29051. <doc>
  29052. <![CDATA[Construct a new ACL from a String representation of the same.
  29053. The String is a a comma separated list of users and groups.
  29054. The user list comes first and is separated by a space followed
  29055. by the group list. For e.g. "user1,user2 group1,group2"
  29056. @param aclString String representation of the ACL]]>
  29057. </doc>
  29058. </constructor>
  29059. <constructor name="AccessControlList" type="java.lang.String, java.lang.String"
  29060. static="false" final="false" visibility="public"
  29061. deprecated="not deprecated">
  29062. <doc>
  29063. <![CDATA[Construct a new ACL from String representation of users and groups
  29064. The arguments are comma separated lists
  29065. @param users comma separated list of users
  29066. @param groups comma separated list of groups]]>
  29067. </doc>
  29068. </constructor>
  29069. <method name="isAllAllowed" return="boolean"
  29070. abstract="false" native="false" synchronized="false"
  29071. static="false" final="false" visibility="public"
  29072. deprecated="not deprecated">
  29073. </method>
  29074. <method name="addUser"
  29075. abstract="false" native="false" synchronized="false"
  29076. static="false" final="false" visibility="public"
  29077. deprecated="not deprecated">
  29078. <param name="user" type="java.lang.String"/>
  29079. <doc>
  29080. <![CDATA[Add user to the names of users allowed for this service.
  29081. @param user
  29082. The user name]]>
  29083. </doc>
  29084. </method>
  29085. <method name="addGroup"
  29086. abstract="false" native="false" synchronized="false"
  29087. static="false" final="false" visibility="public"
  29088. deprecated="not deprecated">
  29089. <param name="group" type="java.lang.String"/>
  29090. <doc>
  29091. <![CDATA[Add group to the names of groups allowed for this service.
  29092. @param group
  29093. The group name]]>
  29094. </doc>
  29095. </method>
  29096. <method name="removeUser"
  29097. abstract="false" native="false" synchronized="false"
  29098. static="false" final="false" visibility="public"
  29099. deprecated="not deprecated">
  29100. <param name="user" type="java.lang.String"/>
  29101. <doc>
  29102. <![CDATA[Remove user from the names of users allowed for this service.
  29103. @param user
  29104. The user name]]>
  29105. </doc>
  29106. </method>
  29107. <method name="removeGroup"
  29108. abstract="false" native="false" synchronized="false"
  29109. static="false" final="false" visibility="public"
  29110. deprecated="not deprecated">
  29111. <param name="group" type="java.lang.String"/>
  29112. <doc>
  29113. <![CDATA[Remove group from the names of groups allowed for this service.
  29114. @param group
  29115. The group name]]>
  29116. </doc>
  29117. </method>
  29118. <method name="getUsers" return="java.util.Collection"
  29119. abstract="false" native="false" synchronized="false"
  29120. static="false" final="false" visibility="public"
  29121. deprecated="not deprecated">
  29122. <doc>
  29123. <![CDATA[Get the names of users allowed for this service.
  29124. @return the set of user names. the set must not be modified.]]>
  29125. </doc>
  29126. </method>
  29127. <method name="getGroups" return="java.util.Collection"
  29128. abstract="false" native="false" synchronized="false"
  29129. static="false" final="false" visibility="public"
  29130. deprecated="not deprecated">
  29131. <doc>
  29132. <![CDATA[Get the names of user groups allowed for this service.
  29133. @return the set of group names. the set must not be modified.]]>
  29134. </doc>
  29135. </method>
  29136. <method name="isUserInList" return="boolean"
  29137. abstract="false" native="false" synchronized="false"
  29138. static="false" final="true" visibility="public"
  29139. deprecated="not deprecated">
  29140. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  29141. <doc>
  29142. <![CDATA[Checks if a user represented by the provided {@link UserGroupInformation}
  29143. is a member of the Access Control List. If user was proxied and
  29144. USE_REAL_ACLS + the real user name is in the control list, then treat this
  29145. case as if user were in the ACL list.
  29146. @param ugi UserGroupInformation to check if contained in the ACL
  29147. @return true if ugi is member of the list or if USE_REAL_ACLS + real user
  29148. is in the list]]>
  29149. </doc>
  29150. </method>
  29151. <method name="isUserAllowed" return="boolean"
  29152. abstract="false" native="false" synchronized="false"
  29153. static="false" final="false" visibility="public"
  29154. deprecated="not deprecated">
  29155. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  29156. </method>
  29157. <method name="toString" return="java.lang.String"
  29158. abstract="false" native="false" synchronized="false"
  29159. static="false" final="false" visibility="public"
  29160. deprecated="not deprecated">
  29161. <doc>
  29162. <![CDATA[Returns descriptive way of users and groups that are part of this ACL.
  29163. Use {@link #getAclString()} to get the exact String that can be given to
  29164. the constructor of AccessControlList to create a new instance.]]>
  29165. </doc>
  29166. </method>
  29167. <method name="getAclString" return="java.lang.String"
  29168. abstract="false" native="false" synchronized="false"
  29169. static="false" final="false" visibility="public"
  29170. deprecated="not deprecated">
  29171. <doc>
  29172. <![CDATA[Returns the access control list as a String that can be used for building a
  29173. new instance by sending it to the constructor of {@link AccessControlList}.]]>
  29174. </doc>
  29175. </method>
  29176. <method name="write"
  29177. abstract="false" native="false" synchronized="false"
  29178. static="false" final="false" visibility="public"
  29179. deprecated="not deprecated">
  29180. <param name="out" type="java.io.DataOutput"/>
  29181. <exception name="IOException" type="java.io.IOException"/>
  29182. <doc>
  29183. <![CDATA[Serializes the AccessControlList object]]>
  29184. </doc>
  29185. </method>
  29186. <method name="readFields"
  29187. abstract="false" native="false" synchronized="false"
  29188. static="false" final="false" visibility="public"
  29189. deprecated="not deprecated">
  29190. <param name="in" type="java.io.DataInput"/>
  29191. <exception name="IOException" type="java.io.IOException"/>
  29192. <doc>
  29193. <![CDATA[Deserializes the AccessControlList object]]>
  29194. </doc>
  29195. </method>
  29196. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  29197. transient="false" volatile="false"
  29198. static="true" final="true" visibility="public"
  29199. deprecated="not deprecated">
  29200. </field>
  29201. <field name="USE_REAL_ACLS" type="java.lang.String"
  29202. transient="false" volatile="false"
  29203. static="true" final="true" visibility="public"
  29204. deprecated="not deprecated">
  29205. </field>
  29206. <doc>
  29207. <![CDATA[Class representing a configured access control list.]]>
  29208. </doc>
  29209. </class>
  29210. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  29211. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  29212. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  29213. abstract="false"
  29214. static="false" final="false" visibility="public"
  29215. deprecated="not deprecated">
  29216. <constructor name="AuthorizationException"
  29217. static="false" final="false" visibility="public"
  29218. deprecated="not deprecated">
  29219. </constructor>
  29220. <constructor name="AuthorizationException" type="java.lang.String"
  29221. static="false" final="false" visibility="public"
  29222. deprecated="not deprecated">
  29223. </constructor>
  29224. <constructor name="AuthorizationException" type="java.lang.Throwable"
  29225. static="false" final="false" visibility="public"
  29226. deprecated="not deprecated">
  29227. <doc>
  29228. <![CDATA[Constructs a new exception with the specified cause and a detail
  29229. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  29230. typically contains the class and detail message of <tt>cause</tt>).
  29231. @param cause the cause (which is saved for later retrieval by the
  29232. {@link #getCause()} method). (A <tt>null</tt> value is
  29233. permitted, and indicates that the cause is nonexistent or
  29234. unknown.)]]>
  29235. </doc>
  29236. </constructor>
  29237. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  29238. abstract="false" native="false" synchronized="false"
  29239. static="false" final="false" visibility="public"
  29240. deprecated="not deprecated">
  29241. </method>
  29242. <method name="printStackTrace"
  29243. abstract="false" native="false" synchronized="false"
  29244. static="false" final="false" visibility="public"
  29245. deprecated="not deprecated">
  29246. </method>
  29247. <method name="printStackTrace"
  29248. abstract="false" native="false" synchronized="false"
  29249. static="false" final="false" visibility="public"
  29250. deprecated="not deprecated">
  29251. <param name="s" type="java.io.PrintStream"/>
  29252. </method>
  29253. <method name="printStackTrace"
  29254. abstract="false" native="false" synchronized="false"
  29255. static="false" final="false" visibility="public"
  29256. deprecated="not deprecated">
  29257. <param name="s" type="java.io.PrintWriter"/>
  29258. </method>
  29259. <doc>
  29260. <![CDATA[An exception class for authorization-related issues.
  29261. This class <em>does not</em> provide the stack trace for security purposes.]]>
  29262. </doc>
  29263. </class>
  29264. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  29265. <!-- start class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  29266. <class name="DefaultImpersonationProvider" extends="java.lang.Object"
  29267. abstract="false"
  29268. static="false" final="false" visibility="public"
  29269. deprecated="not deprecated">
  29270. <implements name="org.apache.hadoop.security.authorize.ImpersonationProvider"/>
  29271. <constructor name="DefaultImpersonationProvider"
  29272. static="false" final="false" visibility="public"
  29273. deprecated="not deprecated">
  29274. </constructor>
  29275. <method name="getTestProvider" return="org.apache.hadoop.security.authorize.DefaultImpersonationProvider"
  29276. abstract="false" native="false" synchronized="true"
  29277. static="true" final="false" visibility="public"
  29278. deprecated="not deprecated">
  29279. </method>
  29280. <method name="setConf"
  29281. abstract="false" native="false" synchronized="false"
  29282. static="false" final="false" visibility="public"
  29283. deprecated="not deprecated">
  29284. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29285. </method>
  29286. <method name="init"
  29287. abstract="false" native="false" synchronized="false"
  29288. static="false" final="false" visibility="public"
  29289. deprecated="not deprecated">
  29290. <param name="configurationPrefix" type="java.lang.String"/>
  29291. </method>
  29292. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  29293. abstract="false" native="false" synchronized="false"
  29294. static="false" final="false" visibility="public"
  29295. deprecated="not deprecated">
  29296. </method>
  29297. <method name="authorize"
  29298. abstract="false" native="false" synchronized="false"
  29299. static="false" final="false" visibility="public"
  29300. deprecated="not deprecated">
  29301. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  29302. <param name="remoteAddress" type="java.net.InetAddress"/>
  29303. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  29304. </method>
  29305. <method name="getProxySuperuserUserConfKey" return="java.lang.String"
  29306. abstract="false" native="false" synchronized="false"
  29307. static="false" final="false" visibility="public"
  29308. deprecated="not deprecated">
  29309. <param name="userName" type="java.lang.String"/>
  29310. <doc>
  29311. <![CDATA[Returns configuration key for effective usergroups allowed for a superuser
  29312. @param userName name of the superuser
  29313. @return configuration key for superuser usergroups]]>
  29314. </doc>
  29315. </method>
  29316. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  29317. abstract="false" native="false" synchronized="false"
  29318. static="false" final="false" visibility="public"
  29319. deprecated="not deprecated">
  29320. <param name="userName" type="java.lang.String"/>
  29321. <doc>
  29322. <![CDATA[Returns configuration key for effective groups allowed for a superuser
  29323. @param userName name of the superuser
  29324. @return configuration key for superuser groups]]>
  29325. </doc>
  29326. </method>
  29327. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  29328. abstract="false" native="false" synchronized="false"
  29329. static="false" final="false" visibility="public"
  29330. deprecated="not deprecated">
  29331. <param name="userName" type="java.lang.String"/>
  29332. <doc>
  29333. <![CDATA[Return configuration key for superuser ip addresses
  29334. @param userName name of the superuser
  29335. @return configuration key for superuser ip-addresses]]>
  29336. </doc>
  29337. </method>
  29338. <method name="getProxyGroups" return="java.util.Map"
  29339. abstract="false" native="false" synchronized="false"
  29340. static="false" final="false" visibility="public"
  29341. deprecated="not deprecated">
  29342. </method>
  29343. <method name="getProxyHosts" return="java.util.Map"
  29344. abstract="false" native="false" synchronized="false"
  29345. static="false" final="false" visibility="public"
  29346. deprecated="not deprecated">
  29347. </method>
  29348. </class>
  29349. <!-- end class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  29350. <!-- start interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  29351. <interface name="ImpersonationProvider" abstract="true"
  29352. static="false" final="false" visibility="public"
  29353. deprecated="not deprecated">
  29354. <implements name="org.apache.hadoop.conf.Configurable"/>
  29355. <method name="init"
  29356. abstract="true" native="false" synchronized="false"
  29357. static="false" final="false" visibility="public"
  29358. deprecated="not deprecated">
  29359. <param name="configurationPrefix" type="java.lang.String"/>
  29360. <doc>
  29361. <![CDATA[Specifies the configuration prefix for the proxy user properties and
  29362. initializes the provider.
  29363. @param configurationPrefix the configuration prefix for the proxy user
  29364. properties]]>
  29365. </doc>
  29366. </method>
  29367. <method name="authorize"
  29368. abstract="false" native="false" synchronized="false"
  29369. static="false" final="false" visibility="public"
  29370. deprecated="not deprecated">
  29371. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  29372. <param name="remoteAddress" type="java.lang.String"/>
  29373. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  29374. <doc>
  29375. <![CDATA[Authorize the superuser which is doing doAs.
  29376. {@link #authorize(UserGroupInformation, InetAddress)} should
  29377. be preferred to avoid possibly re-resolving the ip address.
  29378. @param user ugi of the effective or proxy user which contains a real user.
  29379. @param remoteAddress the ip address of client.
  29380. @throws AuthorizationException]]>
  29381. </doc>
  29382. </method>
  29383. <method name="authorize"
  29384. abstract="true" native="false" synchronized="false"
  29385. static="false" final="false" visibility="public"
  29386. deprecated="not deprecated">
  29387. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  29388. <param name="remoteAddress" type="java.net.InetAddress"/>
  29389. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  29390. <doc>
  29391. <![CDATA[Authorize the superuser which is doing doAs.
  29392. @param user ugi of the effective or proxy user which contains a real user
  29393. @param remoteAddress the ip address of client
  29394. @throws AuthorizationException]]>
  29395. </doc>
  29396. </method>
  29397. </interface>
  29398. <!-- end interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  29399. </package>
  29400. <package name="org.apache.hadoop.security.http">
  29401. <!-- start class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  29402. <class name="RestCsrfPreventionFilter" extends="java.lang.Object"
  29403. abstract="false"
  29404. static="false" final="false" visibility="public"
  29405. deprecated="not deprecated">
  29406. <implements name="javax.servlet.Filter"/>
  29407. <constructor name="RestCsrfPreventionFilter"
  29408. static="false" final="false" visibility="public"
  29409. deprecated="not deprecated">
  29410. </constructor>
  29411. <method name="init"
  29412. abstract="false" native="false" synchronized="false"
  29413. static="false" final="false" visibility="public"
  29414. deprecated="not deprecated">
  29415. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  29416. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29417. </method>
  29418. <method name="isBrowser" return="boolean"
  29419. abstract="false" native="false" synchronized="false"
  29420. static="false" final="false" visibility="protected"
  29421. deprecated="not deprecated">
  29422. <param name="userAgent" type="java.lang.String"/>
  29423. <doc>
  29424. <![CDATA[This method interrogates the User-Agent String and returns whether it
  29425. refers to a browser. If its not a browser, then the requirement for the
  29426. CSRF header will not be enforced; if it is a browser, the requirement will
  29427. be enforced.
  29428. <p>
  29429. A User-Agent String is considered to be a browser if it matches
  29430. any of the regex patterns from browser-useragent-regex; the default
  29431. behavior is to consider everything a browser that matches the following:
  29432. "^Mozilla.*,^Opera.*". Subclasses can optionally override
  29433. this method to use different behavior.
  29434. @param userAgent The User-Agent String, or null if there isn't one
  29435. @return true if the User-Agent String refers to a browser, false if not]]>
  29436. </doc>
  29437. </method>
  29438. <method name="handleHttpInteraction"
  29439. abstract="false" native="false" synchronized="false"
  29440. static="false" final="false" visibility="public"
  29441. deprecated="not deprecated">
  29442. <param name="httpInteraction" type="org.apache.hadoop.security.http.RestCsrfPreventionFilter.HttpInteraction"/>
  29443. <exception name="IOException" type="java.io.IOException"/>
  29444. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29445. <doc>
  29446. <![CDATA[Handles an {@link HttpInteraction} by applying the filtering logic.
  29447. @param httpInteraction caller's HTTP interaction
  29448. @throws IOException if there is an I/O error
  29449. @throws ServletException if the implementation relies on the servlet API
  29450. and a servlet API call has failed]]>
  29451. </doc>
  29452. </method>
  29453. <method name="doFilter"
  29454. abstract="false" native="false" synchronized="false"
  29455. static="false" final="false" visibility="public"
  29456. deprecated="not deprecated">
  29457. <param name="request" type="javax.servlet.ServletRequest"/>
  29458. <param name="response" type="javax.servlet.ServletResponse"/>
  29459. <param name="chain" type="javax.servlet.FilterChain"/>
  29460. <exception name="IOException" type="java.io.IOException"/>
  29461. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29462. </method>
  29463. <method name="destroy"
  29464. abstract="false" native="false" synchronized="false"
  29465. static="false" final="false" visibility="public"
  29466. deprecated="not deprecated">
  29467. </method>
  29468. <method name="getFilterParams" return="java.util.Map"
  29469. abstract="false" native="false" synchronized="false"
  29470. static="true" final="false" visibility="public"
  29471. deprecated="not deprecated">
  29472. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29473. <param name="confPrefix" type="java.lang.String"/>
  29474. <doc>
  29475. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  29476. initialization. The mapping includes all properties that start with the
  29477. specified configuration prefix. Property names in the mapping are trimmed
  29478. to remove the configuration prefix.
  29479. @param conf configuration to read
  29480. @param confPrefix configuration prefix
  29481. @return mapping of configuration properties to be used for filter
  29482. initialization]]>
  29483. </doc>
  29484. </method>
  29485. <field name="HEADER_USER_AGENT" type="java.lang.String"
  29486. transient="false" volatile="false"
  29487. static="true" final="true" visibility="public"
  29488. deprecated="not deprecated">
  29489. </field>
  29490. <field name="BROWSER_USER_AGENT_PARAM" type="java.lang.String"
  29491. transient="false" volatile="false"
  29492. static="true" final="true" visibility="public"
  29493. deprecated="not deprecated">
  29494. </field>
  29495. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  29496. transient="false" volatile="false"
  29497. static="true" final="true" visibility="public"
  29498. deprecated="not deprecated">
  29499. </field>
  29500. <field name="CUSTOM_METHODS_TO_IGNORE_PARAM" type="java.lang.String"
  29501. transient="false" volatile="false"
  29502. static="true" final="true" visibility="public"
  29503. deprecated="not deprecated">
  29504. </field>
  29505. <field name="HEADER_DEFAULT" type="java.lang.String"
  29506. transient="false" volatile="false"
  29507. static="true" final="true" visibility="public"
  29508. deprecated="not deprecated">
  29509. </field>
  29510. <doc>
  29511. <![CDATA[This filter provides protection against cross site request forgery (CSRF)
  29512. attacks for REST APIs. Enabling this filter on an endpoint results in the
  29513. requirement of all client to send a particular (configurable) HTTP header
  29514. with every request. In the absense of this header the filter will reject the
  29515. attempt as a bad request.]]>
  29516. </doc>
  29517. </class>
  29518. <!-- end class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  29519. <!-- start class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  29520. <class name="XFrameOptionsFilter" extends="java.lang.Object"
  29521. abstract="false"
  29522. static="false" final="false" visibility="public"
  29523. deprecated="not deprecated">
  29524. <implements name="javax.servlet.Filter"/>
  29525. <constructor name="XFrameOptionsFilter"
  29526. static="false" final="false" visibility="public"
  29527. deprecated="not deprecated">
  29528. </constructor>
  29529. <method name="destroy"
  29530. abstract="false" native="false" synchronized="false"
  29531. static="false" final="false" visibility="public"
  29532. deprecated="not deprecated">
  29533. </method>
  29534. <method name="doFilter"
  29535. abstract="false" native="false" synchronized="false"
  29536. static="false" final="false" visibility="public"
  29537. deprecated="not deprecated">
  29538. <param name="req" type="javax.servlet.ServletRequest"/>
  29539. <param name="res" type="javax.servlet.ServletResponse"/>
  29540. <param name="chain" type="javax.servlet.FilterChain"/>
  29541. <exception name="IOException" type="java.io.IOException"/>
  29542. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29543. </method>
  29544. <method name="init"
  29545. abstract="false" native="false" synchronized="false"
  29546. static="false" final="false" visibility="public"
  29547. deprecated="not deprecated">
  29548. <param name="config" type="javax.servlet.FilterConfig"/>
  29549. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29550. </method>
  29551. <method name="getFilterParams" return="java.util.Map"
  29552. abstract="false" native="false" synchronized="false"
  29553. static="true" final="false" visibility="public"
  29554. deprecated="not deprecated">
  29555. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29556. <param name="confPrefix" type="java.lang.String"/>
  29557. <doc>
  29558. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  29559. initialization. The mapping includes all properties that start with the
  29560. specified configuration prefix. Property names in the mapping are trimmed
  29561. to remove the configuration prefix.
  29562. @param conf configuration to read
  29563. @param confPrefix configuration prefix
  29564. @return mapping of configuration properties to be used for filter
  29565. initialization]]>
  29566. </doc>
  29567. </method>
  29568. <field name="X_FRAME_OPTIONS" type="java.lang.String"
  29569. transient="false" volatile="false"
  29570. static="true" final="true" visibility="public"
  29571. deprecated="not deprecated">
  29572. </field>
  29573. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  29574. transient="false" volatile="false"
  29575. static="true" final="true" visibility="public"
  29576. deprecated="not deprecated">
  29577. </field>
  29578. <doc>
  29579. <![CDATA[This filter protects webapps from clickjacking attacks that
  29580. are possible through use of Frames to embed the resources in another
  29581. application and intercept clicks to accomplish nefarious things.]]>
  29582. </doc>
  29583. </class>
  29584. <!-- end class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  29585. </package>
  29586. <package name="org.apache.hadoop.security.protocolPB">
  29587. </package>
  29588. <package name="org.apache.hadoop.security.ssl">
  29589. </package>
  29590. <package name="org.apache.hadoop.security.token">
  29591. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  29592. <class name="SecretManager" extends="java.lang.Object"
  29593. abstract="true"
  29594. static="false" final="false" visibility="public"
  29595. deprecated="not deprecated">
  29596. <constructor name="SecretManager"
  29597. static="false" final="false" visibility="public"
  29598. deprecated="not deprecated">
  29599. </constructor>
  29600. <method name="createPassword" return="byte[]"
  29601. abstract="true" native="false" synchronized="false"
  29602. static="false" final="false" visibility="protected"
  29603. deprecated="not deprecated">
  29604. <param name="identifier" type="T"/>
  29605. <doc>
  29606. <![CDATA[Create the password for the given identifier.
  29607. identifier may be modified inside this method.
  29608. @param identifier the identifier to use
  29609. @return the new password]]>
  29610. </doc>
  29611. </method>
  29612. <method name="retrievePassword" return="byte[]"
  29613. abstract="true" native="false" synchronized="false"
  29614. static="false" final="false" visibility="public"
  29615. deprecated="not deprecated">
  29616. <param name="identifier" type="T"/>
  29617. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  29618. <doc>
  29619. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  29620. or registry to make sure the token hasn't expired or been revoked. Returns
  29621. the relevant password.
  29622. @param identifier the identifier to validate
  29623. @return the password to use
  29624. @throws InvalidToken the token was invalid]]>
  29625. </doc>
  29626. </method>
  29627. <method name="retriableRetrievePassword" return="byte[]"
  29628. abstract="false" native="false" synchronized="false"
  29629. static="false" final="false" visibility="public"
  29630. deprecated="not deprecated">
  29631. <param name="identifier" type="T"/>
  29632. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  29633. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  29634. <exception name="RetriableException" type="org.apache.hadoop.ipc.RetriableException"/>
  29635. <exception name="IOException" type="java.io.IOException"/>
  29636. <doc>
  29637. <![CDATA[The same functionality with {@link #retrievePassword}, except that this
  29638. method can throw a {@link RetriableException} or a {@link StandbyException}
  29639. to indicate that client can retry/failover the same operation because of
  29640. temporary issue on the server side.
  29641. @param identifier the identifier to validate
  29642. @return the password to use
  29643. @throws InvalidToken the token was invalid
  29644. @throws StandbyException the server is in standby state, the client can
  29645. try other servers
  29646. @throws RetriableException the token was invalid, and the server thinks
  29647. this may be a temporary issue and suggests the client to retry
  29648. @throws IOException to allow future exceptions to be added without breaking
  29649. compatibility]]>
  29650. </doc>
  29651. </method>
  29652. <method name="createIdentifier" return="T"
  29653. abstract="true" native="false" synchronized="false"
  29654. static="false" final="false" visibility="public"
  29655. deprecated="not deprecated">
  29656. <doc>
  29657. <![CDATA[Create an empty token identifier.
  29658. @return the newly created empty token identifier]]>
  29659. </doc>
  29660. </method>
  29661. <method name="checkAvailableForRead"
  29662. abstract="false" native="false" synchronized="false"
  29663. static="false" final="false" visibility="public"
  29664. deprecated="not deprecated">
  29665. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  29666. <doc>
  29667. <![CDATA[No-op if the secret manager is available for reading tokens, throw a
  29668. StandbyException otherwise.
  29669. @throws StandbyException if the secret manager is not available to read
  29670. tokens]]>
  29671. </doc>
  29672. </method>
  29673. <method name="generateSecret" return="javax.crypto.SecretKey"
  29674. abstract="false" native="false" synchronized="false"
  29675. static="false" final="false" visibility="protected"
  29676. deprecated="not deprecated">
  29677. <doc>
  29678. <![CDATA[Generate a new random secret key.
  29679. @return the new key]]>
  29680. </doc>
  29681. </method>
  29682. <method name="createPassword" return="byte[]"
  29683. abstract="false" native="false" synchronized="false"
  29684. static="true" final="false" visibility="public"
  29685. deprecated="not deprecated">
  29686. <param name="identifier" type="byte[]"/>
  29687. <param name="key" type="javax.crypto.SecretKey"/>
  29688. <doc>
  29689. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  29690. output as password
  29691. @param identifier the bytes of the identifier
  29692. @param key the secret key
  29693. @return the bytes of the generated password]]>
  29694. </doc>
  29695. </method>
  29696. <method name="createSecretKey" return="javax.crypto.SecretKey"
  29697. abstract="false" native="false" synchronized="false"
  29698. static="true" final="false" visibility="protected"
  29699. deprecated="not deprecated">
  29700. <param name="key" type="byte[]"/>
  29701. <doc>
  29702. <![CDATA[Convert the byte[] to a secret key
  29703. @param key the byte[] to create a secret key from
  29704. @return the secret key]]>
  29705. </doc>
  29706. </method>
  29707. <doc>
  29708. <![CDATA[The server-side secret manager for each token type.
  29709. @param <T> The type of the token identifier]]>
  29710. </doc>
  29711. </class>
  29712. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  29713. <!-- start class org.apache.hadoop.security.token.Token -->
  29714. <class name="Token" extends="java.lang.Object"
  29715. abstract="false"
  29716. static="false" final="false" visibility="public"
  29717. deprecated="not deprecated">
  29718. <implements name="org.apache.hadoop.io.Writable"/>
  29719. <constructor name="Token" type="T, org.apache.hadoop.security.token.SecretManager"
  29720. static="false" final="false" visibility="public"
  29721. deprecated="not deprecated">
  29722. <doc>
  29723. <![CDATA[Construct a token given a token identifier and a secret manager for the
  29724. type of the token identifier.
  29725. @param id the token identifier
  29726. @param mgr the secret manager]]>
  29727. </doc>
  29728. </constructor>
  29729. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  29730. static="false" final="false" visibility="public"
  29731. deprecated="not deprecated">
  29732. <doc>
  29733. <![CDATA[Construct a token from the components.
  29734. @param identifier the token identifier
  29735. @param password the token's password
  29736. @param kind the kind of token
  29737. @param service the service for this token]]>
  29738. </doc>
  29739. </constructor>
  29740. <constructor name="Token"
  29741. static="false" final="false" visibility="public"
  29742. deprecated="not deprecated">
  29743. <doc>
  29744. <![CDATA[Default constructor.]]>
  29745. </doc>
  29746. </constructor>
  29747. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  29748. static="false" final="false" visibility="public"
  29749. deprecated="not deprecated">
  29750. <doc>
  29751. <![CDATA[Clone a token.
  29752. @param other the token to clone]]>
  29753. </doc>
  29754. </constructor>
  29755. <constructor name="Token" type="org.apache.hadoop.security.proto.SecurityProtos.TokenProto"
  29756. static="false" final="false" visibility="public"
  29757. deprecated="not deprecated">
  29758. <doc>
  29759. <![CDATA[Construct a Token from a TokenProto.
  29760. @param tokenPB the TokenProto object]]>
  29761. </doc>
  29762. </constructor>
  29763. <method name="setID"
  29764. abstract="false" native="false" synchronized="false"
  29765. static="false" final="false" visibility="public"
  29766. deprecated="not deprecated">
  29767. <param name="bytes" type="byte[]"/>
  29768. </method>
  29769. <method name="setPassword"
  29770. abstract="false" native="false" synchronized="false"
  29771. static="false" final="false" visibility="public"
  29772. deprecated="not deprecated">
  29773. <param name="newPassword" type="byte[]"/>
  29774. </method>
  29775. <method name="copyToken" return="org.apache.hadoop.security.token.Token"
  29776. abstract="false" native="false" synchronized="false"
  29777. static="false" final="false" visibility="public"
  29778. deprecated="not deprecated">
  29779. </method>
  29780. <method name="toTokenProto" return="org.apache.hadoop.security.proto.SecurityProtos.TokenProto"
  29781. abstract="false" native="false" synchronized="false"
  29782. static="false" final="false" visibility="public"
  29783. deprecated="not deprecated">
  29784. <doc>
  29785. <![CDATA[Construct a TokenProto from this Token instance.
  29786. @return a new TokenProto object holding copies of data in this instance]]>
  29787. </doc>
  29788. </method>
  29789. <method name="getIdentifier" return="byte[]"
  29790. abstract="false" native="false" synchronized="false"
  29791. static="false" final="false" visibility="public"
  29792. deprecated="not deprecated">
  29793. <doc>
  29794. <![CDATA[Get the token identifier's byte representation.
  29795. @return the token identifier's byte representation]]>
  29796. </doc>
  29797. </method>
  29798. <method name="decodeIdentifier" return="T"
  29799. abstract="false" native="false" synchronized="false"
  29800. static="false" final="false" visibility="public"
  29801. deprecated="not deprecated">
  29802. <exception name="IOException" type="java.io.IOException"/>
  29803. <doc>
  29804. <![CDATA[Get the token identifier object, or null if it could not be constructed
  29805. (because the class could not be loaded, for example).
  29806. @return the token identifier, or null if there was no class found for it
  29807. @throws IOException failure to unmarshall the data
  29808. @throws RuntimeException if the token class could not be instantiated.]]>
  29809. </doc>
  29810. </method>
  29811. <method name="getPassword" return="byte[]"
  29812. abstract="false" native="false" synchronized="false"
  29813. static="false" final="false" visibility="public"
  29814. deprecated="not deprecated">
  29815. <doc>
  29816. <![CDATA[Get the token password/secret.
  29817. @return the token password/secret]]>
  29818. </doc>
  29819. </method>
  29820. <method name="getKind" return="org.apache.hadoop.io.Text"
  29821. abstract="false" native="false" synchronized="true"
  29822. static="false" final="false" visibility="public"
  29823. deprecated="not deprecated">
  29824. <doc>
  29825. <![CDATA[Get the token kind.
  29826. @return the kind of the token]]>
  29827. </doc>
  29828. </method>
  29829. <method name="getService" return="org.apache.hadoop.io.Text"
  29830. abstract="false" native="false" synchronized="false"
  29831. static="false" final="false" visibility="public"
  29832. deprecated="not deprecated">
  29833. <doc>
  29834. <![CDATA[Get the service on which the token is supposed to be used.
  29835. @return the service name]]>
  29836. </doc>
  29837. </method>
  29838. <method name="setService"
  29839. abstract="false" native="false" synchronized="false"
  29840. static="false" final="false" visibility="public"
  29841. deprecated="not deprecated">
  29842. <param name="newService" type="org.apache.hadoop.io.Text"/>
  29843. <doc>
  29844. <![CDATA[Set the service on which the token is supposed to be used.
  29845. @param newService the service name]]>
  29846. </doc>
  29847. </method>
  29848. <method name="isPrivate" return="boolean"
  29849. abstract="false" native="false" synchronized="false"
  29850. static="false" final="false" visibility="public"
  29851. deprecated="not deprecated">
  29852. <doc>
  29853. <![CDATA[Whether this is a private token.
  29854. @return false always for non-private tokens]]>
  29855. </doc>
  29856. </method>
  29857. <method name="isPrivateCloneOf" return="boolean"
  29858. abstract="false" native="false" synchronized="false"
  29859. static="false" final="false" visibility="public"
  29860. deprecated="not deprecated">
  29861. <param name="thePublicService" type="org.apache.hadoop.io.Text"/>
  29862. <doc>
  29863. <![CDATA[Whether this is a private clone of a public token.
  29864. @param thePublicService the public service name
  29865. @return false always for non-private tokens]]>
  29866. </doc>
  29867. </method>
  29868. <method name="privateClone" return="org.apache.hadoop.security.token.Token"
  29869. abstract="false" native="false" synchronized="false"
  29870. static="false" final="false" visibility="public"
  29871. deprecated="not deprecated">
  29872. <param name="newService" type="org.apache.hadoop.io.Text"/>
  29873. <doc>
  29874. <![CDATA[Create a private clone of a public token.
  29875. @param newService the new service name
  29876. @return a private token]]>
  29877. </doc>
  29878. </method>
  29879. <method name="readFields"
  29880. abstract="false" native="false" synchronized="false"
  29881. static="false" final="false" visibility="public"
  29882. deprecated="not deprecated">
  29883. <param name="in" type="java.io.DataInput"/>
  29884. <exception name="IOException" type="java.io.IOException"/>
  29885. </method>
  29886. <method name="write"
  29887. abstract="false" native="false" synchronized="false"
  29888. static="false" final="false" visibility="public"
  29889. deprecated="not deprecated">
  29890. <param name="out" type="java.io.DataOutput"/>
  29891. <exception name="IOException" type="java.io.IOException"/>
  29892. </method>
  29893. <method name="encodeToUrlString" return="java.lang.String"
  29894. abstract="false" native="false" synchronized="false"
  29895. static="false" final="false" visibility="public"
  29896. deprecated="not deprecated">
  29897. <exception name="IOException" type="java.io.IOException"/>
  29898. <doc>
  29899. <![CDATA[Encode this token as a url safe string.
  29900. @return the encoded string
  29901. @throws IOException]]>
  29902. </doc>
  29903. </method>
  29904. <method name="decodeFromUrlString"
  29905. abstract="false" native="false" synchronized="false"
  29906. static="false" final="false" visibility="public"
  29907. deprecated="not deprecated">
  29908. <param name="newValue" type="java.lang.String"/>
  29909. <exception name="IOException" type="java.io.IOException"/>
  29910. <doc>
  29911. <![CDATA[Decode the given url safe string into this token.
  29912. @param newValue the encoded string
  29913. @throws IOException]]>
  29914. </doc>
  29915. </method>
  29916. <method name="equals" return="boolean"
  29917. abstract="false" native="false" synchronized="false"
  29918. static="false" final="false" visibility="public"
  29919. deprecated="not deprecated">
  29920. <param name="right" type="java.lang.Object"/>
  29921. </method>
  29922. <method name="hashCode" return="int"
  29923. abstract="false" native="false" synchronized="false"
  29924. static="false" final="false" visibility="public"
  29925. deprecated="not deprecated">
  29926. </method>
  29927. <method name="toString" return="java.lang.String"
  29928. abstract="false" native="false" synchronized="false"
  29929. static="false" final="false" visibility="public"
  29930. deprecated="not deprecated">
  29931. </method>
  29932. <method name="buildCacheKey" return="java.lang.String"
  29933. abstract="false" native="false" synchronized="false"
  29934. static="false" final="false" visibility="public"
  29935. deprecated="not deprecated">
  29936. </method>
  29937. <method name="isManaged" return="boolean"
  29938. abstract="false" native="false" synchronized="false"
  29939. static="false" final="false" visibility="public"
  29940. deprecated="not deprecated">
  29941. <exception name="IOException" type="java.io.IOException"/>
  29942. <doc>
  29943. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  29944. @return true, if it can be renewed and cancelled.]]>
  29945. </doc>
  29946. </method>
  29947. <method name="renew" return="long"
  29948. abstract="false" native="false" synchronized="false"
  29949. static="false" final="false" visibility="public"
  29950. deprecated="not deprecated">
  29951. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29952. <exception name="IOException" type="java.io.IOException"/>
  29953. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  29954. <doc>
  29955. <![CDATA[Renew this delegation token.
  29956. @return the new expiration time
  29957. @throws IOException
  29958. @throws InterruptedException]]>
  29959. </doc>
  29960. </method>
  29961. <method name="cancel"
  29962. abstract="false" native="false" synchronized="false"
  29963. static="false" final="false" visibility="public"
  29964. deprecated="not deprecated">
  29965. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29966. <exception name="IOException" type="java.io.IOException"/>
  29967. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  29968. <doc>
  29969. <![CDATA[Cancel this delegation token.
  29970. @throws IOException
  29971. @throws InterruptedException]]>
  29972. </doc>
  29973. </method>
  29974. <field name="LOG" type="org.slf4j.Logger"
  29975. transient="false" volatile="false"
  29976. static="true" final="true" visibility="public"
  29977. deprecated="not deprecated">
  29978. </field>
  29979. <doc>
  29980. <![CDATA[The client-side form of the token.]]>
  29981. </doc>
  29982. </class>
  29983. <!-- end class org.apache.hadoop.security.token.Token -->
  29984. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  29985. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  29986. abstract="false"
  29987. static="true" final="false" visibility="public"
  29988. deprecated="not deprecated">
  29989. <constructor name="TrivialRenewer"
  29990. static="false" final="false" visibility="public"
  29991. deprecated="not deprecated">
  29992. </constructor>
  29993. <method name="getKind" return="org.apache.hadoop.io.Text"
  29994. abstract="false" native="false" synchronized="false"
  29995. static="false" final="false" visibility="protected"
  29996. deprecated="not deprecated">
  29997. </method>
  29998. <method name="handleKind" return="boolean"
  29999. abstract="false" native="false" synchronized="false"
  30000. static="false" final="false" visibility="public"
  30001. deprecated="not deprecated">
  30002. <param name="kind" type="org.apache.hadoop.io.Text"/>
  30003. </method>
  30004. <method name="isManaged" return="boolean"
  30005. abstract="false" native="false" synchronized="false"
  30006. static="false" final="false" visibility="public"
  30007. deprecated="not deprecated">
  30008. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30009. </method>
  30010. <method name="renew" return="long"
  30011. abstract="false" native="false" synchronized="false"
  30012. static="false" final="false" visibility="public"
  30013. deprecated="not deprecated">
  30014. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30015. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30016. </method>
  30017. <method name="cancel"
  30018. abstract="false" native="false" synchronized="false"
  30019. static="false" final="false" visibility="public"
  30020. deprecated="not deprecated">
  30021. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30022. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30023. <exception name="IOException" type="java.io.IOException"/>
  30024. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  30025. </method>
  30026. <doc>
  30027. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  30028. to implement getKind for their token kind.]]>
  30029. </doc>
  30030. </class>
  30031. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  30032. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  30033. <class name="TokenIdentifier" extends="java.lang.Object"
  30034. abstract="true"
  30035. static="false" final="false" visibility="public"
  30036. deprecated="not deprecated">
  30037. <implements name="org.apache.hadoop.io.Writable"/>
  30038. <constructor name="TokenIdentifier"
  30039. static="false" final="false" visibility="public"
  30040. deprecated="not deprecated">
  30041. </constructor>
  30042. <method name="getKind" return="org.apache.hadoop.io.Text"
  30043. abstract="true" native="false" synchronized="false"
  30044. static="false" final="false" visibility="public"
  30045. deprecated="not deprecated">
  30046. <doc>
  30047. <![CDATA[Get the token kind
  30048. @return the kind of the token]]>
  30049. </doc>
  30050. </method>
  30051. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  30052. abstract="true" native="false" synchronized="false"
  30053. static="false" final="false" visibility="public"
  30054. deprecated="not deprecated">
  30055. <doc>
  30056. <![CDATA[Get the Ugi with the username encoded in the token identifier
  30057. @return the username. null is returned if username in the identifier is
  30058. empty or null.]]>
  30059. </doc>
  30060. </method>
  30061. <method name="getBytes" return="byte[]"
  30062. abstract="false" native="false" synchronized="false"
  30063. static="false" final="false" visibility="public"
  30064. deprecated="not deprecated">
  30065. <doc>
  30066. <![CDATA[Get the bytes for the token identifier
  30067. @return the bytes of the identifier]]>
  30068. </doc>
  30069. </method>
  30070. <method name="getTrackingId" return="java.lang.String"
  30071. abstract="false" native="false" synchronized="false"
  30072. static="false" final="false" visibility="public"
  30073. deprecated="not deprecated">
  30074. <doc>
  30075. <![CDATA[Returns a tracking identifier that can be used to associate usages of a
  30076. token across multiple client sessions.
  30077. Currently, this function just returns an MD5 of {{@link #getBytes()}.
  30078. @return tracking identifier]]>
  30079. </doc>
  30080. </method>
  30081. <doc>
  30082. <![CDATA[An identifier that identifies a token, may contain public information
  30083. about a token, including its kind (or type).]]>
  30084. </doc>
  30085. </class>
  30086. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  30087. <!-- start class org.apache.hadoop.security.token.TokenInfo -->
  30088. <class name="TokenInfo" abstract="true"
  30089. static="false" final="false" visibility="public"
  30090. deprecated="not deprecated">
  30091. <implements name="java.lang.annotation.Annotation"/>
  30092. <doc>
  30093. <![CDATA[Indicates Token related information to be used]]>
  30094. </doc>
  30095. </class>
  30096. <!-- end class org.apache.hadoop.security.token.TokenInfo -->
  30097. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  30098. <class name="TokenRenewer" extends="java.lang.Object"
  30099. abstract="true"
  30100. static="false" final="false" visibility="public"
  30101. deprecated="not deprecated">
  30102. <constructor name="TokenRenewer"
  30103. static="false" final="false" visibility="public"
  30104. deprecated="not deprecated">
  30105. </constructor>
  30106. <method name="handleKind" return="boolean"
  30107. abstract="true" native="false" synchronized="false"
  30108. static="false" final="false" visibility="public"
  30109. deprecated="not deprecated">
  30110. <param name="kind" type="org.apache.hadoop.io.Text"/>
  30111. <doc>
  30112. <![CDATA[Does this renewer handle this kind of token?
  30113. @param kind the kind of the token
  30114. @return true if this renewer can renew it]]>
  30115. </doc>
  30116. </method>
  30117. <method name="isManaged" return="boolean"
  30118. abstract="true" native="false" synchronized="false"
  30119. static="false" final="false" visibility="public"
  30120. deprecated="not deprecated">
  30121. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30122. <exception name="IOException" type="java.io.IOException"/>
  30123. <doc>
  30124. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  30125. cancelled.
  30126. @param token the token being checked
  30127. @return true if the token may be renewed or cancelled
  30128. @throws IOException]]>
  30129. </doc>
  30130. </method>
  30131. <method name="renew" return="long"
  30132. abstract="true" native="false" synchronized="false"
  30133. static="false" final="false" visibility="public"
  30134. deprecated="not deprecated">
  30135. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30136. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30137. <exception name="IOException" type="java.io.IOException"/>
  30138. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  30139. <doc>
  30140. <![CDATA[Renew the given token.
  30141. @return the new expiration time
  30142. @throws IOException
  30143. @throws InterruptedException]]>
  30144. </doc>
  30145. </method>
  30146. <method name="cancel"
  30147. abstract="true" native="false" synchronized="false"
  30148. static="false" final="false" visibility="public"
  30149. deprecated="not deprecated">
  30150. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30151. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30152. <exception name="IOException" type="java.io.IOException"/>
  30153. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  30154. <doc>
  30155. <![CDATA[Cancel the given token
  30156. @throws IOException
  30157. @throws InterruptedException]]>
  30158. </doc>
  30159. </method>
  30160. <doc>
  30161. <![CDATA[This is the interface for plugins that handle tokens.]]>
  30162. </doc>
  30163. </class>
  30164. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  30165. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  30166. <interface name="TokenSelector" abstract="true"
  30167. static="false" final="false" visibility="public"
  30168. deprecated="not deprecated">
  30169. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  30170. abstract="true" native="false" synchronized="false"
  30171. static="false" final="false" visibility="public"
  30172. deprecated="not deprecated">
  30173. <param name="service" type="org.apache.hadoop.io.Text"/>
  30174. <param name="tokens" type="java.util.Collection"/>
  30175. </method>
  30176. <doc>
  30177. <![CDATA[Select token of type T from tokens for use with named service
  30178. @param <T>
  30179. T extends TokenIdentifier]]>
  30180. </doc>
  30181. </interface>
  30182. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  30183. </package>
  30184. <package name="org.apache.hadoop.security.token.delegation.web">
  30185. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  30186. <class name="DelegationTokenAuthenticatedURL" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL"
  30187. abstract="false"
  30188. static="false" final="false" visibility="public"
  30189. deprecated="not deprecated">
  30190. <constructor name="DelegationTokenAuthenticatedURL"
  30191. static="false" final="false" visibility="public"
  30192. deprecated="not deprecated">
  30193. <doc>
  30194. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  30195. <p/>
  30196. An instance of the default {@link DelegationTokenAuthenticator} will be
  30197. used.]]>
  30198. </doc>
  30199. </constructor>
  30200. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  30201. static="false" final="false" visibility="public"
  30202. deprecated="not deprecated">
  30203. <doc>
  30204. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  30205. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  30206. use, if <code>null</code> the default one will be used.]]>
  30207. </doc>
  30208. </constructor>
  30209. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  30210. static="false" final="false" visibility="public"
  30211. deprecated="not deprecated">
  30212. <doc>
  30213. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code> using the default
  30214. {@link DelegationTokenAuthenticator} class.
  30215. @param connConfigurator a connection configurator.]]>
  30216. </doc>
  30217. </constructor>
  30218. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator, org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  30219. static="false" final="false" visibility="public"
  30220. deprecated="not deprecated">
  30221. <doc>
  30222. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  30223. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  30224. use, if <code>null</code> the default one will be used.
  30225. @param connConfigurator a connection configurator.]]>
  30226. </doc>
  30227. </constructor>
  30228. <method name="setDefaultDelegationTokenAuthenticator"
  30229. abstract="false" native="false" synchronized="false"
  30230. static="true" final="false" visibility="public"
  30231. deprecated="not deprecated">
  30232. <param name="authenticator" type="java.lang.Class"/>
  30233. <doc>
  30234. <![CDATA[Sets the default {@link DelegationTokenAuthenticator} class to use when an
  30235. {@link DelegationTokenAuthenticatedURL} instance is created without
  30236. specifying one.
  30237. The default class is {@link KerberosDelegationTokenAuthenticator}
  30238. @param authenticator the authenticator class to use as default.]]>
  30239. </doc>
  30240. </method>
  30241. <method name="getDefaultDelegationTokenAuthenticator" return="java.lang.Class"
  30242. abstract="false" native="false" synchronized="false"
  30243. static="true" final="false" visibility="public"
  30244. deprecated="not deprecated">
  30245. <doc>
  30246. <![CDATA[Returns the default {@link DelegationTokenAuthenticator} class to use when
  30247. an {@link DelegationTokenAuthenticatedURL} instance is created without
  30248. specifying one.
  30249. <p/>
  30250. The default class is {@link KerberosDelegationTokenAuthenticator}
  30251. @return the delegation token authenticator class to use as default.]]>
  30252. </doc>
  30253. </method>
  30254. <method name="setUseQueryStringForDelegationToken"
  30255. abstract="false" native="false" synchronized="false"
  30256. static="false" final="false" visibility="protected"
  30257. deprecated="not deprecated">
  30258. <param name="useQueryString" type="boolean"/>
  30259. <doc>
  30260. <![CDATA[Sets if delegation token should be transmitted in the URL query string.
  30261. By default it is transmitted using the
  30262. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.
  30263. <p/>
  30264. This method is provided to enable WebHDFS backwards compatibility.
  30265. @param useQueryString <code>TRUE</code> if the token is transmitted in the
  30266. URL query string, <code>FALSE</code> if the delegation token is transmitted
  30267. using the {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP
  30268. header.]]>
  30269. </doc>
  30270. </method>
  30271. <method name="useQueryStringForDelegationToken" return="boolean"
  30272. abstract="false" native="false" synchronized="false"
  30273. static="false" final="false" visibility="public"
  30274. deprecated="not deprecated">
  30275. <doc>
  30276. <![CDATA[Returns if delegation token is transmitted as a HTTP header.
  30277. @return <code>TRUE</code> if the token is transmitted in the URL query
  30278. string, <code>FALSE</code> if the delegation token is transmitted using the
  30279. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.]]>
  30280. </doc>
  30281. </method>
  30282. <method name="openConnection" return="java.net.HttpURLConnection"
  30283. abstract="false" native="false" synchronized="false"
  30284. static="false" final="false" visibility="public"
  30285. deprecated="not deprecated">
  30286. <param name="url" type="java.net.URL"/>
  30287. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30288. <exception name="IOException" type="java.io.IOException"/>
  30289. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30290. <doc>
  30291. <![CDATA[Returns an authenticated {@link HttpURLConnection}, it uses a Delegation
  30292. Token only if the given auth token is an instance of {@link Token} and
  30293. it contains a Delegation Token, otherwise use the configured
  30294. {@link DelegationTokenAuthenticator} to authenticate the connection.
  30295. @param url the URL to connect to. Only HTTP/S URLs are supported.
  30296. @param token the authentication token being used for the user.
  30297. @return an authenticated {@link HttpURLConnection}.
  30298. @throws IOException if an IO error occurred.
  30299. @throws AuthenticationException if an authentication exception occurred.]]>
  30300. </doc>
  30301. </method>
  30302. <method name="openConnection" return="java.net.HttpURLConnection"
  30303. abstract="false" native="false" synchronized="false"
  30304. static="false" final="false" visibility="public"
  30305. deprecated="not deprecated">
  30306. <param name="url" type="java.net.URL"/>
  30307. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30308. <exception name="IOException" type="java.io.IOException"/>
  30309. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30310. <doc>
  30311. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  30312. Token is present, it will be used taking precedence over the configured
  30313. <code>Authenticator</code>.
  30314. @param url the URL to connect to. Only HTTP/S URLs are supported.
  30315. @param token the authentication token being used for the user.
  30316. @return an authenticated {@link HttpURLConnection}.
  30317. @throws IOException if an IO error occurred.
  30318. @throws AuthenticationException if an authentication exception occurred.]]>
  30319. </doc>
  30320. </method>
  30321. <method name="openConnection" return="java.net.HttpURLConnection"
  30322. abstract="false" native="false" synchronized="false"
  30323. static="false" final="false" visibility="public"
  30324. deprecated="not deprecated">
  30325. <param name="url" type="java.net.URL"/>
  30326. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30327. <param name="doAs" type="java.lang.String"/>
  30328. <exception name="IOException" type="java.io.IOException"/>
  30329. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30330. <doc>
  30331. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  30332. Token is present, it will be used taking precedence over the configured
  30333. <code>Authenticator</code>. If the <code>doAs</code> parameter is not NULL,
  30334. the request will be done on behalf of the specified <code>doAs</code> user.
  30335. @param url the URL to connect to. Only HTTP/S URLs are supported.
  30336. @param token the authentication token being used for the user.
  30337. @param doAs user to do the the request on behalf of, if NULL the request is
  30338. as self.
  30339. @return an authenticated {@link HttpURLConnection}.
  30340. @throws IOException if an IO error occurred.
  30341. @throws AuthenticationException if an authentication exception occurred.]]>
  30342. </doc>
  30343. </method>
  30344. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  30345. abstract="false" native="false" synchronized="false"
  30346. static="false" final="false" visibility="public"
  30347. deprecated="not deprecated">
  30348. <param name="url" type="java.net.URL"/>
  30349. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30350. <param name="renewer" type="java.lang.String"/>
  30351. <exception name="IOException" type="java.io.IOException"/>
  30352. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30353. <doc>
  30354. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  30355. for authentication.
  30356. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  30357. supported.
  30358. @param token the authentication token being used for the user where the
  30359. Delegation token will be stored.
  30360. @param renewer the renewer user.
  30361. @return a delegation token.
  30362. @throws IOException if an IO error occurred.
  30363. @throws AuthenticationException if an authentication exception occurred.]]>
  30364. </doc>
  30365. </method>
  30366. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  30367. abstract="false" native="false" synchronized="false"
  30368. static="false" final="false" visibility="public"
  30369. deprecated="not deprecated">
  30370. <param name="url" type="java.net.URL"/>
  30371. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30372. <param name="renewer" type="java.lang.String"/>
  30373. <param name="doAsUser" type="java.lang.String"/>
  30374. <exception name="IOException" type="java.io.IOException"/>
  30375. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30376. <doc>
  30377. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  30378. for authentication.
  30379. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  30380. supported.
  30381. @param token the authentication token being used for the user where the
  30382. Delegation token will be stored.
  30383. @param renewer the renewer user.
  30384. @param doAsUser the user to do as, which will be the token owner.
  30385. @return a delegation token.
  30386. @throws IOException if an IO error occurred.
  30387. @throws AuthenticationException if an authentication exception occurred.]]>
  30388. </doc>
  30389. </method>
  30390. <method name="renewDelegationToken" return="long"
  30391. abstract="false" native="false" synchronized="false"
  30392. static="false" final="false" visibility="public"
  30393. deprecated="not deprecated">
  30394. <param name="url" type="java.net.URL"/>
  30395. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30396. <exception name="IOException" type="java.io.IOException"/>
  30397. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30398. <doc>
  30399. <![CDATA[Renews a delegation token from the server end-point using the
  30400. configured <code>Authenticator</code> for authentication.
  30401. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  30402. supported.
  30403. @param token the authentication token with the Delegation Token to renew.
  30404. @throws IOException if an IO error occurred.
  30405. @throws AuthenticationException if an authentication exception occurred.]]>
  30406. </doc>
  30407. </method>
  30408. <method name="renewDelegationToken" return="long"
  30409. abstract="false" native="false" synchronized="false"
  30410. static="false" final="false" visibility="public"
  30411. deprecated="not deprecated">
  30412. <param name="url" type="java.net.URL"/>
  30413. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30414. <param name="doAsUser" type="java.lang.String"/>
  30415. <exception name="IOException" type="java.io.IOException"/>
  30416. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30417. <doc>
  30418. <![CDATA[Renews a delegation token from the server end-point using the
  30419. configured <code>Authenticator</code> for authentication.
  30420. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  30421. supported.
  30422. @param token the authentication token with the Delegation Token to renew.
  30423. @param doAsUser the user to do as, which will be the token owner.
  30424. @throws IOException if an IO error occurred.
  30425. @throws AuthenticationException if an authentication exception occurred.]]>
  30426. </doc>
  30427. </method>
  30428. <method name="cancelDelegationToken"
  30429. abstract="false" native="false" synchronized="false"
  30430. static="false" final="false" visibility="public"
  30431. deprecated="not deprecated">
  30432. <param name="url" type="java.net.URL"/>
  30433. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30434. <exception name="IOException" type="java.io.IOException"/>
  30435. <doc>
  30436. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  30437. being authenticated by the configured <code>Authenticator</code>.
  30438. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  30439. are supported.
  30440. @param token the authentication token with the Delegation Token to cancel.
  30441. @throws IOException if an IO error occurred.]]>
  30442. </doc>
  30443. </method>
  30444. <method name="cancelDelegationToken"
  30445. abstract="false" native="false" synchronized="false"
  30446. static="false" final="false" visibility="public"
  30447. deprecated="not deprecated">
  30448. <param name="url" type="java.net.URL"/>
  30449. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30450. <param name="doAsUser" type="java.lang.String"/>
  30451. <exception name="IOException" type="java.io.IOException"/>
  30452. <doc>
  30453. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  30454. being authenticated by the configured <code>Authenticator</code>.
  30455. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  30456. are supported.
  30457. @param token the authentication token with the Delegation Token to cancel.
  30458. @param doAsUser the user to do as, which will be the token owner.
  30459. @throws IOException if an IO error occurred.]]>
  30460. </doc>
  30461. </method>
  30462. <doc>
  30463. <![CDATA[The <code>DelegationTokenAuthenticatedURL</code> is a
  30464. {@link AuthenticatedURL} sub-class with built-in Hadoop Delegation Token
  30465. functionality.
  30466. <p/>
  30467. The authentication mechanisms supported by default are Hadoop Simple
  30468. authentication (also known as pseudo authentication) and Kerberos SPNEGO
  30469. authentication.
  30470. <p/>
  30471. Additional authentication mechanisms can be supported via {@link
  30472. DelegationTokenAuthenticator} implementations.
  30473. <p/>
  30474. The default {@link DelegationTokenAuthenticator} is the {@link
  30475. KerberosDelegationTokenAuthenticator} class which supports
  30476. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication via
  30477. the {@link PseudoDelegationTokenAuthenticator} class.
  30478. <p/>
  30479. <code>AuthenticatedURL</code> instances are not thread-safe.]]>
  30480. </doc>
  30481. </class>
  30482. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  30483. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  30484. <class name="DelegationTokenAuthenticatedURL.Token" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"
  30485. abstract="false"
  30486. static="true" final="false" visibility="public"
  30487. deprecated="not deprecated">
  30488. <constructor name="Token"
  30489. static="false" final="false" visibility="public"
  30490. deprecated="not deprecated">
  30491. </constructor>
  30492. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  30493. abstract="false" native="false" synchronized="false"
  30494. static="false" final="false" visibility="public"
  30495. deprecated="not deprecated">
  30496. </method>
  30497. <method name="setDelegationToken"
  30498. abstract="false" native="false" synchronized="false"
  30499. static="false" final="false" visibility="public"
  30500. deprecated="not deprecated">
  30501. <param name="delegationToken" type="org.apache.hadoop.security.token.Token"/>
  30502. </method>
  30503. <doc>
  30504. <![CDATA[Client side authentication token that handles Delegation Tokens.]]>
  30505. </doc>
  30506. </class>
  30507. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  30508. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  30509. <class name="DelegationTokenAuthenticator" extends="java.lang.Object"
  30510. abstract="true"
  30511. static="false" final="false" visibility="public"
  30512. deprecated="not deprecated">
  30513. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  30514. <constructor name="DelegationTokenAuthenticator" type="org.apache.hadoop.security.authentication.client.Authenticator"
  30515. static="false" final="false" visibility="public"
  30516. deprecated="not deprecated">
  30517. </constructor>
  30518. <method name="setConnectionConfigurator"
  30519. abstract="false" native="false" synchronized="false"
  30520. static="false" final="false" visibility="public"
  30521. deprecated="not deprecated">
  30522. <param name="configurator" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"/>
  30523. </method>
  30524. <method name="authenticate"
  30525. abstract="false" native="false" synchronized="false"
  30526. static="false" final="false" visibility="public"
  30527. deprecated="not deprecated">
  30528. <param name="url" type="java.net.URL"/>
  30529. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30530. <exception name="IOException" type="java.io.IOException"/>
  30531. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30532. </method>
  30533. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  30534. abstract="false" native="false" synchronized="false"
  30535. static="false" final="false" visibility="public"
  30536. deprecated="not deprecated">
  30537. <param name="url" type="java.net.URL"/>
  30538. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30539. <param name="renewer" type="java.lang.String"/>
  30540. <exception name="IOException" type="java.io.IOException"/>
  30541. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30542. <doc>
  30543. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  30544. for authentication.
  30545. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  30546. supported.
  30547. @param token the authentication token being used for the user where the
  30548. Delegation token will be stored.
  30549. @param renewer the renewer user.
  30550. @throws IOException if an IO error occurred.
  30551. @throws AuthenticationException if an authentication exception occurred.]]>
  30552. </doc>
  30553. </method>
  30554. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  30555. abstract="false" native="false" synchronized="false"
  30556. static="false" final="false" visibility="public"
  30557. deprecated="not deprecated">
  30558. <param name="url" type="java.net.URL"/>
  30559. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30560. <param name="renewer" type="java.lang.String"/>
  30561. <param name="doAsUser" type="java.lang.String"/>
  30562. <exception name="IOException" type="java.io.IOException"/>
  30563. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30564. <doc>
  30565. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  30566. for authentication.
  30567. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  30568. supported.
  30569. @param token the authentication token being used for the user where the
  30570. Delegation token will be stored.
  30571. @param renewer the renewer user.
  30572. @param doAsUser the user to do as, which will be the token owner.
  30573. @throws IOException if an IO error occurred.
  30574. @throws AuthenticationException if an authentication exception occurred.]]>
  30575. </doc>
  30576. </method>
  30577. <method name="renewDelegationToken" return="long"
  30578. abstract="false" native="false" synchronized="false"
  30579. static="false" final="false" visibility="public"
  30580. deprecated="not deprecated">
  30581. <param name="url" type="java.net.URL"/>
  30582. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30583. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  30584. <exception name="IOException" type="java.io.IOException"/>
  30585. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30586. <doc>
  30587. <![CDATA[Renews a delegation token from the server end-point using the
  30588. configured <code>Authenticator</code> for authentication.
  30589. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  30590. supported.
  30591. @param token the authentication token with the Delegation Token to renew.
  30592. @throws IOException if an IO error occurred.
  30593. @throws AuthenticationException if an authentication exception occurred.]]>
  30594. </doc>
  30595. </method>
  30596. <method name="renewDelegationToken" return="long"
  30597. abstract="false" native="false" synchronized="false"
  30598. static="false" final="false" visibility="public"
  30599. deprecated="not deprecated">
  30600. <param name="url" type="java.net.URL"/>
  30601. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30602. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  30603. <param name="doAsUser" type="java.lang.String"/>
  30604. <exception name="IOException" type="java.io.IOException"/>
  30605. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30606. <doc>
  30607. <![CDATA[Renews a delegation token from the server end-point using the
  30608. configured <code>Authenticator</code> for authentication.
  30609. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  30610. supported.
  30611. @param token the authentication token with the Delegation Token to renew.
  30612. @param doAsUser the user to do as, which will be the token owner.
  30613. @throws IOException if an IO error occurred.
  30614. @throws AuthenticationException if an authentication exception occurred.]]>
  30615. </doc>
  30616. </method>
  30617. <method name="cancelDelegationToken"
  30618. abstract="false" native="false" synchronized="false"
  30619. static="false" final="false" visibility="public"
  30620. deprecated="not deprecated">
  30621. <param name="url" type="java.net.URL"/>
  30622. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30623. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  30624. <exception name="IOException" type="java.io.IOException"/>
  30625. <doc>
  30626. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  30627. being authenticated by the configured <code>Authenticator</code>.
  30628. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  30629. are supported.
  30630. @param token the authentication token with the Delegation Token to cancel.
  30631. @throws IOException if an IO error occurred.]]>
  30632. </doc>
  30633. </method>
  30634. <method name="cancelDelegationToken"
  30635. abstract="false" native="false" synchronized="false"
  30636. static="false" final="false" visibility="public"
  30637. deprecated="not deprecated">
  30638. <param name="url" type="java.net.URL"/>
  30639. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30640. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  30641. <param name="doAsUser" type="java.lang.String"/>
  30642. <exception name="IOException" type="java.io.IOException"/>
  30643. <doc>
  30644. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  30645. being authenticated by the configured <code>Authenticator</code>.
  30646. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  30647. are supported.
  30648. @param token the authentication token with the Delegation Token to cancel.
  30649. @param doAsUser the user to do as, which will be the token owner.
  30650. @throws IOException if an IO error occurred.]]>
  30651. </doc>
  30652. </method>
  30653. <field name="OP_PARAM" type="java.lang.String"
  30654. transient="false" volatile="false"
  30655. static="true" final="true" visibility="public"
  30656. deprecated="not deprecated">
  30657. </field>
  30658. <field name="DELEGATION_TOKEN_HEADER" type="java.lang.String"
  30659. transient="false" volatile="false"
  30660. static="true" final="true" visibility="public"
  30661. deprecated="not deprecated">
  30662. </field>
  30663. <field name="DELEGATION_PARAM" type="java.lang.String"
  30664. transient="false" volatile="false"
  30665. static="true" final="true" visibility="public"
  30666. deprecated="not deprecated">
  30667. </field>
  30668. <field name="TOKEN_PARAM" type="java.lang.String"
  30669. transient="false" volatile="false"
  30670. static="true" final="true" visibility="public"
  30671. deprecated="not deprecated">
  30672. </field>
  30673. <field name="RENEWER_PARAM" type="java.lang.String"
  30674. transient="false" volatile="false"
  30675. static="true" final="true" visibility="public"
  30676. deprecated="not deprecated">
  30677. </field>
  30678. <field name="SERVICE_PARAM" type="java.lang.String"
  30679. transient="false" volatile="false"
  30680. static="true" final="true" visibility="public"
  30681. deprecated="not deprecated">
  30682. </field>
  30683. <field name="DELEGATION_TOKEN_JSON" type="java.lang.String"
  30684. transient="false" volatile="false"
  30685. static="true" final="true" visibility="public"
  30686. deprecated="not deprecated">
  30687. </field>
  30688. <field name="DELEGATION_TOKEN_URL_STRING_JSON" type="java.lang.String"
  30689. transient="false" volatile="false"
  30690. static="true" final="true" visibility="public"
  30691. deprecated="not deprecated">
  30692. </field>
  30693. <field name="RENEW_DELEGATION_TOKEN_JSON" type="java.lang.String"
  30694. transient="false" volatile="false"
  30695. static="true" final="true" visibility="public"
  30696. deprecated="not deprecated">
  30697. </field>
  30698. <doc>
  30699. <![CDATA[{@link Authenticator} wrapper that enhances an {@link Authenticator} with
  30700. Delegation Token support.]]>
  30701. </doc>
  30702. </class>
  30703. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  30704. <!-- start class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  30705. <class name="KerberosDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  30706. abstract="false"
  30707. static="false" final="false" visibility="public"
  30708. deprecated="not deprecated">
  30709. <constructor name="KerberosDelegationTokenAuthenticator"
  30710. static="false" final="false" visibility="public"
  30711. deprecated="not deprecated">
  30712. </constructor>
  30713. <doc>
  30714. <![CDATA[The <code>KerberosDelegationTokenAuthenticator</code> provides support for
  30715. Kerberos SPNEGO authentication mechanism and support for Hadoop Delegation
  30716. Token operations.
  30717. <p/>
  30718. It falls back to the {@link PseudoDelegationTokenAuthenticator} if the HTTP
  30719. endpoint does not trigger a SPNEGO authentication]]>
  30720. </doc>
  30721. </class>
  30722. <!-- end class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  30723. <!-- start class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  30724. <class name="PseudoDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  30725. abstract="false"
  30726. static="false" final="false" visibility="public"
  30727. deprecated="not deprecated">
  30728. <constructor name="PseudoDelegationTokenAuthenticator"
  30729. static="false" final="false" visibility="public"
  30730. deprecated="not deprecated">
  30731. </constructor>
  30732. <doc>
  30733. <![CDATA[The <code>PseudoDelegationTokenAuthenticator</code> provides support for
  30734. Hadoop's pseudo authentication mechanism that accepts
  30735. the user name specified as a query string parameter and support for Hadoop
  30736. Delegation Token operations.
  30737. <p/>
  30738. This mimics the model of Hadoop Simple authentication trusting the
  30739. {@link UserGroupInformation#getCurrentUser()} value.]]>
  30740. </doc>
  30741. </class>
  30742. <!-- end class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  30743. </package>
  30744. <package name="org.apache.hadoop.service">
  30745. <!-- start class org.apache.hadoop.service.AbstractService -->
  30746. <class name="AbstractService" extends="java.lang.Object"
  30747. abstract="true"
  30748. static="false" final="false" visibility="public"
  30749. deprecated="not deprecated">
  30750. <implements name="org.apache.hadoop.service.Service"/>
  30751. <constructor name="AbstractService" type="java.lang.String"
  30752. static="false" final="false" visibility="public"
  30753. deprecated="not deprecated">
  30754. <doc>
  30755. <![CDATA[Construct the service.
  30756. @param name service name]]>
  30757. </doc>
  30758. </constructor>
  30759. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  30760. abstract="false" native="false" synchronized="false"
  30761. static="false" final="true" visibility="public"
  30762. deprecated="not deprecated">
  30763. </method>
  30764. <method name="getFailureCause" return="java.lang.Throwable"
  30765. abstract="false" native="false" synchronized="true"
  30766. static="false" final="true" visibility="public"
  30767. deprecated="not deprecated">
  30768. </method>
  30769. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  30770. abstract="false" native="false" synchronized="true"
  30771. static="false" final="false" visibility="public"
  30772. deprecated="not deprecated">
  30773. </method>
  30774. <method name="setConfig"
  30775. abstract="false" native="false" synchronized="false"
  30776. static="false" final="false" visibility="protected"
  30777. deprecated="not deprecated">
  30778. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30779. <doc>
  30780. <![CDATA[Set the configuration for this service.
  30781. This method is called during {@link #init(Configuration)}
  30782. and should only be needed if for some reason a service implementation
  30783. needs to override that initial setting -for example replacing
  30784. it with a new subclass of {@link Configuration}
  30785. @param conf new configuration.]]>
  30786. </doc>
  30787. </method>
  30788. <method name="init"
  30789. abstract="false" native="false" synchronized="false"
  30790. static="false" final="false" visibility="public"
  30791. deprecated="not deprecated">
  30792. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30793. <doc>
  30794. <![CDATA[{@inheritDoc}
  30795. This invokes {@link #serviceInit}
  30796. @param conf the configuration of the service. This must not be null
  30797. @throws ServiceStateException if the configuration was null,
  30798. the state change not permitted, or something else went wrong]]>
  30799. </doc>
  30800. </method>
  30801. <method name="start"
  30802. abstract="false" native="false" synchronized="false"
  30803. static="false" final="false" visibility="public"
  30804. deprecated="not deprecated">
  30805. <doc>
  30806. <![CDATA[{@inheritDoc}
  30807. @throws ServiceStateException if the current service state does not permit
  30808. this action]]>
  30809. </doc>
  30810. </method>
  30811. <method name="stop"
  30812. abstract="false" native="false" synchronized="false"
  30813. static="false" final="false" visibility="public"
  30814. deprecated="not deprecated">
  30815. <doc>
  30816. <![CDATA[{@inheritDoc}]]>
  30817. </doc>
  30818. </method>
  30819. <method name="close"
  30820. abstract="false" native="false" synchronized="false"
  30821. static="false" final="true" visibility="public"
  30822. deprecated="not deprecated">
  30823. <exception name="IOException" type="java.io.IOException"/>
  30824. <doc>
  30825. <![CDATA[Relay to {@link #stop()}
  30826. @throws IOException]]>
  30827. </doc>
  30828. </method>
  30829. <method name="noteFailure"
  30830. abstract="false" native="false" synchronized="false"
  30831. static="false" final="true" visibility="protected"
  30832. deprecated="not deprecated">
  30833. <param name="exception" type="java.lang.Exception"/>
  30834. <doc>
  30835. <![CDATA[Failure handling: record the exception
  30836. that triggered it -if there was not one already.
  30837. Services are free to call this themselves.
  30838. @param exception the exception]]>
  30839. </doc>
  30840. </method>
  30841. <method name="waitForServiceToStop" return="boolean"
  30842. abstract="false" native="false" synchronized="false"
  30843. static="false" final="true" visibility="public"
  30844. deprecated="not deprecated">
  30845. <param name="timeout" type="long"/>
  30846. </method>
  30847. <method name="serviceInit"
  30848. abstract="false" native="false" synchronized="false"
  30849. static="false" final="false" visibility="protected"
  30850. deprecated="not deprecated">
  30851. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30852. <exception name="Exception" type="java.lang.Exception"/>
  30853. <doc>
  30854. <![CDATA[All initialization code needed by a service.
  30855. This method will only ever be called once during the lifecycle of
  30856. a specific service instance.
  30857. Implementations do not need to be synchronized as the logic
  30858. in {@link #init(Configuration)} prevents re-entrancy.
  30859. The base implementation checks to see if the subclass has created
  30860. a new configuration instance, and if so, updates the base class value
  30861. @param conf configuration
  30862. @throws Exception on a failure -these will be caught,
  30863. possibly wrapped, and wil; trigger a service stop]]>
  30864. </doc>
  30865. </method>
  30866. <method name="serviceStart"
  30867. abstract="false" native="false" synchronized="false"
  30868. static="false" final="false" visibility="protected"
  30869. deprecated="not deprecated">
  30870. <exception name="Exception" type="java.lang.Exception"/>
  30871. <doc>
  30872. <![CDATA[Actions called during the INITED to STARTED transition.
  30873. This method will only ever be called once during the lifecycle of
  30874. a specific service instance.
  30875. Implementations do not need to be synchronized as the logic
  30876. in {@link #start()} prevents re-entrancy.
  30877. @throws Exception if needed -these will be caught,
  30878. wrapped, and trigger a service stop]]>
  30879. </doc>
  30880. </method>
  30881. <method name="serviceStop"
  30882. abstract="false" native="false" synchronized="false"
  30883. static="false" final="false" visibility="protected"
  30884. deprecated="not deprecated">
  30885. <exception name="Exception" type="java.lang.Exception"/>
  30886. <doc>
  30887. <![CDATA[Actions called during the transition to the STOPPED state.
  30888. This method will only ever be called once during the lifecycle of
  30889. a specific service instance.
  30890. Implementations do not need to be synchronized as the logic
  30891. in {@link #stop()} prevents re-entrancy.
  30892. Implementations MUST write this to be robust against failures, including
  30893. checks for null references -and for the first failure to not stop other
  30894. attempts to shut down parts of the service.
  30895. @throws Exception if needed -these will be caught and logged.]]>
  30896. </doc>
  30897. </method>
  30898. <method name="registerServiceListener"
  30899. abstract="false" native="false" synchronized="false"
  30900. static="false" final="false" visibility="public"
  30901. deprecated="not deprecated">
  30902. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  30903. </method>
  30904. <method name="unregisterServiceListener"
  30905. abstract="false" native="false" synchronized="false"
  30906. static="false" final="false" visibility="public"
  30907. deprecated="not deprecated">
  30908. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  30909. </method>
  30910. <method name="registerGlobalListener"
  30911. abstract="false" native="false" synchronized="false"
  30912. static="true" final="false" visibility="public"
  30913. deprecated="not deprecated">
  30914. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  30915. <doc>
  30916. <![CDATA[Register a global listener, which receives notifications
  30917. from the state change events of all services in the JVM
  30918. @param l listener]]>
  30919. </doc>
  30920. </method>
  30921. <method name="unregisterGlobalListener" return="boolean"
  30922. abstract="false" native="false" synchronized="false"
  30923. static="true" final="false" visibility="public"
  30924. deprecated="not deprecated">
  30925. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  30926. <doc>
  30927. <![CDATA[unregister a global listener.
  30928. @param l listener to unregister
  30929. @return true if the listener was found (and then deleted)]]>
  30930. </doc>
  30931. </method>
  30932. <method name="getName" return="java.lang.String"
  30933. abstract="false" native="false" synchronized="false"
  30934. static="false" final="false" visibility="public"
  30935. deprecated="not deprecated">
  30936. </method>
  30937. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  30938. abstract="false" native="false" synchronized="false"
  30939. static="false" final="false" visibility="public"
  30940. deprecated="not deprecated">
  30941. </method>
  30942. <method name="getStartTime" return="long"
  30943. abstract="false" native="false" synchronized="false"
  30944. static="false" final="false" visibility="public"
  30945. deprecated="not deprecated">
  30946. </method>
  30947. <method name="getLifecycleHistory" return="java.util.List"
  30948. abstract="false" native="false" synchronized="true"
  30949. static="false" final="false" visibility="public"
  30950. deprecated="not deprecated">
  30951. </method>
  30952. <method name="isInState" return="boolean"
  30953. abstract="false" native="false" synchronized="false"
  30954. static="false" final="true" visibility="public"
  30955. deprecated="not deprecated">
  30956. <param name="expected" type="org.apache.hadoop.service.Service.STATE"/>
  30957. </method>
  30958. <method name="toString" return="java.lang.String"
  30959. abstract="false" native="false" synchronized="false"
  30960. static="false" final="false" visibility="public"
  30961. deprecated="not deprecated">
  30962. </method>
  30963. <method name="putBlocker"
  30964. abstract="false" native="false" synchronized="false"
  30965. static="false" final="false" visibility="protected"
  30966. deprecated="not deprecated">
  30967. <param name="name" type="java.lang.String"/>
  30968. <param name="details" type="java.lang.String"/>
  30969. <doc>
  30970. <![CDATA[Put a blocker to the blocker map -replacing any
  30971. with the same name.
  30972. @param name blocker name
  30973. @param details any specifics on the block. This must be non-null.]]>
  30974. </doc>
  30975. </method>
  30976. <method name="removeBlocker"
  30977. abstract="false" native="false" synchronized="false"
  30978. static="false" final="false" visibility="public"
  30979. deprecated="not deprecated">
  30980. <param name="name" type="java.lang.String"/>
  30981. <doc>
  30982. <![CDATA[Remove a blocker from the blocker map -
  30983. this is a no-op if the blocker is not present
  30984. @param name the name of the blocker]]>
  30985. </doc>
  30986. </method>
  30987. <method name="getBlockers" return="java.util.Map"
  30988. abstract="false" native="false" synchronized="false"
  30989. static="false" final="false" visibility="public"
  30990. deprecated="not deprecated">
  30991. </method>
  30992. <doc>
  30993. <![CDATA[This is the base implementation class for services.]]>
  30994. </doc>
  30995. </class>
  30996. <!-- end class org.apache.hadoop.service.AbstractService -->
  30997. <!-- start class org.apache.hadoop.service.CompositeService -->
  30998. <class name="CompositeService" extends="org.apache.hadoop.service.AbstractService"
  30999. abstract="false"
  31000. static="false" final="false" visibility="public"
  31001. deprecated="not deprecated">
  31002. <constructor name="CompositeService" type="java.lang.String"
  31003. static="false" final="false" visibility="public"
  31004. deprecated="not deprecated">
  31005. </constructor>
  31006. <method name="getServices" return="java.util.List"
  31007. abstract="false" native="false" synchronized="false"
  31008. static="false" final="false" visibility="public"
  31009. deprecated="not deprecated">
  31010. <doc>
  31011. <![CDATA[Get a cloned list of services
  31012. @return a list of child services at the time of invocation -
  31013. added services will not be picked up.]]>
  31014. </doc>
  31015. </method>
  31016. <method name="addService"
  31017. abstract="false" native="false" synchronized="false"
  31018. static="false" final="false" visibility="protected"
  31019. deprecated="not deprecated">
  31020. <param name="service" type="org.apache.hadoop.service.Service"/>
  31021. <doc>
  31022. <![CDATA[Add the passed {@link Service} to the list of services managed by this
  31023. {@link CompositeService}
  31024. @param service the {@link Service} to be added]]>
  31025. </doc>
  31026. </method>
  31027. <method name="addIfService" return="boolean"
  31028. abstract="false" native="false" synchronized="false"
  31029. static="false" final="false" visibility="protected"
  31030. deprecated="not deprecated">
  31031. <param name="object" type="java.lang.Object"/>
  31032. <doc>
  31033. <![CDATA[If the passed object is an instance of {@link Service},
  31034. add it to the list of services managed by this {@link CompositeService}
  31035. @param object
  31036. @return true if a service is added, false otherwise.]]>
  31037. </doc>
  31038. </method>
  31039. <method name="removeService" return="boolean"
  31040. abstract="false" native="false" synchronized="true"
  31041. static="false" final="false" visibility="protected"
  31042. deprecated="not deprecated">
  31043. <param name="service" type="org.apache.hadoop.service.Service"/>
  31044. </method>
  31045. <method name="serviceInit"
  31046. abstract="false" native="false" synchronized="false"
  31047. static="false" final="false" visibility="protected"
  31048. deprecated="not deprecated">
  31049. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31050. <exception name="Exception" type="java.lang.Exception"/>
  31051. </method>
  31052. <method name="serviceStart"
  31053. abstract="false" native="false" synchronized="false"
  31054. static="false" final="false" visibility="protected"
  31055. deprecated="not deprecated">
  31056. <exception name="Exception" type="java.lang.Exception"/>
  31057. </method>
  31058. <method name="serviceStop"
  31059. abstract="false" native="false" synchronized="false"
  31060. static="false" final="false" visibility="protected"
  31061. deprecated="not deprecated">
  31062. <exception name="Exception" type="java.lang.Exception"/>
  31063. </method>
  31064. <field name="STOP_ONLY_STARTED_SERVICES" type="boolean"
  31065. transient="false" volatile="false"
  31066. static="true" final="true" visibility="protected"
  31067. deprecated="not deprecated">
  31068. <doc>
  31069. <![CDATA[Policy on shutdown: attempt to close everything (purest) or
  31070. only try to close started services (which assumes
  31071. that the service implementations may not handle the stop() operation
  31072. except when started.
  31073. Irrespective of this policy, if a child service fails during
  31074. its init() or start() operations, it will have stop() called on it.]]>
  31075. </doc>
  31076. </field>
  31077. <doc>
  31078. <![CDATA[Composition of services.]]>
  31079. </doc>
  31080. </class>
  31081. <!-- end class org.apache.hadoop.service.CompositeService -->
  31082. <!-- start class org.apache.hadoop.service.LifecycleEvent -->
  31083. <class name="LifecycleEvent" extends="java.lang.Object"
  31084. abstract="false"
  31085. static="false" final="false" visibility="public"
  31086. deprecated="not deprecated">
  31087. <implements name="java.io.Serializable"/>
  31088. <constructor name="LifecycleEvent"
  31089. static="false" final="false" visibility="public"
  31090. deprecated="not deprecated">
  31091. </constructor>
  31092. <field name="time" type="long"
  31093. transient="false" volatile="false"
  31094. static="false" final="false" visibility="public"
  31095. deprecated="not deprecated">
  31096. <doc>
  31097. <![CDATA[Local time in milliseconds when the event occurred]]>
  31098. </doc>
  31099. </field>
  31100. <field name="state" type="org.apache.hadoop.service.Service.STATE"
  31101. transient="false" volatile="false"
  31102. static="false" final="false" visibility="public"
  31103. deprecated="not deprecated">
  31104. <doc>
  31105. <![CDATA[new state]]>
  31106. </doc>
  31107. </field>
  31108. <doc>
  31109. <![CDATA[A serializable lifecycle event: the time a state
  31110. transition occurred, and what state was entered.]]>
  31111. </doc>
  31112. </class>
  31113. <!-- end class org.apache.hadoop.service.LifecycleEvent -->
  31114. <!-- start class org.apache.hadoop.service.LoggingStateChangeListener -->
  31115. <class name="LoggingStateChangeListener" extends="java.lang.Object"
  31116. abstract="false"
  31117. static="false" final="false" visibility="public"
  31118. deprecated="not deprecated">
  31119. <implements name="org.apache.hadoop.service.ServiceStateChangeListener"/>
  31120. <constructor name="LoggingStateChangeListener" type="org.slf4j.Logger"
  31121. static="false" final="false" visibility="public"
  31122. deprecated="not deprecated">
  31123. <doc>
  31124. <![CDATA[Log events to the given log
  31125. @param log destination for events]]>
  31126. </doc>
  31127. </constructor>
  31128. <constructor name="LoggingStateChangeListener"
  31129. static="false" final="false" visibility="public"
  31130. deprecated="not deprecated">
  31131. <doc>
  31132. <![CDATA[Log events to the static log for this class]]>
  31133. </doc>
  31134. </constructor>
  31135. <method name="stateChanged"
  31136. abstract="false" native="false" synchronized="false"
  31137. static="false" final="false" visibility="public"
  31138. deprecated="not deprecated">
  31139. <param name="service" type="org.apache.hadoop.service.Service"/>
  31140. <doc>
  31141. <![CDATA[Callback for a state change event: log it
  31142. @param service the service that has changed.]]>
  31143. </doc>
  31144. </method>
  31145. <doc>
  31146. <![CDATA[This is a state change listener that logs events at INFO level]]>
  31147. </doc>
  31148. </class>
  31149. <!-- end class org.apache.hadoop.service.LoggingStateChangeListener -->
  31150. <!-- start interface org.apache.hadoop.service.Service -->
  31151. <interface name="Service" abstract="true"
  31152. static="false" final="false" visibility="public"
  31153. deprecated="not deprecated">
  31154. <implements name="java.io.Closeable"/>
  31155. <method name="init"
  31156. abstract="true" native="false" synchronized="false"
  31157. static="false" final="false" visibility="public"
  31158. deprecated="not deprecated">
  31159. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  31160. <doc>
  31161. <![CDATA[Initialize the service.
  31162. The transition MUST be from {@link STATE#NOTINITED} to {@link STATE#INITED}
  31163. unless the operation failed and an exception was raised, in which case
  31164. {@link #stop()} MUST be invoked and the service enter the state
  31165. {@link STATE#STOPPED}.
  31166. @param config the configuration of the service
  31167. @throws RuntimeException on any failure during the operation]]>
  31168. </doc>
  31169. </method>
  31170. <method name="start"
  31171. abstract="true" native="false" synchronized="false"
  31172. static="false" final="false" visibility="public"
  31173. deprecated="not deprecated">
  31174. <doc>
  31175. <![CDATA[Start the service.
  31176. The transition MUST be from {@link STATE#INITED} to {@link STATE#STARTED}
  31177. unless the operation failed and an exception was raised, in which case
  31178. {@link #stop()} MUST be invoked and the service enter the state
  31179. {@link STATE#STOPPED}.
  31180. @throws RuntimeException on any failure during the operation]]>
  31181. </doc>
  31182. </method>
  31183. <method name="stop"
  31184. abstract="true" native="false" synchronized="false"
  31185. static="false" final="false" visibility="public"
  31186. deprecated="not deprecated">
  31187. <doc>
  31188. <![CDATA[Stop the service. This MUST be a no-op if the service is already
  31189. in the {@link STATE#STOPPED} state. It SHOULD be a best-effort attempt
  31190. to stop all parts of the service.
  31191. The implementation must be designed to complete regardless of the service
  31192. state, including the initialized/uninitialized state of all its internal
  31193. fields.
  31194. @throws RuntimeException on any failure during the stop operation]]>
  31195. </doc>
  31196. </method>
  31197. <method name="close"
  31198. abstract="true" native="false" synchronized="false"
  31199. static="false" final="false" visibility="public"
  31200. deprecated="not deprecated">
  31201. <exception name="IOException" type="java.io.IOException"/>
  31202. <doc>
  31203. <![CDATA[A version of stop() that is designed to be usable in Java7 closure
  31204. clauses.
  31205. Implementation classes MUST relay this directly to {@link #stop()}
  31206. @throws IOException never
  31207. @throws RuntimeException on any failure during the stop operation]]>
  31208. </doc>
  31209. </method>
  31210. <method name="registerServiceListener"
  31211. abstract="true" native="false" synchronized="false"
  31212. static="false" final="false" visibility="public"
  31213. deprecated="not deprecated">
  31214. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  31215. <doc>
  31216. <![CDATA[Register a listener to the service state change events.
  31217. If the supplied listener is already listening to this service,
  31218. this method is a no-op.
  31219. @param listener a new listener]]>
  31220. </doc>
  31221. </method>
  31222. <method name="unregisterServiceListener"
  31223. abstract="true" native="false" synchronized="false"
  31224. static="false" final="false" visibility="public"
  31225. deprecated="not deprecated">
  31226. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  31227. <doc>
  31228. <![CDATA[Unregister a previously registered listener of the service state
  31229. change events. No-op if the listener is already unregistered.
  31230. @param listener the listener to unregister.]]>
  31231. </doc>
  31232. </method>
  31233. <method name="getName" return="java.lang.String"
  31234. abstract="true" native="false" synchronized="false"
  31235. static="false" final="false" visibility="public"
  31236. deprecated="not deprecated">
  31237. <doc>
  31238. <![CDATA[Get the name of this service.
  31239. @return the service name]]>
  31240. </doc>
  31241. </method>
  31242. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  31243. abstract="true" native="false" synchronized="false"
  31244. static="false" final="false" visibility="public"
  31245. deprecated="not deprecated">
  31246. <doc>
  31247. <![CDATA[Get the configuration of this service.
  31248. This is normally not a clone and may be manipulated, though there are no
  31249. guarantees as to what the consequences of such actions may be
  31250. @return the current configuration, unless a specific implentation chooses
  31251. otherwise.]]>
  31252. </doc>
  31253. </method>
  31254. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  31255. abstract="true" native="false" synchronized="false"
  31256. static="false" final="false" visibility="public"
  31257. deprecated="not deprecated">
  31258. <doc>
  31259. <![CDATA[Get the current service state
  31260. @return the state of the service]]>
  31261. </doc>
  31262. </method>
  31263. <method name="getStartTime" return="long"
  31264. abstract="true" native="false" synchronized="false"
  31265. static="false" final="false" visibility="public"
  31266. deprecated="not deprecated">
  31267. <doc>
  31268. <![CDATA[Get the service start time
  31269. @return the start time of the service. This will be zero if the service
  31270. has not yet been started.]]>
  31271. </doc>
  31272. </method>
  31273. <method name="isInState" return="boolean"
  31274. abstract="true" native="false" synchronized="false"
  31275. static="false" final="false" visibility="public"
  31276. deprecated="not deprecated">
  31277. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  31278. <doc>
  31279. <![CDATA[Query to see if the service is in a specific state.
  31280. In a multi-threaded system, the state may not hold for very long.
  31281. @param state the expected state
  31282. @return true if, at the time of invocation, the service was in that state.]]>
  31283. </doc>
  31284. </method>
  31285. <method name="getFailureCause" return="java.lang.Throwable"
  31286. abstract="true" native="false" synchronized="false"
  31287. static="false" final="false" visibility="public"
  31288. deprecated="not deprecated">
  31289. <doc>
  31290. <![CDATA[Get the first exception raised during the service failure. If null,
  31291. no exception was logged
  31292. @return the failure logged during a transition to the stopped state]]>
  31293. </doc>
  31294. </method>
  31295. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  31296. abstract="true" native="false" synchronized="false"
  31297. static="false" final="false" visibility="public"
  31298. deprecated="not deprecated">
  31299. <doc>
  31300. <![CDATA[Get the state in which the failure in {@link #getFailureCause()} occurred.
  31301. @return the state or null if there was no failure]]>
  31302. </doc>
  31303. </method>
  31304. <method name="waitForServiceToStop" return="boolean"
  31305. abstract="true" native="false" synchronized="false"
  31306. static="false" final="false" visibility="public"
  31307. deprecated="not deprecated">
  31308. <param name="timeout" type="long"/>
  31309. <doc>
  31310. <![CDATA[Block waiting for the service to stop; uses the termination notification
  31311. object to do so.
  31312. This method will only return after all the service stop actions
  31313. have been executed (to success or failure), or the timeout elapsed
  31314. This method can be called before the service is inited or started; this is
  31315. to eliminate any race condition with the service stopping before
  31316. this event occurs.
  31317. @param timeout timeout in milliseconds. A value of zero means "forever"
  31318. @return true iff the service stopped in the time period]]>
  31319. </doc>
  31320. </method>
  31321. <method name="getLifecycleHistory" return="java.util.List"
  31322. abstract="true" native="false" synchronized="false"
  31323. static="false" final="false" visibility="public"
  31324. deprecated="not deprecated">
  31325. <doc>
  31326. <![CDATA[Get a snapshot of the lifecycle history; it is a static list
  31327. @return a possibly empty but never null list of lifecycle events.]]>
  31328. </doc>
  31329. </method>
  31330. <method name="getBlockers" return="java.util.Map"
  31331. abstract="true" native="false" synchronized="false"
  31332. static="false" final="false" visibility="public"
  31333. deprecated="not deprecated">
  31334. <doc>
  31335. <![CDATA[Get the blockers on a service -remote dependencies
  31336. that are stopping the service from being <i>live</i>.
  31337. @return a (snapshotted) map of blocker name-&gt;description values]]>
  31338. </doc>
  31339. </method>
  31340. <doc>
  31341. <![CDATA[Service LifeCycle.]]>
  31342. </doc>
  31343. </interface>
  31344. <!-- end interface org.apache.hadoop.service.Service -->
  31345. <!-- start class org.apache.hadoop.service.ServiceOperations -->
  31346. <class name="ServiceOperations" extends="java.lang.Object"
  31347. abstract="false"
  31348. static="false" final="true" visibility="public"
  31349. deprecated="not deprecated">
  31350. <method name="stop"
  31351. abstract="false" native="false" synchronized="false"
  31352. static="true" final="false" visibility="public"
  31353. deprecated="not deprecated">
  31354. <param name="service" type="org.apache.hadoop.service.Service"/>
  31355. <doc>
  31356. <![CDATA[Stop a service.
  31357. <p/>Do nothing if the service is null or not
  31358. in a state in which it can be/needs to be stopped.
  31359. <p/>
  31360. The service state is checked <i>before</i> the operation begins.
  31361. This process is <i>not</i> thread safe.
  31362. @param service a service or null]]>
  31363. </doc>
  31364. </method>
  31365. <method name="stopQuietly" return="java.lang.Exception"
  31366. abstract="false" native="false" synchronized="false"
  31367. static="true" final="false" visibility="public"
  31368. deprecated="not deprecated">
  31369. <param name="service" type="org.apache.hadoop.service.Service"/>
  31370. <doc>
  31371. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  31372. logged at warn level. (but not Throwables). This operation is intended to
  31373. be used in cleanup operations
  31374. @param service a service; may be null
  31375. @return any exception that was caught; null if none was.]]>
  31376. </doc>
  31377. </method>
  31378. <method name="stopQuietly" return="java.lang.Exception"
  31379. abstract="false" native="false" synchronized="false"
  31380. static="true" final="false" visibility="public"
  31381. deprecated="not deprecated">
  31382. <param name="log" type="org.apache.commons.logging.Log"/>
  31383. <param name="service" type="org.apache.hadoop.service.Service"/>
  31384. <doc>
  31385. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  31386. logged at warn level. (but not Throwables). This operation is intended to
  31387. be used in cleanup operations
  31388. @param log the log to warn at
  31389. @param service a service; may be null
  31390. @return any exception that was caught; null if none was.
  31391. @see ServiceOperations#stopQuietly(Service)]]>
  31392. </doc>
  31393. </method>
  31394. <method name="stopQuietly" return="java.lang.Exception"
  31395. abstract="false" native="false" synchronized="false"
  31396. static="true" final="false" visibility="public"
  31397. deprecated="not deprecated">
  31398. <param name="log" type="org.slf4j.Logger"/>
  31399. <param name="service" type="org.apache.hadoop.service.Service"/>
  31400. <doc>
  31401. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  31402. logged at warn level. (but not Throwables). This operation is intended to
  31403. be used in cleanup operations
  31404. @param log the log to warn at
  31405. @param service a service; may be null
  31406. @return any exception that was caught; null if none was.
  31407. @see ServiceOperations#stopQuietly(Service)]]>
  31408. </doc>
  31409. </method>
  31410. <doc>
  31411. <![CDATA[This class contains a set of methods to work with services, especially
  31412. to walk them through their lifecycle.]]>
  31413. </doc>
  31414. </class>
  31415. <!-- end class org.apache.hadoop.service.ServiceOperations -->
  31416. <!-- start interface org.apache.hadoop.service.ServiceStateChangeListener -->
  31417. <interface name="ServiceStateChangeListener" abstract="true"
  31418. static="false" final="false" visibility="public"
  31419. deprecated="not deprecated">
  31420. <method name="stateChanged"
  31421. abstract="true" native="false" synchronized="false"
  31422. static="false" final="false" visibility="public"
  31423. deprecated="not deprecated">
  31424. <param name="service" type="org.apache.hadoop.service.Service"/>
  31425. <doc>
  31426. <![CDATA[Callback to notify of a state change. The service will already
  31427. have changed state before this callback is invoked.
  31428. This operation is invoked on the thread that initiated the state change,
  31429. while the service itself in in a sychronized section.
  31430. <ol>
  31431. <li>Any long-lived operation here will prevent the service state
  31432. change from completing in a timely manner.</li>
  31433. <li>If another thread is somehow invoked from the listener, and
  31434. that thread invokes the methods of the service (including
  31435. subclass-specific methods), there is a risk of a deadlock.</li>
  31436. </ol>
  31437. @param service the service that has changed.]]>
  31438. </doc>
  31439. </method>
  31440. <doc>
  31441. <![CDATA[Interface to notify state changes of a service.]]>
  31442. </doc>
  31443. </interface>
  31444. <!-- end interface org.apache.hadoop.service.ServiceStateChangeListener -->
  31445. <!-- start class org.apache.hadoop.service.ServiceStateException -->
  31446. <class name="ServiceStateException" extends="java.lang.RuntimeException"
  31447. abstract="false"
  31448. static="false" final="false" visibility="public"
  31449. deprecated="not deprecated">
  31450. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  31451. <constructor name="ServiceStateException" type="java.lang.String"
  31452. static="false" final="false" visibility="public"
  31453. deprecated="not deprecated">
  31454. <doc>
  31455. <![CDATA[Instantiate
  31456. @param message error message]]>
  31457. </doc>
  31458. </constructor>
  31459. <constructor name="ServiceStateException" type="java.lang.String, java.lang.Throwable"
  31460. static="false" final="false" visibility="public"
  31461. deprecated="not deprecated">
  31462. <doc>
  31463. <![CDATA[Instantiate with a message and cause; if the cause has an exit code
  31464. then it is used, otherwise the generic
  31465. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION} exit code
  31466. is used.
  31467. @param message exception message
  31468. @param cause optional inner cause]]>
  31469. </doc>
  31470. </constructor>
  31471. <constructor name="ServiceStateException" type="int, java.lang.String, java.lang.Throwable"
  31472. static="false" final="false" visibility="public"
  31473. deprecated="not deprecated">
  31474. <doc>
  31475. <![CDATA[Instantiate, using the specified exit code as the exit code
  31476. of the exception, irrespetive of any exit code supplied by any inner
  31477. cause.
  31478. @param exitCode exit code to declare
  31479. @param message exception message
  31480. @param cause inner cause]]>
  31481. </doc>
  31482. </constructor>
  31483. <constructor name="ServiceStateException" type="java.lang.Throwable"
  31484. static="false" final="false" visibility="public"
  31485. deprecated="not deprecated">
  31486. </constructor>
  31487. <method name="getExitCode" return="int"
  31488. abstract="false" native="false" synchronized="false"
  31489. static="false" final="false" visibility="public"
  31490. deprecated="not deprecated">
  31491. </method>
  31492. <method name="convert" return="java.lang.RuntimeException"
  31493. abstract="false" native="false" synchronized="false"
  31494. static="true" final="false" visibility="public"
  31495. deprecated="not deprecated">
  31496. <param name="fault" type="java.lang.Throwable"/>
  31497. <doc>
  31498. <![CDATA[Convert any exception into a {@link RuntimeException}.
  31499. All other exception types are wrapped in a new instance of
  31500. {@code ServiceStateException}.
  31501. @param fault exception or throwable
  31502. @return a {@link RuntimeException} to rethrow]]>
  31503. </doc>
  31504. </method>
  31505. <method name="convert" return="java.lang.RuntimeException"
  31506. abstract="false" native="false" synchronized="false"
  31507. static="true" final="false" visibility="public"
  31508. deprecated="not deprecated">
  31509. <param name="text" type="java.lang.String"/>
  31510. <param name="fault" type="java.lang.Throwable"/>
  31511. <doc>
  31512. <![CDATA[Convert any exception into a {@link RuntimeException}.
  31513. If the caught exception is already of that type, it is typecast to a
  31514. {@link RuntimeException} and returned.
  31515. All other exception types are wrapped in a new instance of
  31516. {@code ServiceStateException}.
  31517. @param text text to use if a new exception is created
  31518. @param fault exception or throwable
  31519. @return a {@link RuntimeException} to rethrow]]>
  31520. </doc>
  31521. </method>
  31522. <doc>
  31523. <![CDATA[Exception that can be raised on state change operations, whose
  31524. exit code can be explicitly set, determined from that of any nested
  31525. cause, or a default value of
  31526. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION}.]]>
  31527. </doc>
  31528. </class>
  31529. <!-- end class org.apache.hadoop.service.ServiceStateException -->
  31530. <!-- start class org.apache.hadoop.service.ServiceStateModel -->
  31531. <class name="ServiceStateModel" extends="java.lang.Object"
  31532. abstract="false"
  31533. static="false" final="false" visibility="public"
  31534. deprecated="not deprecated">
  31535. <constructor name="ServiceStateModel" type="java.lang.String"
  31536. static="false" final="false" visibility="public"
  31537. deprecated="not deprecated">
  31538. <doc>
  31539. <![CDATA[Create the service state model in the {@link Service.STATE#NOTINITED}
  31540. state.]]>
  31541. </doc>
  31542. </constructor>
  31543. <constructor name="ServiceStateModel" type="java.lang.String, org.apache.hadoop.service.Service.STATE"
  31544. static="false" final="false" visibility="public"
  31545. deprecated="not deprecated">
  31546. <doc>
  31547. <![CDATA[Create a service state model instance in the chosen state
  31548. @param state the starting state]]>
  31549. </doc>
  31550. </constructor>
  31551. <method name="getState" return="org.apache.hadoop.service.Service.STATE"
  31552. abstract="false" native="false" synchronized="false"
  31553. static="false" final="false" visibility="public"
  31554. deprecated="not deprecated">
  31555. <doc>
  31556. <![CDATA[Query the service state. This is a non-blocking operation.
  31557. @return the state]]>
  31558. </doc>
  31559. </method>
  31560. <method name="isInState" return="boolean"
  31561. abstract="false" native="false" synchronized="false"
  31562. static="false" final="false" visibility="public"
  31563. deprecated="not deprecated">
  31564. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  31565. <doc>
  31566. <![CDATA[Query that the state is in a specific state
  31567. @param proposed proposed new state
  31568. @return the state]]>
  31569. </doc>
  31570. </method>
  31571. <method name="ensureCurrentState"
  31572. abstract="false" native="false" synchronized="false"
  31573. static="false" final="false" visibility="public"
  31574. deprecated="not deprecated">
  31575. <param name="expectedState" type="org.apache.hadoop.service.Service.STATE"/>
  31576. <doc>
  31577. <![CDATA[Verify that that a service is in a given state.
  31578. @param expectedState the desired state
  31579. @throws ServiceStateException if the service state is different from
  31580. the desired state]]>
  31581. </doc>
  31582. </method>
  31583. <method name="enterState" return="org.apache.hadoop.service.Service.STATE"
  31584. abstract="false" native="false" synchronized="true"
  31585. static="false" final="false" visibility="public"
  31586. deprecated="not deprecated">
  31587. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  31588. <doc>
  31589. <![CDATA[Enter a state -thread safe.
  31590. @param proposed proposed new state
  31591. @return the original state
  31592. @throws ServiceStateException if the transition is not permitted]]>
  31593. </doc>
  31594. </method>
  31595. <method name="checkStateTransition"
  31596. abstract="false" native="false" synchronized="false"
  31597. static="true" final="false" visibility="public"
  31598. deprecated="not deprecated">
  31599. <param name="name" type="java.lang.String"/>
  31600. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  31601. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  31602. <doc>
  31603. <![CDATA[Check that a state tansition is valid and
  31604. throw an exception if not
  31605. @param name name of the service (can be null)
  31606. @param state current state
  31607. @param proposed proposed new state]]>
  31608. </doc>
  31609. </method>
  31610. <method name="isValidStateTransition" return="boolean"
  31611. abstract="false" native="false" synchronized="false"
  31612. static="true" final="false" visibility="public"
  31613. deprecated="not deprecated">
  31614. <param name="current" type="org.apache.hadoop.service.Service.STATE"/>
  31615. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  31616. <doc>
  31617. <![CDATA[Is a state transition valid?
  31618. There are no checks for current==proposed
  31619. as that is considered a non-transition.
  31620. using an array kills off all branch misprediction costs, at the expense
  31621. of cache line misses.
  31622. @param current current state
  31623. @param proposed proposed new state
  31624. @return true if the transition to a new state is valid]]>
  31625. </doc>
  31626. </method>
  31627. <method name="toString" return="java.lang.String"
  31628. abstract="false" native="false" synchronized="false"
  31629. static="false" final="false" visibility="public"
  31630. deprecated="not deprecated">
  31631. <doc>
  31632. <![CDATA[return the state text as the toString() value
  31633. @return the current state's description]]>
  31634. </doc>
  31635. </method>
  31636. <doc>
  31637. <![CDATA[Implements the service state model.]]>
  31638. </doc>
  31639. </class>
  31640. <!-- end class org.apache.hadoop.service.ServiceStateModel -->
  31641. </package>
  31642. <package name="org.apache.hadoop.service.launcher">
  31643. <!-- start class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  31644. <class name="AbstractLaunchableService" extends="org.apache.hadoop.service.AbstractService"
  31645. abstract="true"
  31646. static="false" final="false" visibility="public"
  31647. deprecated="not deprecated">
  31648. <implements name="org.apache.hadoop.service.launcher.LaunchableService"/>
  31649. <constructor name="AbstractLaunchableService" type="java.lang.String"
  31650. static="false" final="false" visibility="protected"
  31651. deprecated="not deprecated">
  31652. <doc>
  31653. <![CDATA[Construct an instance with the given name.]]>
  31654. </doc>
  31655. </constructor>
  31656. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  31657. abstract="false" native="false" synchronized="false"
  31658. static="false" final="false" visibility="public"
  31659. deprecated="not deprecated">
  31660. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  31661. <param name="args" type="java.util.List"/>
  31662. <exception name="Exception" type="java.lang.Exception"/>
  31663. <doc>
  31664. <![CDATA[{@inheritDoc}
  31665. <p>
  31666. The base implementation logs all arguments at the debug level,
  31667. then returns the passed in config unchanged.]]>
  31668. </doc>
  31669. </method>
  31670. <method name="execute" return="int"
  31671. abstract="false" native="false" synchronized="false"
  31672. static="false" final="false" visibility="public"
  31673. deprecated="not deprecated">
  31674. <exception name="Exception" type="java.lang.Exception"/>
  31675. <doc>
  31676. <![CDATA[{@inheritDoc}
  31677. <p>
  31678. The action is to signal success by returning the exit code 0.]]>
  31679. </doc>
  31680. </method>
  31681. <doc>
  31682. <![CDATA[Subclass of {@link AbstractService} that provides basic implementations
  31683. of the {@link LaunchableService} methods.]]>
  31684. </doc>
  31685. </class>
  31686. <!-- end class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  31687. <!-- start class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  31688. <class name="HadoopUncaughtExceptionHandler" extends="java.lang.Object"
  31689. abstract="false"
  31690. static="false" final="false" visibility="public"
  31691. deprecated="not deprecated">
  31692. <implements name="java.lang.Thread.UncaughtExceptionHandler"/>
  31693. <constructor name="HadoopUncaughtExceptionHandler" type="java.lang.Thread.UncaughtExceptionHandler"
  31694. static="false" final="false" visibility="public"
  31695. deprecated="not deprecated">
  31696. <doc>
  31697. <![CDATA[Create an instance delegating to the supplied handler if
  31698. the exception is considered "simple".
  31699. @param delegate a delegate exception handler.]]>
  31700. </doc>
  31701. </constructor>
  31702. <constructor name="HadoopUncaughtExceptionHandler"
  31703. static="false" final="false" visibility="public"
  31704. deprecated="not deprecated">
  31705. <doc>
  31706. <![CDATA[Basic exception handler -logs simple exceptions, then continues.]]>
  31707. </doc>
  31708. </constructor>
  31709. <method name="uncaughtException"
  31710. abstract="false" native="false" synchronized="false"
  31711. static="false" final="false" visibility="public"
  31712. deprecated="not deprecated">
  31713. <param name="thread" type="java.lang.Thread"/>
  31714. <param name="exception" type="java.lang.Throwable"/>
  31715. <doc>
  31716. <![CDATA[Uncaught exception handler.
  31717. If an error is raised: shutdown
  31718. The state of the system is unknown at this point -attempting
  31719. a clean shutdown is dangerous. Instead: exit
  31720. @param thread thread that failed
  31721. @param exception the raised exception]]>
  31722. </doc>
  31723. </method>
  31724. <doc>
  31725. <![CDATA[This class is intended to be installed by calling
  31726. {@link Thread#setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler)}
  31727. in the main entry point.
  31728. The base class will always attempt to shut down the process if an Error
  31729. was raised; the behavior on a standard Exception, raised outside
  31730. process shutdown, is simply to log it.
  31731. (Based on the class {@code YarnUncaughtExceptionHandler})]]>
  31732. </doc>
  31733. </class>
  31734. <!-- end class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  31735. <!-- start interface org.apache.hadoop.service.launcher.LaunchableService -->
  31736. <interface name="LaunchableService" abstract="true"
  31737. static="false" final="false" visibility="public"
  31738. deprecated="not deprecated">
  31739. <implements name="org.apache.hadoop.service.Service"/>
  31740. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  31741. abstract="true" native="false" synchronized="false"
  31742. static="false" final="false" visibility="public"
  31743. deprecated="not deprecated">
  31744. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  31745. <param name="args" type="java.util.List"/>
  31746. <exception name="Exception" type="java.lang.Exception"/>
  31747. <doc>
  31748. <![CDATA[Propagate the command line arguments.
  31749. <p>
  31750. This method is called before {@link #init(Configuration)};
  31751. Any non-null configuration that is returned from this operation
  31752. becomes the one that is passed on to that {@link #init(Configuration)}
  31753. operation.
  31754. <p>
  31755. This permits implementations to change the configuration before
  31756. the init operation. As the ServiceLauncher only creates
  31757. an instance of the base {@link Configuration} class, it is
  31758. recommended to instantiate any subclass (such as YarnConfiguration)
  31759. that injects new resources.
  31760. <p>
  31761. @param config the initial configuration build up by the
  31762. service launcher.
  31763. @param args list of arguments passed to the command line
  31764. after any launcher-specific commands have been stripped.
  31765. @return the configuration to init the service with.
  31766. Recommended: pass down the config parameter with any changes
  31767. @throws Exception any problem]]>
  31768. </doc>
  31769. </method>
  31770. <method name="execute" return="int"
  31771. abstract="true" native="false" synchronized="false"
  31772. static="false" final="false" visibility="public"
  31773. deprecated="not deprecated">
  31774. <exception name="Exception" type="java.lang.Exception"/>
  31775. <doc>
  31776. <![CDATA[Run a service. This method is called after {@link Service#start()}.
  31777. <p>
  31778. The return value becomes the exit code of the launched process.
  31779. <p>
  31780. If an exception is raised, the policy is:
  31781. <ol>
  31782. <li>Any subset of {@link org.apache.hadoop.util.ExitUtil.ExitException}:
  31783. the exception is passed up unmodified.
  31784. </li>
  31785. <li>Any exception which implements
  31786. {@link org.apache.hadoop.util.ExitCodeProvider}:
  31787. A new {@link ServiceLaunchException} is created with the exit code
  31788. and message of the thrown exception; the thrown exception becomes the
  31789. cause.</li>
  31790. <li>Any other exception: a new {@link ServiceLaunchException} is created
  31791. with the exit code {@link LauncherExitCodes#EXIT_EXCEPTION_THROWN} and
  31792. the message of the original exception (which becomes the cause).</li>
  31793. </ol>
  31794. @return the exit code
  31795. @throws org.apache.hadoop.util.ExitUtil.ExitException an exception passed
  31796. up as the exit code and error text.
  31797. @throws Exception any exception to report. If it provides an exit code
  31798. this is used in a wrapping exception.]]>
  31799. </doc>
  31800. </method>
  31801. <doc>
  31802. <![CDATA[An interface which services can implement to have their
  31803. execution managed by the ServiceLauncher.
  31804. <p>
  31805. The command line options will be passed down before the
  31806. {@link Service#init(Configuration)} operation is invoked via an
  31807. invocation of {@link LaunchableService#bindArgs(Configuration, List)}
  31808. After the service has been successfully started via {@link Service#start()}
  31809. the {@link LaunchableService#execute()} method is called to execute the
  31810. service. When this method returns, the service launcher will exit, using
  31811. the return code from the method as its exit option.]]>
  31812. </doc>
  31813. </interface>
  31814. <!-- end interface org.apache.hadoop.service.launcher.LaunchableService -->
  31815. <!-- start interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  31816. <interface name="LauncherExitCodes" abstract="true"
  31817. static="false" final="false" visibility="public"
  31818. deprecated="not deprecated">
  31819. <field name="EXIT_SUCCESS" type="int"
  31820. transient="false" volatile="false"
  31821. static="true" final="true" visibility="public"
  31822. deprecated="not deprecated">
  31823. <doc>
  31824. <![CDATA[Success: {@value}.]]>
  31825. </doc>
  31826. </field>
  31827. <field name="EXIT_FAIL" type="int"
  31828. transient="false" volatile="false"
  31829. static="true" final="true" visibility="public"
  31830. deprecated="not deprecated">
  31831. <doc>
  31832. <![CDATA[Generic "false/fail" response: {@value}.
  31833. The operation worked but the result was not "true" from the viewpoint
  31834. of the executed code.]]>
  31835. </doc>
  31836. </field>
  31837. <field name="EXIT_CLIENT_INITIATED_SHUTDOWN" type="int"
  31838. transient="false" volatile="false"
  31839. static="true" final="true" visibility="public"
  31840. deprecated="not deprecated">
  31841. <doc>
  31842. <![CDATA[Exit code when a client requested service termination: {@value}.]]>
  31843. </doc>
  31844. </field>
  31845. <field name="EXIT_TASK_LAUNCH_FAILURE" type="int"
  31846. transient="false" volatile="false"
  31847. static="true" final="true" visibility="public"
  31848. deprecated="not deprecated">
  31849. <doc>
  31850. <![CDATA[Exit code when targets could not be launched: {@value}.]]>
  31851. </doc>
  31852. </field>
  31853. <field name="EXIT_INTERRUPTED" type="int"
  31854. transient="false" volatile="false"
  31855. static="true" final="true" visibility="public"
  31856. deprecated="not deprecated">
  31857. <doc>
  31858. <![CDATA[Exit code when a control-C, kill -3, signal was picked up: {@value}.]]>
  31859. </doc>
  31860. </field>
  31861. <field name="EXIT_OTHER_FAILURE" type="int"
  31862. transient="false" volatile="false"
  31863. static="true" final="true" visibility="public"
  31864. deprecated="not deprecated">
  31865. <doc>
  31866. <![CDATA[Exit code when something happened but we can't be specific: {@value}.]]>
  31867. </doc>
  31868. </field>
  31869. <field name="EXIT_COMMAND_ARGUMENT_ERROR" type="int"
  31870. transient="false" volatile="false"
  31871. static="true" final="true" visibility="public"
  31872. deprecated="not deprecated">
  31873. <doc>
  31874. <![CDATA[Exit code when the command line doesn't parse: {@value}, or
  31875. when it is otherwise invalid.
  31876. <p>
  31877. Approximate HTTP equivalent: {@code 400 Bad Request}]]>
  31878. </doc>
  31879. </field>
  31880. <field name="EXIT_UNAUTHORIZED" type="int"
  31881. transient="false" volatile="false"
  31882. static="true" final="true" visibility="public"
  31883. deprecated="not deprecated">
  31884. <doc>
  31885. <![CDATA[The request requires user authentication: {@value}.
  31886. <p>
  31887. approximate HTTP equivalent: Approximate HTTP equivalent: {@code 401 Unauthorized}]]>
  31888. </doc>
  31889. </field>
  31890. <field name="EXIT_USAGE" type="int"
  31891. transient="false" volatile="false"
  31892. static="true" final="true" visibility="public"
  31893. deprecated="not deprecated">
  31894. <doc>
  31895. <![CDATA[Exit code when a usage message was printed: {@value}.]]>
  31896. </doc>
  31897. </field>
  31898. <field name="EXIT_FORBIDDEN" type="int"
  31899. transient="false" volatile="false"
  31900. static="true" final="true" visibility="public"
  31901. deprecated="not deprecated">
  31902. <doc>
  31903. <![CDATA[Forbidden action: {@value}.
  31904. <p>
  31905. Approximate HTTP equivalent: Approximate HTTP equivalent: {@code 403: Forbidden}]]>
  31906. </doc>
  31907. </field>
  31908. <field name="EXIT_NOT_FOUND" type="int"
  31909. transient="false" volatile="false"
  31910. static="true" final="true" visibility="public"
  31911. deprecated="not deprecated">
  31912. <doc>
  31913. <![CDATA[Something was not found: {@value}.
  31914. <p>
  31915. Approximate HTTP equivalent: {@code 404: Not Found}]]>
  31916. </doc>
  31917. </field>
  31918. <field name="EXIT_OPERATION_NOT_ALLOWED" type="int"
  31919. transient="false" volatile="false"
  31920. static="true" final="true" visibility="public"
  31921. deprecated="not deprecated">
  31922. <doc>
  31923. <![CDATA[The operation is not allowed: {@value}.
  31924. <p>
  31925. Approximate HTTP equivalent: {@code 405: Not allowed}]]>
  31926. </doc>
  31927. </field>
  31928. <field name="EXIT_NOT_ACCEPTABLE" type="int"
  31929. transient="false" volatile="false"
  31930. static="true" final="true" visibility="public"
  31931. deprecated="not deprecated">
  31932. <doc>
  31933. <![CDATA[The command is somehow not acceptable: {@value}.
  31934. <p>
  31935. Approximate HTTP equivalent: {@code 406: Not Acceptable}]]>
  31936. </doc>
  31937. </field>
  31938. <field name="EXIT_CONNECTIVITY_PROBLEM" type="int"
  31939. transient="false" volatile="false"
  31940. static="true" final="true" visibility="public"
  31941. deprecated="not deprecated">
  31942. <doc>
  31943. <![CDATA[Exit code on connectivity problems: {@value}.
  31944. <p>
  31945. Approximate HTTP equivalent: {@code 408: Request Timeout}]]>
  31946. </doc>
  31947. </field>
  31948. <field name="EXIT_BAD_CONFIGURATION" type="int"
  31949. transient="false" volatile="false"
  31950. static="true" final="true" visibility="public"
  31951. deprecated="not deprecated">
  31952. <doc>
  31953. <![CDATA[Exit code when the configurations in valid/incomplete: {@value}.
  31954. <p>
  31955. Approximate HTTP equivalent: {@code 409: Conflict}]]>
  31956. </doc>
  31957. </field>
  31958. <field name="EXIT_EXCEPTION_THROWN" type="int"
  31959. transient="false" volatile="false"
  31960. static="true" final="true" visibility="public"
  31961. deprecated="not deprecated">
  31962. <doc>
  31963. <![CDATA[Exit code when an exception was thrown from the service: {@value}.
  31964. <p>
  31965. Approximate HTTP equivalent: {@code 500 Internal Server Error}]]>
  31966. </doc>
  31967. </field>
  31968. <field name="EXIT_UNIMPLEMENTED" type="int"
  31969. transient="false" volatile="false"
  31970. static="true" final="true" visibility="public"
  31971. deprecated="not deprecated">
  31972. <doc>
  31973. <![CDATA[Unimplemented feature: {@value}.
  31974. <p>
  31975. Approximate HTTP equivalent: {@code 501: Not Implemented}]]>
  31976. </doc>
  31977. </field>
  31978. <field name="EXIT_SERVICE_UNAVAILABLE" type="int"
  31979. transient="false" volatile="false"
  31980. static="true" final="true" visibility="public"
  31981. deprecated="not deprecated">
  31982. <doc>
  31983. <![CDATA[Service Unavailable; it may be available later: {@value}.
  31984. <p>
  31985. Approximate HTTP equivalent: {@code 503 Service Unavailable}]]>
  31986. </doc>
  31987. </field>
  31988. <field name="EXIT_UNSUPPORTED_VERSION" type="int"
  31989. transient="false" volatile="false"
  31990. static="true" final="true" visibility="public"
  31991. deprecated="not deprecated">
  31992. <doc>
  31993. <![CDATA[The application does not support, or refuses to support this
  31994. version: {@value}.
  31995. <p>
  31996. If raised, this is expected to be raised server-side and likely due
  31997. to client/server version incompatibilities.
  31998. <p>
  31999. Approximate HTTP equivalent: {@code 505: Version Not Supported}]]>
  32000. </doc>
  32001. </field>
  32002. <field name="EXIT_SERVICE_CREATION_FAILURE" type="int"
  32003. transient="false" volatile="false"
  32004. static="true" final="true" visibility="public"
  32005. deprecated="not deprecated">
  32006. <doc>
  32007. <![CDATA[The service instance could not be created: {@value}.]]>
  32008. </doc>
  32009. </field>
  32010. <field name="EXIT_SERVICE_LIFECYCLE_EXCEPTION" type="int"
  32011. transient="false" volatile="false"
  32012. static="true" final="true" visibility="public"
  32013. deprecated="not deprecated">
  32014. <doc>
  32015. <![CDATA[The service instance could not be created: {@value}.]]>
  32016. </doc>
  32017. </field>
  32018. <doc>
  32019. <![CDATA[Common Exit codes.
  32020. <p>
  32021. Codes with a YARN prefix are YARN-related.
  32022. <p>
  32023. Many of the exit codes are designed to resemble HTTP error codes,
  32024. squashed into a single byte. e.g 44 , "not found" is the equivalent
  32025. of 404. The various 2XX HTTP error codes aren't followed;
  32026. the Unix standard of "0" for success is used.
  32027. <pre>
  32028. 0-10: general command issues
  32029. 30-39: equivalent to the 3XX responses, where those responses are
  32030. considered errors by the application.
  32031. 40-49: client-side/CLI/config problems
  32032. 50-59: service-side problems.
  32033. 60+ : application specific error codes
  32034. </pre>]]>
  32035. </doc>
  32036. </interface>
  32037. <!-- end interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  32038. <!-- start class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  32039. <class name="ServiceLaunchException" extends="org.apache.hadoop.util.ExitUtil.ExitException"
  32040. abstract="false"
  32041. static="false" final="false" visibility="public"
  32042. deprecated="not deprecated">
  32043. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  32044. <implements name="org.apache.hadoop.service.launcher.LauncherExitCodes"/>
  32045. <constructor name="ServiceLaunchException" type="int, java.lang.Throwable"
  32046. static="false" final="false" visibility="public"
  32047. deprecated="not deprecated">
  32048. <doc>
  32049. <![CDATA[Create an exception with the specific exit code.
  32050. @param exitCode exit code
  32051. @param cause cause of the exception]]>
  32052. </doc>
  32053. </constructor>
  32054. <constructor name="ServiceLaunchException" type="int, java.lang.String"
  32055. static="false" final="false" visibility="public"
  32056. deprecated="not deprecated">
  32057. <doc>
  32058. <![CDATA[Create an exception with the specific exit code and text.
  32059. @param exitCode exit code
  32060. @param message message to use in exception]]>
  32061. </doc>
  32062. </constructor>
  32063. <constructor name="ServiceLaunchException" type="int, java.lang.String, java.lang.Object[]"
  32064. static="false" final="false" visibility="public"
  32065. deprecated="not deprecated">
  32066. <doc>
  32067. <![CDATA[Create a formatted exception.
  32068. <p>
  32069. This uses {@link String#format(String, Object...)}
  32070. to build the formatted exception in the ENGLISH locale.
  32071. <p>
  32072. If the last argument is a throwable, it becomes the cause of the exception.
  32073. It will also be used as a parameter for the format.
  32074. @param exitCode exit code
  32075. @param format format for message to use in exception
  32076. @param args list of arguments]]>
  32077. </doc>
  32078. </constructor>
  32079. <doc>
  32080. <![CDATA[A service launch exception that includes an exit code.
  32081. <p>
  32082. When caught by the ServiceLauncher, it will convert that
  32083. into a process exit code.
  32084. The {@link #ServiceLaunchException(int, String, Object...)} constructor
  32085. generates formatted exceptions.]]>
  32086. </doc>
  32087. </class>
  32088. <!-- end class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  32089. </package>
  32090. <package name="org.apache.hadoop.tools">
  32091. </package>
  32092. <package name="org.apache.hadoop.tools.protocolPB">
  32093. </package>
  32094. <package name="org.apache.hadoop.tracing">
  32095. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfo -->
  32096. <class name="SpanReceiverInfo" extends="java.lang.Object"
  32097. abstract="false"
  32098. static="false" final="false" visibility="public"
  32099. deprecated="not deprecated">
  32100. <method name="getId" return="long"
  32101. abstract="false" native="false" synchronized="false"
  32102. static="false" final="false" visibility="public"
  32103. deprecated="not deprecated">
  32104. </method>
  32105. <method name="getClassName" return="java.lang.String"
  32106. abstract="false" native="false" synchronized="false"
  32107. static="false" final="false" visibility="public"
  32108. deprecated="not deprecated">
  32109. </method>
  32110. </class>
  32111. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfo -->
  32112. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  32113. <class name="SpanReceiverInfoBuilder" extends="java.lang.Object"
  32114. abstract="false"
  32115. static="false" final="false" visibility="public"
  32116. deprecated="not deprecated">
  32117. <constructor name="SpanReceiverInfoBuilder" type="java.lang.String"
  32118. static="false" final="false" visibility="public"
  32119. deprecated="not deprecated">
  32120. </constructor>
  32121. <method name="addConfigurationPair"
  32122. abstract="false" native="false" synchronized="false"
  32123. static="false" final="false" visibility="public"
  32124. deprecated="not deprecated">
  32125. <param name="key" type="java.lang.String"/>
  32126. <param name="value" type="java.lang.String"/>
  32127. </method>
  32128. <method name="build" return="org.apache.hadoop.tracing.SpanReceiverInfo"
  32129. abstract="false" native="false" synchronized="false"
  32130. static="false" final="false" visibility="public"
  32131. deprecated="not deprecated">
  32132. </method>
  32133. </class>
  32134. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  32135. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  32136. <interface name="TraceAdminProtocol" abstract="true"
  32137. static="false" final="false" visibility="public"
  32138. deprecated="not deprecated">
  32139. <method name="listSpanReceivers" return="org.apache.hadoop.tracing.SpanReceiverInfo[]"
  32140. abstract="true" native="false" synchronized="false"
  32141. static="false" final="false" visibility="public"
  32142. deprecated="not deprecated">
  32143. <exception name="IOException" type="java.io.IOException"/>
  32144. <doc>
  32145. <![CDATA[List the currently active trace span receivers.
  32146. @throws IOException On error.]]>
  32147. </doc>
  32148. </method>
  32149. <method name="addSpanReceiver" return="long"
  32150. abstract="true" native="false" synchronized="false"
  32151. static="false" final="false" visibility="public"
  32152. deprecated="not deprecated">
  32153. <param name="desc" type="org.apache.hadoop.tracing.SpanReceiverInfo"/>
  32154. <exception name="IOException" type="java.io.IOException"/>
  32155. <doc>
  32156. <![CDATA[Add a new trace span receiver.
  32157. @param desc The span receiver description.
  32158. @return The ID of the new trace span receiver.
  32159. @throws IOException On error.]]>
  32160. </doc>
  32161. </method>
  32162. <method name="removeSpanReceiver"
  32163. abstract="true" native="false" synchronized="false"
  32164. static="false" final="false" visibility="public"
  32165. deprecated="not deprecated">
  32166. <param name="spanReceiverId" type="long"/>
  32167. <exception name="IOException" type="java.io.IOException"/>
  32168. <doc>
  32169. <![CDATA[Remove a trace span receiver.
  32170. @param spanReceiverId The id of the span receiver to remove.
  32171. @throws IOException On error.]]>
  32172. </doc>
  32173. </method>
  32174. <field name="versionID" type="long"
  32175. transient="false" volatile="false"
  32176. static="true" final="true" visibility="public"
  32177. deprecated="not deprecated">
  32178. </field>
  32179. <doc>
  32180. <![CDATA[Protocol interface that provides tracing.]]>
  32181. </doc>
  32182. </interface>
  32183. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  32184. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  32185. <interface name="TraceAdminProtocolPB" abstract="true"
  32186. static="false" final="false" visibility="public"
  32187. deprecated="not deprecated">
  32188. <implements name="org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService.BlockingInterface"/>
  32189. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  32190. </interface>
  32191. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  32192. </package>
  32193. <package name="org.apache.hadoop.util">
  32194. <!-- start class org.apache.hadoop.util.ApplicationClassLoader -->
  32195. <class name="ApplicationClassLoader" extends="java.net.URLClassLoader"
  32196. abstract="false"
  32197. static="false" final="false" visibility="public"
  32198. deprecated="not deprecated">
  32199. <constructor name="ApplicationClassLoader" type="java.net.URL[], java.lang.ClassLoader, java.util.List"
  32200. static="false" final="false" visibility="public"
  32201. deprecated="not deprecated">
  32202. </constructor>
  32203. <constructor name="ApplicationClassLoader" type="java.lang.String, java.lang.ClassLoader, java.util.List"
  32204. static="false" final="false" visibility="public"
  32205. deprecated="not deprecated">
  32206. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  32207. </constructor>
  32208. <method name="getResource" return="java.net.URL"
  32209. abstract="false" native="false" synchronized="false"
  32210. static="false" final="false" visibility="public"
  32211. deprecated="not deprecated">
  32212. <param name="name" type="java.lang.String"/>
  32213. </method>
  32214. <method name="loadClass" return="java.lang.Class"
  32215. abstract="false" native="false" synchronized="false"
  32216. static="false" final="false" visibility="public"
  32217. deprecated="not deprecated">
  32218. <param name="name" type="java.lang.String"/>
  32219. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  32220. </method>
  32221. <method name="loadClass" return="java.lang.Class"
  32222. abstract="false" native="false" synchronized="true"
  32223. static="false" final="false" visibility="protected"
  32224. deprecated="not deprecated">
  32225. <param name="name" type="java.lang.String"/>
  32226. <param name="resolve" type="boolean"/>
  32227. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  32228. </method>
  32229. <method name="isSystemClass" return="boolean"
  32230. abstract="false" native="false" synchronized="false"
  32231. static="true" final="false" visibility="public"
  32232. deprecated="not deprecated">
  32233. <param name="name" type="java.lang.String"/>
  32234. <param name="systemClasses" type="java.util.List"/>
  32235. <doc>
  32236. <![CDATA[Checks if a class should be included as a system class.
  32237. A class is a system class if and only if it matches one of the positive
  32238. patterns and none of the negative ones.
  32239. @param name the class name to check
  32240. @param systemClasses a list of system class configurations.
  32241. @return true if the class is a system class]]>
  32242. </doc>
  32243. </method>
  32244. <field name="SYSTEM_CLASSES_DEFAULT" type="java.lang.String"
  32245. transient="false" volatile="false"
  32246. static="true" final="true" visibility="public"
  32247. deprecated="not deprecated">
  32248. <doc>
  32249. <![CDATA[Default value of the system classes if the user did not override them.
  32250. JDK classes, hadoop classes and resources, and some select third-party
  32251. classes are considered system classes, and are not loaded by the
  32252. application classloader.]]>
  32253. </doc>
  32254. </field>
  32255. <doc>
  32256. <![CDATA[A {@link URLClassLoader} for application isolation. Classes from the
  32257. application JARs are loaded in preference to the parent loader.]]>
  32258. </doc>
  32259. </class>
  32260. <!-- end class org.apache.hadoop.util.ApplicationClassLoader -->
  32261. <!-- start interface org.apache.hadoop.util.IPList -->
  32262. <interface name="IPList" abstract="true"
  32263. static="false" final="false" visibility="public"
  32264. deprecated="not deprecated">
  32265. <method name="isIn" return="boolean"
  32266. abstract="true" native="false" synchronized="false"
  32267. static="false" final="false" visibility="public"
  32268. deprecated="not deprecated">
  32269. <param name="ipAddress" type="java.lang.String"/>
  32270. <doc>
  32271. <![CDATA[returns true if the ipAddress is in the IPList.
  32272. @param ipAddress
  32273. @return boolean value indicating whether the ipAddress is in the IPList]]>
  32274. </doc>
  32275. </method>
  32276. </interface>
  32277. <!-- end interface org.apache.hadoop.util.IPList -->
  32278. <!-- start interface org.apache.hadoop.util.Progressable -->
  32279. <interface name="Progressable" abstract="true"
  32280. static="false" final="false" visibility="public"
  32281. deprecated="not deprecated">
  32282. <method name="progress"
  32283. abstract="true" native="false" synchronized="false"
  32284. static="false" final="false" visibility="public"
  32285. deprecated="not deprecated">
  32286. <doc>
  32287. <![CDATA[Report progress to the Hadoop framework.]]>
  32288. </doc>
  32289. </method>
  32290. <doc>
  32291. <![CDATA[A facility for reporting progress.
  32292. <p>Clients and/or applications can use the provided <code>Progressable</code>
  32293. to explicitly report progress to the Hadoop framework. This is especially
  32294. important for operations which take significant amount of time since,
  32295. in-lieu of the reported progress, the framework has to assume that an error
  32296. has occurred and time-out the operation.</p>]]>
  32297. </doc>
  32298. </interface>
  32299. <!-- end interface org.apache.hadoop.util.Progressable -->
  32300. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  32301. <class name="PureJavaCrc32" extends="java.lang.Object"
  32302. abstract="false"
  32303. static="false" final="false" visibility="public"
  32304. deprecated="not deprecated">
  32305. <implements name="java.util.zip.Checksum"/>
  32306. <constructor name="PureJavaCrc32"
  32307. static="false" final="false" visibility="public"
  32308. deprecated="not deprecated">
  32309. <doc>
  32310. <![CDATA[Create a new PureJavaCrc32 object.]]>
  32311. </doc>
  32312. </constructor>
  32313. <method name="getValue" return="long"
  32314. abstract="false" native="false" synchronized="false"
  32315. static="false" final="false" visibility="public"
  32316. deprecated="not deprecated">
  32317. </method>
  32318. <method name="reset"
  32319. abstract="false" native="false" synchronized="false"
  32320. static="false" final="false" visibility="public"
  32321. deprecated="not deprecated">
  32322. </method>
  32323. <method name="update"
  32324. abstract="false" native="false" synchronized="false"
  32325. static="false" final="false" visibility="public"
  32326. deprecated="not deprecated">
  32327. <param name="b" type="byte[]"/>
  32328. <param name="offset" type="int"/>
  32329. <param name="len" type="int"/>
  32330. </method>
  32331. <method name="update"
  32332. abstract="false" native="false" synchronized="false"
  32333. static="false" final="true" visibility="public"
  32334. deprecated="not deprecated">
  32335. <param name="b" type="int"/>
  32336. </method>
  32337. <doc>
  32338. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  32339. the same polynomial as the built-in native CRC32.
  32340. This is to avoid the JNI overhead for certain uses of Checksumming
  32341. where many small pieces of data are checksummed in succession.
  32342. The current version is ~10x to 1.8x as fast as Sun's native
  32343. java.util.zip.CRC32 in Java 1.6
  32344. @see java.util.zip.CRC32]]>
  32345. </doc>
  32346. </class>
  32347. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  32348. <!-- start class org.apache.hadoop.util.PureJavaCrc32C -->
  32349. <class name="PureJavaCrc32C" extends="java.lang.Object"
  32350. abstract="false"
  32351. static="false" final="false" visibility="public"
  32352. deprecated="not deprecated">
  32353. <implements name="java.util.zip.Checksum"/>
  32354. <constructor name="PureJavaCrc32C"
  32355. static="false" final="false" visibility="public"
  32356. deprecated="not deprecated">
  32357. <doc>
  32358. <![CDATA[Create a new PureJavaCrc32 object.]]>
  32359. </doc>
  32360. </constructor>
  32361. <method name="getValue" return="long"
  32362. abstract="false" native="false" synchronized="false"
  32363. static="false" final="false" visibility="public"
  32364. deprecated="not deprecated">
  32365. </method>
  32366. <method name="reset"
  32367. abstract="false" native="false" synchronized="false"
  32368. static="false" final="false" visibility="public"
  32369. deprecated="not deprecated">
  32370. </method>
  32371. <method name="update"
  32372. abstract="false" native="false" synchronized="false"
  32373. static="false" final="false" visibility="public"
  32374. deprecated="not deprecated">
  32375. <param name="b" type="byte[]"/>
  32376. <param name="off" type="int"/>
  32377. <param name="len" type="int"/>
  32378. </method>
  32379. <method name="update"
  32380. abstract="false" native="false" synchronized="false"
  32381. static="false" final="true" visibility="public"
  32382. deprecated="not deprecated">
  32383. <param name="b" type="int"/>
  32384. </method>
  32385. <doc>
  32386. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  32387. the CRC32-C polynomial, the same polynomial used by iSCSI
  32388. and implemented on many Intel chipsets supporting SSE4.2.]]>
  32389. </doc>
  32390. </class>
  32391. <!-- end class org.apache.hadoop.util.PureJavaCrc32C -->
  32392. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  32393. <class name="ReflectionUtils" extends="java.lang.Object"
  32394. abstract="false"
  32395. static="false" final="false" visibility="public"
  32396. deprecated="not deprecated">
  32397. <constructor name="ReflectionUtils"
  32398. static="false" final="false" visibility="public"
  32399. deprecated="not deprecated">
  32400. </constructor>
  32401. <method name="setConf"
  32402. abstract="false" native="false" synchronized="false"
  32403. static="true" final="false" visibility="public"
  32404. deprecated="not deprecated">
  32405. <param name="theObject" type="java.lang.Object"/>
  32406. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32407. <doc>
  32408. <![CDATA[Check and set 'configuration' if necessary.
  32409. @param theObject object for which to set configuration
  32410. @param conf Configuration]]>
  32411. </doc>
  32412. </method>
  32413. <method name="newInstance" return="T"
  32414. abstract="false" native="false" synchronized="false"
  32415. static="true" final="false" visibility="public"
  32416. deprecated="not deprecated">
  32417. <param name="theClass" type="java.lang.Class"/>
  32418. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32419. <doc>
  32420. <![CDATA[Create an object for the given class and initialize it from conf
  32421. @param theClass class of which an object is created
  32422. @param conf Configuration
  32423. @return a new object]]>
  32424. </doc>
  32425. </method>
  32426. <method name="newInstance" return="T"
  32427. abstract="false" native="false" synchronized="false"
  32428. static="true" final="false" visibility="public"
  32429. deprecated="not deprecated">
  32430. <param name="theClass" type="java.lang.Class"/>
  32431. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32432. <param name="argTypes" type="java.lang.Class[]"/>
  32433. <param name="values" type="java.lang.Object[]"/>
  32434. <doc>
  32435. <![CDATA[Create an object for the given class and initialize it from conf
  32436. @param theClass class of which an object is created
  32437. @param conf Configuration
  32438. @param argTypes the types of the arguments
  32439. @param values the values of the arguments
  32440. @return a new object]]>
  32441. </doc>
  32442. </method>
  32443. <method name="setContentionTracing"
  32444. abstract="false" native="false" synchronized="false"
  32445. static="true" final="false" visibility="public"
  32446. deprecated="not deprecated">
  32447. <param name="val" type="boolean"/>
  32448. </method>
  32449. <method name="printThreadInfo"
  32450. abstract="false" native="false" synchronized="true"
  32451. static="true" final="false" visibility="public"
  32452. deprecated="not deprecated">
  32453. <param name="stream" type="java.io.PrintStream"/>
  32454. <param name="title" type="java.lang.String"/>
  32455. <doc>
  32456. <![CDATA[Print all of the thread's information and stack traces.
  32457. @param stream the stream to
  32458. @param title a string title for the stack trace]]>
  32459. </doc>
  32460. </method>
  32461. <method name="logThreadInfo"
  32462. abstract="false" native="false" synchronized="false"
  32463. static="true" final="false" visibility="public"
  32464. deprecated="not deprecated">
  32465. <param name="log" type="org.apache.commons.logging.Log"/>
  32466. <param name="title" type="java.lang.String"/>
  32467. <param name="minInterval" type="long"/>
  32468. <doc>
  32469. <![CDATA[Log the current thread stacks at INFO level.
  32470. @param log the logger that logs the stack trace
  32471. @param title a descriptive title for the call stacks
  32472. @param minInterval the minimum time from the last]]>
  32473. </doc>
  32474. </method>
  32475. <method name="logThreadInfo"
  32476. abstract="false" native="false" synchronized="false"
  32477. static="true" final="false" visibility="public"
  32478. deprecated="not deprecated">
  32479. <param name="log" type="org.slf4j.Logger"/>
  32480. <param name="title" type="java.lang.String"/>
  32481. <param name="minInterval" type="long"/>
  32482. <doc>
  32483. <![CDATA[Log the current thread stacks at INFO level.
  32484. @param log the logger that logs the stack trace
  32485. @param title a descriptive title for the call stacks
  32486. @param minInterval the minimum time from the last]]>
  32487. </doc>
  32488. </method>
  32489. <method name="getClass" return="java.lang.Class"
  32490. abstract="false" native="false" synchronized="false"
  32491. static="true" final="false" visibility="public"
  32492. deprecated="not deprecated">
  32493. <param name="o" type="T"/>
  32494. <doc>
  32495. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  32496. @param o object whose correctly-typed <code>Class</code> is to be obtained
  32497. @return the correctly typed <code>Class</code> of the given object.]]>
  32498. </doc>
  32499. </method>
  32500. <method name="copy" return="T"
  32501. abstract="false" native="false" synchronized="false"
  32502. static="true" final="false" visibility="public"
  32503. deprecated="not deprecated">
  32504. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32505. <param name="src" type="T"/>
  32506. <param name="dst" type="T"/>
  32507. <exception name="IOException" type="java.io.IOException"/>
  32508. <doc>
  32509. <![CDATA[Make a copy of the writable object using serialization to a buffer
  32510. @param src the object to copy from
  32511. @param dst the object to copy into, which is destroyed
  32512. @return dst param (the copy)
  32513. @throws IOException]]>
  32514. </doc>
  32515. </method>
  32516. <method name="cloneWritableInto"
  32517. abstract="false" native="false" synchronized="false"
  32518. static="true" final="false" visibility="public"
  32519. deprecated="not deprecated">
  32520. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  32521. <param name="src" type="org.apache.hadoop.io.Writable"/>
  32522. <exception name="IOException" type="java.io.IOException"/>
  32523. </method>
  32524. <method name="getDeclaredFieldsIncludingInherited" return="java.util.List"
  32525. abstract="false" native="false" synchronized="false"
  32526. static="true" final="false" visibility="public"
  32527. deprecated="not deprecated">
  32528. <param name="clazz" type="java.lang.Class"/>
  32529. <doc>
  32530. <![CDATA[Gets all the declared fields of a class including fields declared in
  32531. superclasses.]]>
  32532. </doc>
  32533. </method>
  32534. <method name="getDeclaredMethodsIncludingInherited" return="java.util.List"
  32535. abstract="false" native="false" synchronized="false"
  32536. static="true" final="false" visibility="public"
  32537. deprecated="not deprecated">
  32538. <param name="clazz" type="java.lang.Class"/>
  32539. <doc>
  32540. <![CDATA[Gets all the declared methods of a class including methods declared in
  32541. superclasses.]]>
  32542. </doc>
  32543. </method>
  32544. <doc>
  32545. <![CDATA[General reflection utils]]>
  32546. </doc>
  32547. </class>
  32548. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  32549. <!-- start class org.apache.hadoop.util.Shell -->
  32550. <class name="Shell" extends="java.lang.Object"
  32551. abstract="true"
  32552. static="false" final="false" visibility="public"
  32553. deprecated="not deprecated">
  32554. <constructor name="Shell"
  32555. static="false" final="false" visibility="protected"
  32556. deprecated="not deprecated">
  32557. <doc>
  32558. <![CDATA[Create an instance with no minimum interval between runs; stderr is
  32559. not merged with stdout.]]>
  32560. </doc>
  32561. </constructor>
  32562. <constructor name="Shell" type="long"
  32563. static="false" final="false" visibility="protected"
  32564. deprecated="not deprecated">
  32565. <doc>
  32566. <![CDATA[Create an instance with a minimum interval between executions; stderr is
  32567. not merged with stdout.
  32568. @param interval interval in milliseconds between command executions.]]>
  32569. </doc>
  32570. </constructor>
  32571. <constructor name="Shell" type="long, boolean"
  32572. static="false" final="false" visibility="protected"
  32573. deprecated="not deprecated">
  32574. <doc>
  32575. <![CDATA[Create a shell instance which can be re-executed when the {@link #run()}
  32576. method is invoked with a given elapsed time between calls.
  32577. @param interval the minimum duration in milliseconds to wait before
  32578. re-executing the command. If set to 0, there is no minimum.
  32579. @param redirectErrorStream should the error stream be merged with
  32580. the normal output stream?]]>
  32581. </doc>
  32582. </constructor>
  32583. <method name="isJava7OrAbove" return="boolean"
  32584. abstract="false" native="false" synchronized="false"
  32585. static="true" final="false" visibility="public"
  32586. deprecated="This call isn't needed any more: please remove uses of it.">
  32587. <doc>
  32588. <![CDATA[query to see if system is Java 7 or later.
  32589. Now that Hadoop requires Java 7 or later, this always returns true.
  32590. @deprecated This call isn't needed any more: please remove uses of it.
  32591. @return true, always.]]>
  32592. </doc>
  32593. </method>
  32594. <method name="isJavaVersionAtLeast" return="boolean"
  32595. abstract="false" native="false" synchronized="false"
  32596. static="true" final="false" visibility="public"
  32597. deprecated="not deprecated">
  32598. <param name="version" type="int"/>
  32599. <doc>
  32600. <![CDATA[Query to see if major version of Java specification of the system
  32601. is equal or greater than the parameter.
  32602. @param version 8, 9, 10 etc.
  32603. @return comparison with system property, always true for 8]]>
  32604. </doc>
  32605. </method>
  32606. <method name="checkWindowsCommandLineLength"
  32607. abstract="false" native="false" synchronized="false"
  32608. static="true" final="false" visibility="public"
  32609. deprecated="not deprecated">
  32610. <param name="commands" type="java.lang.String[]"/>
  32611. <exception name="IOException" type="java.io.IOException"/>
  32612. <doc>
  32613. <![CDATA[Checks if a given command (String[]) fits in the Windows maximum command
  32614. line length Note that the input is expected to already include space
  32615. delimiters, no extra count will be added for delimiters.
  32616. @param commands command parts, including any space delimiters]]>
  32617. </doc>
  32618. </method>
  32619. <method name="getGroupsCommand" return="java.lang.String[]"
  32620. abstract="false" native="false" synchronized="false"
  32621. static="true" final="false" visibility="public"
  32622. deprecated="not deprecated">
  32623. <doc>
  32624. <![CDATA[a Unix command to get the current user's groups list.]]>
  32625. </doc>
  32626. </method>
  32627. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  32628. abstract="false" native="false" synchronized="false"
  32629. static="true" final="false" visibility="public"
  32630. deprecated="not deprecated">
  32631. <param name="user" type="java.lang.String"/>
  32632. <doc>
  32633. <![CDATA[A command to get a given user's groups list.
  32634. If the OS is not WINDOWS, the command will get the user's primary group
  32635. first and finally get the groups list which includes the primary group.
  32636. i.e. the user's primary group will be included twice.]]>
  32637. </doc>
  32638. </method>
  32639. <method name="getGroupsIDForUserCommand" return="java.lang.String[]"
  32640. abstract="false" native="false" synchronized="false"
  32641. static="true" final="false" visibility="public"
  32642. deprecated="not deprecated">
  32643. <param name="user" type="java.lang.String"/>
  32644. <doc>
  32645. <![CDATA[A command to get a given user's group id list.
  32646. The command will get the user's primary group
  32647. first and finally get the groups list which includes the primary group.
  32648. i.e. the user's primary group will be included twice.
  32649. This command does not support Windows and will only return group names.]]>
  32650. </doc>
  32651. </method>
  32652. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  32653. abstract="false" native="false" synchronized="false"
  32654. static="true" final="false" visibility="public"
  32655. deprecated="not deprecated">
  32656. <param name="netgroup" type="java.lang.String"/>
  32657. <doc>
  32658. <![CDATA[A command to get a given netgroup's user list.]]>
  32659. </doc>
  32660. </method>
  32661. <method name="getGetPermissionCommand" return="java.lang.String[]"
  32662. abstract="false" native="false" synchronized="false"
  32663. static="true" final="false" visibility="public"
  32664. deprecated="not deprecated">
  32665. <doc>
  32666. <![CDATA[Return a command to get permission information.]]>
  32667. </doc>
  32668. </method>
  32669. <method name="getSetPermissionCommand" return="java.lang.String[]"
  32670. abstract="false" native="false" synchronized="false"
  32671. static="true" final="false" visibility="public"
  32672. deprecated="not deprecated">
  32673. <param name="perm" type="java.lang.String"/>
  32674. <param name="recursive" type="boolean"/>
  32675. <doc>
  32676. <![CDATA[Return a command to set permission.]]>
  32677. </doc>
  32678. </method>
  32679. <method name="getSetPermissionCommand" return="java.lang.String[]"
  32680. abstract="false" native="false" synchronized="false"
  32681. static="true" final="false" visibility="public"
  32682. deprecated="not deprecated">
  32683. <param name="perm" type="java.lang.String"/>
  32684. <param name="recursive" type="boolean"/>
  32685. <param name="file" type="java.lang.String"/>
  32686. <doc>
  32687. <![CDATA[Return a command to set permission for specific file.
  32688. @param perm String permission to set
  32689. @param recursive boolean true to apply to all sub-directories recursively
  32690. @param file String file to set
  32691. @return String[] containing command and arguments]]>
  32692. </doc>
  32693. </method>
  32694. <method name="getSetOwnerCommand" return="java.lang.String[]"
  32695. abstract="false" native="false" synchronized="false"
  32696. static="true" final="false" visibility="public"
  32697. deprecated="not deprecated">
  32698. <param name="owner" type="java.lang.String"/>
  32699. <doc>
  32700. <![CDATA[Return a command to set owner.]]>
  32701. </doc>
  32702. </method>
  32703. <method name="getSymlinkCommand" return="java.lang.String[]"
  32704. abstract="false" native="false" synchronized="false"
  32705. static="true" final="false" visibility="public"
  32706. deprecated="not deprecated">
  32707. <param name="target" type="java.lang.String"/>
  32708. <param name="link" type="java.lang.String"/>
  32709. <doc>
  32710. <![CDATA[Return a command to create symbolic links.]]>
  32711. </doc>
  32712. </method>
  32713. <method name="getReadlinkCommand" return="java.lang.String[]"
  32714. abstract="false" native="false" synchronized="false"
  32715. static="true" final="false" visibility="public"
  32716. deprecated="not deprecated">
  32717. <param name="link" type="java.lang.String"/>
  32718. <doc>
  32719. <![CDATA[Return a command to read the target of the a symbolic link.]]>
  32720. </doc>
  32721. </method>
  32722. <method name="getCheckProcessIsAliveCommand" return="java.lang.String[]"
  32723. abstract="false" native="false" synchronized="false"
  32724. static="true" final="false" visibility="public"
  32725. deprecated="not deprecated">
  32726. <param name="pid" type="java.lang.String"/>
  32727. <doc>
  32728. <![CDATA[Return a command for determining if process with specified pid is alive.
  32729. @param pid process ID
  32730. @return a <code>kill -0</code> command or equivalent]]>
  32731. </doc>
  32732. </method>
  32733. <method name="getSignalKillCommand" return="java.lang.String[]"
  32734. abstract="false" native="false" synchronized="false"
  32735. static="true" final="false" visibility="public"
  32736. deprecated="not deprecated">
  32737. <param name="code" type="int"/>
  32738. <param name="pid" type="java.lang.String"/>
  32739. <doc>
  32740. <![CDATA[Return a command to send a signal to a given pid.]]>
  32741. </doc>
  32742. </method>
  32743. <method name="getEnvironmentVariableRegex" return="java.lang.String"
  32744. abstract="false" native="false" synchronized="false"
  32745. static="true" final="false" visibility="public"
  32746. deprecated="not deprecated">
  32747. <doc>
  32748. <![CDATA[Return a regular expression string that match environment variables.]]>
  32749. </doc>
  32750. </method>
  32751. <method name="appendScriptExtension" return="java.io.File"
  32752. abstract="false" native="false" synchronized="false"
  32753. static="true" final="false" visibility="public"
  32754. deprecated="not deprecated">
  32755. <param name="parent" type="java.io.File"/>
  32756. <param name="basename" type="java.lang.String"/>
  32757. <doc>
  32758. <![CDATA[Returns a File referencing a script with the given basename, inside the
  32759. given parent directory. The file extension is inferred by platform:
  32760. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  32761. @param parent File parent directory
  32762. @param basename String script file basename
  32763. @return File referencing the script in the directory]]>
  32764. </doc>
  32765. </method>
  32766. <method name="appendScriptExtension" return="java.lang.String"
  32767. abstract="false" native="false" synchronized="false"
  32768. static="true" final="false" visibility="public"
  32769. deprecated="not deprecated">
  32770. <param name="basename" type="java.lang.String"/>
  32771. <doc>
  32772. <![CDATA[Returns a script file name with the given basename.
  32773. The file extension is inferred by platform:
  32774. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  32775. @param basename String script file basename
  32776. @return String script file name]]>
  32777. </doc>
  32778. </method>
  32779. <method name="getRunScriptCommand" return="java.lang.String[]"
  32780. abstract="false" native="false" synchronized="false"
  32781. static="true" final="false" visibility="public"
  32782. deprecated="not deprecated">
  32783. <param name="script" type="java.io.File"/>
  32784. <doc>
  32785. <![CDATA[Returns a command to run the given script. The script interpreter is
  32786. inferred by platform: cmd on Windows or bash otherwise.
  32787. @param script File script to run
  32788. @return String[] command to run the script]]>
  32789. </doc>
  32790. </method>
  32791. <method name="getHadoopHome" return="java.lang.String"
  32792. abstract="false" native="false" synchronized="false"
  32793. static="true" final="false" visibility="public"
  32794. deprecated="not deprecated">
  32795. <exception name="IOException" type="java.io.IOException"/>
  32796. <doc>
  32797. <![CDATA[Get the Hadoop home directory. Raises an exception if not found
  32798. @return the home dir
  32799. @throws IOException if the home directory cannot be located.]]>
  32800. </doc>
  32801. </method>
  32802. <method name="getQualifiedBin" return="java.io.File"
  32803. abstract="false" native="false" synchronized="false"
  32804. static="true" final="false" visibility="public"
  32805. deprecated="not deprecated">
  32806. <param name="executable" type="java.lang.String"/>
  32807. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  32808. <doc>
  32809. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  32810. bin location. This is primarily useful for disambiguating call-outs
  32811. to executable sub-components of Hadoop to avoid clashes with other
  32812. executables that may be in the path. Caveat: this call doesn't
  32813. just format the path to the bin directory. It also checks for file
  32814. existence of the composed path. The output of this call should be
  32815. cached by callers.
  32816. @param executable executable
  32817. @return executable file reference
  32818. @throws FileNotFoundException if the path does not exist]]>
  32819. </doc>
  32820. </method>
  32821. <method name="getQualifiedBinPath" return="java.lang.String"
  32822. abstract="false" native="false" synchronized="false"
  32823. static="true" final="false" visibility="public"
  32824. deprecated="not deprecated">
  32825. <param name="executable" type="java.lang.String"/>
  32826. <exception name="IOException" type="java.io.IOException"/>
  32827. <doc>
  32828. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  32829. bin location. This is primarily useful for disambiguating call-outs
  32830. to executable sub-components of Hadoop to avoid clashes with other
  32831. executables that may be in the path. Caveat: this call doesn't
  32832. just format the path to the bin directory. It also checks for file
  32833. existence of the composed path. The output of this call should be
  32834. cached by callers.
  32835. @param executable executable
  32836. @return executable file reference
  32837. @throws FileNotFoundException if the path does not exist
  32838. @throws IOException on path canonicalization failures]]>
  32839. </doc>
  32840. </method>
  32841. <method name="hasWinutilsPath" return="boolean"
  32842. abstract="false" native="false" synchronized="false"
  32843. static="true" final="false" visibility="public"
  32844. deprecated="not deprecated">
  32845. <doc>
  32846. <![CDATA[Predicate to indicate whether or not the path to winutils is known.
  32847. If true, then {@link #WINUTILS} is non-null, and both
  32848. {@link #getWinUtilsPath()} and {@link #getWinUtilsFile()}
  32849. will successfully return this value. Always false on non-windows systems.
  32850. @return true if there is a valid path to the binary]]>
  32851. </doc>
  32852. </method>
  32853. <method name="getWinUtilsPath" return="java.lang.String"
  32854. abstract="false" native="false" synchronized="false"
  32855. static="true" final="false" visibility="public"
  32856. deprecated="not deprecated">
  32857. <doc>
  32858. <![CDATA[Locate the winutils binary, or fail with a meaningful
  32859. exception and stack trace as an RTE.
  32860. This method is for use in methods which don't explicitly throw
  32861. an <code>IOException</code>.
  32862. @return the path to {@link #WINUTILS_EXE}
  32863. @throws RuntimeException if the path is not resolvable]]>
  32864. </doc>
  32865. </method>
  32866. <method name="getWinUtilsFile" return="java.io.File"
  32867. abstract="false" native="false" synchronized="false"
  32868. static="true" final="false" visibility="public"
  32869. deprecated="not deprecated">
  32870. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  32871. <doc>
  32872. <![CDATA[Get a file reference to winutils.
  32873. Always raises an exception if there isn't one
  32874. @return the file instance referring to the winutils bin.
  32875. @throws FileNotFoundException on any failure to locate that file.]]>
  32876. </doc>
  32877. </method>
  32878. <method name="checkIsBashSupported" return="boolean"
  32879. abstract="false" native="false" synchronized="false"
  32880. static="true" final="false" visibility="public"
  32881. deprecated="not deprecated">
  32882. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  32883. </method>
  32884. <method name="setEnvironment"
  32885. abstract="false" native="false" synchronized="false"
  32886. static="false" final="false" visibility="protected"
  32887. deprecated="not deprecated">
  32888. <param name="env" type="java.util.Map"/>
  32889. <doc>
  32890. <![CDATA[Set the environment for the command.
  32891. @param env Mapping of environment variables]]>
  32892. </doc>
  32893. </method>
  32894. <method name="setWorkingDirectory"
  32895. abstract="false" native="false" synchronized="false"
  32896. static="false" final="false" visibility="protected"
  32897. deprecated="not deprecated">
  32898. <param name="dir" type="java.io.File"/>
  32899. <doc>
  32900. <![CDATA[Set the working directory.
  32901. @param dir The directory where the command will be executed]]>
  32902. </doc>
  32903. </method>
  32904. <method name="run"
  32905. abstract="false" native="false" synchronized="false"
  32906. static="false" final="false" visibility="protected"
  32907. deprecated="not deprecated">
  32908. <exception name="IOException" type="java.io.IOException"/>
  32909. <doc>
  32910. <![CDATA[Check to see if a command needs to be executed and execute if needed.]]>
  32911. </doc>
  32912. </method>
  32913. <method name="getExecString" return="java.lang.String[]"
  32914. abstract="true" native="false" synchronized="false"
  32915. static="false" final="false" visibility="protected"
  32916. deprecated="not deprecated">
  32917. <doc>
  32918. <![CDATA[return an array containing the command name and its parameters.]]>
  32919. </doc>
  32920. </method>
  32921. <method name="parseExecResult"
  32922. abstract="true" native="false" synchronized="false"
  32923. static="false" final="false" visibility="protected"
  32924. deprecated="not deprecated">
  32925. <param name="lines" type="java.io.BufferedReader"/>
  32926. <exception name="IOException" type="java.io.IOException"/>
  32927. <doc>
  32928. <![CDATA[Parse the execution result]]>
  32929. </doc>
  32930. </method>
  32931. <method name="getEnvironment" return="java.lang.String"
  32932. abstract="false" native="false" synchronized="false"
  32933. static="false" final="false" visibility="public"
  32934. deprecated="not deprecated">
  32935. <param name="env" type="java.lang.String"/>
  32936. <doc>
  32937. <![CDATA[Get an environment variable.
  32938. @param env the environment var
  32939. @return the value or null if it was unset.]]>
  32940. </doc>
  32941. </method>
  32942. <method name="getProcess" return="java.lang.Process"
  32943. abstract="false" native="false" synchronized="false"
  32944. static="false" final="false" visibility="public"
  32945. deprecated="not deprecated">
  32946. <doc>
  32947. <![CDATA[get the current sub-process executing the given command.
  32948. @return process executing the command]]>
  32949. </doc>
  32950. </method>
  32951. <method name="getExitCode" return="int"
  32952. abstract="false" native="false" synchronized="false"
  32953. static="false" final="false" visibility="public"
  32954. deprecated="not deprecated">
  32955. <doc>
  32956. <![CDATA[get the exit code.
  32957. @return the exit code of the process]]>
  32958. </doc>
  32959. </method>
  32960. <method name="getWaitingThread" return="java.lang.Thread"
  32961. abstract="false" native="false" synchronized="false"
  32962. static="false" final="false" visibility="public"
  32963. deprecated="not deprecated">
  32964. <doc>
  32965. <![CDATA[get the thread that is waiting on this instance of <code>Shell</code>.
  32966. @return the thread that ran runCommand() that spawned this shell
  32967. or null if no thread is waiting for this shell to complete]]>
  32968. </doc>
  32969. </method>
  32970. <method name="isTimedOut" return="boolean"
  32971. abstract="false" native="false" synchronized="false"
  32972. static="false" final="false" visibility="public"
  32973. deprecated="not deprecated">
  32974. <doc>
  32975. <![CDATA[To check if the passed script to shell command executor timed out or
  32976. not.
  32977. @return if the script timed out.]]>
  32978. </doc>
  32979. </method>
  32980. <method name="execCommand" return="java.lang.String"
  32981. abstract="false" native="false" synchronized="false"
  32982. static="true" final="false" visibility="public"
  32983. deprecated="not deprecated">
  32984. <param name="cmd" type="java.lang.String[]"/>
  32985. <exception name="IOException" type="java.io.IOException"/>
  32986. <doc>
  32987. <![CDATA[Static method to execute a shell command.
  32988. Covers most of the simple cases without requiring the user to implement
  32989. the <code>Shell</code> interface.
  32990. @param cmd shell command to execute.
  32991. @return the output of the executed command.]]>
  32992. </doc>
  32993. </method>
  32994. <method name="execCommand" 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="env" type="java.util.Map"/>
  32999. <param name="cmd" type="java.lang.String[]"/>
  33000. <param name="timeout" type="long"/>
  33001. <exception name="IOException" type="java.io.IOException"/>
  33002. <doc>
  33003. <![CDATA[Static method to execute a shell command.
  33004. Covers most of the simple cases without requiring the user to implement
  33005. the <code>Shell</code> interface.
  33006. @param env the map of environment key=value
  33007. @param cmd shell command to execute.
  33008. @param timeout time in milliseconds after which script should be marked timeout
  33009. @return the output of the executed command.
  33010. @throws IOException on any problem.]]>
  33011. </doc>
  33012. </method>
  33013. <method name="execCommand" return="java.lang.String"
  33014. abstract="false" native="false" synchronized="false"
  33015. static="true" final="false" visibility="public"
  33016. deprecated="not deprecated">
  33017. <param name="env" type="java.util.Map"/>
  33018. <param name="cmd" type="java.lang.String[]"/>
  33019. <exception name="IOException" type="java.io.IOException"/>
  33020. <doc>
  33021. <![CDATA[Static method to execute a shell command.
  33022. Covers most of the simple cases without requiring the user to implement
  33023. the <code>Shell</code> interface.
  33024. @param env the map of environment key=value
  33025. @param cmd shell command to execute.
  33026. @return the output of the executed command.
  33027. @throws IOException on any problem.]]>
  33028. </doc>
  33029. </method>
  33030. <method name="destroyAllShellProcesses"
  33031. abstract="false" native="false" synchronized="false"
  33032. static="true" final="false" visibility="public"
  33033. deprecated="not deprecated">
  33034. <doc>
  33035. <![CDATA[Static method to destroy all running <code>Shell</code> processes.
  33036. Iterates through a map of all currently running <code>Shell</code>
  33037. processes and destroys them one by one. This method is thread safe]]>
  33038. </doc>
  33039. </method>
  33040. <method name="getAllShells" return="java.util.Set"
  33041. abstract="false" native="false" synchronized="false"
  33042. static="true" final="false" visibility="public"
  33043. deprecated="not deprecated">
  33044. <doc>
  33045. <![CDATA[Static method to return a Set of all <code>Shell</code> objects.]]>
  33046. </doc>
  33047. </method>
  33048. <method name="getMemlockLimit" return="java.lang.Long"
  33049. abstract="false" native="false" synchronized="false"
  33050. static="true" final="false" visibility="public"
  33051. deprecated="not deprecated">
  33052. <param name="ulimit" type="java.lang.Long"/>
  33053. <doc>
  33054. <![CDATA[Static method to return the memory lock limit for datanode.
  33055. @param ulimit max value at which memory locked should be capped.
  33056. @return long value specifying the memory lock limit.]]>
  33057. </doc>
  33058. </method>
  33059. <field name="LOG" type="org.slf4j.Logger"
  33060. transient="false" volatile="false"
  33061. static="true" final="true" visibility="public"
  33062. deprecated="not deprecated">
  33063. </field>
  33064. <field name="SYSPROP_HADOOP_HOME_DIR" type="java.lang.String"
  33065. transient="false" volatile="false"
  33066. static="true" final="true" visibility="public"
  33067. deprecated="not deprecated">
  33068. <doc>
  33069. <![CDATA[System property for the Hadoop home directory: {@value}.]]>
  33070. </doc>
  33071. </field>
  33072. <field name="ENV_HADOOP_HOME" type="java.lang.String"
  33073. transient="false" volatile="false"
  33074. static="true" final="true" visibility="public"
  33075. deprecated="not deprecated">
  33076. <doc>
  33077. <![CDATA[Environment variable for Hadoop's home dir: {@value}.]]>
  33078. </doc>
  33079. </field>
  33080. <field name="WINDOWS_MAX_SHELL_LENGTH" type="int"
  33081. transient="false" volatile="false"
  33082. static="true" final="true" visibility="public"
  33083. deprecated="not deprecated">
  33084. <doc>
  33085. <![CDATA[Maximum command line length in Windows
  33086. KB830473 documents this as 8191]]>
  33087. </doc>
  33088. </field>
  33089. <field name="WINDOWS_MAX_SHELL_LENGHT" type="int"
  33090. transient="false" volatile="false"
  33091. static="true" final="true" visibility="public"
  33092. deprecated="use the correctly spelled constant.">
  33093. <doc>
  33094. <![CDATA[mis-spelling of {@link #WINDOWS_MAX_SHELL_LENGTH}.
  33095. @deprecated use the correctly spelled constant.]]>
  33096. </doc>
  33097. </field>
  33098. <field name="USER_NAME_COMMAND" type="java.lang.String"
  33099. transient="false" volatile="false"
  33100. static="true" final="true" visibility="public"
  33101. deprecated="not deprecated">
  33102. <doc>
  33103. <![CDATA[a Unix command to get the current user's name: {@value}.]]>
  33104. </doc>
  33105. </field>
  33106. <field name="WindowsProcessLaunchLock" type="java.lang.Object"
  33107. transient="false" volatile="false"
  33108. static="true" final="true" visibility="public"
  33109. deprecated="not deprecated">
  33110. <doc>
  33111. <![CDATA[Windows <code>CreateProcess</code> synchronization object.]]>
  33112. </doc>
  33113. </field>
  33114. <field name="osType" type="org.apache.hadoop.util.Shell.OSType"
  33115. transient="false" volatile="false"
  33116. static="true" final="true" visibility="public"
  33117. deprecated="not deprecated">
  33118. <doc>
  33119. <![CDATA[Get the type of the operating system, as determined from parsing
  33120. the <code>os.name</code> property.]]>
  33121. </doc>
  33122. </field>
  33123. <field name="WINDOWS" type="boolean"
  33124. transient="false" volatile="false"
  33125. static="true" final="true" visibility="public"
  33126. deprecated="not deprecated">
  33127. </field>
  33128. <field name="SOLARIS" type="boolean"
  33129. transient="false" volatile="false"
  33130. static="true" final="true" visibility="public"
  33131. deprecated="not deprecated">
  33132. </field>
  33133. <field name="MAC" type="boolean"
  33134. transient="false" volatile="false"
  33135. static="true" final="true" visibility="public"
  33136. deprecated="not deprecated">
  33137. </field>
  33138. <field name="FREEBSD" type="boolean"
  33139. transient="false" volatile="false"
  33140. static="true" final="true" visibility="public"
  33141. deprecated="not deprecated">
  33142. </field>
  33143. <field name="LINUX" type="boolean"
  33144. transient="false" volatile="false"
  33145. static="true" final="true" visibility="public"
  33146. deprecated="not deprecated">
  33147. </field>
  33148. <field name="OTHER" type="boolean"
  33149. transient="false" volatile="false"
  33150. static="true" final="true" visibility="public"
  33151. deprecated="not deprecated">
  33152. </field>
  33153. <field name="PPC_64" type="boolean"
  33154. transient="false" volatile="false"
  33155. static="true" final="true" visibility="public"
  33156. deprecated="not deprecated">
  33157. </field>
  33158. <field name="ENV_NAME_REGEX" type="java.lang.String"
  33159. transient="false" volatile="false"
  33160. static="true" final="true" visibility="public"
  33161. deprecated="not deprecated">
  33162. <doc>
  33163. <![CDATA[Regular expression for environment variables: {@value}.]]>
  33164. </doc>
  33165. </field>
  33166. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  33167. transient="false" volatile="false"
  33168. static="true" final="true" visibility="public"
  33169. deprecated="not deprecated">
  33170. <doc>
  33171. <![CDATA[a Unix command to set permission: {@value}.]]>
  33172. </doc>
  33173. </field>
  33174. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  33175. transient="false" volatile="false"
  33176. static="true" final="true" visibility="public"
  33177. deprecated="not deprecated">
  33178. <doc>
  33179. <![CDATA[a Unix command to set owner: {@value}.]]>
  33180. </doc>
  33181. </field>
  33182. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  33183. transient="false" volatile="false"
  33184. static="true" final="true" visibility="public"
  33185. deprecated="not deprecated">
  33186. <doc>
  33187. <![CDATA[a Unix command to set the change user's groups list: {@value}.]]>
  33188. </doc>
  33189. </field>
  33190. <field name="LINK_COMMAND" type="java.lang.String"
  33191. transient="false" volatile="false"
  33192. static="true" final="true" visibility="public"
  33193. deprecated="not deprecated">
  33194. <doc>
  33195. <![CDATA[a Unix command to create a link: {@value}.]]>
  33196. </doc>
  33197. </field>
  33198. <field name="READ_LINK_COMMAND" type="java.lang.String"
  33199. transient="false" volatile="false"
  33200. static="true" final="true" visibility="public"
  33201. deprecated="not deprecated">
  33202. <doc>
  33203. <![CDATA[a Unix command to get a link target: {@value}.]]>
  33204. </doc>
  33205. </field>
  33206. <field name="timeOutInterval" type="long"
  33207. transient="false" volatile="false"
  33208. static="false" final="false" visibility="protected"
  33209. deprecated="not deprecated">
  33210. <doc>
  33211. <![CDATA[Time after which the executing script would be timedout.]]>
  33212. </doc>
  33213. </field>
  33214. <field name="inheritParentEnv" type="boolean"
  33215. transient="false" volatile="false"
  33216. static="false" final="false" visibility="protected"
  33217. deprecated="not deprecated">
  33218. <doc>
  33219. <![CDATA[Indicates if the parent env vars should be inherited or not]]>
  33220. </doc>
  33221. </field>
  33222. <field name="WINUTILS" type="java.lang.String"
  33223. transient="false" volatile="false"
  33224. static="true" final="true" visibility="public"
  33225. deprecated="use one of the exception-raising getter methods,
  33226. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}">
  33227. <doc>
  33228. <![CDATA[Location of winutils as a string; null if not found.
  33229. <p>
  33230. <i>Important: caller must check for this value being null</i>.
  33231. The lack of such checks has led to many support issues being raised.
  33232. <p>
  33233. @deprecated use one of the exception-raising getter methods,
  33234. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}]]>
  33235. </doc>
  33236. </field>
  33237. <field name="isSetsidAvailable" type="boolean"
  33238. transient="false" volatile="false"
  33239. static="true" final="true" visibility="public"
  33240. deprecated="not deprecated">
  33241. <doc>
  33242. <![CDATA[Flag which is true if setsid exists.]]>
  33243. </doc>
  33244. </field>
  33245. <field name="TOKEN_SEPARATOR_REGEX" type="java.lang.String"
  33246. transient="false" volatile="false"
  33247. static="true" final="true" visibility="public"
  33248. deprecated="not deprecated">
  33249. <doc>
  33250. <![CDATA[Token separator regex used to parse Shell tool outputs.]]>
  33251. </doc>
  33252. </field>
  33253. <doc>
  33254. <![CDATA[A base class for running a Shell command.
  33255. <code>Shell</code> can be used to run shell commands like <code>du</code> or
  33256. <code>df</code>. It also offers facilities to gate commands by
  33257. time-intervals.]]>
  33258. </doc>
  33259. </class>
  33260. <!-- end class org.apache.hadoop.util.Shell -->
  33261. <!-- start class org.apache.hadoop.util.ShutdownHookManager -->
  33262. <class name="ShutdownHookManager" extends="java.lang.Object"
  33263. abstract="false"
  33264. static="false" final="true" visibility="public"
  33265. deprecated="not deprecated">
  33266. <method name="get" return="org.apache.hadoop.util.ShutdownHookManager"
  33267. abstract="false" native="false" synchronized="false"
  33268. static="true" final="false" visibility="public"
  33269. deprecated="not deprecated">
  33270. <doc>
  33271. <![CDATA[Return <code>ShutdownHookManager</code> singleton.
  33272. @return <code>ShutdownHookManager</code> singleton.]]>
  33273. </doc>
  33274. </method>
  33275. <method name="addShutdownHook"
  33276. abstract="false" native="false" synchronized="false"
  33277. static="false" final="false" visibility="public"
  33278. deprecated="not deprecated">
  33279. <param name="shutdownHook" type="java.lang.Runnable"/>
  33280. <param name="priority" type="int"/>
  33281. <doc>
  33282. <![CDATA[Adds a shutdownHook with a priority, the higher the priority
  33283. the earlier will run. ShutdownHooks with same priority run
  33284. in a non-deterministic order.
  33285. @param shutdownHook shutdownHook <code>Runnable</code>
  33286. @param priority priority of the shutdownHook.]]>
  33287. </doc>
  33288. </method>
  33289. <method name="addShutdownHook"
  33290. abstract="false" native="false" synchronized="false"
  33291. static="false" final="false" visibility="public"
  33292. deprecated="not deprecated">
  33293. <param name="shutdownHook" type="java.lang.Runnable"/>
  33294. <param name="priority" type="int"/>
  33295. <param name="timeout" type="long"/>
  33296. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  33297. <doc>
  33298. <![CDATA[Adds a shutdownHook with a priority and timeout the higher the priority
  33299. the earlier will run. ShutdownHooks with same priority run
  33300. in a non-deterministic order. The shutdown hook will be terminated if it
  33301. has not been finished in the specified period of time.
  33302. @param shutdownHook shutdownHook <code>Runnable</code>
  33303. @param priority priority of the shutdownHook
  33304. @param timeout timeout of the shutdownHook
  33305. @param unit unit of the timeout <code>TimeUnit</code>]]>
  33306. </doc>
  33307. </method>
  33308. <method name="removeShutdownHook" return="boolean"
  33309. abstract="false" native="false" synchronized="false"
  33310. static="false" final="false" visibility="public"
  33311. deprecated="not deprecated">
  33312. <param name="shutdownHook" type="java.lang.Runnable"/>
  33313. <doc>
  33314. <![CDATA[Removes a shutdownHook.
  33315. @param shutdownHook shutdownHook to remove.
  33316. @return TRUE if the shutdownHook was registered and removed,
  33317. FALSE otherwise.]]>
  33318. </doc>
  33319. </method>
  33320. <method name="hasShutdownHook" return="boolean"
  33321. abstract="false" native="false" synchronized="false"
  33322. static="false" final="false" visibility="public"
  33323. deprecated="not deprecated">
  33324. <param name="shutdownHook" type="java.lang.Runnable"/>
  33325. <doc>
  33326. <![CDATA[Indicates if a shutdownHook is registered or not.
  33327. @param shutdownHook shutdownHook to check if registered.
  33328. @return TRUE/FALSE depending if the shutdownHook is is registered.]]>
  33329. </doc>
  33330. </method>
  33331. <method name="isShutdownInProgress" return="boolean"
  33332. abstract="false" native="false" synchronized="false"
  33333. static="false" final="false" visibility="public"
  33334. deprecated="not deprecated">
  33335. <doc>
  33336. <![CDATA[Indicates if shutdown is in progress or not.
  33337. @return TRUE if the shutdown is in progress, otherwise FALSE.]]>
  33338. </doc>
  33339. </method>
  33340. <method name="clearShutdownHooks"
  33341. abstract="false" native="false" synchronized="false"
  33342. static="false" final="false" visibility="public"
  33343. deprecated="not deprecated">
  33344. <doc>
  33345. <![CDATA[clear all registered shutdownHooks.]]>
  33346. </doc>
  33347. </method>
  33348. <field name="TIMEOUT_MINIMUM" type="long"
  33349. transient="false" volatile="false"
  33350. static="true" final="true" visibility="public"
  33351. deprecated="not deprecated">
  33352. <doc>
  33353. <![CDATA[Minimum shutdown timeout: {@value} second(s).]]>
  33354. </doc>
  33355. </field>
  33356. <field name="TIME_UNIT_DEFAULT" type="java.util.concurrent.TimeUnit"
  33357. transient="false" volatile="false"
  33358. static="true" final="true" visibility="public"
  33359. deprecated="not deprecated">
  33360. <doc>
  33361. <![CDATA[The default time unit used: seconds.]]>
  33362. </doc>
  33363. </field>
  33364. <doc>
  33365. <![CDATA[The <code>ShutdownHookManager</code> enables running shutdownHook
  33366. in a deterministic order, higher priority first.
  33367. <p/>
  33368. The JVM runs ShutdownHooks in a non-deterministic order or in parallel.
  33369. This class registers a single JVM shutdownHook and run all the
  33370. shutdownHooks registered to it (to this class) in order based on their
  33371. priority.
  33372. Unless a hook was registered with a shutdown explicitly set through
  33373. {@link #addShutdownHook(Runnable, int, long, TimeUnit)},
  33374. the shutdown time allocated to it is set by the configuration option
  33375. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT} in
  33376. {@code core-site.xml}, with a default value of
  33377. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT_DEFAULT}
  33378. seconds.]]>
  33379. </doc>
  33380. </class>
  33381. <!-- end class org.apache.hadoop.util.ShutdownHookManager -->
  33382. <!-- start class org.apache.hadoop.util.StringInterner -->
  33383. <class name="StringInterner" extends="java.lang.Object"
  33384. abstract="false"
  33385. static="false" final="false" visibility="public"
  33386. deprecated="not deprecated">
  33387. <constructor name="StringInterner"
  33388. static="false" final="false" visibility="public"
  33389. deprecated="not deprecated">
  33390. </constructor>
  33391. <method name="strongIntern" return="java.lang.String"
  33392. abstract="false" native="false" synchronized="false"
  33393. static="true" final="false" visibility="public"
  33394. deprecated="not deprecated">
  33395. <param name="sample" type="java.lang.String"/>
  33396. <doc>
  33397. <![CDATA[Interns and returns a reference to the representative instance
  33398. for any of a collection of string instances that are equal to each other.
  33399. Retains strong reference to the instance,
  33400. thus preventing it from being garbage-collected.
  33401. @param sample string instance to be interned
  33402. @return strong reference to interned string instance]]>
  33403. </doc>
  33404. </method>
  33405. <method name="weakIntern" return="java.lang.String"
  33406. abstract="false" native="false" synchronized="false"
  33407. static="true" final="false" visibility="public"
  33408. deprecated="not deprecated">
  33409. <param name="sample" type="java.lang.String"/>
  33410. <doc>
  33411. <![CDATA[Interns and returns a reference to the representative instance
  33412. for any of a collection of string instances that are equal to each other.
  33413. Retains weak reference to the instance,
  33414. and so does not prevent it from being garbage-collected.
  33415. @param sample string instance to be interned
  33416. @return weak reference to interned string instance]]>
  33417. </doc>
  33418. </method>
  33419. <method name="internStringsInArray" return="java.lang.String[]"
  33420. abstract="false" native="false" synchronized="false"
  33421. static="true" final="false" visibility="public"
  33422. deprecated="not deprecated">
  33423. <param name="strings" type="java.lang.String[]"/>
  33424. <doc>
  33425. <![CDATA[Interns all the strings in the given array in place,
  33426. returning the same array.]]>
  33427. </doc>
  33428. </method>
  33429. <doc>
  33430. <![CDATA[Provides string interning utility methods. For weak interning,
  33431. we use the standard String.intern() call, that performs very well
  33432. (no problems with PermGen overflowing, etc.) starting from JDK 7.]]>
  33433. </doc>
  33434. </class>
  33435. <!-- end class org.apache.hadoop.util.StringInterner -->
  33436. <!-- start class org.apache.hadoop.util.SysInfo -->
  33437. <class name="SysInfo" extends="java.lang.Object"
  33438. abstract="true"
  33439. static="false" final="false" visibility="public"
  33440. deprecated="not deprecated">
  33441. <constructor name="SysInfo"
  33442. static="false" final="false" visibility="public"
  33443. deprecated="not deprecated">
  33444. </constructor>
  33445. <method name="newInstance" return="org.apache.hadoop.util.SysInfo"
  33446. abstract="false" native="false" synchronized="false"
  33447. static="true" final="false" visibility="public"
  33448. deprecated="not deprecated">
  33449. <doc>
  33450. <![CDATA[Return default OS instance.
  33451. @throws UnsupportedOperationException If cannot determine OS.
  33452. @return Default instance for the detected OS.]]>
  33453. </doc>
  33454. </method>
  33455. <method name="getVirtualMemorySize" return="long"
  33456. abstract="true" native="false" synchronized="false"
  33457. static="false" final="false" visibility="public"
  33458. deprecated="not deprecated">
  33459. <doc>
  33460. <![CDATA[Obtain the total size of the virtual memory present in the system.
  33461. @return virtual memory size in bytes.]]>
  33462. </doc>
  33463. </method>
  33464. <method name="getPhysicalMemorySize" return="long"
  33465. abstract="true" native="false" synchronized="false"
  33466. static="false" final="false" visibility="public"
  33467. deprecated="not deprecated">
  33468. <doc>
  33469. <![CDATA[Obtain the total size of the physical memory present in the system.
  33470. @return physical memory size bytes.]]>
  33471. </doc>
  33472. </method>
  33473. <method name="getAvailableVirtualMemorySize" return="long"
  33474. abstract="true" native="false" synchronized="false"
  33475. static="false" final="false" visibility="public"
  33476. deprecated="not deprecated">
  33477. <doc>
  33478. <![CDATA[Obtain the total size of the available virtual memory present
  33479. in the system.
  33480. @return available virtual memory size in bytes.]]>
  33481. </doc>
  33482. </method>
  33483. <method name="getAvailablePhysicalMemorySize" return="long"
  33484. abstract="true" native="false" synchronized="false"
  33485. static="false" final="false" visibility="public"
  33486. deprecated="not deprecated">
  33487. <doc>
  33488. <![CDATA[Obtain the total size of the available physical memory present
  33489. in the system.
  33490. @return available physical memory size bytes.]]>
  33491. </doc>
  33492. </method>
  33493. <method name="getNumProcessors" return="int"
  33494. abstract="true" native="false" synchronized="false"
  33495. static="false" final="false" visibility="public"
  33496. deprecated="not deprecated">
  33497. <doc>
  33498. <![CDATA[Obtain the total number of logical processors present on the system.
  33499. @return number of logical processors]]>
  33500. </doc>
  33501. </method>
  33502. <method name="getNumCores" return="int"
  33503. abstract="true" native="false" synchronized="false"
  33504. static="false" final="false" visibility="public"
  33505. deprecated="not deprecated">
  33506. <doc>
  33507. <![CDATA[Obtain total number of physical cores present on the system.
  33508. @return number of physical cores]]>
  33509. </doc>
  33510. </method>
  33511. <method name="getCpuFrequency" return="long"
  33512. abstract="true" native="false" synchronized="false"
  33513. static="false" final="false" visibility="public"
  33514. deprecated="not deprecated">
  33515. <doc>
  33516. <![CDATA[Obtain the CPU frequency of on the system.
  33517. @return CPU frequency in kHz]]>
  33518. </doc>
  33519. </method>
  33520. <method name="getCumulativeCpuTime" return="long"
  33521. abstract="true" native="false" synchronized="false"
  33522. static="false" final="false" visibility="public"
  33523. deprecated="not deprecated">
  33524. <doc>
  33525. <![CDATA[Obtain the cumulative CPU time since the system is on.
  33526. @return cumulative CPU time in milliseconds]]>
  33527. </doc>
  33528. </method>
  33529. <method name="getCpuUsagePercentage" return="float"
  33530. abstract="true" native="false" synchronized="false"
  33531. static="false" final="false" visibility="public"
  33532. deprecated="not deprecated">
  33533. <doc>
  33534. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  33535. @return CPU usage as a percentage (from 0 to 100) of available cycles.]]>
  33536. </doc>
  33537. </method>
  33538. <method name="getNumVCoresUsed" return="float"
  33539. abstract="true" native="false" synchronized="false"
  33540. static="false" final="false" visibility="public"
  33541. deprecated="not deprecated">
  33542. <doc>
  33543. <![CDATA[Obtain the number of VCores used. Return -1 if it is unavailable
  33544. @return Number of VCores used a percentage (from 0 to #VCores).]]>
  33545. </doc>
  33546. </method>
  33547. <method name="getNetworkBytesRead" return="long"
  33548. abstract="true" native="false" synchronized="false"
  33549. static="false" final="false" visibility="public"
  33550. deprecated="not deprecated">
  33551. <doc>
  33552. <![CDATA[Obtain the aggregated number of bytes read over the network.
  33553. @return total number of bytes read.]]>
  33554. </doc>
  33555. </method>
  33556. <method name="getNetworkBytesWritten" return="long"
  33557. abstract="true" native="false" synchronized="false"
  33558. static="false" final="false" visibility="public"
  33559. deprecated="not deprecated">
  33560. <doc>
  33561. <![CDATA[Obtain the aggregated number of bytes written to the network.
  33562. @return total number of bytes written.]]>
  33563. </doc>
  33564. </method>
  33565. <method name="getStorageBytesRead" return="long"
  33566. abstract="true" native="false" synchronized="false"
  33567. static="false" final="false" visibility="public"
  33568. deprecated="not deprecated">
  33569. <doc>
  33570. <![CDATA[Obtain the aggregated number of bytes read from disks.
  33571. @return total number of bytes read.]]>
  33572. </doc>
  33573. </method>
  33574. <method name="getStorageBytesWritten" return="long"
  33575. abstract="true" native="false" synchronized="false"
  33576. static="false" final="false" visibility="public"
  33577. deprecated="not deprecated">
  33578. <doc>
  33579. <![CDATA[Obtain the aggregated number of bytes written to disks.
  33580. @return total number of bytes written.]]>
  33581. </doc>
  33582. </method>
  33583. <doc>
  33584. <![CDATA[Plugin to calculate resource information on the system.]]>
  33585. </doc>
  33586. </class>
  33587. <!-- end class org.apache.hadoop.util.SysInfo -->
  33588. <!-- start interface org.apache.hadoop.util.Tool -->
  33589. <interface name="Tool" abstract="true"
  33590. static="false" final="false" visibility="public"
  33591. deprecated="not deprecated">
  33592. <implements name="org.apache.hadoop.conf.Configurable"/>
  33593. <method name="run" return="int"
  33594. abstract="true" native="false" synchronized="false"
  33595. static="false" final="false" visibility="public"
  33596. deprecated="not deprecated">
  33597. <param name="args" type="java.lang.String[]"/>
  33598. <exception name="Exception" type="java.lang.Exception"/>
  33599. <doc>
  33600. <![CDATA[Execute the command with the given arguments.
  33601. @param args command specific arguments.
  33602. @return exit code.
  33603. @throws Exception]]>
  33604. </doc>
  33605. </method>
  33606. <doc>
  33607. <![CDATA[A tool interface that supports handling of generic command-line options.
  33608. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  33609. The tool/application should delegate the handling of
  33610. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  33611. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  33612. and only handle its custom arguments.</p>
  33613. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  33614. <p><blockquote><pre>
  33615. public class MyApp extends Configured implements Tool {
  33616. public int run(String[] args) throws Exception {
  33617. // <code>Configuration</code> processed by <code>ToolRunner</code>
  33618. Configuration conf = getConf();
  33619. // Create a JobConf using the processed <code>conf</code>
  33620. JobConf job = new JobConf(conf, MyApp.class);
  33621. // Process custom command-line options
  33622. Path in = new Path(args[1]);
  33623. Path out = new Path(args[2]);
  33624. // Specify various job-specific parameters
  33625. job.setJobName("my-app");
  33626. job.setInputPath(in);
  33627. job.setOutputPath(out);
  33628. job.setMapperClass(MyMapper.class);
  33629. job.setReducerClass(MyReducer.class);
  33630. // Submit the job, then poll for progress until the job is complete
  33631. RunningJob runningJob = JobClient.runJob(job);
  33632. if (runningJob.isSuccessful()) {
  33633. return 0;
  33634. } else {
  33635. return 1;
  33636. }
  33637. }
  33638. public static void main(String[] args) throws Exception {
  33639. // Let <code>ToolRunner</code> handle generic command-line options
  33640. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  33641. System.exit(res);
  33642. }
  33643. }
  33644. </pre></blockquote></p>
  33645. @see GenericOptionsParser
  33646. @see ToolRunner]]>
  33647. </doc>
  33648. </interface>
  33649. <!-- end interface org.apache.hadoop.util.Tool -->
  33650. <!-- start class org.apache.hadoop.util.ToolRunner -->
  33651. <class name="ToolRunner" extends="java.lang.Object"
  33652. abstract="false"
  33653. static="false" final="false" visibility="public"
  33654. deprecated="not deprecated">
  33655. <constructor name="ToolRunner"
  33656. static="false" final="false" visibility="public"
  33657. deprecated="not deprecated">
  33658. </constructor>
  33659. <method name="run" return="int"
  33660. abstract="false" native="false" synchronized="false"
  33661. static="true" final="false" visibility="public"
  33662. deprecated="not deprecated">
  33663. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33664. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  33665. <param name="args" type="java.lang.String[]"/>
  33666. <exception name="Exception" type="java.lang.Exception"/>
  33667. <doc>
  33668. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  33669. parsing with the given generic arguments. Uses the given
  33670. <code>Configuration</code>, or builds one if null.
  33671. Sets the <code>Tool</code>'s configuration with the possibly modified
  33672. version of the <code>conf</code>.
  33673. @param conf <code>Configuration</code> for the <code>Tool</code>.
  33674. @param tool <code>Tool</code> to run.
  33675. @param args command-line arguments to the tool.
  33676. @return exit code of the {@link Tool#run(String[])} method.]]>
  33677. </doc>
  33678. </method>
  33679. <method name="run" return="int"
  33680. abstract="false" native="false" synchronized="false"
  33681. static="true" final="false" visibility="public"
  33682. deprecated="not deprecated">
  33683. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  33684. <param name="args" type="java.lang.String[]"/>
  33685. <exception name="Exception" type="java.lang.Exception"/>
  33686. <doc>
  33687. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  33688. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  33689. @param tool <code>Tool</code> to run.
  33690. @param args command-line arguments to the tool.
  33691. @return exit code of the {@link Tool#run(String[])} method.]]>
  33692. </doc>
  33693. </method>
  33694. <method name="printGenericCommandUsage"
  33695. abstract="false" native="false" synchronized="false"
  33696. static="true" final="false" visibility="public"
  33697. deprecated="not deprecated">
  33698. <param name="out" type="java.io.PrintStream"/>
  33699. <doc>
  33700. <![CDATA[Prints generic command-line argurments and usage information.
  33701. @param out stream to write usage information to.]]>
  33702. </doc>
  33703. </method>
  33704. <method name="confirmPrompt" return="boolean"
  33705. abstract="false" native="false" synchronized="false"
  33706. static="true" final="false" visibility="public"
  33707. deprecated="not deprecated">
  33708. <param name="prompt" type="java.lang.String"/>
  33709. <exception name="IOException" type="java.io.IOException"/>
  33710. <doc>
  33711. <![CDATA[Print out a prompt to the user, and return true if the user
  33712. responds with "y" or "yes". (case insensitive)]]>
  33713. </doc>
  33714. </method>
  33715. <doc>
  33716. <![CDATA[A utility to help run {@link Tool}s.
  33717. <p><code>ToolRunner</code> can be used to run classes implementing
  33718. <code>Tool</code> interface. It works in conjunction with
  33719. {@link GenericOptionsParser} to parse the
  33720. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  33721. generic hadoop command line arguments</a> and modifies the
  33722. <code>Configuration</code> of the <code>Tool</code>. The
  33723. application-specific options are passed along without being modified.
  33724. </p>
  33725. @see Tool
  33726. @see GenericOptionsParser]]>
  33727. </doc>
  33728. </class>
  33729. <!-- end class org.apache.hadoop.util.ToolRunner -->
  33730. <!-- start class org.apache.hadoop.util.VersionInfo -->
  33731. <class name="VersionInfo" extends="java.lang.Object"
  33732. abstract="false"
  33733. static="false" final="false" visibility="public"
  33734. deprecated="not deprecated">
  33735. <constructor name="VersionInfo" type="java.lang.String"
  33736. static="false" final="false" visibility="protected"
  33737. deprecated="not deprecated">
  33738. </constructor>
  33739. <method name="_getVersion" return="java.lang.String"
  33740. abstract="false" native="false" synchronized="false"
  33741. static="false" final="false" visibility="protected"
  33742. deprecated="not deprecated">
  33743. </method>
  33744. <method name="_getRevision" return="java.lang.String"
  33745. abstract="false" native="false" synchronized="false"
  33746. static="false" final="false" visibility="protected"
  33747. deprecated="not deprecated">
  33748. </method>
  33749. <method name="_getBranch" return="java.lang.String"
  33750. abstract="false" native="false" synchronized="false"
  33751. static="false" final="false" visibility="protected"
  33752. deprecated="not deprecated">
  33753. </method>
  33754. <method name="_getDate" return="java.lang.String"
  33755. abstract="false" native="false" synchronized="false"
  33756. static="false" final="false" visibility="protected"
  33757. deprecated="not deprecated">
  33758. </method>
  33759. <method name="_getUser" return="java.lang.String"
  33760. abstract="false" native="false" synchronized="false"
  33761. static="false" final="false" visibility="protected"
  33762. deprecated="not deprecated">
  33763. </method>
  33764. <method name="_getUrl" return="java.lang.String"
  33765. abstract="false" native="false" synchronized="false"
  33766. static="false" final="false" visibility="protected"
  33767. deprecated="not deprecated">
  33768. </method>
  33769. <method name="_getSrcChecksum" return="java.lang.String"
  33770. abstract="false" native="false" synchronized="false"
  33771. static="false" final="false" visibility="protected"
  33772. deprecated="not deprecated">
  33773. </method>
  33774. <method name="_getBuildVersion" return="java.lang.String"
  33775. abstract="false" native="false" synchronized="false"
  33776. static="false" final="false" visibility="protected"
  33777. deprecated="not deprecated">
  33778. </method>
  33779. <method name="_getProtocVersion" return="java.lang.String"
  33780. abstract="false" native="false" synchronized="false"
  33781. static="false" final="false" visibility="protected"
  33782. deprecated="not deprecated">
  33783. </method>
  33784. <method name="getVersion" return="java.lang.String"
  33785. abstract="false" native="false" synchronized="false"
  33786. static="true" final="false" visibility="public"
  33787. deprecated="not deprecated">
  33788. <doc>
  33789. <![CDATA[Get the Hadoop version.
  33790. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  33791. </doc>
  33792. </method>
  33793. <method name="getRevision" return="java.lang.String"
  33794. abstract="false" native="false" synchronized="false"
  33795. static="true" final="false" visibility="public"
  33796. deprecated="not deprecated">
  33797. <doc>
  33798. <![CDATA[Get the Git commit hash of the repository when compiled.
  33799. @return the commit hash, eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a"]]>
  33800. </doc>
  33801. </method>
  33802. <method name="getBranch" return="java.lang.String"
  33803. abstract="false" native="false" synchronized="false"
  33804. static="true" final="false" visibility="public"
  33805. deprecated="not deprecated">
  33806. <doc>
  33807. <![CDATA[Get the branch on which this originated.
  33808. @return The branch name, e.g. "trunk" or "branches/branch-0.20"]]>
  33809. </doc>
  33810. </method>
  33811. <method name="getDate" return="java.lang.String"
  33812. abstract="false" native="false" synchronized="false"
  33813. static="true" final="false" visibility="public"
  33814. deprecated="not deprecated">
  33815. <doc>
  33816. <![CDATA[The date that Hadoop was compiled.
  33817. @return the compilation date in unix date format]]>
  33818. </doc>
  33819. </method>
  33820. <method name="getUser" return="java.lang.String"
  33821. abstract="false" native="false" synchronized="false"
  33822. static="true" final="false" visibility="public"
  33823. deprecated="not deprecated">
  33824. <doc>
  33825. <![CDATA[The user that compiled Hadoop.
  33826. @return the username of the user]]>
  33827. </doc>
  33828. </method>
  33829. <method name="getUrl" return="java.lang.String"
  33830. abstract="false" native="false" synchronized="false"
  33831. static="true" final="false" visibility="public"
  33832. deprecated="not deprecated">
  33833. <doc>
  33834. <![CDATA[Get the URL for the Hadoop repository.
  33835. @return the URL of the Hadoop repository]]>
  33836. </doc>
  33837. </method>
  33838. <method name="getSrcChecksum" return="java.lang.String"
  33839. abstract="false" native="false" synchronized="false"
  33840. static="true" final="false" visibility="public"
  33841. deprecated="not deprecated">
  33842. <doc>
  33843. <![CDATA[Get the checksum of the source files from which Hadoop was built.
  33844. @return the checksum of the source files]]>
  33845. </doc>
  33846. </method>
  33847. <method name="getBuildVersion" return="java.lang.String"
  33848. abstract="false" native="false" synchronized="false"
  33849. static="true" final="false" visibility="public"
  33850. deprecated="not deprecated">
  33851. <doc>
  33852. <![CDATA[Returns the buildVersion which includes version,
  33853. revision, user and date.
  33854. @return the buildVersion]]>
  33855. </doc>
  33856. </method>
  33857. <method name="getProtocVersion" return="java.lang.String"
  33858. abstract="false" native="false" synchronized="false"
  33859. static="true" final="false" visibility="public"
  33860. deprecated="not deprecated">
  33861. <doc>
  33862. <![CDATA[Returns the protoc version used for the build.
  33863. @return the protoc version]]>
  33864. </doc>
  33865. </method>
  33866. <method name="main"
  33867. abstract="false" native="false" synchronized="false"
  33868. static="true" final="false" visibility="public"
  33869. deprecated="not deprecated">
  33870. <param name="args" type="java.lang.String[]"/>
  33871. </method>
  33872. <doc>
  33873. <![CDATA[This class returns build information about Hadoop components.]]>
  33874. </doc>
  33875. </class>
  33876. <!-- end class org.apache.hadoop.util.VersionInfo -->
  33877. <doc>
  33878. <![CDATA[Common utilities.]]>
  33879. </doc>
  33880. </package>
  33881. <package name="org.apache.hadoop.util.bloom">
  33882. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  33883. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  33884. abstract="false"
  33885. static="false" final="false" visibility="public"
  33886. deprecated="not deprecated">
  33887. <constructor name="BloomFilter"
  33888. static="false" final="false" visibility="public"
  33889. deprecated="not deprecated">
  33890. <doc>
  33891. <![CDATA[Default constructor - use with readFields]]>
  33892. </doc>
  33893. </constructor>
  33894. <constructor name="BloomFilter" type="int, int, int"
  33895. static="false" final="false" visibility="public"
  33896. deprecated="not deprecated">
  33897. <doc>
  33898. <![CDATA[Constructor
  33899. @param vectorSize The vector size of <i>this</i> filter.
  33900. @param nbHash The number of hash function to consider.
  33901. @param hashType type of the hashing function (see
  33902. {@link org.apache.hadoop.util.hash.Hash}).]]>
  33903. </doc>
  33904. </constructor>
  33905. <method name="add"
  33906. abstract="false" native="false" synchronized="false"
  33907. static="false" final="false" visibility="public"
  33908. deprecated="not deprecated">
  33909. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  33910. </method>
  33911. <method name="and"
  33912. abstract="false" native="false" synchronized="false"
  33913. static="false" final="false" visibility="public"
  33914. deprecated="not deprecated">
  33915. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  33916. </method>
  33917. <method name="membershipTest" return="boolean"
  33918. abstract="false" native="false" synchronized="false"
  33919. static="false" final="false" visibility="public"
  33920. deprecated="not deprecated">
  33921. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  33922. </method>
  33923. <method name="not"
  33924. abstract="false" native="false" synchronized="false"
  33925. static="false" final="false" visibility="public"
  33926. deprecated="not deprecated">
  33927. </method>
  33928. <method name="or"
  33929. abstract="false" native="false" synchronized="false"
  33930. static="false" final="false" visibility="public"
  33931. deprecated="not deprecated">
  33932. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  33933. </method>
  33934. <method name="xor"
  33935. abstract="false" native="false" synchronized="false"
  33936. static="false" final="false" visibility="public"
  33937. deprecated="not deprecated">
  33938. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  33939. </method>
  33940. <method name="toString" return="java.lang.String"
  33941. abstract="false" native="false" synchronized="false"
  33942. static="false" final="false" visibility="public"
  33943. deprecated="not deprecated">
  33944. </method>
  33945. <method name="getVectorSize" return="int"
  33946. abstract="false" native="false" synchronized="false"
  33947. static="false" final="false" visibility="public"
  33948. deprecated="not deprecated">
  33949. <doc>
  33950. <![CDATA[@return size of the the bloomfilter]]>
  33951. </doc>
  33952. </method>
  33953. <method name="write"
  33954. abstract="false" native="false" synchronized="false"
  33955. static="false" final="false" visibility="public"
  33956. deprecated="not deprecated">
  33957. <param name="out" type="java.io.DataOutput"/>
  33958. <exception name="IOException" type="java.io.IOException"/>
  33959. </method>
  33960. <method name="readFields"
  33961. abstract="false" native="false" synchronized="false"
  33962. static="false" final="false" visibility="public"
  33963. deprecated="not deprecated">
  33964. <param name="in" type="java.io.DataInput"/>
  33965. <exception name="IOException" type="java.io.IOException"/>
  33966. </method>
  33967. <doc>
  33968. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  33969. <p>
  33970. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  33971. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  33972. offers for the transmission of set membership information between networked hosts. A sender encodes
  33973. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  33974. representation. Computation and space costs for construction are linear in the number of elements.
  33975. The receiver uses the filter to test whether various elements are members of the set. Though the
  33976. filter will occasionally return a false positive, it will never return a false negative. When creating
  33977. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  33978. <p>
  33979. Originally created by
  33980. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  33981. @see Filter The general behavior of a filter
  33982. @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>]]>
  33983. </doc>
  33984. </class>
  33985. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  33986. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  33987. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  33988. abstract="false"
  33989. static="false" final="true" visibility="public"
  33990. deprecated="not deprecated">
  33991. <constructor name="CountingBloomFilter"
  33992. static="false" final="false" visibility="public"
  33993. deprecated="not deprecated">
  33994. <doc>
  33995. <![CDATA[Default constructor - use with readFields]]>
  33996. </doc>
  33997. </constructor>
  33998. <constructor name="CountingBloomFilter" type="int, int, int"
  33999. static="false" final="false" visibility="public"
  34000. deprecated="not deprecated">
  34001. <doc>
  34002. <![CDATA[Constructor
  34003. @param vectorSize The vector size of <i>this</i> filter.
  34004. @param nbHash The number of hash function to consider.
  34005. @param hashType type of the hashing function (see
  34006. {@link org.apache.hadoop.util.hash.Hash}).]]>
  34007. </doc>
  34008. </constructor>
  34009. <method name="add"
  34010. abstract="false" native="false" synchronized="false"
  34011. static="false" final="false" visibility="public"
  34012. deprecated="not deprecated">
  34013. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34014. </method>
  34015. <method name="delete"
  34016. abstract="false" native="false" synchronized="false"
  34017. static="false" final="false" visibility="public"
  34018. deprecated="not deprecated">
  34019. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34020. <doc>
  34021. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  34022. <p>
  34023. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  34024. @param key The key to remove.]]>
  34025. </doc>
  34026. </method>
  34027. <method name="and"
  34028. abstract="false" native="false" synchronized="false"
  34029. static="false" final="false" visibility="public"
  34030. deprecated="not deprecated">
  34031. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34032. </method>
  34033. <method name="membershipTest" return="boolean"
  34034. abstract="false" native="false" synchronized="false"
  34035. static="false" final="false" visibility="public"
  34036. deprecated="not deprecated">
  34037. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34038. </method>
  34039. <method name="approximateCount" return="int"
  34040. abstract="false" native="false" synchronized="false"
  34041. static="false" final="false" visibility="public"
  34042. deprecated="not deprecated">
  34043. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34044. <doc>
  34045. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  34046. times the key was added to the filter. This allows the filter to be
  34047. used as an approximate <code>key -&gt; count</code> map.
  34048. <p>NOTE: due to the bucket size of this filter, inserting the same
  34049. key more than 15 times will cause an overflow at all filter positions
  34050. associated with this key, and it will significantly increase the error
  34051. rate for this and other keys. For this reason the filter can only be
  34052. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  34053. @param key key to be tested
  34054. @return 0 if the key is not present. Otherwise, a positive value v will
  34055. be returned such that <code>v == count</code> with probability equal to the
  34056. error rate of this filter, and <code>v &gt; count</code> otherwise.
  34057. Additionally, if the filter experienced an underflow as a result of
  34058. {@link #delete(Key)} operation, the return value may be lower than the
  34059. <code>count</code> with the probability of the false negative rate of such
  34060. filter.]]>
  34061. </doc>
  34062. </method>
  34063. <method name="not"
  34064. abstract="false" native="false" synchronized="false"
  34065. static="false" final="false" visibility="public"
  34066. deprecated="not deprecated">
  34067. </method>
  34068. <method name="or"
  34069. abstract="false" native="false" synchronized="false"
  34070. static="false" final="false" visibility="public"
  34071. deprecated="not deprecated">
  34072. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34073. </method>
  34074. <method name="xor"
  34075. abstract="false" native="false" synchronized="false"
  34076. static="false" final="false" visibility="public"
  34077. deprecated="not deprecated">
  34078. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34079. </method>
  34080. <method name="toString" return="java.lang.String"
  34081. abstract="false" native="false" synchronized="false"
  34082. static="false" final="false" visibility="public"
  34083. deprecated="not deprecated">
  34084. </method>
  34085. <method name="write"
  34086. abstract="false" native="false" synchronized="false"
  34087. static="false" final="false" visibility="public"
  34088. deprecated="not deprecated">
  34089. <param name="out" type="java.io.DataOutput"/>
  34090. <exception name="IOException" type="java.io.IOException"/>
  34091. </method>
  34092. <method name="readFields"
  34093. abstract="false" native="false" synchronized="false"
  34094. static="false" final="false" visibility="public"
  34095. deprecated="not deprecated">
  34096. <param name="in" type="java.io.DataInput"/>
  34097. <exception name="IOException" type="java.io.IOException"/>
  34098. </method>
  34099. <doc>
  34100. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  34101. 2000 paper.
  34102. <p>
  34103. A counting Bloom filter is an improvement to standard a Bloom filter as it
  34104. allows dynamic additions and deletions of set membership information. This
  34105. is achieved through the use of a counting vector instead of a bit vector.
  34106. <p>
  34107. Originally created by
  34108. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  34109. @see Filter The general behavior of a filter
  34110. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  34111. </doc>
  34112. </class>
  34113. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  34114. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  34115. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  34116. abstract="false"
  34117. static="false" final="false" visibility="public"
  34118. deprecated="not deprecated">
  34119. <constructor name="DynamicBloomFilter"
  34120. static="false" final="false" visibility="public"
  34121. deprecated="not deprecated">
  34122. <doc>
  34123. <![CDATA[Zero-args constructor for the serialization.]]>
  34124. </doc>
  34125. </constructor>
  34126. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  34127. static="false" final="false" visibility="public"
  34128. deprecated="not deprecated">
  34129. <doc>
  34130. <![CDATA[Constructor.
  34131. <p>
  34132. Builds an empty Dynamic Bloom filter.
  34133. @param vectorSize The number of bits in the vector.
  34134. @param nbHash The number of hash function to consider.
  34135. @param hashType type of the hashing function (see
  34136. {@link org.apache.hadoop.util.hash.Hash}).
  34137. @param nr The threshold for the maximum number of keys to record in a
  34138. dynamic Bloom filter row.]]>
  34139. </doc>
  34140. </constructor>
  34141. <method name="add"
  34142. abstract="false" native="false" synchronized="false"
  34143. static="false" final="false" visibility="public"
  34144. deprecated="not deprecated">
  34145. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34146. </method>
  34147. <method name="and"
  34148. abstract="false" native="false" synchronized="false"
  34149. static="false" final="false" visibility="public"
  34150. deprecated="not deprecated">
  34151. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34152. </method>
  34153. <method name="membershipTest" return="boolean"
  34154. abstract="false" native="false" synchronized="false"
  34155. static="false" final="false" visibility="public"
  34156. deprecated="not deprecated">
  34157. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34158. </method>
  34159. <method name="not"
  34160. abstract="false" native="false" synchronized="false"
  34161. static="false" final="false" visibility="public"
  34162. deprecated="not deprecated">
  34163. </method>
  34164. <method name="or"
  34165. abstract="false" native="false" synchronized="false"
  34166. static="false" final="false" visibility="public"
  34167. deprecated="not deprecated">
  34168. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34169. </method>
  34170. <method name="xor"
  34171. abstract="false" native="false" synchronized="false"
  34172. static="false" final="false" visibility="public"
  34173. deprecated="not deprecated">
  34174. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34175. </method>
  34176. <method name="toString" return="java.lang.String"
  34177. abstract="false" native="false" synchronized="false"
  34178. static="false" final="false" visibility="public"
  34179. deprecated="not deprecated">
  34180. </method>
  34181. <method name="write"
  34182. abstract="false" native="false" synchronized="false"
  34183. static="false" final="false" visibility="public"
  34184. deprecated="not deprecated">
  34185. <param name="out" type="java.io.DataOutput"/>
  34186. <exception name="IOException" type="java.io.IOException"/>
  34187. </method>
  34188. <method name="readFields"
  34189. abstract="false" native="false" synchronized="false"
  34190. static="false" final="false" visibility="public"
  34191. deprecated="not deprecated">
  34192. <param name="in" type="java.io.DataInput"/>
  34193. <exception name="IOException" type="java.io.IOException"/>
  34194. </method>
  34195. <doc>
  34196. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  34197. <p>
  34198. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  34199. each of the <code>s</code> rows is a standard Bloom filter. The creation
  34200. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  34201. bit matrix, i.e., it is composed of a single standard Bloom filter.
  34202. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  34203. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  34204. the cardinality of the set <code>A</code> to record in the filter).
  34205. <p>
  34206. As the size of <code>A</code> grows during the execution of the application,
  34207. several keys must be inserted in the DBF. When inserting a key into the DBF,
  34208. one must first get an active Bloom filter in the matrix. A Bloom filter is
  34209. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  34210. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  34211. If an active Bloom filter is found, the key is inserted and
  34212. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  34213. is no active Bloom filter, a new one is created (i.e., a new row is added to
  34214. the matrix) according to the current size of <code>A</code> and the element
  34215. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  34216. this new Bloom filter is set to one. A given key is said to belong to the
  34217. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  34218. <p>
  34219. Originally created by
  34220. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  34221. @see Filter The general behavior of a filter
  34222. @see BloomFilter A Bloom filter
  34223. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  34224. </doc>
  34225. </class>
  34226. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  34227. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  34228. <class name="HashFunction" extends="java.lang.Object"
  34229. abstract="false"
  34230. static="false" final="true" visibility="public"
  34231. deprecated="not deprecated">
  34232. <constructor name="HashFunction" type="int, int, int"
  34233. static="false" final="false" visibility="public"
  34234. deprecated="not deprecated">
  34235. <doc>
  34236. <![CDATA[Constructor.
  34237. <p>
  34238. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  34239. @param maxValue The maximum highest returned value.
  34240. @param nbHash The number of resulting hashed values.
  34241. @param hashType type of the hashing function (see {@link Hash}).]]>
  34242. </doc>
  34243. </constructor>
  34244. <method name="clear"
  34245. abstract="false" native="false" synchronized="false"
  34246. static="false" final="false" visibility="public"
  34247. deprecated="not deprecated">
  34248. <doc>
  34249. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  34250. </doc>
  34251. </method>
  34252. <method name="hash" return="int[]"
  34253. abstract="false" native="false" synchronized="false"
  34254. static="false" final="false" visibility="public"
  34255. deprecated="not deprecated">
  34256. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  34257. <doc>
  34258. <![CDATA[Hashes a specified key into several integers.
  34259. @param k The specified key.
  34260. @return The array of hashed values.]]>
  34261. </doc>
  34262. </method>
  34263. <doc>
  34264. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  34265. @see Key The general behavior of a key being stored in a filter
  34266. @see Filter The general behavior of a filter]]>
  34267. </doc>
  34268. </class>
  34269. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  34270. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  34271. <interface name="RemoveScheme" abstract="true"
  34272. static="false" final="false" visibility="public"
  34273. deprecated="not deprecated">
  34274. <field name="RANDOM" type="short"
  34275. transient="false" volatile="false"
  34276. static="true" final="true" visibility="public"
  34277. deprecated="not deprecated">
  34278. <doc>
  34279. <![CDATA[Random selection.
  34280. <p>
  34281. The idea is to randomly select a bit to reset.]]>
  34282. </doc>
  34283. </field>
  34284. <field name="MINIMUM_FN" type="short"
  34285. transient="false" volatile="false"
  34286. static="true" final="true" visibility="public"
  34287. deprecated="not deprecated">
  34288. <doc>
  34289. <![CDATA[MinimumFN Selection.
  34290. <p>
  34291. The idea is to select the bit to reset that will generate the minimum
  34292. number of false negative.]]>
  34293. </doc>
  34294. </field>
  34295. <field name="MAXIMUM_FP" type="short"
  34296. transient="false" volatile="false"
  34297. static="true" final="true" visibility="public"
  34298. deprecated="not deprecated">
  34299. <doc>
  34300. <![CDATA[MaximumFP Selection.
  34301. <p>
  34302. The idea is to select the bit to reset that will remove the maximum number
  34303. of false positive.]]>
  34304. </doc>
  34305. </field>
  34306. <field name="RATIO" type="short"
  34307. transient="false" volatile="false"
  34308. static="true" final="true" visibility="public"
  34309. deprecated="not deprecated">
  34310. <doc>
  34311. <![CDATA[Ratio Selection.
  34312. <p>
  34313. The idea is to select the bit to reset that will, at the same time, remove
  34314. the maximum number of false positve while minimizing the amount of false
  34315. negative generated.]]>
  34316. </doc>
  34317. </field>
  34318. <doc>
  34319. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  34320. <p>
  34321. Originally created by
  34322. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  34323. </doc>
  34324. </interface>
  34325. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  34326. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  34327. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  34328. abstract="false"
  34329. static="false" final="true" visibility="public"
  34330. deprecated="not deprecated">
  34331. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  34332. <constructor name="RetouchedBloomFilter"
  34333. static="false" final="false" visibility="public"
  34334. deprecated="not deprecated">
  34335. <doc>
  34336. <![CDATA[Default constructor - use with readFields]]>
  34337. </doc>
  34338. </constructor>
  34339. <constructor name="RetouchedBloomFilter" type="int, int, int"
  34340. static="false" final="false" visibility="public"
  34341. deprecated="not deprecated">
  34342. <doc>
  34343. <![CDATA[Constructor
  34344. @param vectorSize The vector size of <i>this</i> filter.
  34345. @param nbHash The number of hash function to consider.
  34346. @param hashType type of the hashing function (see
  34347. {@link org.apache.hadoop.util.hash.Hash}).]]>
  34348. </doc>
  34349. </constructor>
  34350. <method name="add"
  34351. abstract="false" native="false" synchronized="false"
  34352. static="false" final="false" visibility="public"
  34353. deprecated="not deprecated">
  34354. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34355. </method>
  34356. <method name="addFalsePositive"
  34357. abstract="false" native="false" synchronized="false"
  34358. static="false" final="false" visibility="public"
  34359. deprecated="not deprecated">
  34360. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34361. <doc>
  34362. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  34363. <p>
  34364. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  34365. @param key The false positive key to add.]]>
  34366. </doc>
  34367. </method>
  34368. <method name="addFalsePositive"
  34369. abstract="false" native="false" synchronized="false"
  34370. static="false" final="false" visibility="public"
  34371. deprecated="not deprecated">
  34372. <param name="coll" type="java.util.Collection"/>
  34373. <doc>
  34374. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  34375. @param coll The collection of false positive.]]>
  34376. </doc>
  34377. </method>
  34378. <method name="addFalsePositive"
  34379. abstract="false" native="false" synchronized="false"
  34380. static="false" final="false" visibility="public"
  34381. deprecated="not deprecated">
  34382. <param name="keys" type="java.util.List"/>
  34383. <doc>
  34384. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  34385. @param keys The list of false positive.]]>
  34386. </doc>
  34387. </method>
  34388. <method name="addFalsePositive"
  34389. abstract="false" native="false" synchronized="false"
  34390. static="false" final="false" visibility="public"
  34391. deprecated="not deprecated">
  34392. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  34393. <doc>
  34394. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  34395. @param keys The array of false positive.]]>
  34396. </doc>
  34397. </method>
  34398. <method name="selectiveClearing"
  34399. abstract="false" native="false" synchronized="false"
  34400. static="false" final="false" visibility="public"
  34401. deprecated="not deprecated">
  34402. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  34403. <param name="scheme" type="short"/>
  34404. <doc>
  34405. <![CDATA[Performs the selective clearing for a given key.
  34406. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  34407. @param scheme The selective clearing scheme to apply.]]>
  34408. </doc>
  34409. </method>
  34410. <method name="write"
  34411. abstract="false" native="false" synchronized="false"
  34412. static="false" final="false" visibility="public"
  34413. deprecated="not deprecated">
  34414. <param name="out" type="java.io.DataOutput"/>
  34415. <exception name="IOException" type="java.io.IOException"/>
  34416. </method>
  34417. <method name="readFields"
  34418. abstract="false" native="false" synchronized="false"
  34419. static="false" final="false" visibility="public"
  34420. deprecated="not deprecated">
  34421. <param name="in" type="java.io.DataInput"/>
  34422. <exception name="IOException" type="java.io.IOException"/>
  34423. </method>
  34424. <doc>
  34425. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  34426. <p>
  34427. It allows the removal of selected false positives at the cost of introducing
  34428. random false negatives, and with the benefit of eliminating some random false
  34429. positives at the same time.
  34430. <p>
  34431. Originally created by
  34432. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  34433. @see Filter The general behavior of a filter
  34434. @see BloomFilter A Bloom filter
  34435. @see RemoveScheme The different selective clearing algorithms
  34436. @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>]]>
  34437. </doc>
  34438. </class>
  34439. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  34440. </package>
  34441. <package name="org.apache.hadoop.util.curator">
  34442. </package>
  34443. <package name="org.apache.hadoop.util.hash">
  34444. </package>
  34445. </api>