Apache_Hadoop_Common_3.2.2.xml 1.4 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Sun Jan 03 10:20:39 UTC 2021 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="Apache Hadoop Common 3.2.2"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet -docletpath /build/source/hadoop-common-project/hadoop-common/target/hadoop-annotations.jar:/build/source/hadoop-common-project/hadoop-common/target/jdiff.jar -verbose -classpath /build/source/hadoop-common-project/hadoop-common/target/classes:/build/source/hadoop-common-project/hadoop-annotations/target/hadoop-annotations-3.2.2.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.5/commons-io-2.5.jar:/maven/commons-net/commons-net/3.6/commons-net-3.6.jar:/maven/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/maven/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar:/maven/org/eclipse/jetty/jetty-server/9.4.20.v20190813/jetty-server-9.4.20.v20190813.jar:/maven/org/eclipse/jetty/jetty-http/9.4.20.v20190813/jetty-http-9.4.20.v20190813.jar:/maven/org/eclipse/jetty/jetty-io/9.4.20.v20190813/jetty-io-9.4.20.v20190813.jar:/maven/org/eclipse/jetty/jetty-util/9.4.20.v20190813/jetty-util-9.4.20.v20190813.jar:/maven/org/eclipse/jetty/jetty-servlet/9.4.20.v20190813/jetty-servlet-9.4.20.v20190813.jar:/maven/org/eclipse/jetty/jetty-security/9.4.20.v20190813/jetty-security-9.4.20.v20190813.jar:/maven/org/eclipse/jetty/jetty-webapp/9.4.20.v20190813/jetty-webapp-9.4.20.v20190813.jar:/maven/org/eclipse/jetty/jetty-xml/9.4.20.v20190813/jetty-xml-9.4.20.v20190813.jar:/maven/com/sun/jersey/jersey-core/1.19/jersey-core-1.19.jar:/maven/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar:/maven/com/sun/jersey/jersey-servlet/1.19/jersey-servlet-1.19.jar:/maven/com/sun/jersey/jersey-json/1.19/jersey-json-1.19.jar:/maven/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/maven/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/maven/javax/xml/bind/jaxb-api/2.2.11/jaxb-api-2.2.11.jar:/maven/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/maven/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/maven/org/codehaus/jackson/jackson-jaxrs/1.9.13/jackson-jaxrs-1.9.13.jar:/maven/org/codehaus/jackson/jackson-xc/1.9.13/jackson-xc-1.9.13.jar:/maven/com/sun/jersey/jersey-server/1.19/jersey-server-1.19.jar:/maven/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/maven/log4j/log4j/1.2.17/log4j-1.2.17.jar:/maven/commons-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.25/slf4j-api-1.7.25.jar:/maven/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar:/maven/org/apache/avro/avro/1.7.7/avro-1.7.7.jar:/maven/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar:/maven/org/xerial/snappy/snappy-java/1.0.5/snappy-java-1.0.5.jar:/maven/com/google/re2j/re2j/1.1/re2j-1.1.jar:/maven/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar:/maven/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/build/source/hadoop-common-project/hadoop-auth/target/hadoop-auth-3.2.2.jar:/maven/com/nimbusds/nimbus-jose-jwt/7.9/nimbus-jose-jwt-7.9.jar:/maven/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar:/maven/net/minidev/json-smart/2.3/json-smart-2.3.jar:/maven/net/minidev/accessors-smart/1.2/accessors-smart-1.2.jar:/maven/org/ow2/asm/asm/5.0.4/asm-5.0.4.jar:/maven/org/apache/curator/curator-framework/2.13.0/curator-framework-2.13.0.jar:/maven/com/jcraft/jsch/0.1.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.13/zookeeper-3.4.13.jar:/maven/org/apache/yetus/audience-annotations/0.5.0/audience-annotations-0.5.0.jar:/maven/io/netty/netty/3.10.6.Final/netty-3.10.6.Final.jar:/maven/org/apache/commons/commons-compress/1.19/commons-compress-1.19.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.9.10.4/jackson-databind-2.9.10.4.jar:/maven/com/fasterxml/jackson/core/jackson-annotations/2.9.10/jackson-annotations-2.9.10.jar:/maven/com/fasterxml/jackson/core/jackson-core/2.9.10/jackson-core-2.9.10.jar:/maven/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar:/maven/com/fasterxml/woodstox/woodstox-core/5.0.3/woodstox-core-5.0.3.jar:/maven/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.2 -->
  11. <package name="org.apache.hadoop">
  12. <!-- start class org.apache.hadoop.HadoopIllegalArgumentException -->
  13. <class name="HadoopIllegalArgumentException" extends="java.lang.IllegalArgumentException"
  14. abstract="false"
  15. static="false" final="false" visibility="public"
  16. deprecated="not deprecated">
  17. <constructor name="HadoopIllegalArgumentException" type="java.lang.String"
  18. static="false" final="false" visibility="public"
  19. deprecated="not deprecated">
  20. <doc>
  21. <![CDATA[Constructs exception with the specified detail message.
  22. @param message detailed message.]]>
  23. </doc>
  24. </constructor>
  25. <doc>
  26. <![CDATA[Indicates that a method has been passed illegal or invalid argument. This
  27. exception is thrown instead of IllegalArgumentException to differentiate the
  28. exception thrown in Hadoop implementation from the one thrown in JDK.]]>
  29. </doc>
  30. </class>
  31. <!-- end class org.apache.hadoop.HadoopIllegalArgumentException -->
  32. </package>
  33. <package name="org.apache.hadoop.conf">
  34. <!-- start interface org.apache.hadoop.conf.Configurable -->
  35. <interface name="Configurable" abstract="true"
  36. static="false" final="false" visibility="public"
  37. deprecated="not deprecated">
  38. <method name="setConf"
  39. abstract="true" native="false" synchronized="false"
  40. static="false" final="false" visibility="public"
  41. deprecated="not deprecated">
  42. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43. <doc>
  44. <![CDATA[Set the configuration to be used by this object.]]>
  45. </doc>
  46. </method>
  47. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  48. abstract="true" native="false" synchronized="false"
  49. static="false" final="false" visibility="public"
  50. deprecated="not deprecated">
  51. <doc>
  52. <![CDATA[Return the configuration used by this object.]]>
  53. </doc>
  54. </method>
  55. <doc>
  56. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  57. </doc>
  58. </interface>
  59. <!-- end interface org.apache.hadoop.conf.Configurable -->
  60. <!-- start class org.apache.hadoop.conf.Configuration -->
  61. <class name="Configuration" extends="java.lang.Object"
  62. abstract="false"
  63. static="false" final="false" visibility="public"
  64. deprecated="not deprecated">
  65. <implements name="java.lang.Iterable"/>
  66. <implements name="org.apache.hadoop.io.Writable"/>
  67. <constructor name="Configuration"
  68. static="false" final="false" visibility="public"
  69. deprecated="not deprecated">
  70. <doc>
  71. <![CDATA[A new configuration.]]>
  72. </doc>
  73. </constructor>
  74. <constructor name="Configuration" type="boolean"
  75. static="false" final="false" visibility="public"
  76. deprecated="not deprecated">
  77. <doc>
  78. <![CDATA[A new configuration where the behavior of reading from the default
  79. resources can be turned off.
  80. If the parameter {@code loadDefaults} is false, the new instance
  81. will not load resources from the default files.
  82. @param loadDefaults specifies whether to load from the default files]]>
  83. </doc>
  84. </constructor>
  85. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  86. static="false" final="false" visibility="public"
  87. deprecated="not deprecated">
  88. <doc>
  89. <![CDATA[A new configuration with the same settings cloned from another.
  90. @param other the configuration from which to clone settings.]]>
  91. </doc>
  92. </constructor>
  93. <method name="addDeprecations"
  94. abstract="false" native="false" synchronized="false"
  95. static="true" final="false" visibility="public"
  96. deprecated="not deprecated">
  97. <param name="deltas" type="org.apache.hadoop.conf.Configuration.DeprecationDelta[]"/>
  98. <doc>
  99. <![CDATA[Adds a set of deprecated keys to the global deprecations.
  100. This method is lockless. It works by means of creating a new
  101. DeprecationContext based on the old one, and then atomically swapping in
  102. the new context. If someone else updated the context in between us reading
  103. the old context and swapping in the new one, we try again until we win the
  104. race.
  105. @param deltas The deprecations to add.]]>
  106. </doc>
  107. </method>
  108. <method name="addDeprecation"
  109. abstract="false" native="false" synchronized="false"
  110. static="true" final="false" visibility="public"
  111. deprecated="use {@link #addDeprecation(String key, String newKey,
  112. String customMessage)} instead">
  113. <param name="key" type="java.lang.String"/>
  114. <param name="newKeys" type="java.lang.String[]"/>
  115. <param name="customMessage" type="java.lang.String"/>
  116. <doc>
  117. <![CDATA[Adds the deprecated key to the global deprecation map.
  118. It does not override any existing entries in the deprecation map.
  119. This is to be used only by the developers in order to add deprecation of
  120. keys, and attempts to call this method after loading resources once,
  121. would lead to <tt>UnsupportedOperationException</tt>
  122. If a key is deprecated in favor of multiple keys, they are all treated as
  123. aliases of each other, and setting any one of them resets all the others
  124. to the new value.
  125. If you have multiple deprecation entries to add, it is more efficient to
  126. use #addDeprecations(DeprecationDelta[] deltas) instead.
  127. @param key
  128. @param newKeys
  129. @param customMessage
  130. @deprecated use {@link #addDeprecation(String key, String newKey,
  131. String customMessage)} instead]]>
  132. </doc>
  133. </method>
  134. <method name="addDeprecation"
  135. abstract="false" native="false" synchronized="false"
  136. static="true" final="false" visibility="public"
  137. deprecated="not deprecated">
  138. <param name="key" type="java.lang.String"/>
  139. <param name="newKey" type="java.lang.String"/>
  140. <param name="customMessage" type="java.lang.String"/>
  141. <doc>
  142. <![CDATA[Adds the deprecated key to the global deprecation map.
  143. It does not override any existing entries in the deprecation map.
  144. This is to be used only by the developers in order to add deprecation of
  145. keys, and attempts to call this method after loading resources once,
  146. would lead to <tt>UnsupportedOperationException</tt>
  147. If you have multiple deprecation entries to add, it is more efficient to
  148. use #addDeprecations(DeprecationDelta[] deltas) instead.
  149. @param key
  150. @param newKey
  151. @param customMessage]]>
  152. </doc>
  153. </method>
  154. <method name="addDeprecation"
  155. abstract="false" native="false" synchronized="false"
  156. static="true" final="false" visibility="public"
  157. deprecated="use {@link #addDeprecation(String key, String newKey)} instead">
  158. <param name="key" type="java.lang.String"/>
  159. <param name="newKeys" type="java.lang.String[]"/>
  160. <doc>
  161. <![CDATA[Adds the deprecated key to the global deprecation map when no custom
  162. message is provided.
  163. It does not override any existing entries in the deprecation map.
  164. This is to be used only by the developers in order to add deprecation of
  165. keys, and attempts to call this method after loading resources once,
  166. would lead to <tt>UnsupportedOperationException</tt>
  167. If a key is deprecated in favor of multiple keys, they are all treated as
  168. aliases of each other, and setting any one of them resets all the others
  169. to the new value.
  170. If you have multiple deprecation entries to add, it is more efficient to
  171. use #addDeprecations(DeprecationDelta[] deltas) instead.
  172. @param key Key that is to be deprecated
  173. @param newKeys list of keys that take up the values of deprecated key
  174. @deprecated use {@link #addDeprecation(String key, String newKey)} instead]]>
  175. </doc>
  176. </method>
  177. <method name="addDeprecation"
  178. abstract="false" native="false" synchronized="false"
  179. static="true" final="false" visibility="public"
  180. deprecated="not deprecated">
  181. <param name="key" type="java.lang.String"/>
  182. <param name="newKey" type="java.lang.String"/>
  183. <doc>
  184. <![CDATA[Adds the deprecated key to the global deprecation map when no custom
  185. message is provided.
  186. It does not override any existing entries in the deprecation map.
  187. This is to be used only by the developers in order to add deprecation of
  188. keys, and attempts to call this method after loading resources once,
  189. would lead to <tt>UnsupportedOperationException</tt>
  190. If you have multiple deprecation entries to add, it is more efficient to
  191. use #addDeprecations(DeprecationDelta[] deltas) instead.
  192. @param key Key that is to be deprecated
  193. @param newKey key that takes up the value of deprecated key]]>
  194. </doc>
  195. </method>
  196. <method name="isDeprecated" return="boolean"
  197. abstract="false" native="false" synchronized="false"
  198. static="true" final="false" visibility="public"
  199. deprecated="not deprecated">
  200. <param name="key" type="java.lang.String"/>
  201. <doc>
  202. <![CDATA[checks whether the given <code>key</code> is deprecated.
  203. @param key the parameter which is to be checked for deprecation
  204. @return <code>true</code> if the key is deprecated and
  205. <code>false</code> otherwise.]]>
  206. </doc>
  207. </method>
  208. <method name="setDeprecatedProperties"
  209. abstract="false" native="false" synchronized="false"
  210. static="false" final="false" visibility="public"
  211. deprecated="not deprecated">
  212. <doc>
  213. <![CDATA[Sets all deprecated properties that are not currently set but have a
  214. corresponding new property that is set. Useful for iterating the
  215. properties when all deprecated properties for currently set properties
  216. need to be present.]]>
  217. </doc>
  218. </method>
  219. <method name="reloadExistingConfigurations"
  220. abstract="false" native="false" synchronized="true"
  221. static="true" final="false" visibility="public"
  222. deprecated="not deprecated">
  223. <doc>
  224. <![CDATA[Reload existing configuration instances.]]>
  225. </doc>
  226. </method>
  227. <method name="addDefaultResource"
  228. abstract="false" native="false" synchronized="true"
  229. static="true" final="false" visibility="public"
  230. deprecated="not deprecated">
  231. <param name="name" type="java.lang.String"/>
  232. <doc>
  233. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  234. added.
  235. @param name file name. File should be present in the classpath.]]>
  236. </doc>
  237. </method>
  238. <method name="setRestrictSystemPropertiesDefault"
  239. abstract="false" native="false" synchronized="false"
  240. static="true" final="false" visibility="public"
  241. deprecated="not deprecated">
  242. <param name="val" type="boolean"/>
  243. </method>
  244. <method name="setRestrictSystemProperties"
  245. abstract="false" native="false" synchronized="false"
  246. static="false" final="false" visibility="public"
  247. deprecated="not deprecated">
  248. <param name="val" type="boolean"/>
  249. </method>
  250. <method name="addResource"
  251. abstract="false" native="false" synchronized="false"
  252. static="false" final="false" visibility="public"
  253. deprecated="not deprecated">
  254. <param name="name" type="java.lang.String"/>
  255. <doc>
  256. <![CDATA[Add a configuration resource.
  257. The properties of this resource will override properties of previously
  258. added resources, unless they were marked <a href="#Final">final</a>.
  259. @param name resource to be added, the classpath is examined for a file
  260. with that name.]]>
  261. </doc>
  262. </method>
  263. <method name="addResource"
  264. abstract="false" native="false" synchronized="false"
  265. static="false" final="false" visibility="public"
  266. deprecated="not deprecated">
  267. <param name="name" type="java.lang.String"/>
  268. <param name="restrictedParser" type="boolean"/>
  269. </method>
  270. <method name="addResource"
  271. abstract="false" native="false" synchronized="false"
  272. static="false" final="false" visibility="public"
  273. deprecated="not deprecated">
  274. <param name="url" type="java.net.URL"/>
  275. <doc>
  276. <![CDATA[Add a configuration resource.
  277. The properties of this resource will override properties of previously
  278. added resources, unless they were marked <a href="#Final">final</a>.
  279. @param url url of the resource to be added, the local filesystem is
  280. examined directly to find the resource, without referring to
  281. the classpath.]]>
  282. </doc>
  283. </method>
  284. <method name="addResource"
  285. abstract="false" native="false" synchronized="false"
  286. static="false" final="false" visibility="public"
  287. deprecated="not deprecated">
  288. <param name="url" type="java.net.URL"/>
  289. <param name="restrictedParser" type="boolean"/>
  290. </method>
  291. <method name="addResource"
  292. abstract="false" native="false" synchronized="false"
  293. static="false" final="false" visibility="public"
  294. deprecated="not deprecated">
  295. <param name="file" type="org.apache.hadoop.fs.Path"/>
  296. <doc>
  297. <![CDATA[Add a configuration resource.
  298. The properties of this resource will override properties of previously
  299. added resources, unless they were marked <a href="#Final">final</a>.
  300. @param file file-path of resource to be added, the local filesystem is
  301. examined directly to find the resource, without referring to
  302. the classpath.]]>
  303. </doc>
  304. </method>
  305. <method name="addResource"
  306. abstract="false" native="false" synchronized="false"
  307. static="false" final="false" visibility="public"
  308. deprecated="not deprecated">
  309. <param name="file" type="org.apache.hadoop.fs.Path"/>
  310. <param name="restrictedParser" type="boolean"/>
  311. </method>
  312. <method name="addResource"
  313. abstract="false" native="false" synchronized="false"
  314. static="false" final="false" visibility="public"
  315. deprecated="not deprecated">
  316. <param name="in" type="java.io.InputStream"/>
  317. <doc>
  318. <![CDATA[Add a configuration resource.
  319. The properties of this resource will override properties of previously
  320. added resources, unless they were marked <a href="#Final">final</a>.
  321. WARNING: The contents of the InputStream will be cached, by this method.
  322. So use this sparingly because it does increase the memory consumption.
  323. @param in InputStream to deserialize the object from. In will be read from
  324. when a get or set is called next. After it is read the stream will be
  325. closed.]]>
  326. </doc>
  327. </method>
  328. <method name="addResource"
  329. abstract="false" native="false" synchronized="false"
  330. static="false" final="false" visibility="public"
  331. deprecated="not deprecated">
  332. <param name="in" type="java.io.InputStream"/>
  333. <param name="restrictedParser" type="boolean"/>
  334. </method>
  335. <method name="addResource"
  336. abstract="false" native="false" synchronized="false"
  337. static="false" final="false" visibility="public"
  338. deprecated="not deprecated">
  339. <param name="in" type="java.io.InputStream"/>
  340. <param name="name" type="java.lang.String"/>
  341. <doc>
  342. <![CDATA[Add a configuration resource.
  343. The properties of this resource will override properties of previously
  344. added resources, unless they were marked <a href="#Final">final</a>.
  345. @param in InputStream to deserialize the object from.
  346. @param name the name of the resource because InputStream.toString is not
  347. very descriptive some times.]]>
  348. </doc>
  349. </method>
  350. <method name="addResource"
  351. abstract="false" native="false" synchronized="false"
  352. static="false" final="false" visibility="public"
  353. deprecated="not deprecated">
  354. <param name="in" type="java.io.InputStream"/>
  355. <param name="name" type="java.lang.String"/>
  356. <param name="restrictedParser" type="boolean"/>
  357. </method>
  358. <method name="addResource"
  359. abstract="false" native="false" synchronized="false"
  360. static="false" final="false" visibility="public"
  361. deprecated="not deprecated">
  362. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  363. <doc>
  364. <![CDATA[Add a configuration resource.
  365. The properties of this resource will override properties of previously
  366. added resources, unless they were marked <a href="#Final">final</a>.
  367. @param conf Configuration object from which to load properties]]>
  368. </doc>
  369. </method>
  370. <method name="reloadConfiguration"
  371. abstract="false" native="false" synchronized="true"
  372. static="false" final="false" visibility="public"
  373. deprecated="not deprecated">
  374. <doc>
  375. <![CDATA[Reload configuration from previously added resources.
  376. This method will clear all the configuration read from the added
  377. resources, and final parameters. This will make the resources to
  378. be read again before accessing the values. Values that are added
  379. via set methods will overlay values read from the resources.]]>
  380. </doc>
  381. </method>
  382. <method name="get" return="java.lang.String"
  383. abstract="false" native="false" synchronized="false"
  384. static="false" final="false" visibility="public"
  385. deprecated="not deprecated">
  386. <param name="name" type="java.lang.String"/>
  387. <doc>
  388. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  389. no such property exists. If the key is deprecated, it returns the value of
  390. the first key which replaces the deprecated key and is not null.
  391. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  392. before being returned.
  393. @param name the property name, will be trimmed before get value.
  394. @return the value of the <code>name</code> or its replacing property,
  395. or null if no such property exists.]]>
  396. </doc>
  397. </method>
  398. <method name="setAllowNullValueProperties"
  399. abstract="false" native="false" synchronized="false"
  400. static="false" final="false" visibility="public"
  401. deprecated="not deprecated">
  402. <param name="val" type="boolean"/>
  403. <doc>
  404. <![CDATA[Set Configuration to allow keys without values during setup. Intended
  405. for use during testing.
  406. @param val If true, will allow Configuration to store keys without values]]>
  407. </doc>
  408. </method>
  409. <method name="setRestrictSystemProps"
  410. abstract="false" native="false" synchronized="false"
  411. static="false" final="false" visibility="public"
  412. deprecated="not deprecated">
  413. <param name="val" type="boolean"/>
  414. </method>
  415. <method name="onlyKeyExists" return="boolean"
  416. abstract="false" native="false" synchronized="false"
  417. static="false" final="false" visibility="public"
  418. deprecated="not deprecated">
  419. <param name="name" type="java.lang.String"/>
  420. <doc>
  421. <![CDATA[Return existence of the <code>name</code> property, but only for
  422. names which have no valid value, usually non-existent or commented
  423. out in XML.
  424. @param name the property name
  425. @return true if the property <code>name</code> exists without value]]>
  426. </doc>
  427. </method>
  428. <method name="getTrimmed" return="java.lang.String"
  429. abstract="false" native="false" synchronized="false"
  430. static="false" final="false" visibility="public"
  431. deprecated="not deprecated">
  432. <param name="name" type="java.lang.String"/>
  433. <doc>
  434. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  435. <code>null</code> if no such property exists.
  436. If the key is deprecated, it returns the value of
  437. the first key which replaces the deprecated key and is not null
  438. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  439. before being returned.
  440. @param name the property name.
  441. @return the value of the <code>name</code> or its replacing property,
  442. or null if no such property exists.]]>
  443. </doc>
  444. </method>
  445. <method name="getTrimmed" return="java.lang.String"
  446. abstract="false" native="false" synchronized="false"
  447. static="false" final="false" visibility="public"
  448. deprecated="not deprecated">
  449. <param name="name" type="java.lang.String"/>
  450. <param name="defaultValue" type="java.lang.String"/>
  451. <doc>
  452. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  453. <code>defaultValue</code> if no such property exists.
  454. See @{Configuration#getTrimmed} for more details.
  455. @param name the property name.
  456. @param defaultValue the property default value.
  457. @return the value of the <code>name</code> or defaultValue
  458. if it is not set.]]>
  459. </doc>
  460. </method>
  461. <method name="getRaw" return="java.lang.String"
  462. abstract="false" native="false" synchronized="false"
  463. static="false" final="false" visibility="public"
  464. deprecated="not deprecated">
  465. <param name="name" type="java.lang.String"/>
  466. <doc>
  467. <![CDATA[Get the value of the <code>name</code> property, without doing
  468. <a href="#VariableExpansion">variable expansion</a>.If the key is
  469. deprecated, it returns the value of the first key which replaces
  470. the deprecated key and is not null.
  471. @param name the property name.
  472. @return the value of the <code>name</code> property or
  473. its replacing property and null if no such property exists.]]>
  474. </doc>
  475. </method>
  476. <method name="set"
  477. abstract="false" native="false" synchronized="false"
  478. static="false" final="false" visibility="public"
  479. deprecated="not deprecated">
  480. <param name="name" type="java.lang.String"/>
  481. <param name="value" type="java.lang.String"/>
  482. <doc>
  483. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  484. <code>name</code> is deprecated or there is a deprecated name associated to it,
  485. it sets the value to both names. Name will be trimmed before put into
  486. configuration.
  487. @param name property name.
  488. @param value property value.]]>
  489. </doc>
  490. </method>
  491. <method name="set"
  492. abstract="false" native="false" synchronized="false"
  493. static="false" final="false" visibility="public"
  494. deprecated="not deprecated">
  495. <param name="name" type="java.lang.String"/>
  496. <param name="value" type="java.lang.String"/>
  497. <param name="source" type="java.lang.String"/>
  498. <doc>
  499. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  500. <code>name</code> is deprecated, it also sets the <code>value</code> to
  501. the keys that replace the deprecated key. Name will be trimmed before put
  502. into configuration.
  503. @param name property name.
  504. @param value property value.
  505. @param source the place that this configuration value came from
  506. (For debugging).
  507. @throws IllegalArgumentException when the value or name is null.]]>
  508. </doc>
  509. </method>
  510. <method name="unset"
  511. abstract="false" native="false" synchronized="true"
  512. static="false" final="false" visibility="public"
  513. deprecated="not deprecated">
  514. <param name="name" type="java.lang.String"/>
  515. <doc>
  516. <![CDATA[Unset a previously set property.]]>
  517. </doc>
  518. </method>
  519. <method name="setIfUnset"
  520. abstract="false" native="false" synchronized="true"
  521. static="false" final="false" visibility="public"
  522. deprecated="not deprecated">
  523. <param name="name" type="java.lang.String"/>
  524. <param name="value" type="java.lang.String"/>
  525. <doc>
  526. <![CDATA[Sets a property if it is currently unset.
  527. @param name the property name
  528. @param value the new value]]>
  529. </doc>
  530. </method>
  531. <method name="get" return="java.lang.String"
  532. abstract="false" native="false" synchronized="false"
  533. static="false" final="false" visibility="public"
  534. deprecated="not deprecated">
  535. <param name="name" type="java.lang.String"/>
  536. <param name="defaultValue" type="java.lang.String"/>
  537. <doc>
  538. <![CDATA[Get the value of the <code>name</code>. If the key is deprecated,
  539. it returns the value of the first key which replaces the deprecated key
  540. and is not null.
  541. If no such property exists,
  542. then <code>defaultValue</code> is returned.
  543. @param name property name, will be trimmed before get value.
  544. @param defaultValue default value.
  545. @return property value, or <code>defaultValue</code> if the property
  546. doesn't exist.]]>
  547. </doc>
  548. </method>
  549. <method name="getInt" return="int"
  550. abstract="false" native="false" synchronized="false"
  551. static="false" final="false" visibility="public"
  552. deprecated="not deprecated">
  553. <param name="name" type="java.lang.String"/>
  554. <param name="defaultValue" type="int"/>
  555. <doc>
  556. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  557. If no such property exists, the provided default value is returned,
  558. or if the specified value is not a valid <code>int</code>,
  559. then an error is thrown.
  560. @param name property name.
  561. @param defaultValue default value.
  562. @throws NumberFormatException when the value is invalid
  563. @return property value as an <code>int</code>,
  564. or <code>defaultValue</code>.]]>
  565. </doc>
  566. </method>
  567. <method name="getInts" return="int[]"
  568. abstract="false" native="false" synchronized="false"
  569. static="false" final="false" visibility="public"
  570. deprecated="not deprecated">
  571. <param name="name" type="java.lang.String"/>
  572. <doc>
  573. <![CDATA[Get the value of the <code>name</code> property as a set of comma-delimited
  574. <code>int</code> values.
  575. If no such property exists, an empty array is returned.
  576. @param name property name
  577. @return property value interpreted as an array of comma-delimited
  578. <code>int</code> values]]>
  579. </doc>
  580. </method>
  581. <method name="setInt"
  582. abstract="false" native="false" synchronized="false"
  583. static="false" final="false" visibility="public"
  584. deprecated="not deprecated">
  585. <param name="name" type="java.lang.String"/>
  586. <param name="value" type="int"/>
  587. <doc>
  588. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  589. @param name property name.
  590. @param value <code>int</code> value of the property.]]>
  591. </doc>
  592. </method>
  593. <method name="getLong" return="long"
  594. abstract="false" native="false" synchronized="false"
  595. static="false" final="false" visibility="public"
  596. deprecated="not deprecated">
  597. <param name="name" type="java.lang.String"/>
  598. <param name="defaultValue" type="long"/>
  599. <doc>
  600. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  601. If no such property exists, the provided default value is returned,
  602. or if the specified value is not a valid <code>long</code>,
  603. then an error is thrown.
  604. @param name property name.
  605. @param defaultValue default value.
  606. @throws NumberFormatException when the value is invalid
  607. @return property value as a <code>long</code>,
  608. or <code>defaultValue</code>.]]>
  609. </doc>
  610. </method>
  611. <method name="getLongBytes" return="long"
  612. abstract="false" native="false" synchronized="false"
  613. static="false" final="false" visibility="public"
  614. deprecated="not deprecated">
  615. <param name="name" type="java.lang.String"/>
  616. <param name="defaultValue" type="long"/>
  617. <doc>
  618. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code> or
  619. human readable format. If no such property exists, the provided default
  620. value is returned, or if the specified value is not a valid
  621. <code>long</code> or human readable format, then an error is thrown. You
  622. can use the following suffix (case insensitive): k(kilo), m(mega), g(giga),
  623. t(tera), p(peta), e(exa)
  624. @param name property name.
  625. @param defaultValue default value.
  626. @throws NumberFormatException when the value is invalid
  627. @return property value as a <code>long</code>,
  628. or <code>defaultValue</code>.]]>
  629. </doc>
  630. </method>
  631. <method name="setLong"
  632. abstract="false" native="false" synchronized="false"
  633. static="false" final="false" visibility="public"
  634. deprecated="not deprecated">
  635. <param name="name" type="java.lang.String"/>
  636. <param name="value" type="long"/>
  637. <doc>
  638. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  639. @param name property name.
  640. @param value <code>long</code> value of the property.]]>
  641. </doc>
  642. </method>
  643. <method name="getFloat" return="float"
  644. abstract="false" native="false" synchronized="false"
  645. static="false" final="false" visibility="public"
  646. deprecated="not deprecated">
  647. <param name="name" type="java.lang.String"/>
  648. <param name="defaultValue" type="float"/>
  649. <doc>
  650. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  651. If no such property exists, the provided default value is returned,
  652. or if the specified value is not a valid <code>float</code>,
  653. then an error is thrown.
  654. @param name property name.
  655. @param defaultValue default value.
  656. @throws NumberFormatException when the value is invalid
  657. @return property value as a <code>float</code>,
  658. or <code>defaultValue</code>.]]>
  659. </doc>
  660. </method>
  661. <method name="setFloat"
  662. abstract="false" native="false" synchronized="false"
  663. static="false" final="false" visibility="public"
  664. deprecated="not deprecated">
  665. <param name="name" type="java.lang.String"/>
  666. <param name="value" type="float"/>
  667. <doc>
  668. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  669. @param name property name.
  670. @param value property value.]]>
  671. </doc>
  672. </method>
  673. <method name="getDouble" return="double"
  674. abstract="false" native="false" synchronized="false"
  675. static="false" final="false" visibility="public"
  676. deprecated="not deprecated">
  677. <param name="name" type="java.lang.String"/>
  678. <param name="defaultValue" type="double"/>
  679. <doc>
  680. <![CDATA[Get the value of the <code>name</code> property as a <code>double</code>.
  681. If no such property exists, the provided default value is returned,
  682. or if the specified value is not a valid <code>double</code>,
  683. then an error is thrown.
  684. @param name property name.
  685. @param defaultValue default value.
  686. @throws NumberFormatException when the value is invalid
  687. @return property value as a <code>double</code>,
  688. or <code>defaultValue</code>.]]>
  689. </doc>
  690. </method>
  691. <method name="setDouble"
  692. abstract="false" native="false" synchronized="false"
  693. static="false" final="false" visibility="public"
  694. deprecated="not deprecated">
  695. <param name="name" type="java.lang.String"/>
  696. <param name="value" type="double"/>
  697. <doc>
  698. <![CDATA[Set the value of the <code>name</code> property to a <code>double</code>.
  699. @param name property name.
  700. @param value property value.]]>
  701. </doc>
  702. </method>
  703. <method name="getBoolean" return="boolean"
  704. abstract="false" native="false" synchronized="false"
  705. static="false" final="false" visibility="public"
  706. deprecated="not deprecated">
  707. <param name="name" type="java.lang.String"/>
  708. <param name="defaultValue" type="boolean"/>
  709. <doc>
  710. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  711. If no such property is specified, or if the specified value is not a valid
  712. <code>boolean</code>, then <code>defaultValue</code> is returned.
  713. @param name property name.
  714. @param defaultValue default value.
  715. @return property value as a <code>boolean</code>,
  716. or <code>defaultValue</code>.]]>
  717. </doc>
  718. </method>
  719. <method name="setBoolean"
  720. abstract="false" native="false" synchronized="false"
  721. static="false" final="false" visibility="public"
  722. deprecated="not deprecated">
  723. <param name="name" type="java.lang.String"/>
  724. <param name="value" type="boolean"/>
  725. <doc>
  726. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  727. @param name property name.
  728. @param value <code>boolean</code> value of the property.]]>
  729. </doc>
  730. </method>
  731. <method name="setBooleanIfUnset"
  732. abstract="false" native="false" synchronized="false"
  733. static="false" final="false" visibility="public"
  734. deprecated="not deprecated">
  735. <param name="name" type="java.lang.String"/>
  736. <param name="value" type="boolean"/>
  737. <doc>
  738. <![CDATA[Set the given property, if it is currently unset.
  739. @param name property name
  740. @param value new value]]>
  741. </doc>
  742. </method>
  743. <method name="setEnum"
  744. abstract="false" native="false" synchronized="false"
  745. static="false" final="false" visibility="public"
  746. deprecated="not deprecated">
  747. <param name="name" type="java.lang.String"/>
  748. <param name="value" type="T"/>
  749. <doc>
  750. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  751. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  752. @param name property name
  753. @param value new value]]>
  754. </doc>
  755. </method>
  756. <method name="getEnum" return="T"
  757. abstract="false" native="false" synchronized="false"
  758. static="false" final="false" visibility="public"
  759. deprecated="not deprecated">
  760. <param name="name" type="java.lang.String"/>
  761. <param name="defaultValue" type="T"/>
  762. <doc>
  763. <![CDATA[Return value matching this enumerated type.
  764. Note that the returned value is trimmed by this method.
  765. @param name Property name
  766. @param defaultValue Value returned if no mapping exists
  767. @throws IllegalArgumentException If mapping is illegal for the type
  768. provided]]>
  769. </doc>
  770. </method>
  771. <method name="setTimeDuration"
  772. abstract="false" native="false" synchronized="false"
  773. static="false" final="false" visibility="public"
  774. deprecated="not deprecated">
  775. <param name="name" type="java.lang.String"/>
  776. <param name="value" type="long"/>
  777. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  778. <doc>
  779. <![CDATA[Set the value of <code>name</code> to the given time duration. This
  780. is equivalent to <code>set(&lt;name&gt;, value + &lt;time suffix&gt;)</code>.
  781. @param name Property name
  782. @param value Time duration
  783. @param unit Unit of time]]>
  784. </doc>
  785. </method>
  786. <method name="getTimeDuration" return="long"
  787. abstract="false" native="false" synchronized="false"
  788. static="false" final="false" visibility="public"
  789. deprecated="not deprecated">
  790. <param name="name" type="java.lang.String"/>
  791. <param name="defaultValue" type="long"/>
  792. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  793. <doc>
  794. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  795. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  796. (ms), seconds (s), minutes (m), hours (h), and days (d).
  797. @param name Property name
  798. @param defaultValue Value returned if no mapping exists.
  799. @param unit Unit to convert the stored property, if it exists.
  800. @throws NumberFormatException If the property stripped of its unit is not
  801. a number]]>
  802. </doc>
  803. </method>
  804. <method name="getTimeDuration" return="long"
  805. abstract="false" native="false" synchronized="false"
  806. static="false" final="false" visibility="public"
  807. deprecated="not deprecated">
  808. <param name="name" type="java.lang.String"/>
  809. <param name="defaultValue" type="java.lang.String"/>
  810. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  811. </method>
  812. <method name="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="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_KEY" type="java.lang.String"
  5059. transient="false" volatile="false"
  5060. static="true" final="true" visibility="public"
  5061. deprecated="not deprecated">
  5062. <doc>
  5063. <![CDATA[@see
  5064. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5065. core-default.xml</a>]]>
  5066. </doc>
  5067. </field>
  5068. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_DEFAULT" type="java.lang.String"
  5069. transient="false" volatile="false"
  5070. static="true" final="true" visibility="public"
  5071. deprecated="not deprecated">
  5072. </field>
  5073. <field name="HADOOP_SOCKS_SERVER_KEY" type="java.lang.String"
  5074. transient="false" volatile="false"
  5075. static="true" final="true" visibility="public"
  5076. deprecated="not deprecated">
  5077. <doc>
  5078. <![CDATA[@see
  5079. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5080. core-default.xml</a>]]>
  5081. </doc>
  5082. </field>
  5083. <field name="HADOOP_UTIL_HASH_TYPE_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_DEFAULT" type="java.lang.String"
  5094. transient="false" volatile="false"
  5095. static="true" final="true" visibility="public"
  5096. deprecated="not deprecated">
  5097. <doc>
  5098. <![CDATA[Default value for HADOOP_UTIL_HASH_TYPE_KEY]]>
  5099. </doc>
  5100. </field>
  5101. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  5102. transient="false" volatile="false"
  5103. static="true" final="true" visibility="public"
  5104. deprecated="not deprecated">
  5105. <doc>
  5106. <![CDATA[@see
  5107. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5108. core-default.xml</a>]]>
  5109. </doc>
  5110. </field>
  5111. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS" 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_DEFAULT" type="long"
  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_NEGATIVE_CACHE_SECS" type="java.lang.String"
  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_DEFAULT" type="long"
  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_CACHE_WARN_AFTER_MS" type="java.lang.String"
  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_DEFAULT" type="long"
  5162. transient="false" volatile="false"
  5163. static="true" final="true" visibility="public"
  5164. deprecated="not deprecated">
  5165. </field>
  5166. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD" type="java.lang.String"
  5167. transient="false" volatile="false"
  5168. static="true" final="true" visibility="public"
  5169. deprecated="not deprecated">
  5170. <doc>
  5171. <![CDATA[@see
  5172. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5173. core-default.xml</a>]]>
  5174. </doc>
  5175. </field>
  5176. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_DEFAULT" type="boolean"
  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_THREADS" type="java.lang.String"
  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_DEFAULT" type="int"
  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_GROUP_SHELL_COMMAND_TIMEOUT_KEY" type="java.lang.String"
  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_SECS" type="java.lang.String"
  5217. transient="false" volatile="false"
  5218. static="true" final="true" visibility="public"
  5219. deprecated="use
  5220. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY}
  5221. instead.">
  5222. <doc>
  5223. <![CDATA[@deprecated use
  5224. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY}
  5225. instead.]]>
  5226. </doc>
  5227. </field>
  5228. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT" type="long"
  5229. transient="false" volatile="false"
  5230. static="true" final="true" visibility="public"
  5231. deprecated="not deprecated">
  5232. <doc>
  5233. <![CDATA[@see
  5234. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5235. core-default.xml</a>]]>
  5236. </doc>
  5237. </field>
  5238. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS_DEFAULT" type="long"
  5239. transient="false" volatile="false"
  5240. static="true" final="true" visibility="public"
  5241. deprecated="use
  5242. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT}
  5243. instead.">
  5244. <doc>
  5245. <![CDATA[@deprecated use
  5246. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT}
  5247. instead.]]>
  5248. </doc>
  5249. </field>
  5250. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  5251. transient="false" volatile="false"
  5252. static="true" final="true" visibility="public"
  5253. deprecated="not deprecated">
  5254. <doc>
  5255. <![CDATA[@see
  5256. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5257. core-default.xml</a>]]>
  5258. </doc>
  5259. </field>
  5260. <field name="HADOOP_SECURITY_AUTHORIZATION" 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_INSTRUMENTATION_REQUIRES_ADMIN" 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_SERVICE_USER_NAME_KEY" 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_AUTH_TO_LOCAL" 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_MECHANISM" 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_DNS_INTERFACE_KEY" 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_NAMESERVER_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_TOKEN_FILES" 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_HTTP_AUTHENTICATION_TYPE" type="java.lang.String"
  5341. transient="false" volatile="false"
  5342. static="true" final="true" visibility="public"
  5343. deprecated="not deprecated">
  5344. </field>
  5345. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN" type="java.lang.String"
  5346. transient="false" volatile="false"
  5347. static="true" final="true" visibility="public"
  5348. deprecated="not deprecated">
  5349. <doc>
  5350. <![CDATA[@see
  5351. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5352. core-default.xml</a>]]>
  5353. </doc>
  5354. </field>
  5355. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN_DEFAULT" type="int"
  5356. transient="false" volatile="false"
  5357. static="true" final="true" visibility="public"
  5358. deprecated="not deprecated">
  5359. <doc>
  5360. <![CDATA[Default value for HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN]]>
  5361. </doc>
  5362. </field>
  5363. <field name="HADOOP_RPC_PROTECTION" type="java.lang.String"
  5364. transient="false" volatile="false"
  5365. static="true" final="true" visibility="public"
  5366. deprecated="not deprecated">
  5367. <doc>
  5368. <![CDATA[@see
  5369. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5370. core-default.xml</a>]]>
  5371. </doc>
  5372. </field>
  5373. <field name="HADOOP_SECURITY_SASL_PROPS_RESOLVER_CLASS" type="java.lang.String"
  5374. transient="false" volatile="false"
  5375. static="true" final="true" visibility="public"
  5376. deprecated="not deprecated">
  5377. <doc>
  5378. <![CDATA[Class to override Sasl Properties for a connection]]>
  5379. </doc>
  5380. </field>
  5381. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_KEY_PREFIX" type="java.lang.String"
  5382. transient="false" volatile="false"
  5383. static="true" final="true" visibility="public"
  5384. deprecated="not deprecated">
  5385. </field>
  5386. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_KEY" type="java.lang.String"
  5387. transient="false" volatile="false"
  5388. static="true" final="true" visibility="public"
  5389. deprecated="not deprecated">
  5390. </field>
  5391. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_DEFAULT" 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_CIPHER_SUITE_KEY" type="java.lang.String"
  5397. transient="false" volatile="false"
  5398. static="true" final="true" visibility="public"
  5399. deprecated="not deprecated">
  5400. <doc>
  5401. <![CDATA[@see
  5402. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5403. core-default.xml</a>]]>
  5404. </doc>
  5405. </field>
  5406. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_DEFAULT" type="java.lang.String"
  5407. transient="false" volatile="false"
  5408. static="true" final="true" visibility="public"
  5409. deprecated="not deprecated">
  5410. </field>
  5411. <field name="HADOOP_SECURITY_CRYPTO_JCE_PROVIDER_KEY" type="java.lang.String"
  5412. transient="false" volatile="false"
  5413. static="true" final="true" visibility="public"
  5414. deprecated="not deprecated">
  5415. <doc>
  5416. <![CDATA[@see
  5417. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5418. core-default.xml</a>]]>
  5419. </doc>
  5420. </field>
  5421. <field name="HADOOP_SECURITY_CRYPTO_JCEKS_KEY_SERIALFILTER" 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_BUFFER_SIZE_KEY" 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_DEFAULT" type="int"
  5442. transient="false" volatile="false"
  5443. static="true" final="true" visibility="public"
  5444. deprecated="not deprecated">
  5445. <doc>
  5446. <![CDATA[Defalt value for HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY]]>
  5447. </doc>
  5448. </field>
  5449. <field name="HADOOP_SECURITY_IMPERSONATION_PROVIDER_CLASS" type="java.lang.String"
  5450. transient="false" volatile="false"
  5451. static="true" final="true" visibility="public"
  5452. deprecated="not deprecated">
  5453. <doc>
  5454. <![CDATA[Class to override Impersonation provider]]>
  5455. </doc>
  5456. </field>
  5457. <field name="HADOOP_SECURITY_KEY_PROVIDER_PATH" type="java.lang.String"
  5458. transient="false" volatile="false"
  5459. static="true" final="true" visibility="public"
  5460. deprecated="not deprecated">
  5461. <doc>
  5462. <![CDATA[@see
  5463. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5464. core-default.xml</a>]]>
  5465. </doc>
  5466. </field>
  5467. <field name="HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_KEY" 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_DEFAULT" type="int"
  5478. transient="false" volatile="false"
  5479. static="true" final="true" visibility="public"
  5480. deprecated="not deprecated">
  5481. <doc>
  5482. <![CDATA[Defalt value for HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_KEY.]]>
  5483. </doc>
  5484. </field>
  5485. <field name="HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY" type="java.lang.String"
  5486. transient="false" volatile="false"
  5487. static="true" final="true" visibility="public"
  5488. deprecated="not deprecated">
  5489. <doc>
  5490. <![CDATA[@see
  5491. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5492. core-default.xml</a>]]>
  5493. </doc>
  5494. </field>
  5495. <field name="HADOOP_SECURITY_KEY_DEFAULT_CIPHER_DEFAULT" type="java.lang.String"
  5496. transient="false" volatile="false"
  5497. static="true" final="true" visibility="public"
  5498. deprecated="not deprecated">
  5499. <doc>
  5500. <![CDATA[Defalt value for HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY.]]>
  5501. </doc>
  5502. </field>
  5503. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE" type="java.lang.String"
  5504. transient="false" volatile="false"
  5505. static="true" final="true" visibility="public"
  5506. deprecated="not deprecated">
  5507. <doc>
  5508. <![CDATA[@see
  5509. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5510. core-default.xml</a>]]>
  5511. </doc>
  5512. </field>
  5513. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE_DEFAULT" type="int"
  5514. transient="false" volatile="false"
  5515. static="true" final="true" visibility="public"
  5516. deprecated="not deprecated">
  5517. <doc>
  5518. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_SIZE]]>
  5519. </doc>
  5520. </field>
  5521. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK" type="java.lang.String"
  5522. transient="false" volatile="false"
  5523. static="true" final="true" visibility="public"
  5524. deprecated="not deprecated">
  5525. <doc>
  5526. <![CDATA[@see
  5527. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5528. core-default.xml</a>]]>
  5529. </doc>
  5530. </field>
  5531. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK_DEFAULT" type="float"
  5532. transient="false" volatile="false"
  5533. static="true" final="true" visibility="public"
  5534. deprecated="not deprecated">
  5535. <doc>
  5536. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK]]>
  5537. </doc>
  5538. </field>
  5539. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS" type="java.lang.String"
  5540. transient="false" volatile="false"
  5541. static="true" final="true" visibility="public"
  5542. deprecated="not deprecated">
  5543. <doc>
  5544. <![CDATA[@see
  5545. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5546. core-default.xml</a>]]>
  5547. </doc>
  5548. </field>
  5549. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT" type="int"
  5550. transient="false" volatile="false"
  5551. static="true" final="true" visibility="public"
  5552. deprecated="not deprecated">
  5553. <doc>
  5554. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_NUM_REFILL_THREADS]]>
  5555. </doc>
  5556. </field>
  5557. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_MS" type="java.lang.String"
  5558. transient="false" volatile="false"
  5559. static="true" final="true" visibility="public"
  5560. deprecated="not deprecated">
  5561. <doc>
  5562. <![CDATA[@see
  5563. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5564. core-default.xml</a>]]>
  5565. </doc>
  5566. </field>
  5567. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_DEFAULT" type="int"
  5568. transient="false" volatile="false"
  5569. static="true" final="true" visibility="public"
  5570. deprecated="not deprecated">
  5571. <doc>
  5572. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_EXPIRY (12 hrs)]]>
  5573. </doc>
  5574. </field>
  5575. <field name="KMS_CLIENT_TIMEOUT_SECONDS" type="java.lang.String"
  5576. transient="false" volatile="false"
  5577. static="true" final="true" visibility="public"
  5578. deprecated="not deprecated">
  5579. <doc>
  5580. <![CDATA[@see
  5581. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5582. core-default.xml</a>]]>
  5583. </doc>
  5584. </field>
  5585. <field name="KMS_CLIENT_TIMEOUT_DEFAULT" type="int"
  5586. transient="false" volatile="false"
  5587. static="true" final="true" visibility="public"
  5588. deprecated="not deprecated">
  5589. </field>
  5590. <field name="KMS_CLIENT_FAILOVER_MAX_RETRIES_KEY" type="java.lang.String"
  5591. transient="false" volatile="false"
  5592. static="true" final="true" visibility="public"
  5593. deprecated="not deprecated">
  5594. <doc>
  5595. <![CDATA[Default value is the number of providers specified.]]>
  5596. </doc>
  5597. </field>
  5598. <field name="KMS_CLIENT_FAILOVER_SLEEP_BASE_MILLIS_KEY" type="java.lang.String"
  5599. transient="false" volatile="false"
  5600. static="true" final="true" visibility="public"
  5601. deprecated="not deprecated">
  5602. <doc>
  5603. <![CDATA[@see
  5604. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5605. core-default.xml</a>]]>
  5606. </doc>
  5607. </field>
  5608. <field name="KMS_CLIENT_FAILOVER_SLEEP_BASE_MILLIS_DEFAULT" type="int"
  5609. transient="false" volatile="false"
  5610. static="true" final="true" visibility="public"
  5611. deprecated="not deprecated">
  5612. <doc>
  5613. <![CDATA[Default value is 100 ms.]]>
  5614. </doc>
  5615. </field>
  5616. <field name="KMS_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_KEY" type="java.lang.String"
  5617. transient="false" volatile="false"
  5618. static="true" final="true" visibility="public"
  5619. deprecated="not deprecated">
  5620. <doc>
  5621. <![CDATA[@see
  5622. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5623. core-default.xml</a>]]>
  5624. </doc>
  5625. </field>
  5626. <field name="KMS_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_DEFAULT" type="int"
  5627. transient="false" volatile="false"
  5628. static="true" final="true" visibility="public"
  5629. deprecated="not deprecated">
  5630. <doc>
  5631. <![CDATA[Default value is 2 secs.]]>
  5632. </doc>
  5633. </field>
  5634. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY" type="java.lang.String"
  5635. transient="false" volatile="false"
  5636. static="true" final="true" visibility="public"
  5637. deprecated="not deprecated">
  5638. <doc>
  5639. <![CDATA[@see
  5640. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5641. core-default.xml</a>]]>
  5642. </doc>
  5643. </field>
  5644. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_DEFAULT" type="java.lang.String"
  5645. transient="false" volatile="false"
  5646. static="true" final="true" visibility="public"
  5647. deprecated="not deprecated">
  5648. <doc>
  5649. <![CDATA[Defalt value for HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY]]>
  5650. </doc>
  5651. </field>
  5652. <field name="HADOOP_SECURITY_SECURE_RANDOM_IMPL_KEY" type="java.lang.String"
  5653. transient="false" volatile="false"
  5654. static="true" final="true" visibility="public"
  5655. deprecated="not deprecated">
  5656. <doc>
  5657. <![CDATA[@see
  5658. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5659. core-default.xml</a>]]>
  5660. </doc>
  5661. </field>
  5662. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_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_DEFAULT" type="java.lang.String"
  5673. transient="false" volatile="false"
  5674. static="true" final="true" visibility="public"
  5675. deprecated="not deprecated">
  5676. </field>
  5677. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_KEY" type="java.lang.String"
  5678. transient="false" volatile="false"
  5679. static="true" final="true" visibility="public"
  5680. deprecated="not deprecated">
  5681. <doc>
  5682. <![CDATA[@see
  5683. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5684. core-default.xml</a>]]>
  5685. </doc>
  5686. </field>
  5687. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_DEFAULT" type="boolean"
  5688. transient="false" volatile="false"
  5689. static="true" final="true" visibility="public"
  5690. deprecated="not deprecated">
  5691. </field>
  5692. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES" type="java.lang.String"
  5693. transient="false" volatile="false"
  5694. static="true" final="true" visibility="public"
  5695. deprecated="not deprecated">
  5696. <doc>
  5697. <![CDATA[@see
  5698. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5699. core-default.xml</a>]]>
  5700. </doc>
  5701. </field>
  5702. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES_DEFAULT" type="long"
  5703. transient="false" volatile="false"
  5704. static="true" final="true" visibility="public"
  5705. deprecated="not deprecated">
  5706. </field>
  5707. <field name="HADOOP_HTTP_LOGS_ENABLED" type="java.lang.String"
  5708. transient="false" volatile="false"
  5709. static="true" final="true" visibility="public"
  5710. deprecated="not deprecated">
  5711. <doc>
  5712. <![CDATA[@see
  5713. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5714. core-default.xml</a>]]>
  5715. </doc>
  5716. </field>
  5717. <field name="HADOOP_HTTP_LOGS_ENABLED_DEFAULT" type="boolean"
  5718. transient="false" volatile="false"
  5719. static="true" final="true" visibility="public"
  5720. deprecated="not deprecated">
  5721. <doc>
  5722. <![CDATA[Defalt value for HADOOP_HTTP_LOGS_ENABLED]]>
  5723. </doc>
  5724. </field>
  5725. <field name="HADOOP_SECURITY_CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  5726. transient="false" volatile="false"
  5727. static="true" final="true" visibility="public"
  5728. deprecated="not deprecated">
  5729. <doc>
  5730. <![CDATA[@see
  5731. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5732. core-default.xml</a>]]>
  5733. </doc>
  5734. </field>
  5735. <field name="HADOOP_SECURITY_CREDENTIAL_CLEAR_TEXT_FALLBACK" 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_DEFAULT" type="boolean"
  5746. transient="false" volatile="false"
  5747. static="true" final="true" visibility="public"
  5748. deprecated="not deprecated">
  5749. </field>
  5750. <field name="HADOOP_SECURITY_CREDENTIAL_PASSWORD_FILE_KEY" type="java.lang.String"
  5751. transient="false" volatile="false"
  5752. static="true" final="true" visibility="public"
  5753. deprecated="not deprecated">
  5754. <doc>
  5755. <![CDATA[@see
  5756. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5757. core-default.xml</a>]]>
  5758. </doc>
  5759. </field>
  5760. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS" 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_DEFAULT" type="java.lang.String"
  5771. transient="false" volatile="false"
  5772. static="true" final="true" visibility="public"
  5773. deprecated="not deprecated">
  5774. </field>
  5775. <field name="HADOOP_SYSTEM_TAGS" type="java.lang.String"
  5776. transient="false" volatile="false"
  5777. static="true" final="true" visibility="public"
  5778. deprecated="Please use
  5779. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_SYSTEM} instead
  5780. See https://issues.apache.org/jira/browse/HADOOP-15474">
  5781. <doc>
  5782. <![CDATA[@deprecated Please use
  5783. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_SYSTEM} instead
  5784. See https://issues.apache.org/jira/browse/HADOOP-15474]]>
  5785. </doc>
  5786. </field>
  5787. <field name="HADOOP_CUSTOM_TAGS" type="java.lang.String"
  5788. transient="false" volatile="false"
  5789. static="true" final="true" visibility="public"
  5790. deprecated="Please use
  5791. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_CUSTOM} instead
  5792. See https://issues.apache.org/jira/browse/HADOOP-15474">
  5793. <doc>
  5794. <![CDATA[@deprecated Please use
  5795. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_CUSTOM} instead
  5796. See https://issues.apache.org/jira/browse/HADOOP-15474]]>
  5797. </doc>
  5798. </field>
  5799. <field name="HADOOP_TAGS_SYSTEM" type="java.lang.String"
  5800. transient="false" volatile="false"
  5801. static="true" final="true" visibility="public"
  5802. deprecated="not deprecated">
  5803. </field>
  5804. <field name="HADOOP_TAGS_CUSTOM" type="java.lang.String"
  5805. transient="false" volatile="false"
  5806. static="true" final="true" visibility="public"
  5807. deprecated="not deprecated">
  5808. </field>
  5809. <field name="SERVICE_SHUTDOWN_TIMEOUT" type="java.lang.String"
  5810. transient="false" volatile="false"
  5811. static="true" final="true" visibility="public"
  5812. deprecated="not deprecated">
  5813. <doc>
  5814. <![CDATA[Configuration option for the shutdown hook manager shutdown time:
  5815. {@value}.]]>
  5816. </doc>
  5817. </field>
  5818. <field name="SERVICE_SHUTDOWN_TIMEOUT_DEFAULT" type="long"
  5819. transient="false" volatile="false"
  5820. static="true" final="true" visibility="public"
  5821. deprecated="not deprecated">
  5822. <doc>
  5823. <![CDATA[Default shutdown hook timeout: {@value} seconds.]]>
  5824. </doc>
  5825. </field>
  5826. <field name="HADOOP_HTTP_IDLE_TIMEOUT_MS_KEY" type="java.lang.String"
  5827. transient="false" volatile="false"
  5828. static="true" final="true" visibility="public"
  5829. deprecated="not deprecated">
  5830. <doc>
  5831. <![CDATA[@see
  5832. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5833. core-default.xml</a>]]>
  5834. </doc>
  5835. </field>
  5836. <field name="HADOOP_HTTP_IDLE_TIMEOUT_MS_DEFAULT" type="int"
  5837. transient="false" volatile="false"
  5838. static="true" final="true" visibility="public"
  5839. deprecated="not deprecated">
  5840. </field>
  5841. <doc>
  5842. <![CDATA[This class contains constants for configuration keys used
  5843. in the common code.
  5844. It includes all publicly documented configuration keys. In general
  5845. this class should not be used directly (use CommonConfigurationKeys
  5846. instead)]]>
  5847. </doc>
  5848. </class>
  5849. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  5850. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  5851. <class name="ContentSummary" extends="org.apache.hadoop.fs.QuotaUsage"
  5852. abstract="false"
  5853. static="false" final="false" visibility="public"
  5854. deprecated="not deprecated">
  5855. <implements name="org.apache.hadoop.io.Writable"/>
  5856. <constructor name="ContentSummary"
  5857. static="false" final="false" visibility="public"
  5858. deprecated="not deprecated">
  5859. <doc>
  5860. <![CDATA[Constructor deprecated by ContentSummary.Builder]]>
  5861. </doc>
  5862. </constructor>
  5863. <constructor name="ContentSummary" type="long, long, long"
  5864. static="false" final="false" visibility="public"
  5865. deprecated="not deprecated">
  5866. <doc>
  5867. <![CDATA[Constructor, deprecated by ContentSummary.Builder
  5868. This constructor implicitly set spaceConsumed the same as length.
  5869. spaceConsumed and length must be set explicitly with
  5870. ContentSummary.Builder]]>
  5871. </doc>
  5872. </constructor>
  5873. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  5874. static="false" final="false" visibility="public"
  5875. deprecated="not deprecated">
  5876. <doc>
  5877. <![CDATA[Constructor, deprecated by ContentSummary.Builder]]>
  5878. </doc>
  5879. </constructor>
  5880. <method name="getLength" return="long"
  5881. abstract="false" native="false" synchronized="false"
  5882. static="false" final="false" visibility="public"
  5883. deprecated="not deprecated">
  5884. <doc>
  5885. <![CDATA[@return the length]]>
  5886. </doc>
  5887. </method>
  5888. <method name="getSnapshotLength" return="long"
  5889. abstract="false" native="false" synchronized="false"
  5890. static="false" final="false" visibility="public"
  5891. deprecated="not deprecated">
  5892. </method>
  5893. <method name="getDirectoryCount" return="long"
  5894. abstract="false" native="false" synchronized="false"
  5895. static="false" final="false" visibility="public"
  5896. deprecated="not deprecated">
  5897. <doc>
  5898. <![CDATA[@return the directory count]]>
  5899. </doc>
  5900. </method>
  5901. <method name="getSnapshotDirectoryCount" return="long"
  5902. abstract="false" native="false" synchronized="false"
  5903. static="false" final="false" visibility="public"
  5904. deprecated="not deprecated">
  5905. </method>
  5906. <method name="getFileCount" return="long"
  5907. abstract="false" native="false" synchronized="false"
  5908. static="false" final="false" visibility="public"
  5909. deprecated="not deprecated">
  5910. <doc>
  5911. <![CDATA[@return the file count]]>
  5912. </doc>
  5913. </method>
  5914. <method name="getSnapshotFileCount" return="long"
  5915. abstract="false" native="false" synchronized="false"
  5916. static="false" final="false" visibility="public"
  5917. deprecated="not deprecated">
  5918. </method>
  5919. <method name="getSnapshotSpaceConsumed" return="long"
  5920. abstract="false" native="false" synchronized="false"
  5921. static="false" final="false" visibility="public"
  5922. deprecated="not deprecated">
  5923. </method>
  5924. <method name="getErasureCodingPolicy" return="java.lang.String"
  5925. abstract="false" native="false" synchronized="false"
  5926. static="false" final="false" visibility="public"
  5927. deprecated="not deprecated">
  5928. </method>
  5929. <method name="equals" return="boolean"
  5930. abstract="false" native="false" synchronized="false"
  5931. static="false" final="false" visibility="public"
  5932. deprecated="not deprecated">
  5933. <param name="to" type="java.lang.Object"/>
  5934. </method>
  5935. <method name="hashCode" return="int"
  5936. abstract="false" native="false" synchronized="false"
  5937. static="false" final="false" visibility="public"
  5938. deprecated="not deprecated">
  5939. </method>
  5940. <method name="getHeader" return="java.lang.String"
  5941. abstract="false" native="false" synchronized="false"
  5942. static="true" final="false" visibility="public"
  5943. deprecated="not deprecated">
  5944. <param name="qOption" type="boolean"/>
  5945. <doc>
  5946. <![CDATA[Return the header of the output.
  5947. if qOption is false, output directory count, file count, and content size;
  5948. if qOption is true, output quota and remaining quota as well.
  5949. @param qOption a flag indicating if quota needs to be printed or not
  5950. @return the header of the output]]>
  5951. </doc>
  5952. </method>
  5953. <method name="getHeaderFields" return="java.lang.String[]"
  5954. abstract="false" native="false" synchronized="false"
  5955. static="true" final="false" visibility="public"
  5956. deprecated="not deprecated">
  5957. <doc>
  5958. <![CDATA[Returns the names of the fields from the summary header.
  5959. @return names of fields as displayed in the header]]>
  5960. </doc>
  5961. </method>
  5962. <method name="getQuotaHeaderFields" return="java.lang.String[]"
  5963. abstract="false" native="false" synchronized="false"
  5964. static="true" final="false" visibility="public"
  5965. deprecated="not deprecated">
  5966. <doc>
  5967. <![CDATA[Returns the names of the fields used in the quota summary.
  5968. @return names of quota fields as displayed in the header]]>
  5969. </doc>
  5970. </method>
  5971. <method name="toString" return="java.lang.String"
  5972. abstract="false" native="false" synchronized="false"
  5973. static="false" final="false" visibility="public"
  5974. deprecated="not deprecated">
  5975. </method>
  5976. <method name="toString" return="java.lang.String"
  5977. abstract="false" native="false" synchronized="false"
  5978. static="false" final="false" visibility="public"
  5979. deprecated="not deprecated">
  5980. <param name="qOption" type="boolean"/>
  5981. <doc>
  5982. <![CDATA[Return the string representation of the object in the output format.
  5983. if qOption is false, output directory count, file count, and content size;
  5984. if qOption is true, output quota and remaining quota as well.
  5985. @param qOption a flag indicating if quota needs to be printed or not
  5986. @return the string representation of the object]]>
  5987. </doc>
  5988. </method>
  5989. <method name="toString" return="java.lang.String"
  5990. abstract="false" native="false" synchronized="false"
  5991. static="false" final="false" visibility="public"
  5992. deprecated="not deprecated">
  5993. <param name="qOption" type="boolean"/>
  5994. <param name="hOption" type="boolean"/>
  5995. <doc>
  5996. <![CDATA[Return the string representation of the object in the output format.
  5997. For description of the options,
  5998. @see #toString(boolean, boolean, boolean, boolean, List)
  5999. @param qOption a flag indicating if quota needs to be printed or not
  6000. @param hOption a flag indicating if human readable output if to be used
  6001. @return the string representation of the object]]>
  6002. </doc>
  6003. </method>
  6004. <method name="toString" return="java.lang.String"
  6005. abstract="false" native="false" synchronized="false"
  6006. static="false" final="false" visibility="public"
  6007. deprecated="not deprecated">
  6008. <param name="qOption" type="boolean"/>
  6009. <param name="hOption" type="boolean"/>
  6010. <param name="xOption" type="boolean"/>
  6011. <doc>
  6012. <![CDATA[Return the string representation of the object in the output format.
  6013. For description of the options,
  6014. @see #toString(boolean, boolean, boolean, boolean, List)
  6015. @param qOption a flag indicating if quota needs to be printed or not
  6016. @param hOption a flag indicating if human readable output is to be used
  6017. @param xOption a flag indicating if calculation from snapshots is to be
  6018. included in the output
  6019. @return the string representation of the object]]>
  6020. </doc>
  6021. </method>
  6022. <method name="toString" return="java.lang.String"
  6023. abstract="false" native="false" synchronized="false"
  6024. static="false" final="false" visibility="public"
  6025. deprecated="not deprecated">
  6026. <param name="qOption" type="boolean"/>
  6027. <param name="hOption" type="boolean"/>
  6028. <param name="tOption" type="boolean"/>
  6029. <param name="types" type="java.util.List"/>
  6030. <doc>
  6031. <![CDATA[Return the string representation of the object in the output format.
  6032. For description of the options,
  6033. @see #toString(boolean, boolean, boolean, boolean, List)
  6034. @param qOption a flag indicating if quota needs to be printed or not
  6035. @param hOption a flag indicating if human readable output if to be used
  6036. @param tOption a flag indicating if display quota by storage types
  6037. @param types Storage types to display
  6038. @return the string representation of the object]]>
  6039. </doc>
  6040. </method>
  6041. <method name="toString" return="java.lang.String"
  6042. abstract="false" native="false" synchronized="false"
  6043. static="false" final="false" visibility="public"
  6044. deprecated="not deprecated">
  6045. <param name="qOption" type="boolean"/>
  6046. <param name="hOption" type="boolean"/>
  6047. <param name="tOption" type="boolean"/>
  6048. <param name="xOption" type="boolean"/>
  6049. <param name="types" type="java.util.List"/>
  6050. <doc>
  6051. <![CDATA[Return the string representation of the object in the output format.
  6052. if qOption is false, output directory count, file count, and content size;
  6053. if qOption is true, output quota and remaining quota as well.
  6054. if hOption is false, file sizes are returned in bytes
  6055. if hOption is true, file sizes are returned in human readable
  6056. if tOption is true, display the quota by storage types
  6057. if tOption is false, same logic with #toString(boolean,boolean)
  6058. if xOption is false, output includes the calculation from snapshots
  6059. if xOption is true, output excludes the calculation from snapshots
  6060. @param qOption a flag indicating if quota needs to be printed or not
  6061. @param hOption a flag indicating if human readable output is to be used
  6062. @param tOption a flag indicating if display quota by storage types
  6063. @param xOption a flag indicating if calculation from snapshots is to be
  6064. included in the output
  6065. @param types Storage types to display
  6066. @return the string representation of the object]]>
  6067. </doc>
  6068. </method>
  6069. <doc>
  6070. <![CDATA[Store the summary of a content (a directory or a file).]]>
  6071. </doc>
  6072. </class>
  6073. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  6074. <!-- start class org.apache.hadoop.fs.CreateFlag -->
  6075. <class name="CreateFlag" extends="java.lang.Enum"
  6076. abstract="false"
  6077. static="false" final="true" visibility="public"
  6078. deprecated="not deprecated">
  6079. <method name="values" return="org.apache.hadoop.fs.CreateFlag[]"
  6080. abstract="false" native="false" synchronized="false"
  6081. static="true" final="false" visibility="public"
  6082. deprecated="not deprecated">
  6083. </method>
  6084. <method name="valueOf" return="org.apache.hadoop.fs.CreateFlag"
  6085. abstract="false" native="false" synchronized="false"
  6086. static="true" final="false" visibility="public"
  6087. deprecated="not deprecated">
  6088. <param name="name" type="java.lang.String"/>
  6089. </method>
  6090. <method name="validate"
  6091. abstract="false" native="false" synchronized="false"
  6092. static="true" final="false" visibility="public"
  6093. deprecated="not deprecated">
  6094. <param name="flag" type="java.util.EnumSet"/>
  6095. <doc>
  6096. <![CDATA[Validate the CreateFlag and throw exception if it is invalid
  6097. @param flag set of CreateFlag
  6098. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  6099. </doc>
  6100. </method>
  6101. <method name="validate"
  6102. abstract="false" native="false" synchronized="false"
  6103. static="true" final="false" visibility="public"
  6104. deprecated="not deprecated">
  6105. <param name="path" type="java.lang.Object"/>
  6106. <param name="pathExists" type="boolean"/>
  6107. <param name="flag" type="java.util.EnumSet"/>
  6108. <exception name="IOException" type="java.io.IOException"/>
  6109. <doc>
  6110. <![CDATA[Validate the CreateFlag for create operation
  6111. @param path Object representing the path; usually String or {@link Path}
  6112. @param pathExists pass true if the path exists in the file system
  6113. @param flag set of CreateFlag
  6114. @throws IOException on error
  6115. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  6116. </doc>
  6117. </method>
  6118. <method name="validateForAppend"
  6119. abstract="false" native="false" synchronized="false"
  6120. static="true" final="false" visibility="public"
  6121. deprecated="not deprecated">
  6122. <param name="flag" type="java.util.EnumSet"/>
  6123. <doc>
  6124. <![CDATA[Validate the CreateFlag for the append operation. The flag must contain
  6125. APPEND, and cannot contain OVERWRITE.]]>
  6126. </doc>
  6127. </method>
  6128. <doc>
  6129. <![CDATA[CreateFlag specifies the file create semantic. Users can combine flags like: <br>
  6130. <code>
  6131. EnumSet.of(CreateFlag.CREATE, CreateFlag.APPEND)
  6132. <code>
  6133. <p>
  6134. Use the CreateFlag as follows:
  6135. <ol>
  6136. <li> CREATE - to create a file if it does not exist,
  6137. else throw FileAlreadyExists.</li>
  6138. <li> APPEND - to append to a file if it exists,
  6139. else throw FileNotFoundException.</li>
  6140. <li> OVERWRITE - to truncate a file if it exists,
  6141. else throw FileNotFoundException.</li>
  6142. <li> CREATE|APPEND - to create a file if it does not exist,
  6143. else append to an existing file.</li>
  6144. <li> CREATE|OVERWRITE - to create a file if it does not exist,
  6145. else overwrite an existing file.</li>
  6146. <li> SYNC_BLOCK - to force closed blocks to the disk device.
  6147. In addition {@link Syncable#hsync()} should be called after each write,
  6148. if true synchronous behavior is required.</li>
  6149. <li> LAZY_PERSIST - Create the block on transient storage (RAM) if
  6150. available.</li>
  6151. <li> APPEND_NEWBLOCK - Append data to a new block instead of end of the last
  6152. partial block.</li>
  6153. </ol>
  6154. Following combinations are not valid and will result in
  6155. {@link HadoopIllegalArgumentException}:
  6156. <ol>
  6157. <li> APPEND|OVERWRITE</li>
  6158. <li> CREATE|APPEND|OVERWRITE</li>
  6159. </ol>]]>
  6160. </doc>
  6161. </class>
  6162. <!-- end class org.apache.hadoop.fs.CreateFlag -->
  6163. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  6164. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  6165. abstract="false"
  6166. static="false" final="false" visibility="public"
  6167. deprecated="not deprecated">
  6168. <constructor name="FileAlreadyExistsException"
  6169. static="false" final="false" visibility="public"
  6170. deprecated="not deprecated">
  6171. </constructor>
  6172. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  6173. static="false" final="false" visibility="public"
  6174. deprecated="not deprecated">
  6175. </constructor>
  6176. <doc>
  6177. <![CDATA[Used when target file already exists for any operation and
  6178. is not configured to be overwritten.]]>
  6179. </doc>
  6180. </class>
  6181. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  6182. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  6183. <class name="FileChecksum" extends="java.lang.Object"
  6184. abstract="true"
  6185. static="false" final="false" visibility="public"
  6186. deprecated="not deprecated">
  6187. <implements name="org.apache.hadoop.io.Writable"/>
  6188. <constructor name="FileChecksum"
  6189. static="false" final="false" visibility="public"
  6190. deprecated="not deprecated">
  6191. </constructor>
  6192. <method name="getAlgorithmName" return="java.lang.String"
  6193. abstract="true" native="false" synchronized="false"
  6194. static="false" final="false" visibility="public"
  6195. deprecated="not deprecated">
  6196. <doc>
  6197. <![CDATA[The checksum algorithm name]]>
  6198. </doc>
  6199. </method>
  6200. <method name="getLength" return="int"
  6201. abstract="true" native="false" synchronized="false"
  6202. static="false" final="false" visibility="public"
  6203. deprecated="not deprecated">
  6204. <doc>
  6205. <![CDATA[The length of the checksum in bytes]]>
  6206. </doc>
  6207. </method>
  6208. <method name="getBytes" return="byte[]"
  6209. abstract="true" native="false" synchronized="false"
  6210. static="false" final="false" visibility="public"
  6211. deprecated="not deprecated">
  6212. <doc>
  6213. <![CDATA[The value of the checksum in bytes]]>
  6214. </doc>
  6215. </method>
  6216. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  6217. abstract="false" native="false" synchronized="false"
  6218. static="false" final="false" visibility="public"
  6219. deprecated="not deprecated">
  6220. </method>
  6221. <method name="equals" return="boolean"
  6222. abstract="false" native="false" synchronized="false"
  6223. static="false" final="false" visibility="public"
  6224. deprecated="not deprecated">
  6225. <param name="other" type="java.lang.Object"/>
  6226. <doc>
  6227. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  6228. </doc>
  6229. </method>
  6230. <method name="hashCode" return="int"
  6231. abstract="false" native="false" synchronized="false"
  6232. static="false" final="false" visibility="public"
  6233. deprecated="not deprecated">
  6234. </method>
  6235. <doc>
  6236. <![CDATA[An abstract class representing file checksums for files.]]>
  6237. </doc>
  6238. </class>
  6239. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  6240. <!-- start class org.apache.hadoop.fs.FileContext -->
  6241. <class name="FileContext" extends="java.lang.Object"
  6242. abstract="false"
  6243. static="false" final="false" visibility="public"
  6244. deprecated="not deprecated">
  6245. <implements name="org.apache.hadoop.fs.PathCapabilities"/>
  6246. <method name="getFSofPath" return="org.apache.hadoop.fs.AbstractFileSystem"
  6247. abstract="false" native="false" synchronized="false"
  6248. static="false" final="false" visibility="protected"
  6249. deprecated="not deprecated">
  6250. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  6251. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6252. <exception name="IOException" type="java.io.IOException"/>
  6253. <doc>
  6254. <![CDATA[Get the file system of supplied path.
  6255. @param absOrFqPath - absolute or fully qualified path
  6256. @return the file system of the path
  6257. @throws UnsupportedFileSystemException If the file system for
  6258. <code>absOrFqPath</code> is not supported.
  6259. @throws IOException If the file system for <code>absOrFqPath</code> could
  6260. not be instantiated.]]>
  6261. </doc>
  6262. </method>
  6263. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6264. abstract="false" native="false" synchronized="false"
  6265. static="true" final="false" visibility="public"
  6266. deprecated="not deprecated">
  6267. <param name="defFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6268. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6269. <doc>
  6270. <![CDATA[Create a FileContext with specified FS as default using the specified
  6271. config.
  6272. @param defFS
  6273. @param aConf
  6274. @return new FileContext with specified FS as default.]]>
  6275. </doc>
  6276. </method>
  6277. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6278. abstract="false" native="false" synchronized="false"
  6279. static="true" final="false" visibility="protected"
  6280. deprecated="not deprecated">
  6281. <param name="defaultFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6282. <doc>
  6283. <![CDATA[Create a FileContext for specified file system using the default config.
  6284. @param defaultFS
  6285. @return a FileContext with the specified AbstractFileSystem
  6286. as the default FS.]]>
  6287. </doc>
  6288. </method>
  6289. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6290. abstract="false" native="false" synchronized="false"
  6291. static="true" final="false" visibility="public"
  6292. deprecated="not deprecated">
  6293. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6294. <doc>
  6295. <![CDATA[Create a FileContext using the default config read from the
  6296. $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
  6297. from core-defaults.xml in the release jar.
  6298. @throws UnsupportedFileSystemException If the file system from the default
  6299. configuration is not supported]]>
  6300. </doc>
  6301. </method>
  6302. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6303. abstract="false" native="false" synchronized="false"
  6304. static="true" final="false" visibility="public"
  6305. deprecated="not deprecated">
  6306. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6307. <doc>
  6308. <![CDATA[@return a FileContext for the local file system using the default config.
  6309. @throws UnsupportedFileSystemException If the file system for
  6310. {@link FsConstants#LOCAL_FS_URI} is not supported.]]>
  6311. </doc>
  6312. </method>
  6313. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6314. abstract="false" native="false" synchronized="false"
  6315. static="true" final="false" visibility="public"
  6316. deprecated="not deprecated">
  6317. <param name="defaultFsUri" type="java.net.URI"/>
  6318. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6319. <doc>
  6320. <![CDATA[Create a FileContext for specified URI using the default config.
  6321. @param defaultFsUri
  6322. @return a FileContext with the specified URI as the default FS.
  6323. @throws UnsupportedFileSystemException If the file system for
  6324. <code>defaultFsUri</code> is not supported]]>
  6325. </doc>
  6326. </method>
  6327. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6328. abstract="false" native="false" synchronized="false"
  6329. static="true" final="false" visibility="public"
  6330. deprecated="not deprecated">
  6331. <param name="defaultFsUri" type="java.net.URI"/>
  6332. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6333. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6334. <doc>
  6335. <![CDATA[Create a FileContext for specified default URI using the specified config.
  6336. @param defaultFsUri
  6337. @param aConf
  6338. @return new FileContext for specified uri
  6339. @throws UnsupportedFileSystemException If the file system with specified is
  6340. not supported
  6341. @throws RuntimeException If the file system specified is supported but
  6342. could not be instantiated, or if login fails.]]>
  6343. </doc>
  6344. </method>
  6345. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6346. abstract="false" native="false" synchronized="false"
  6347. static="true" final="false" visibility="public"
  6348. deprecated="not deprecated">
  6349. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6350. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6351. <doc>
  6352. <![CDATA[Create a FileContext using the passed config. Generally it is better to use
  6353. {@link #getFileContext(URI, Configuration)} instead of this one.
  6354. @param aConf
  6355. @return new FileContext
  6356. @throws UnsupportedFileSystemException If file system in the config
  6357. is not supported]]>
  6358. </doc>
  6359. </method>
  6360. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6361. abstract="false" native="false" synchronized="false"
  6362. static="true" final="false" visibility="public"
  6363. deprecated="not deprecated">
  6364. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6365. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6366. <doc>
  6367. <![CDATA[@param aConf - from which the FileContext is configured
  6368. @return a FileContext for the local file system using the specified config.
  6369. @throws UnsupportedFileSystemException If default file system in the config
  6370. is not supported]]>
  6371. </doc>
  6372. </method>
  6373. <method name="setWorkingDirectory"
  6374. abstract="false" native="false" synchronized="false"
  6375. static="false" final="false" visibility="public"
  6376. deprecated="not deprecated">
  6377. <param name="newWDir" type="org.apache.hadoop.fs.Path"/>
  6378. <exception name="IOException" type="java.io.IOException"/>
  6379. <doc>
  6380. <![CDATA[Set the working directory for wd-relative names (such a "foo/bar"). Working
  6381. directory feature is provided by simply prefixing relative names with the
  6382. working dir. Note this is different from Unix where the wd is actually set
  6383. to the inode. Hence setWorkingDir does not follow symlinks etc. This works
  6384. better in a distributed environment that has multiple independent roots.
  6385. {@link #getWorkingDirectory()} should return what setWorkingDir() set.
  6386. @param newWDir new working directory
  6387. @throws IOException
  6388. <br>
  6389. NewWdir can be one of:
  6390. <ul>
  6391. <li>relative path: "foo/bar";</li>
  6392. <li>absolute without scheme: "/foo/bar"</li>
  6393. <li>fully qualified with scheme: "xx://auth/foo/bar"</li>
  6394. </ul>
  6395. <br>
  6396. Illegal WDs:
  6397. <ul>
  6398. <li>relative with scheme: "xx:foo/bar"</li>
  6399. <li>non existent directory</li>
  6400. </ul>]]>
  6401. </doc>
  6402. </method>
  6403. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6404. abstract="false" native="false" synchronized="false"
  6405. static="false" final="false" visibility="public"
  6406. deprecated="not deprecated">
  6407. <doc>
  6408. <![CDATA[Gets the working directory for wd-relative names (such a "foo/bar").]]>
  6409. </doc>
  6410. </method>
  6411. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  6412. abstract="false" native="false" synchronized="false"
  6413. static="false" final="false" visibility="public"
  6414. deprecated="not deprecated">
  6415. <doc>
  6416. <![CDATA[Gets the ugi in the file-context
  6417. @return UserGroupInformation]]>
  6418. </doc>
  6419. </method>
  6420. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6421. abstract="false" native="false" synchronized="false"
  6422. static="false" final="false" visibility="public"
  6423. deprecated="not deprecated">
  6424. <doc>
  6425. <![CDATA[Return the current user's home directory in this file system.
  6426. The default implementation returns "/user/$USER/".
  6427. @return the home directory]]>
  6428. </doc>
  6429. </method>
  6430. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  6431. abstract="false" native="false" synchronized="false"
  6432. static="false" final="false" visibility="public"
  6433. deprecated="not deprecated">
  6434. <doc>
  6435. <![CDATA[@return the umask of this FileContext]]>
  6436. </doc>
  6437. </method>
  6438. <method name="setUMask"
  6439. abstract="false" native="false" synchronized="false"
  6440. static="false" final="false" visibility="public"
  6441. deprecated="not deprecated">
  6442. <param name="newUmask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6443. <doc>
  6444. <![CDATA[Set umask to the supplied parameter.
  6445. @param newUmask the new umask]]>
  6446. </doc>
  6447. </method>
  6448. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  6449. abstract="false" native="false" synchronized="false"
  6450. static="false" final="false" visibility="public"
  6451. deprecated="not deprecated">
  6452. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6453. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6454. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  6455. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6456. <exception name="IOException" type="java.io.IOException"/>
  6457. <doc>
  6458. <![CDATA[Resolve the path following any symlinks or mount points
  6459. @param f to be resolved
  6460. @return fully qualified resolved path
  6461. @throws FileNotFoundException If <code>f</code> does not exist
  6462. @throws AccessControlException if access denied
  6463. @throws IOException If an IO Error occurred
  6464. Exceptions applicable to file systems accessed over RPC:
  6465. @throws RpcClientException If an exception occurred in the RPC client
  6466. @throws RpcServerException If an exception occurred in the RPC server
  6467. @throws UnexpectedServerException If server implementation throws
  6468. undeclared exception to RPC server
  6469. RuntimeExceptions:
  6470. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6471. </doc>
  6472. </method>
  6473. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6474. abstract="false" native="false" synchronized="false"
  6475. static="false" final="false" visibility="public"
  6476. deprecated="not deprecated">
  6477. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6478. <doc>
  6479. <![CDATA[Make the path fully qualified if it is isn't.
  6480. A Fully-qualified path has scheme and authority specified and an absolute
  6481. path.
  6482. Use the default file system and working dir in this FileContext to qualify.
  6483. @param path
  6484. @return qualified path]]>
  6485. </doc>
  6486. </method>
  6487. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6488. abstract="false" native="false" synchronized="false"
  6489. static="false" final="false" visibility="public"
  6490. deprecated="not deprecated">
  6491. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6492. <param name="createFlag" type="java.util.EnumSet"/>
  6493. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  6494. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6495. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6496. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6497. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6498. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6499. <exception name="IOException" type="java.io.IOException"/>
  6500. <doc>
  6501. <![CDATA[Create or overwrite file on indicated path and returns an output stream for
  6502. writing into the file.
  6503. @param f the file name to open
  6504. @param createFlag gives the semantics of create; see {@link CreateFlag}
  6505. @param opts file creation options; see {@link Options.CreateOpts}.
  6506. <ul>
  6507. <li>Progress - to report progress on the operation - default null
  6508. <li>Permission - umask is applied against permission: default is
  6509. FsPermissions:getDefault()
  6510. <li>CreateParent - create missing parent path; default is to not
  6511. to create parents
  6512. <li>The defaults for the following are SS defaults of the file
  6513. server implementing the target path. Not all parameters make sense
  6514. for all kinds of file system - eg. localFS ignores Blocksize,
  6515. replication, checksum
  6516. <ul>
  6517. <li>BufferSize - buffersize used in FSDataOutputStream
  6518. <li>Blocksize - block size for file blocks
  6519. <li>ReplicationFactor - replication for blocks
  6520. <li>ChecksumParam - Checksum parameters. server default is used
  6521. if not specified.
  6522. </ul>
  6523. </ul>
  6524. @return {@link FSDataOutputStream} for created file
  6525. @throws AccessControlException If access is denied
  6526. @throws FileAlreadyExistsException If file <code>f</code> already exists
  6527. @throws FileNotFoundException If parent of <code>f</code> does not exist
  6528. and <code>createParent</code> is false
  6529. @throws ParentNotDirectoryException If parent of <code>f</code> is not a
  6530. directory.
  6531. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6532. not supported
  6533. @throws IOException If an I/O error occurred
  6534. Exceptions applicable to file systems accessed over RPC:
  6535. @throws RpcClientException If an exception occurred in the RPC client
  6536. @throws RpcServerException If an exception occurred in the RPC server
  6537. @throws UnexpectedServerException If server implementation throws
  6538. undeclared exception to RPC server
  6539. RuntimeExceptions:
  6540. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6541. </doc>
  6542. </method>
  6543. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  6544. abstract="false" native="false" synchronized="false"
  6545. static="false" final="false" visibility="public"
  6546. deprecated="not deprecated">
  6547. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6548. <exception name="IOException" type="java.io.IOException"/>
  6549. <doc>
  6550. <![CDATA[Create a {@link FSDataOutputStreamBuilder} for creating or overwriting
  6551. a file on indicated path.
  6552. @param f the file path to create builder for.
  6553. @return {@link FSDataOutputStreamBuilder} to build a
  6554. {@link FSDataOutputStream}.
  6555. Upon {@link FSDataOutputStreamBuilder#build()} being invoked,
  6556. builder parameters will be verified by {@link FileContext} and
  6557. {@link AbstractFileSystem#create}. And filesystem states will be modified.
  6558. Client should expect {@link FSDataOutputStreamBuilder#build()} throw the
  6559. same exceptions as create(Path, EnumSet, CreateOpts...).]]>
  6560. </doc>
  6561. </method>
  6562. <method name="mkdir"
  6563. abstract="false" native="false" synchronized="false"
  6564. static="false" final="false" visibility="public"
  6565. deprecated="not deprecated">
  6566. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6567. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6568. <param name="createParent" type="boolean"/>
  6569. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6570. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6571. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6572. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6573. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6574. <exception name="IOException" type="java.io.IOException"/>
  6575. <doc>
  6576. <![CDATA[Make(create) a directory and all the non-existent parents.
  6577. @param dir - the dir to make
  6578. @param permission - permissions is set permission&~umask
  6579. @param createParent - if true then missing parent dirs are created if false
  6580. then parent must exist
  6581. @throws AccessControlException If access is denied
  6582. @throws FileAlreadyExistsException If directory <code>dir</code> already
  6583. exists
  6584. @throws FileNotFoundException If parent of <code>dir</code> does not exist
  6585. and <code>createParent</code> is false
  6586. @throws ParentNotDirectoryException If parent of <code>dir</code> is not a
  6587. directory
  6588. @throws UnsupportedFileSystemException If file system for <code>dir</code>
  6589. is not supported
  6590. @throws IOException If an I/O error occurred
  6591. Exceptions applicable to file systems accessed over RPC:
  6592. @throws RpcClientException If an exception occurred in the RPC client
  6593. @throws UnexpectedServerException If server implementation throws
  6594. undeclared exception to RPC server
  6595. RuntimeExceptions:
  6596. @throws InvalidPathException If path <code>dir</code> is not valid]]>
  6597. </doc>
  6598. </method>
  6599. <method name="delete" return="boolean"
  6600. abstract="false" native="false" synchronized="false"
  6601. static="false" final="false" visibility="public"
  6602. deprecated="not deprecated">
  6603. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6604. <param name="recursive" type="boolean"/>
  6605. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6606. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6607. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6608. <exception name="IOException" type="java.io.IOException"/>
  6609. <doc>
  6610. <![CDATA[Delete a file.
  6611. @param f the path to delete.
  6612. @param recursive if path is a directory and set to
  6613. true, the directory is deleted else throws an exception. In
  6614. case of a file the recursive can be set to either true or false.
  6615. @throws AccessControlException If access is denied
  6616. @throws FileNotFoundException If <code>f</code> does not exist
  6617. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6618. not supported
  6619. @throws IOException If an I/O error occurred
  6620. Exceptions applicable to file systems accessed over RPC:
  6621. @throws RpcClientException If an exception occurred in the RPC client
  6622. @throws RpcServerException If an exception occurred in the RPC server
  6623. @throws UnexpectedServerException If server implementation throws
  6624. undeclared exception to RPC server
  6625. RuntimeExceptions:
  6626. @throws InvalidPathException If path <code>f</code> is invalid]]>
  6627. </doc>
  6628. </method>
  6629. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6630. abstract="false" native="false" synchronized="false"
  6631. static="false" final="false" visibility="public"
  6632. deprecated="not deprecated">
  6633. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6634. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6635. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6636. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6637. <exception name="IOException" type="java.io.IOException"/>
  6638. <doc>
  6639. <![CDATA[Opens an FSDataInputStream at the indicated Path using
  6640. default buffersize.
  6641. @param f the file name to open
  6642. @throws AccessControlException If access is denied
  6643. @throws FileNotFoundException If file <code>f</code> does not exist
  6644. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6645. is not supported
  6646. @throws IOException If an I/O error occurred
  6647. Exceptions applicable to file systems accessed over RPC:
  6648. @throws RpcClientException If an exception occurred in the RPC client
  6649. @throws RpcServerException If an exception occurred in the RPC server
  6650. @throws UnexpectedServerException If server implementation throws
  6651. undeclared exception to RPC server]]>
  6652. </doc>
  6653. </method>
  6654. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6655. abstract="false" native="false" synchronized="false"
  6656. static="false" final="false" visibility="public"
  6657. deprecated="not deprecated">
  6658. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6659. <param name="bufferSize" type="int"/>
  6660. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6661. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6662. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6663. <exception name="IOException" type="java.io.IOException"/>
  6664. <doc>
  6665. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  6666. @param f the file name to open
  6667. @param bufferSize the size of the buffer to be used.
  6668. @throws AccessControlException If access is denied
  6669. @throws FileNotFoundException If file <code>f</code> does not exist
  6670. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6671. not supported
  6672. @throws IOException If an I/O error occurred
  6673. Exceptions applicable to file systems accessed over RPC:
  6674. @throws RpcClientException If an exception occurred in the RPC client
  6675. @throws RpcServerException If an exception occurred in the RPC server
  6676. @throws UnexpectedServerException If server implementation throws
  6677. undeclared exception to RPC server]]>
  6678. </doc>
  6679. </method>
  6680. <method name="truncate" return="boolean"
  6681. abstract="false" native="false" synchronized="false"
  6682. static="false" final="false" visibility="public"
  6683. deprecated="not deprecated">
  6684. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6685. <param name="newLength" type="long"/>
  6686. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6687. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6688. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6689. <exception name="IOException" type="java.io.IOException"/>
  6690. <doc>
  6691. <![CDATA[Truncate the file in the indicated path to the indicated size.
  6692. <ul>
  6693. <li>Fails if path is a directory.
  6694. <li>Fails if path does not exist.
  6695. <li>Fails if path is not closed.
  6696. <li>Fails if new size is greater than current size.
  6697. </ul>
  6698. @param f The path to the file to be truncated
  6699. @param newLength The size the file is to be truncated to
  6700. @return <code>true</code> if the file has been truncated to the desired
  6701. <code>newLength</code> and is immediately available to be reused for
  6702. write operations such as <code>append</code>, or
  6703. <code>false</code> if a background process of adjusting the length of
  6704. the last block has been started, and clients should wait for it to
  6705. complete before proceeding with further file updates.
  6706. @throws AccessControlException If access is denied
  6707. @throws FileNotFoundException If file <code>f</code> does not exist
  6708. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6709. not supported
  6710. @throws IOException If an I/O error occurred
  6711. Exceptions applicable to file systems accessed over RPC:
  6712. @throws RpcClientException If an exception occurred in the RPC client
  6713. @throws RpcServerException If an exception occurred in the RPC server
  6714. @throws UnexpectedServerException If server implementation throws
  6715. undeclared exception to RPC server]]>
  6716. </doc>
  6717. </method>
  6718. <method name="setReplication" return="boolean"
  6719. abstract="false" native="false" synchronized="false"
  6720. static="false" final="false" visibility="public"
  6721. deprecated="not deprecated">
  6722. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6723. <param name="replication" type="short"/>
  6724. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6725. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6726. <exception name="IOException" type="java.io.IOException"/>
  6727. <doc>
  6728. <![CDATA[Set replication for an existing file.
  6729. @param f file name
  6730. @param replication new replication
  6731. @return true if successful
  6732. @throws AccessControlException If access is denied
  6733. @throws FileNotFoundException If file <code>f</code> does not exist
  6734. @throws IOException If an I/O error occurred
  6735. Exceptions applicable to file systems accessed over RPC:
  6736. @throws RpcClientException If an exception occurred in the RPC client
  6737. @throws RpcServerException If an exception occurred in the RPC server
  6738. @throws UnexpectedServerException If server implementation throws
  6739. undeclared exception to RPC server]]>
  6740. </doc>
  6741. </method>
  6742. <method name="rename"
  6743. abstract="false" native="false" synchronized="false"
  6744. static="false" final="false" visibility="public"
  6745. deprecated="not deprecated">
  6746. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6747. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6748. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  6749. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6750. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6751. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6752. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6753. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6754. <exception name="IOException" type="java.io.IOException"/>
  6755. <doc>
  6756. <![CDATA[Renames Path src to Path dst
  6757. <ul>
  6758. <li
  6759. <li>Fails if src is a file and dst is a directory.
  6760. <li>Fails if src is a directory and dst is a file.
  6761. <li>Fails if the parent of dst does not exist or is a file.
  6762. </ul>
  6763. <p>
  6764. If OVERWRITE option is not passed as an argument, rename fails if the dst
  6765. already exists.
  6766. <p>
  6767. If OVERWRITE option is passed as an argument, rename overwrites the dst if
  6768. it is a file or an empty directory. Rename fails if dst is a non-empty
  6769. directory.
  6770. <p>
  6771. Note that atomicity of rename is dependent on the file system
  6772. implementation. Please refer to the file system documentation for details
  6773. <p>
  6774. @param src path to be renamed
  6775. @param dst new path after rename
  6776. @throws AccessControlException If access is denied
  6777. @throws FileAlreadyExistsException If <code>dst</code> already exists and
  6778. <code>options</options> has {@link Options.Rename#OVERWRITE}
  6779. option false.
  6780. @throws FileNotFoundException If <code>src</code> does not exist
  6781. @throws ParentNotDirectoryException If parent of <code>dst</code> is not a
  6782. directory
  6783. @throws UnsupportedFileSystemException If file system for <code>src</code>
  6784. and <code>dst</code> is not supported
  6785. @throws IOException If an I/O error occurred
  6786. Exceptions applicable to file systems accessed over RPC:
  6787. @throws RpcClientException If an exception occurred in the RPC client
  6788. @throws RpcServerException If an exception occurred in the RPC server
  6789. @throws UnexpectedServerException If server implementation throws
  6790. undeclared exception to RPC server]]>
  6791. </doc>
  6792. </method>
  6793. <method name="setPermission"
  6794. abstract="false" native="false" synchronized="false"
  6795. static="false" final="false" visibility="public"
  6796. deprecated="not deprecated">
  6797. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6798. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6799. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6800. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6801. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6802. <exception name="IOException" type="java.io.IOException"/>
  6803. <doc>
  6804. <![CDATA[Set permission of a path.
  6805. @param f
  6806. @param permission - the new absolute permission (umask is not applied)
  6807. @throws AccessControlException If access is denied
  6808. @throws FileNotFoundException If <code>f</code> does not exist
  6809. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6810. is not supported
  6811. @throws IOException If an I/O error occurred
  6812. Exceptions applicable to file systems accessed over RPC:
  6813. @throws RpcClientException If an exception occurred in the RPC client
  6814. @throws RpcServerException If an exception occurred in the RPC server
  6815. @throws UnexpectedServerException If server implementation throws
  6816. undeclared exception to RPC server]]>
  6817. </doc>
  6818. </method>
  6819. <method name="setOwner"
  6820. abstract="false" native="false" synchronized="false"
  6821. static="false" final="false" visibility="public"
  6822. deprecated="not deprecated">
  6823. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6824. <param name="username" type="java.lang.String"/>
  6825. <param name="groupname" type="java.lang.String"/>
  6826. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6827. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6828. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6829. <exception name="IOException" type="java.io.IOException"/>
  6830. <doc>
  6831. <![CDATA[Set owner of a path (i.e. a file or a directory). The parameters username
  6832. and groupname cannot both be null.
  6833. @param f The path
  6834. @param username If it is null, the original username remains unchanged.
  6835. @param groupname If it is null, the original groupname remains unchanged.
  6836. @throws AccessControlException If access is denied
  6837. @throws FileNotFoundException If <code>f</code> does not exist
  6838. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6839. not supported
  6840. @throws IOException If an I/O error occurred
  6841. Exceptions applicable to file systems accessed over RPC:
  6842. @throws RpcClientException If an exception occurred in the RPC client
  6843. @throws RpcServerException If an exception occurred in the RPC server
  6844. @throws UnexpectedServerException If server implementation throws
  6845. undeclared exception to RPC server
  6846. RuntimeExceptions:
  6847. @throws HadoopIllegalArgumentException If <code>username</code> or
  6848. <code>groupname</code> is invalid.]]>
  6849. </doc>
  6850. </method>
  6851. <method name="setTimes"
  6852. abstract="false" native="false" synchronized="false"
  6853. static="false" final="false" visibility="public"
  6854. deprecated="not deprecated">
  6855. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6856. <param name="mtime" type="long"/>
  6857. <param name="atime" type="long"/>
  6858. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6859. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6860. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6861. <exception name="IOException" type="java.io.IOException"/>
  6862. <doc>
  6863. <![CDATA[Set access time of a file.
  6864. @param f The path
  6865. @param mtime Set the modification time of this file.
  6866. The number of milliseconds since epoch (Jan 1, 1970).
  6867. A value of -1 means that this call should not set modification time.
  6868. @param atime Set the access time of this file.
  6869. The number of milliseconds since Jan 1, 1970.
  6870. A value of -1 means that this call should not set access time.
  6871. @throws AccessControlException If access is denied
  6872. @throws FileNotFoundException If <code>f</code> does not exist
  6873. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6874. not supported
  6875. @throws IOException If an I/O error occurred
  6876. Exceptions applicable to file systems accessed over RPC:
  6877. @throws RpcClientException If an exception occurred in the RPC client
  6878. @throws RpcServerException If an exception occurred in the RPC server
  6879. @throws UnexpectedServerException If server implementation throws
  6880. undeclared exception to RPC server]]>
  6881. </doc>
  6882. </method>
  6883. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  6884. abstract="false" native="false" synchronized="false"
  6885. static="false" final="false" visibility="public"
  6886. deprecated="not deprecated">
  6887. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6888. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6889. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6890. <exception name="IOException" type="java.io.IOException"/>
  6891. <doc>
  6892. <![CDATA[Get the checksum of a file.
  6893. @param f file path
  6894. @return The file checksum. The default return value is null,
  6895. which indicates that no checksum algorithm is implemented
  6896. in the corresponding FileSystem.
  6897. @throws AccessControlException If access is denied
  6898. @throws FileNotFoundException If <code>f</code> does not exist
  6899. @throws IOException If an I/O error occurred
  6900. Exceptions applicable to file systems accessed over RPC:
  6901. @throws RpcClientException If an exception occurred in the RPC client
  6902. @throws RpcServerException If an exception occurred in the RPC server
  6903. @throws UnexpectedServerException If server implementation throws
  6904. undeclared exception to RPC server]]>
  6905. </doc>
  6906. </method>
  6907. <method name="setVerifyChecksum"
  6908. abstract="false" native="false" synchronized="false"
  6909. static="false" final="false" visibility="public"
  6910. deprecated="not deprecated">
  6911. <param name="verifyChecksum" type="boolean"/>
  6912. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6913. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6914. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6915. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6916. <exception name="IOException" type="java.io.IOException"/>
  6917. <doc>
  6918. <![CDATA[Set the verify checksum flag for the file system denoted by the path.
  6919. This is only applicable if the
  6920. corresponding FileSystem supports checksum. By default doesn't do anything.
  6921. @param verifyChecksum
  6922. @param f set the verifyChecksum for the Filesystem containing this path
  6923. @throws AccessControlException If access is denied
  6924. @throws FileNotFoundException If <code>f</code> does not exist
  6925. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6926. not supported
  6927. @throws IOException If an I/O error occurred
  6928. Exceptions applicable to file systems accessed over RPC:
  6929. @throws RpcClientException If an exception occurred in the RPC client
  6930. @throws RpcServerException If an exception occurred in the RPC server
  6931. @throws UnexpectedServerException If server implementation throws
  6932. undeclared exception to RPC server]]>
  6933. </doc>
  6934. </method>
  6935. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6936. abstract="false" native="false" synchronized="false"
  6937. static="false" final="false" visibility="public"
  6938. deprecated="not deprecated">
  6939. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6940. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6941. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6942. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6943. <exception name="IOException" type="java.io.IOException"/>
  6944. <doc>
  6945. <![CDATA[Return a file status object that represents the path.
  6946. @param f The path we want information from
  6947. @return a FileStatus object
  6948. @throws AccessControlException If access is denied
  6949. @throws FileNotFoundException If <code>f</code> does not exist
  6950. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6951. not supported
  6952. @throws IOException If an I/O error occurred
  6953. Exceptions applicable to file systems accessed over RPC:
  6954. @throws RpcClientException If an exception occurred in the RPC client
  6955. @throws RpcServerException If an exception occurred in the RPC server
  6956. @throws UnexpectedServerException If server implementation throws
  6957. undeclared exception to RPC server]]>
  6958. </doc>
  6959. </method>
  6960. <method name="msync"
  6961. abstract="false" native="false" synchronized="false"
  6962. static="false" final="false" visibility="public"
  6963. deprecated="not deprecated">
  6964. <exception name="IOException" type="java.io.IOException"/>
  6965. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  6966. <doc>
  6967. <![CDATA[Synchronize client metadata state.
  6968. @throws IOException
  6969. @throws UnsupportedOperationException]]>
  6970. </doc>
  6971. </method>
  6972. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  6973. abstract="false" native="false" synchronized="false"
  6974. static="false" final="false" visibility="public"
  6975. deprecated="not deprecated">
  6976. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6977. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6978. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6979. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6980. <exception name="IOException" type="java.io.IOException"/>
  6981. <doc>
  6982. <![CDATA[Return a file status object that represents the path. If the path
  6983. refers to a symlink then the FileStatus of the symlink is returned.
  6984. The behavior is equivalent to #getFileStatus() if the underlying
  6985. file system does not support symbolic links.
  6986. @param f The path we want information from.
  6987. @return A FileStatus object
  6988. @throws AccessControlException If access is denied
  6989. @throws FileNotFoundException If <code>f</code> does not exist
  6990. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6991. not supported
  6992. @throws IOException If an I/O error occurred]]>
  6993. </doc>
  6994. </method>
  6995. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  6996. abstract="false" native="false" synchronized="false"
  6997. static="false" final="false" visibility="public"
  6998. deprecated="not deprecated">
  6999. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7000. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7001. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7002. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7003. <exception name="IOException" type="java.io.IOException"/>
  7004. <doc>
  7005. <![CDATA[Returns the target of the given symbolic link as it was specified
  7006. when the link was created. Links in the path leading up to the
  7007. final path component are resolved transparently.
  7008. @param f the path to return the target of
  7009. @return The un-interpreted target of the symbolic link.
  7010. @throws AccessControlException If access is denied
  7011. @throws FileNotFoundException If path <code>f</code> does not exist
  7012. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7013. not supported
  7014. @throws IOException If the given path does not refer to a symlink
  7015. or an I/O error occurred]]>
  7016. </doc>
  7017. </method>
  7018. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  7019. abstract="false" native="false" synchronized="false"
  7020. static="false" final="false" visibility="public"
  7021. deprecated="not deprecated">
  7022. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7023. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7024. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7025. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7026. <exception name="IOException" type="java.io.IOException"/>
  7027. <doc>
  7028. <![CDATA[Returns a status object describing the use and capacity of the
  7029. file system denoted by the Parh argument p.
  7030. If the file system has multiple partitions, the
  7031. use and capacity of the partition pointed to by the specified
  7032. path is reflected.
  7033. @param f Path for which status should be obtained. null means the
  7034. root partition of the default file system.
  7035. @return a FsStatus object
  7036. @throws AccessControlException If access is denied
  7037. @throws FileNotFoundException If <code>f</code> does not exist
  7038. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7039. not supported
  7040. @throws IOException If an I/O error occurred
  7041. Exceptions applicable to file systems accessed over RPC:
  7042. @throws RpcClientException If an exception occurred in the RPC client
  7043. @throws RpcServerException If an exception occurred in the RPC server
  7044. @throws UnexpectedServerException If server implementation throws
  7045. undeclared exception to RPC server]]>
  7046. </doc>
  7047. </method>
  7048. <method name="createSymlink"
  7049. abstract="false" native="false" synchronized="false"
  7050. static="false" final="false" visibility="public"
  7051. deprecated="not deprecated">
  7052. <param name="target" type="org.apache.hadoop.fs.Path"/>
  7053. <param name="link" type="org.apache.hadoop.fs.Path"/>
  7054. <param name="createParent" type="boolean"/>
  7055. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7056. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  7057. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7058. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  7059. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7060. <exception name="IOException" type="java.io.IOException"/>
  7061. <doc>
  7062. <![CDATA[Creates a symbolic link to an existing file. An exception is thrown if
  7063. the symlink exits, the user does not have permission to create symlink,
  7064. or the underlying file system does not support symlinks.
  7065. Symlink permissions are ignored, access to a symlink is determined by
  7066. the permissions of the symlink target.
  7067. Symlinks in paths leading up to the final path component are resolved
  7068. transparently. If the final path component refers to a symlink some
  7069. functions operate on the symlink itself, these are:
  7070. - delete(f) and deleteOnExit(f) - Deletes the symlink.
  7071. - rename(src, dst) - If src refers to a symlink, the symlink is
  7072. renamed. If dst refers to a symlink, the symlink is over-written.
  7073. - getLinkTarget(f) - Returns the target of the symlink.
  7074. - getFileLinkStatus(f) - Returns a FileStatus object describing
  7075. the symlink.
  7076. Some functions, create() and mkdir(), expect the final path component
  7077. does not exist. If they are given a path that refers to a symlink that
  7078. does exist they behave as if the path referred to an existing file or
  7079. directory. All other functions fully resolve, ie follow, the symlink.
  7080. These are: open, setReplication, setOwner, setTimes, setWorkingDirectory,
  7081. setPermission, getFileChecksum, setVerifyChecksum, getFileBlockLocations,
  7082. getFsStatus, getFileStatus, exists, and listStatus.
  7083. Symlink targets are stored as given to createSymlink, assuming the
  7084. underlying file system is capable of storing a fully qualified URI.
  7085. Dangling symlinks are permitted. FileContext supports four types of
  7086. symlink targets, and resolves them as follows
  7087. <pre>
  7088. Given a path referring to a symlink of form:
  7089. <---X--->
  7090. fs://host/A/B/link
  7091. <-----Y----->
  7092. In this path X is the scheme and authority that identify the file system,
  7093. and Y is the path leading up to the final path component "link". If Y is
  7094. a symlink itself then let Y' be the target of Y and X' be the scheme and
  7095. authority of Y'. Symlink targets may:
  7096. 1. Fully qualified URIs
  7097. fs://hostX/A/B/file Resolved according to the target file system.
  7098. 2. Partially qualified URIs (eg scheme but no host)
  7099. fs:///A/B/file Resolved according to the target file system. Eg resolving
  7100. a symlink to hdfs:///A results in an exception because
  7101. HDFS URIs must be fully qualified, while a symlink to
  7102. file:///A will not since Hadoop's local file systems
  7103. require partially qualified URIs.
  7104. 3. Relative paths
  7105. path Resolves to [Y'][path]. Eg if Y resolves to hdfs://host/A and path
  7106. is "../B/file" then [Y'][path] is hdfs://host/B/file
  7107. 4. Absolute paths
  7108. path Resolves to [X'][path]. Eg if Y resolves hdfs://host/A/B and path
  7109. is "/file" then [X][path] is hdfs://host/file
  7110. </pre>
  7111. @param target the target of the symbolic link
  7112. @param link the path to be created that points to target
  7113. @param createParent if true then missing parent dirs are created if
  7114. false then parent must exist
  7115. @throws AccessControlException If access is denied
  7116. @throws FileAlreadyExistsException If file <code>linkcode> already exists
  7117. @throws FileNotFoundException If <code>target</code> does not exist
  7118. @throws ParentNotDirectoryException If parent of <code>link</code> is not a
  7119. directory.
  7120. @throws UnsupportedFileSystemException If file system for
  7121. <code>target</code> or <code>link</code> is not supported
  7122. @throws IOException If an I/O error occurred]]>
  7123. </doc>
  7124. </method>
  7125. <method name="listStatus" return="org.apache.hadoop.fs.RemoteIterator"
  7126. abstract="false" native="false" synchronized="false"
  7127. static="false" final="false" visibility="public"
  7128. deprecated="not deprecated">
  7129. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7130. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7131. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7132. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7133. <exception name="IOException" type="java.io.IOException"/>
  7134. <doc>
  7135. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7136. a directory.
  7137. @param f is the path
  7138. @return an iterator that traverses statuses of the files/directories
  7139. in the given path
  7140. @throws AccessControlException If access is denied
  7141. @throws FileNotFoundException If <code>f</code> does not exist
  7142. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7143. not supported
  7144. @throws IOException If an I/O error occurred
  7145. Exceptions applicable to file systems accessed over RPC:
  7146. @throws RpcClientException If an exception occurred in the RPC client
  7147. @throws RpcServerException If an exception occurred in the RPC server
  7148. @throws UnexpectedServerException If server implementation throws
  7149. undeclared exception to RPC server]]>
  7150. </doc>
  7151. </method>
  7152. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  7153. abstract="false" native="false" synchronized="false"
  7154. static="false" final="false" visibility="public"
  7155. deprecated="not deprecated">
  7156. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7157. <exception name="IOException" type="java.io.IOException"/>
  7158. <doc>
  7159. <![CDATA[@return an iterator over the corrupt files under the given path
  7160. (may contain duplicates if a file has more than one corrupt block)
  7161. @throws IOException]]>
  7162. </doc>
  7163. </method>
  7164. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  7165. abstract="false" native="false" synchronized="false"
  7166. static="false" final="false" visibility="public"
  7167. deprecated="not deprecated">
  7168. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7169. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7170. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7171. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7172. <exception name="IOException" type="java.io.IOException"/>
  7173. <doc>
  7174. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7175. a directory.
  7176. Return the file's status and block locations If the path is a file.
  7177. If a returned status is a file, it contains the file's block locations.
  7178. @param f is the path
  7179. @return an iterator that traverses statuses of the files/directories
  7180. in the given path
  7181. If any IO exception (for example the input directory gets deleted while
  7182. listing is being executed), next() or hasNext() of the returned iterator
  7183. may throw a RuntimeException with the io exception as the cause.
  7184. @throws AccessControlException If access is denied
  7185. @throws FileNotFoundException If <code>f</code> does not exist
  7186. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7187. not supported
  7188. @throws IOException If an I/O error occurred
  7189. Exceptions applicable to file systems accessed over RPC:
  7190. @throws RpcClientException If an exception occurred in the RPC client
  7191. @throws RpcServerException If an exception occurred in the RPC server
  7192. @throws UnexpectedServerException If server implementation throws
  7193. undeclared exception to RPC server]]>
  7194. </doc>
  7195. </method>
  7196. <method name="deleteOnExit" return="boolean"
  7197. abstract="false" native="false" synchronized="false"
  7198. static="false" final="false" visibility="public"
  7199. deprecated="not deprecated">
  7200. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7201. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7202. <exception name="IOException" type="java.io.IOException"/>
  7203. <doc>
  7204. <![CDATA[Mark a path to be deleted on JVM shutdown.
  7205. @param f the existing path to delete.
  7206. @return true if deleteOnExit is successful, otherwise false.
  7207. @throws AccessControlException If access is denied
  7208. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7209. not supported
  7210. @throws IOException If an I/O error occurred
  7211. Exceptions applicable to file systems accessed over RPC:
  7212. @throws RpcClientException If an exception occurred in the RPC client
  7213. @throws RpcServerException If an exception occurred in the RPC server
  7214. @throws UnexpectedServerException If server implementation throws
  7215. undeclared exception to RPC server]]>
  7216. </doc>
  7217. </method>
  7218. <method name="util" return="org.apache.hadoop.fs.FileContext.Util"
  7219. abstract="false" native="false" synchronized="false"
  7220. static="false" final="false" visibility="public"
  7221. deprecated="not deprecated">
  7222. </method>
  7223. <method name="resolve" return="org.apache.hadoop.fs.Path"
  7224. abstract="false" native="false" synchronized="false"
  7225. static="false" final="false" visibility="protected"
  7226. deprecated="not deprecated">
  7227. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7228. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7229. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  7230. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7231. <exception name="IOException" type="java.io.IOException"/>
  7232. <doc>
  7233. <![CDATA[Resolves all symbolic links in the specified path.
  7234. Returns the new path object.]]>
  7235. </doc>
  7236. </method>
  7237. <method name="resolveIntermediate" return="org.apache.hadoop.fs.Path"
  7238. abstract="false" native="false" synchronized="false"
  7239. static="false" final="false" visibility="protected"
  7240. deprecated="not deprecated">
  7241. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7242. <exception name="IOException" type="java.io.IOException"/>
  7243. <doc>
  7244. <![CDATA[Resolves all symbolic links in the specified path leading up
  7245. to, but not including the final path component.
  7246. @param f path to resolve
  7247. @return the new path object.]]>
  7248. </doc>
  7249. </method>
  7250. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  7251. abstract="false" native="false" synchronized="false"
  7252. static="true" final="false" visibility="public"
  7253. deprecated="not deprecated">
  7254. <param name="uri" type="java.net.URI"/>
  7255. <doc>
  7256. <![CDATA[Get the statistics for a particular file system
  7257. @param uri
  7258. the uri to lookup the statistics. Only scheme and authority part
  7259. of the uri are used as the key to store and lookup.
  7260. @return a statistics object]]>
  7261. </doc>
  7262. </method>
  7263. <method name="clearStatistics"
  7264. abstract="false" native="false" synchronized="false"
  7265. static="true" final="false" visibility="public"
  7266. deprecated="not deprecated">
  7267. <doc>
  7268. <![CDATA[Clears all the statistics stored in AbstractFileSystem, for all the file
  7269. systems.]]>
  7270. </doc>
  7271. </method>
  7272. <method name="printStatistics"
  7273. abstract="false" native="false" synchronized="false"
  7274. static="true" final="false" visibility="public"
  7275. deprecated="not deprecated">
  7276. <doc>
  7277. <![CDATA[Prints the statistics to standard output. File System is identified by the
  7278. scheme and authority.]]>
  7279. </doc>
  7280. </method>
  7281. <method name="getAllStatistics" return="java.util.Map"
  7282. abstract="false" native="false" synchronized="false"
  7283. static="true" final="false" visibility="public"
  7284. deprecated="not deprecated">
  7285. <doc>
  7286. <![CDATA[@return Map of uri and statistics for each filesystem instantiated. The uri
  7287. consists of scheme and authority for the filesystem.]]>
  7288. </doc>
  7289. </method>
  7290. <method name="modifyAclEntries"
  7291. abstract="false" native="false" synchronized="false"
  7292. static="false" final="false" visibility="public"
  7293. deprecated="not deprecated">
  7294. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7295. <param name="aclSpec" type="java.util.List"/>
  7296. <exception name="IOException" type="java.io.IOException"/>
  7297. <doc>
  7298. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  7299. entries or modify the permissions on existing ACL entries. All existing
  7300. ACL entries that are not specified in this call are retained without
  7301. changes. (Modifications are merged into the current ACL.)
  7302. @param path Path to modify
  7303. @param aclSpec List<AclEntry> describing modifications
  7304. @throws IOException if an ACL could not be modified]]>
  7305. </doc>
  7306. </method>
  7307. <method name="removeAclEntries"
  7308. abstract="false" native="false" synchronized="false"
  7309. static="false" final="false" visibility="public"
  7310. deprecated="not deprecated">
  7311. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7312. <param name="aclSpec" type="java.util.List"/>
  7313. <exception name="IOException" type="java.io.IOException"/>
  7314. <doc>
  7315. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  7316. retained.
  7317. @param path Path to modify
  7318. @param aclSpec List<AclEntry> describing entries to remove
  7319. @throws IOException if an ACL could not be modified]]>
  7320. </doc>
  7321. </method>
  7322. <method name="removeDefaultAcl"
  7323. abstract="false" native="false" synchronized="false"
  7324. static="false" final="false" visibility="public"
  7325. deprecated="not deprecated">
  7326. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7327. <exception name="IOException" type="java.io.IOException"/>
  7328. <doc>
  7329. <![CDATA[Removes all default ACL entries from files and directories.
  7330. @param path Path to modify
  7331. @throws IOException if an ACL could not be modified]]>
  7332. </doc>
  7333. </method>
  7334. <method name="removeAcl"
  7335. abstract="false" native="false" synchronized="false"
  7336. static="false" final="false" visibility="public"
  7337. deprecated="not deprecated">
  7338. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7339. <exception name="IOException" type="java.io.IOException"/>
  7340. <doc>
  7341. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  7342. for user, group, and others are retained for compatibility with permission
  7343. bits.
  7344. @param path Path to modify
  7345. @throws IOException if an ACL could not be removed]]>
  7346. </doc>
  7347. </method>
  7348. <method name="setAcl"
  7349. abstract="false" native="false" synchronized="false"
  7350. static="false" final="false" visibility="public"
  7351. deprecated="not deprecated">
  7352. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7353. <param name="aclSpec" type="java.util.List"/>
  7354. <exception name="IOException" type="java.io.IOException"/>
  7355. <doc>
  7356. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  7357. entries.
  7358. @param path Path to modify
  7359. @param aclSpec List<AclEntry> describing modifications, must include entries
  7360. for user, group, and others for compatibility with permission bits.
  7361. @throws IOException if an ACL could not be modified]]>
  7362. </doc>
  7363. </method>
  7364. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  7365. abstract="false" native="false" synchronized="false"
  7366. static="false" final="false" visibility="public"
  7367. deprecated="not deprecated">
  7368. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7369. <exception name="IOException" type="java.io.IOException"/>
  7370. <doc>
  7371. <![CDATA[Gets the ACLs of files and directories.
  7372. @param path Path to get
  7373. @return RemoteIterator<AclStatus> which returns each AclStatus
  7374. @throws IOException if an ACL could not be read]]>
  7375. </doc>
  7376. </method>
  7377. <method name="setXAttr"
  7378. abstract="false" native="false" synchronized="false"
  7379. static="false" final="false" visibility="public"
  7380. deprecated="not deprecated">
  7381. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7382. <param name="name" type="java.lang.String"/>
  7383. <param name="value" type="byte[]"/>
  7384. <exception name="IOException" type="java.io.IOException"/>
  7385. <doc>
  7386. <![CDATA[Set an xattr of a file or directory.
  7387. The name must be prefixed with the namespace followed by ".". For example,
  7388. "user.attr".
  7389. <p/>
  7390. Refer to the HDFS extended attributes user documentation for details.
  7391. @param path Path to modify
  7392. @param name xattr name.
  7393. @param value xattr value.
  7394. @throws IOException]]>
  7395. </doc>
  7396. </method>
  7397. <method name="setXAttr"
  7398. abstract="false" native="false" synchronized="false"
  7399. static="false" final="false" visibility="public"
  7400. deprecated="not deprecated">
  7401. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7402. <param name="name" type="java.lang.String"/>
  7403. <param name="value" type="byte[]"/>
  7404. <param name="flag" type="java.util.EnumSet"/>
  7405. <exception name="IOException" type="java.io.IOException"/>
  7406. <doc>
  7407. <![CDATA[Set an xattr of a file or directory.
  7408. The name must be prefixed with the namespace followed by ".". For example,
  7409. "user.attr".
  7410. <p/>
  7411. Refer to the HDFS extended attributes user documentation for details.
  7412. @param path Path to modify
  7413. @param name xattr name.
  7414. @param value xattr value.
  7415. @param flag xattr set flag
  7416. @throws IOException]]>
  7417. </doc>
  7418. </method>
  7419. <method name="getXAttr" return="byte[]"
  7420. abstract="false" native="false" synchronized="false"
  7421. static="false" final="false" visibility="public"
  7422. deprecated="not deprecated">
  7423. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7424. <param name="name" type="java.lang.String"/>
  7425. <exception name="IOException" type="java.io.IOException"/>
  7426. <doc>
  7427. <![CDATA[Get an xattr for a file or directory.
  7428. The name must be prefixed with the namespace followed by ".". For example,
  7429. "user.attr".
  7430. <p/>
  7431. Refer to the HDFS extended attributes user documentation for details.
  7432. @param path Path to get extended attribute
  7433. @param name xattr name.
  7434. @return byte[] xattr value.
  7435. @throws IOException]]>
  7436. </doc>
  7437. </method>
  7438. <method name="getXAttrs" return="java.util.Map"
  7439. abstract="false" native="false" synchronized="false"
  7440. static="false" final="false" visibility="public"
  7441. deprecated="not deprecated">
  7442. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7443. <exception name="IOException" type="java.io.IOException"/>
  7444. <doc>
  7445. <![CDATA[Get all of the xattrs for a file or directory.
  7446. Only those xattrs for which the logged-in user has permissions to view
  7447. are returned.
  7448. <p/>
  7449. Refer to the HDFS extended attributes user documentation for details.
  7450. @param path Path to get extended attributes
  7451. @return Map<String, byte[]> describing the XAttrs of the file or directory
  7452. @throws IOException]]>
  7453. </doc>
  7454. </method>
  7455. <method name="getXAttrs" return="java.util.Map"
  7456. abstract="false" native="false" synchronized="false"
  7457. static="false" final="false" visibility="public"
  7458. deprecated="not deprecated">
  7459. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7460. <param name="names" type="java.util.List"/>
  7461. <exception name="IOException" type="java.io.IOException"/>
  7462. <doc>
  7463. <![CDATA[Get all of the xattrs for a file or directory.
  7464. Only those xattrs for which the logged-in user has permissions to view
  7465. are returned.
  7466. <p/>
  7467. Refer to the HDFS extended attributes user documentation for details.
  7468. @param path Path to get extended attributes
  7469. @param names XAttr names.
  7470. @return Map<String, byte[]> describing the XAttrs of the file or directory
  7471. @throws IOException]]>
  7472. </doc>
  7473. </method>
  7474. <method name="removeXAttr"
  7475. abstract="false" native="false" synchronized="false"
  7476. static="false" final="false" visibility="public"
  7477. deprecated="not deprecated">
  7478. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7479. <param name="name" type="java.lang.String"/>
  7480. <exception name="IOException" type="java.io.IOException"/>
  7481. <doc>
  7482. <![CDATA[Remove an xattr of a file or directory.
  7483. The name must be prefixed with the namespace followed by ".". For example,
  7484. "user.attr".
  7485. <p/>
  7486. Refer to the HDFS extended attributes user documentation for details.
  7487. @param path Path to remove extended attribute
  7488. @param name xattr name
  7489. @throws IOException]]>
  7490. </doc>
  7491. </method>
  7492. <method name="listXAttrs" return="java.util.List"
  7493. abstract="false" native="false" synchronized="false"
  7494. static="false" final="false" visibility="public"
  7495. deprecated="not deprecated">
  7496. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7497. <exception name="IOException" type="java.io.IOException"/>
  7498. <doc>
  7499. <![CDATA[Get all of the xattr names for a file or directory.
  7500. Only those xattr names which the logged-in user has permissions to view
  7501. are returned.
  7502. <p/>
  7503. Refer to the HDFS extended attributes user documentation for details.
  7504. @param path Path to get extended attributes
  7505. @return List<String> of the XAttr names of the file or directory
  7506. @throws IOException]]>
  7507. </doc>
  7508. </method>
  7509. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  7510. abstract="false" native="false" synchronized="false"
  7511. static="false" final="true" visibility="public"
  7512. deprecated="not deprecated">
  7513. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7514. <exception name="IOException" type="java.io.IOException"/>
  7515. <doc>
  7516. <![CDATA[Create a snapshot with a default name.
  7517. @param path The directory where snapshots will be taken.
  7518. @return the snapshot path.
  7519. @throws IOException If an I/O error occurred
  7520. <p>Exceptions applicable to file systems accessed over RPC:
  7521. @throws RpcClientException If an exception occurred in the RPC client
  7522. @throws RpcServerException If an exception occurred in the RPC server
  7523. @throws UnexpectedServerException If server implementation throws
  7524. undeclared exception to RPC server]]>
  7525. </doc>
  7526. </method>
  7527. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  7528. abstract="false" native="false" synchronized="false"
  7529. static="false" final="false" visibility="public"
  7530. deprecated="not deprecated">
  7531. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7532. <param name="snapshotName" type="java.lang.String"/>
  7533. <exception name="IOException" type="java.io.IOException"/>
  7534. <doc>
  7535. <![CDATA[Create a snapshot.
  7536. @param path The directory where snapshots will be taken.
  7537. @param snapshotName The name of the snapshot
  7538. @return the snapshot path.
  7539. @throws IOException If an I/O error occurred
  7540. <p>Exceptions applicable to file systems accessed over RPC:
  7541. @throws RpcClientException If an exception occurred in the RPC client
  7542. @throws RpcServerException If an exception occurred in the RPC server
  7543. @throws UnexpectedServerException If server implementation throws
  7544. undeclared exception to RPC server]]>
  7545. </doc>
  7546. </method>
  7547. <method name="renameSnapshot"
  7548. abstract="false" native="false" synchronized="false"
  7549. static="false" final="false" visibility="public"
  7550. deprecated="not deprecated">
  7551. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7552. <param name="snapshotOldName" type="java.lang.String"/>
  7553. <param name="snapshotNewName" type="java.lang.String"/>
  7554. <exception name="IOException" type="java.io.IOException"/>
  7555. <doc>
  7556. <![CDATA[Rename a snapshot.
  7557. @param path The directory path where the snapshot was taken
  7558. @param snapshotOldName Old name of the snapshot
  7559. @param snapshotNewName New name of the snapshot
  7560. @throws IOException If an I/O error occurred
  7561. <p>Exceptions applicable to file systems accessed over RPC:
  7562. @throws RpcClientException If an exception occurred in the RPC client
  7563. @throws RpcServerException If an exception occurred in the RPC server
  7564. @throws UnexpectedServerException If server implementation throws
  7565. undeclared exception to RPC server]]>
  7566. </doc>
  7567. </method>
  7568. <method name="deleteSnapshot"
  7569. abstract="false" native="false" synchronized="false"
  7570. static="false" final="false" visibility="public"
  7571. deprecated="not deprecated">
  7572. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7573. <param name="snapshotName" type="java.lang.String"/>
  7574. <exception name="IOException" type="java.io.IOException"/>
  7575. <doc>
  7576. <![CDATA[Delete a snapshot of a directory.
  7577. @param path The directory that the to-be-deleted snapshot belongs to
  7578. @param snapshotName The name of the snapshot
  7579. @throws IOException If an I/O error occurred
  7580. <p>Exceptions applicable to file systems accessed over RPC:
  7581. @throws RpcClientException If an exception occurred in the RPC client
  7582. @throws RpcServerException If an exception occurred in the RPC server
  7583. @throws UnexpectedServerException If server implementation throws
  7584. undeclared exception to RPC server]]>
  7585. </doc>
  7586. </method>
  7587. <method name="satisfyStoragePolicy"
  7588. abstract="false" native="false" synchronized="false"
  7589. static="false" final="false" visibility="public"
  7590. deprecated="not deprecated">
  7591. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7592. <exception name="IOException" type="java.io.IOException"/>
  7593. <doc>
  7594. <![CDATA[Set the source path to satisfy storage policy.
  7595. @param path The source path referring to either a directory or a file.
  7596. @throws IOException]]>
  7597. </doc>
  7598. </method>
  7599. <method name="setStoragePolicy"
  7600. abstract="false" native="false" synchronized="false"
  7601. static="false" final="false" visibility="public"
  7602. deprecated="not deprecated">
  7603. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7604. <param name="policyName" type="java.lang.String"/>
  7605. <exception name="IOException" type="java.io.IOException"/>
  7606. <doc>
  7607. <![CDATA[Set the storage policy for a given file or directory.
  7608. @param path file or directory path.
  7609. @param policyName the name of the target storage policy. The list
  7610. of supported Storage policies can be retrieved
  7611. via {@link #getAllStoragePolicies}.]]>
  7612. </doc>
  7613. </method>
  7614. <method name="unsetStoragePolicy"
  7615. abstract="false" native="false" synchronized="false"
  7616. static="false" final="false" visibility="public"
  7617. deprecated="not deprecated">
  7618. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7619. <exception name="IOException" type="java.io.IOException"/>
  7620. <doc>
  7621. <![CDATA[Unset the storage policy set for a given file or directory.
  7622. @param src file or directory path.
  7623. @throws IOException]]>
  7624. </doc>
  7625. </method>
  7626. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  7627. abstract="false" native="false" synchronized="false"
  7628. static="false" final="false" visibility="public"
  7629. deprecated="not deprecated">
  7630. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7631. <exception name="IOException" type="java.io.IOException"/>
  7632. <doc>
  7633. <![CDATA[Query the effective storage policy ID for the given file or directory.
  7634. @param path file or directory path.
  7635. @return storage policy for give file.
  7636. @throws IOException]]>
  7637. </doc>
  7638. </method>
  7639. <method name="getAllStoragePolicies" return="java.util.Collection"
  7640. abstract="false" native="false" synchronized="false"
  7641. static="false" final="false" visibility="public"
  7642. deprecated="not deprecated">
  7643. <exception name="IOException" type="java.io.IOException"/>
  7644. <doc>
  7645. <![CDATA[Retrieve all the storage policies supported by this file system.
  7646. @return all storage policies supported by this filesystem.
  7647. @throws IOException]]>
  7648. </doc>
  7649. </method>
  7650. <method name="hasPathCapability" return="boolean"
  7651. abstract="false" native="false" synchronized="false"
  7652. static="false" final="false" visibility="public"
  7653. deprecated="not deprecated">
  7654. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7655. <param name="capability" type="java.lang.String"/>
  7656. <exception name="IOException" type="java.io.IOException"/>
  7657. <doc>
  7658. <![CDATA[Return the path capabilities of the bonded {@code AbstractFileSystem}.
  7659. @param path path to query the capability of.
  7660. @param capability string to query the stream support for.
  7661. @return true iff the capability is supported under that FS.
  7662. @throws IOException path resolution or other IO failure
  7663. @throws IllegalArgumentException invalid arguments]]>
  7664. </doc>
  7665. </method>
  7666. <field name="LOG" type="org.slf4j.Logger"
  7667. transient="false" volatile="false"
  7668. static="true" final="true" visibility="public"
  7669. deprecated="not deprecated">
  7670. </field>
  7671. <field name="DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7672. transient="false" volatile="false"
  7673. static="true" final="true" visibility="public"
  7674. deprecated="not deprecated">
  7675. <doc>
  7676. <![CDATA[Default permission for directory and symlink
  7677. In previous versions, this default permission was also used to
  7678. create files, so files created end up with ugo+x permission.
  7679. See HADOOP-9155 for detail.
  7680. Two new constants are added to solve this, please use
  7681. {@link FileContext#DIR_DEFAULT_PERM} for directory, and use
  7682. {@link FileContext#FILE_DEFAULT_PERM} for file.
  7683. This constant is kept for compatibility.]]>
  7684. </doc>
  7685. </field>
  7686. <field name="DIR_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7687. transient="false" volatile="false"
  7688. static="true" final="true" visibility="public"
  7689. deprecated="not deprecated">
  7690. <doc>
  7691. <![CDATA[Default permission for directory]]>
  7692. </doc>
  7693. </field>
  7694. <field name="FILE_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7695. transient="false" volatile="false"
  7696. static="true" final="true" visibility="public"
  7697. deprecated="not deprecated">
  7698. <doc>
  7699. <![CDATA[Default permission for file]]>
  7700. </doc>
  7701. </field>
  7702. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  7703. transient="false" volatile="false"
  7704. static="true" final="true" visibility="public"
  7705. deprecated="not deprecated">
  7706. <doc>
  7707. <![CDATA[Priority of the FileContext shutdown hook.]]>
  7708. </doc>
  7709. </field>
  7710. <doc>
  7711. <![CDATA[The FileContext class provides an interface for users of the Hadoop
  7712. file system. It exposes a number of file system operations, e.g. create,
  7713. open, list.
  7714. <h2>Path Names</h2>
  7715. The Hadoop file system supports a URI namespace and URI names. This enables
  7716. multiple types of file systems to be referenced using fully-qualified URIs.
  7717. Two common Hadoop file system implementations are
  7718. <ul>
  7719. <li>the local file system: file:///path
  7720. <li>the HDFS file system: hdfs://nnAddress:nnPort/path
  7721. </ul>
  7722. The Hadoop file system also supports additional naming schemes besides URIs.
  7723. Hadoop has the concept of a <i>default file system</i>, which implies a
  7724. default URI scheme and authority. This enables <i>slash-relative names</i>
  7725. relative to the default FS, which are more convenient for users and
  7726. application writers. The default FS is typically set by the user's
  7727. environment, though it can also be manually specified.
  7728. <p>
  7729. Hadoop also supports <i>working-directory-relative</i> names, which are paths
  7730. relative to the current working directory (similar to Unix). The working
  7731. directory can be in a different file system than the default FS.
  7732. <p>
  7733. Thus, Hadoop path names can be specified as one of the following:
  7734. <ul>
  7735. <li>a fully-qualified URI: scheme://authority/path (e.g.
  7736. hdfs://nnAddress:nnPort/foo/bar)
  7737. <li>a slash-relative name: path relative to the default file system (e.g.
  7738. /foo/bar)
  7739. <li>a working-directory-relative name: path relative to the working dir (e.g.
  7740. foo/bar)
  7741. </ul>
  7742. Relative paths with scheme (scheme:foo/bar) are illegal.
  7743. <h2>Role of FileContext and Configuration Defaults</h2>
  7744. The FileContext is the analogue of per-process file-related state in Unix. It
  7745. contains two properties:
  7746. <ul>
  7747. <li>the default file system (for resolving slash-relative names)
  7748. <li>the umask (for file permissions)
  7749. </ul>
  7750. In general, these properties are obtained from the default configuration file
  7751. in the user's environment (see {@link Configuration}).
  7752. Further file system properties are specified on the server-side. File system
  7753. operations default to using these server-side defaults unless otherwise
  7754. specified.
  7755. <p>
  7756. The file system related server-side defaults are:
  7757. <ul>
  7758. <li> the home directory (default is "/user/userName")
  7759. <li> the initial wd (only for local fs)
  7760. <li> replication factor
  7761. <li> block size
  7762. <li> buffer size
  7763. <li> encryptDataTransfer
  7764. <li> checksum option. (checksumType and bytesPerChecksum)
  7765. </ul>
  7766. <h2>Example Usage</h2>
  7767. Example 1: use the default config read from the $HADOOP_CONFIG/core.xml.
  7768. Unspecified values come from core-defaults.xml in the release jar.
  7769. <ul>
  7770. <li> myFContext = FileContext.getFileContext(); // uses the default config
  7771. // which has your default FS
  7772. <li> myFContext.create(path, ...);
  7773. <li> myFContext.setWorkingDir(path);
  7774. <li> myFContext.open (path, ...);
  7775. <li>...
  7776. </ul>
  7777. Example 2: Get a FileContext with a specific URI as the default FS
  7778. <ul>
  7779. <li> myFContext = FileContext.getFileContext(URI);
  7780. <li> myFContext.create(path, ...);
  7781. <li>...
  7782. </ul>
  7783. Example 3: FileContext with local file system as the default
  7784. <ul>
  7785. <li> myFContext = FileContext.getLocalFSFileContext();
  7786. <li> myFContext.create(path, ...);
  7787. <li> ...
  7788. </ul>
  7789. Example 4: Use a specific config, ignoring $HADOOP_CONFIG
  7790. Generally you should not need use a config unless you are doing
  7791. <ul>
  7792. <li> configX = someConfigSomeOnePassedToYou;
  7793. <li> myFContext = getFileContext(configX); // configX is not changed,
  7794. // is passed down
  7795. <li> myFContext.create(path, ...);
  7796. <li>...
  7797. </ul>]]>
  7798. </doc>
  7799. </class>
  7800. <!-- end class org.apache.hadoop.fs.FileContext -->
  7801. <!-- start class org.apache.hadoop.fs.FileStatus -->
  7802. <class name="FileStatus" extends="java.lang.Object"
  7803. abstract="false"
  7804. static="false" final="false" visibility="public"
  7805. deprecated="not deprecated">
  7806. <implements name="org.apache.hadoop.io.Writable"/>
  7807. <implements name="java.lang.Comparable"/>
  7808. <implements name="java.io.Serializable"/>
  7809. <implements name="java.io.ObjectInputValidation"/>
  7810. <constructor name="FileStatus"
  7811. static="false" final="false" visibility="public"
  7812. deprecated="not deprecated">
  7813. </constructor>
  7814. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  7815. static="false" final="false" visibility="public"
  7816. deprecated="not deprecated">
  7817. </constructor>
  7818. <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"
  7819. static="false" final="false" visibility="public"
  7820. deprecated="not deprecated">
  7821. <doc>
  7822. <![CDATA[Constructor for file systems on which symbolic links are not supported]]>
  7823. </doc>
  7824. </constructor>
  7825. <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"
  7826. static="false" final="false" visibility="public"
  7827. deprecated="not deprecated">
  7828. </constructor>
  7829. <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"
  7830. static="false" final="false" visibility="public"
  7831. deprecated="not deprecated">
  7832. </constructor>
  7833. <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"
  7834. static="false" final="false" visibility="public"
  7835. deprecated="not deprecated">
  7836. </constructor>
  7837. <constructor name="FileStatus" type="org.apache.hadoop.fs.FileStatus"
  7838. static="false" final="false" visibility="public"
  7839. deprecated="not deprecated">
  7840. <exception name="IOException" type="java.io.IOException"/>
  7841. <doc>
  7842. <![CDATA[Copy constructor.
  7843. @param other FileStatus to copy]]>
  7844. </doc>
  7845. </constructor>
  7846. <method name="attributes" return="java.util.Set"
  7847. abstract="false" native="false" synchronized="false"
  7848. static="true" final="false" visibility="public"
  7849. deprecated="not deprecated">
  7850. <param name="acl" type="boolean"/>
  7851. <param name="crypt" type="boolean"/>
  7852. <param name="ec" type="boolean"/>
  7853. <param name="sn" type="boolean"/>
  7854. <doc>
  7855. <![CDATA[Convert boolean attributes to a set of flags.
  7856. @param acl See {@link AttrFlags#HAS_ACL}.
  7857. @param crypt See {@link AttrFlags#HAS_CRYPT}.
  7858. @param ec See {@link AttrFlags#HAS_EC}.
  7859. @param sn See {@link AttrFlags#SNAPSHOT_ENABLED}.
  7860. @return converted set of flags.]]>
  7861. </doc>
  7862. </method>
  7863. <method name="getLen" return="long"
  7864. abstract="false" native="false" synchronized="false"
  7865. static="false" final="false" visibility="public"
  7866. deprecated="not deprecated">
  7867. <doc>
  7868. <![CDATA[Get the length of this file, in bytes.
  7869. @return the length of this file, in bytes.]]>
  7870. </doc>
  7871. </method>
  7872. <method name="isFile" return="boolean"
  7873. abstract="false" native="false" synchronized="false"
  7874. static="false" final="false" visibility="public"
  7875. deprecated="not deprecated">
  7876. <doc>
  7877. <![CDATA[Is this a file?
  7878. @return true if this is a file]]>
  7879. </doc>
  7880. </method>
  7881. <method name="isDirectory" return="boolean"
  7882. abstract="false" native="false" synchronized="false"
  7883. static="false" final="false" visibility="public"
  7884. deprecated="not deprecated">
  7885. <doc>
  7886. <![CDATA[Is this a directory?
  7887. @return true if this is a directory]]>
  7888. </doc>
  7889. </method>
  7890. <method name="isDir" return="boolean"
  7891. abstract="false" native="false" synchronized="false"
  7892. static="false" final="true" visibility="public"
  7893. deprecated="Use {@link FileStatus#isFile()},
  7894. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7895. instead.">
  7896. <doc>
  7897. <![CDATA[Old interface, instead use the explicit {@link FileStatus#isFile()},
  7898. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7899. @return true if this is a directory.
  7900. @deprecated Use {@link FileStatus#isFile()},
  7901. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7902. instead.]]>
  7903. </doc>
  7904. </method>
  7905. <method name="isSymlink" return="boolean"
  7906. abstract="false" native="false" synchronized="false"
  7907. static="false" final="false" visibility="public"
  7908. deprecated="not deprecated">
  7909. <doc>
  7910. <![CDATA[Is this a symbolic link?
  7911. @return true if this is a symbolic link]]>
  7912. </doc>
  7913. </method>
  7914. <method name="getBlockSize" return="long"
  7915. abstract="false" native="false" synchronized="false"
  7916. static="false" final="false" visibility="public"
  7917. deprecated="not deprecated">
  7918. <doc>
  7919. <![CDATA[Get the block size of the file.
  7920. @return the number of bytes]]>
  7921. </doc>
  7922. </method>
  7923. <method name="getReplication" return="short"
  7924. abstract="false" native="false" synchronized="false"
  7925. static="false" final="false" visibility="public"
  7926. deprecated="not deprecated">
  7927. <doc>
  7928. <![CDATA[Get the replication factor of a file.
  7929. @return the replication factor of a file.]]>
  7930. </doc>
  7931. </method>
  7932. <method name="getModificationTime" return="long"
  7933. abstract="false" native="false" synchronized="false"
  7934. static="false" final="false" visibility="public"
  7935. deprecated="not deprecated">
  7936. <doc>
  7937. <![CDATA[Get the modification time of the file.
  7938. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  7939. </doc>
  7940. </method>
  7941. <method name="getAccessTime" return="long"
  7942. abstract="false" native="false" synchronized="false"
  7943. static="false" final="false" visibility="public"
  7944. deprecated="not deprecated">
  7945. <doc>
  7946. <![CDATA[Get the access time of the file.
  7947. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  7948. </doc>
  7949. </method>
  7950. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7951. abstract="false" native="false" synchronized="false"
  7952. static="false" final="false" visibility="public"
  7953. deprecated="not deprecated">
  7954. <doc>
  7955. <![CDATA[Get FsPermission associated with the file.
  7956. @return permission. If a filesystem does not have a notion of permissions
  7957. or if permissions could not be determined, then default
  7958. permissions equivalent of "rwxrwxrwx" is returned.]]>
  7959. </doc>
  7960. </method>
  7961. <method name="hasAcl" return="boolean"
  7962. abstract="false" native="false" synchronized="false"
  7963. static="false" final="false" visibility="public"
  7964. deprecated="not deprecated">
  7965. <doc>
  7966. <![CDATA[Tell whether the underlying file or directory has ACLs set.
  7967. @return true if the underlying file or directory has ACLs set.]]>
  7968. </doc>
  7969. </method>
  7970. <method name="isEncrypted" return="boolean"
  7971. abstract="false" native="false" synchronized="false"
  7972. static="false" final="false" visibility="public"
  7973. deprecated="not deprecated">
  7974. <doc>
  7975. <![CDATA[Tell whether the underlying file or directory is encrypted or not.
  7976. @return true if the underlying file is encrypted.]]>
  7977. </doc>
  7978. </method>
  7979. <method name="isErasureCoded" return="boolean"
  7980. abstract="false" native="false" synchronized="false"
  7981. static="false" final="false" visibility="public"
  7982. deprecated="not deprecated">
  7983. <doc>
  7984. <![CDATA[Tell whether the underlying file or directory is erasure coded or not.
  7985. @return true if the underlying file or directory is erasure coded.]]>
  7986. </doc>
  7987. </method>
  7988. <method name="isSnapshotEnabled" return="boolean"
  7989. abstract="false" native="false" synchronized="false"
  7990. static="false" final="false" visibility="public"
  7991. deprecated="not deprecated">
  7992. <doc>
  7993. <![CDATA[Check if directory is Snapshot enabled or not.
  7994. @return true if directory is snapshot enabled]]>
  7995. </doc>
  7996. </method>
  7997. <method name="getOwner" return="java.lang.String"
  7998. abstract="false" native="false" synchronized="false"
  7999. static="false" final="false" visibility="public"
  8000. deprecated="not deprecated">
  8001. <doc>
  8002. <![CDATA[Get the owner of the file.
  8003. @return owner of the file. The string could be empty if there is no
  8004. notion of owner of a file in a filesystem or if it could not
  8005. be determined (rare).]]>
  8006. </doc>
  8007. </method>
  8008. <method name="getGroup" return="java.lang.String"
  8009. abstract="false" native="false" synchronized="false"
  8010. static="false" final="false" visibility="public"
  8011. deprecated="not deprecated">
  8012. <doc>
  8013. <![CDATA[Get the group associated with the file.
  8014. @return group for the file. The string could be empty if there is no
  8015. notion of group of a file in a filesystem or if it could not
  8016. be determined (rare).]]>
  8017. </doc>
  8018. </method>
  8019. <method name="getPath" return="org.apache.hadoop.fs.Path"
  8020. abstract="false" native="false" synchronized="false"
  8021. static="false" final="false" visibility="public"
  8022. deprecated="not deprecated">
  8023. </method>
  8024. <method name="setPath"
  8025. abstract="false" native="false" synchronized="false"
  8026. static="false" final="false" visibility="public"
  8027. deprecated="not deprecated">
  8028. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8029. </method>
  8030. <method name="setPermission"
  8031. abstract="false" native="false" synchronized="false"
  8032. static="false" final="false" visibility="protected"
  8033. deprecated="not deprecated">
  8034. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8035. <doc>
  8036. <![CDATA[Sets permission.
  8037. @param permission if permission is null, default value is set]]>
  8038. </doc>
  8039. </method>
  8040. <method name="setOwner"
  8041. abstract="false" native="false" synchronized="false"
  8042. static="false" final="false" visibility="protected"
  8043. deprecated="not deprecated">
  8044. <param name="owner" type="java.lang.String"/>
  8045. <doc>
  8046. <![CDATA[Sets owner.
  8047. @param owner if it is null, default value is set]]>
  8048. </doc>
  8049. </method>
  8050. <method name="setGroup"
  8051. abstract="false" native="false" synchronized="false"
  8052. static="false" final="false" visibility="protected"
  8053. deprecated="not deprecated">
  8054. <param name="group" type="java.lang.String"/>
  8055. <doc>
  8056. <![CDATA[Sets group.
  8057. @param group if it is null, default value is set]]>
  8058. </doc>
  8059. </method>
  8060. <method name="getSymlink" return="org.apache.hadoop.fs.Path"
  8061. abstract="false" native="false" synchronized="false"
  8062. static="false" final="false" visibility="public"
  8063. deprecated="not deprecated">
  8064. <exception name="IOException" type="java.io.IOException"/>
  8065. <doc>
  8066. <![CDATA[@return The contents of the symbolic link.]]>
  8067. </doc>
  8068. </method>
  8069. <method name="setSymlink"
  8070. abstract="false" native="false" synchronized="false"
  8071. static="false" final="false" visibility="public"
  8072. deprecated="not deprecated">
  8073. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8074. </method>
  8075. <method name="compareTo" return="int"
  8076. abstract="false" native="false" synchronized="false"
  8077. static="false" final="false" visibility="public"
  8078. deprecated="not deprecated">
  8079. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  8080. <doc>
  8081. <![CDATA[Compare this FileStatus to another FileStatus
  8082. @param o the FileStatus to be compared.
  8083. @return a negative integer, zero, or a positive integer as this object
  8084. is less than, equal to, or greater than the specified object.]]>
  8085. </doc>
  8086. </method>
  8087. <method name="compareTo" return="int"
  8088. abstract="false" native="false" synchronized="false"
  8089. static="false" final="false" visibility="public"
  8090. deprecated="not deprecated">
  8091. <param name="o" type="java.lang.Object"/>
  8092. <doc>
  8093. <![CDATA[Compare this FileStatus to another FileStatus.
  8094. This method was added back by HADOOP-14683 to keep binary compatibility.
  8095. @param o the FileStatus to be compared.
  8096. @return a negative integer, zero, or a positive integer as this object
  8097. is less than, equal to, or greater than the specified object.
  8098. @throws ClassCastException if the specified object is not FileStatus]]>
  8099. </doc>
  8100. </method>
  8101. <method name="equals" return="boolean"
  8102. abstract="false" native="false" synchronized="false"
  8103. static="false" final="false" visibility="public"
  8104. deprecated="not deprecated">
  8105. <param name="o" type="java.lang.Object"/>
  8106. <doc>
  8107. <![CDATA[Compare if this object is equal to another object
  8108. @param o the object to be compared.
  8109. @return true if two file status has the same path name; false if not.]]>
  8110. </doc>
  8111. </method>
  8112. <method name="hashCode" return="int"
  8113. abstract="false" native="false" synchronized="false"
  8114. static="false" final="false" visibility="public"
  8115. deprecated="not deprecated">
  8116. <doc>
  8117. <![CDATA[Returns a hash code value for the object, which is defined as
  8118. the hash code of the path name.
  8119. @return a hash code value for the path name.]]>
  8120. </doc>
  8121. </method>
  8122. <method name="toString" return="java.lang.String"
  8123. abstract="false" native="false" synchronized="false"
  8124. static="false" final="false" visibility="public"
  8125. deprecated="not deprecated">
  8126. </method>
  8127. <method name="readFields"
  8128. abstract="false" native="false" synchronized="false"
  8129. static="false" final="false" visibility="public"
  8130. deprecated="Use the {@link PBHelper} and protobuf serialization directly.">
  8131. <param name="in" type="java.io.DataInput"/>
  8132. <exception name="IOException" type="java.io.IOException"/>
  8133. <doc>
  8134. <![CDATA[Read instance encoded as protobuf from stream.
  8135. @param in Input stream
  8136. @see PBHelper#convert(FileStatus)
  8137. @deprecated Use the {@link PBHelper} and protobuf serialization directly.]]>
  8138. </doc>
  8139. </method>
  8140. <method name="write"
  8141. abstract="false" native="false" synchronized="false"
  8142. static="false" final="false" visibility="public"
  8143. deprecated="Use the {@link PBHelper} and protobuf serialization directly.">
  8144. <param name="out" type="java.io.DataOutput"/>
  8145. <exception name="IOException" type="java.io.IOException"/>
  8146. <doc>
  8147. <![CDATA[Write instance encoded as protobuf to stream.
  8148. @param out Output stream
  8149. @see PBHelper#convert(FileStatus)
  8150. @deprecated Use the {@link PBHelper} and protobuf serialization directly.]]>
  8151. </doc>
  8152. </method>
  8153. <method name="validateObject"
  8154. abstract="false" native="false" synchronized="false"
  8155. static="false" final="false" visibility="public"
  8156. deprecated="not deprecated">
  8157. <exception name="InvalidObjectException" type="java.io.InvalidObjectException"/>
  8158. </method>
  8159. <field name="NONE" type="java.util.Set"
  8160. transient="false" volatile="false"
  8161. static="true" final="true" visibility="public"
  8162. deprecated="not deprecated">
  8163. <doc>
  8164. <![CDATA[Shared, empty set of attributes (a common case for FileStatus).]]>
  8165. </doc>
  8166. </field>
  8167. <doc>
  8168. <![CDATA[Interface that represents the client side information for a file.]]>
  8169. </doc>
  8170. </class>
  8171. <!-- end class org.apache.hadoop.fs.FileStatus -->
  8172. <!-- start class org.apache.hadoop.fs.FileSystem -->
  8173. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  8174. abstract="true"
  8175. static="false" final="false" visibility="public"
  8176. deprecated="not deprecated">
  8177. <implements name="java.io.Closeable"/>
  8178. <implements name="org.apache.hadoop.security.token.DelegationTokenIssuer"/>
  8179. <implements name="org.apache.hadoop.fs.PathCapabilities"/>
  8180. <constructor name="FileSystem"
  8181. static="false" final="false" visibility="protected"
  8182. deprecated="not deprecated">
  8183. </constructor>
  8184. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8185. abstract="false" native="false" synchronized="false"
  8186. static="true" final="false" visibility="public"
  8187. deprecated="not deprecated">
  8188. <param name="uri" type="java.net.URI"/>
  8189. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8190. <param name="user" type="java.lang.String"/>
  8191. <exception name="IOException" type="java.io.IOException"/>
  8192. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8193. <doc>
  8194. <![CDATA[Get a FileSystem instance based on the uri, the passed in
  8195. configuration and the user.
  8196. @param uri of the filesystem
  8197. @param conf the configuration to use
  8198. @param user to perform the get as
  8199. @return the filesystem instance
  8200. @throws IOException failure to load
  8201. @throws InterruptedException If the {@code UGI.doAs()} call was
  8202. somehow interrupted.]]>
  8203. </doc>
  8204. </method>
  8205. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8206. abstract="false" native="false" synchronized="false"
  8207. static="true" final="false" visibility="public"
  8208. deprecated="not deprecated">
  8209. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8210. <exception name="IOException" type="java.io.IOException"/>
  8211. <doc>
  8212. <![CDATA[Returns the configured FileSystem implementation.
  8213. @param conf the configuration to use]]>
  8214. </doc>
  8215. </method>
  8216. <method name="getDefaultUri" return="java.net.URI"
  8217. abstract="false" native="false" synchronized="false"
  8218. static="true" final="false" visibility="public"
  8219. deprecated="not deprecated">
  8220. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8221. <doc>
  8222. <![CDATA[Get the default FileSystem URI from a configuration.
  8223. @param conf the configuration to use
  8224. @return the uri of the default filesystem]]>
  8225. </doc>
  8226. </method>
  8227. <method name="setDefaultUri"
  8228. abstract="false" native="false" synchronized="false"
  8229. static="true" final="false" visibility="public"
  8230. deprecated="not deprecated">
  8231. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8232. <param name="uri" type="java.net.URI"/>
  8233. <doc>
  8234. <![CDATA[Set the default FileSystem URI in a configuration.
  8235. @param conf the configuration to alter
  8236. @param uri the new default filesystem uri]]>
  8237. </doc>
  8238. </method>
  8239. <method name="setDefaultUri"
  8240. abstract="false" native="false" synchronized="false"
  8241. static="true" final="false" visibility="public"
  8242. deprecated="not deprecated">
  8243. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8244. <param name="uri" type="java.lang.String"/>
  8245. <doc>
  8246. <![CDATA[Set the default FileSystem URI in a configuration.
  8247. @param conf the configuration to alter
  8248. @param uri the new default filesystem uri]]>
  8249. </doc>
  8250. </method>
  8251. <method name="initialize"
  8252. abstract="false" native="false" synchronized="false"
  8253. static="false" final="false" visibility="public"
  8254. deprecated="not deprecated">
  8255. <param name="name" type="java.net.URI"/>
  8256. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8257. <exception name="IOException" type="java.io.IOException"/>
  8258. <doc>
  8259. <![CDATA[Initialize a FileSystem.
  8260. Called after the new FileSystem instance is constructed, and before it
  8261. is ready for use.
  8262. FileSystem implementations overriding this method MUST forward it to
  8263. their superclass, though the order in which it is done, and whether
  8264. to alter the configuration before the invocation are options of the
  8265. subclass.
  8266. @param name a URI whose authority section names the host, port, etc.
  8267. for this FileSystem
  8268. @param conf the configuration
  8269. @throws IOException on any failure to initialize this instance.
  8270. @throws IllegalArgumentException if the URI is considered invalid.]]>
  8271. </doc>
  8272. </method>
  8273. <method name="getScheme" return="java.lang.String"
  8274. abstract="false" native="false" synchronized="false"
  8275. static="false" final="false" visibility="public"
  8276. deprecated="not deprecated">
  8277. <doc>
  8278. <![CDATA[Return the protocol scheme for this FileSystem.
  8279. <p>
  8280. This implementation throws an <code>UnsupportedOperationException</code>.
  8281. @return the protocol scheme for this FileSystem.
  8282. @throws UnsupportedOperationException if the operation is unsupported
  8283. (default).]]>
  8284. </doc>
  8285. </method>
  8286. <method name="getUri" return="java.net.URI"
  8287. abstract="true" native="false" synchronized="false"
  8288. static="false" final="false" visibility="public"
  8289. deprecated="not deprecated">
  8290. <doc>
  8291. <![CDATA[Returns a URI which identifies this FileSystem.
  8292. @return the URI of this filesystem.]]>
  8293. </doc>
  8294. </method>
  8295. <method name="getCanonicalUri" return="java.net.URI"
  8296. abstract="false" native="false" synchronized="false"
  8297. static="false" final="false" visibility="protected"
  8298. deprecated="not deprecated">
  8299. <doc>
  8300. <![CDATA[Return a canonicalized form of this FileSystem's URI.
  8301. The default implementation simply calls {@link #canonicalizeUri(URI)}
  8302. on the filesystem's own URI, so subclasses typically only need to
  8303. implement that method.
  8304. @see #canonicalizeUri(URI)]]>
  8305. </doc>
  8306. </method>
  8307. <method name="canonicalizeUri" return="java.net.URI"
  8308. abstract="false" native="false" synchronized="false"
  8309. static="false" final="false" visibility="protected"
  8310. deprecated="not deprecated">
  8311. <param name="uri" type="java.net.URI"/>
  8312. <doc>
  8313. <![CDATA[Canonicalize the given URI.
  8314. This is implementation-dependent, and may for example consist of
  8315. canonicalizing the hostname using DNS and adding the default
  8316. port if not specified.
  8317. The default implementation simply fills in the default port if
  8318. not specified and if {@link #getDefaultPort()} returns a
  8319. default port.
  8320. @return URI
  8321. @see NetUtils#getCanonicalUri(URI, int)]]>
  8322. </doc>
  8323. </method>
  8324. <method name="getDefaultPort" return="int"
  8325. abstract="false" native="false" synchronized="false"
  8326. static="false" final="false" visibility="protected"
  8327. deprecated="not deprecated">
  8328. <doc>
  8329. <![CDATA[Get the default port for this FileSystem.
  8330. @return the default port or 0 if there isn't one]]>
  8331. </doc>
  8332. </method>
  8333. <method name="getFSofPath" return="org.apache.hadoop.fs.FileSystem"
  8334. abstract="false" native="false" synchronized="false"
  8335. static="true" final="false" visibility="protected"
  8336. deprecated="not deprecated">
  8337. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  8338. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8339. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8340. <exception name="IOException" type="java.io.IOException"/>
  8341. </method>
  8342. <method name="getCanonicalServiceName" return="java.lang.String"
  8343. abstract="false" native="false" synchronized="false"
  8344. static="false" final="false" visibility="public"
  8345. deprecated="not deprecated">
  8346. <doc>
  8347. <![CDATA[Get a canonical service name for this FileSystem.
  8348. The token cache is the only user of the canonical service name,
  8349. and uses it to lookup this FileSystem's service tokens.
  8350. If the file system provides a token of its own then it must have a
  8351. canonical name, otherwise the canonical name can be null.
  8352. Default implementation: If the FileSystem has child file systems
  8353. (such as an embedded file system) then it is assumed that the FS has no
  8354. tokens of its own and hence returns a null name; otherwise a service
  8355. name is built using Uri and port.
  8356. @return a service string that uniquely identifies this file system, null
  8357. if the filesystem does not implement tokens
  8358. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  8359. </doc>
  8360. </method>
  8361. <method name="getName" return="java.lang.String"
  8362. abstract="false" native="false" synchronized="false"
  8363. static="false" final="false" visibility="public"
  8364. deprecated="call {@link #getUri()} instead.">
  8365. <doc>
  8366. <![CDATA[@deprecated call {@link #getUri()} instead.]]>
  8367. </doc>
  8368. </method>
  8369. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  8370. abstract="false" native="false" synchronized="false"
  8371. static="true" final="false" visibility="public"
  8372. deprecated="call {@link #get(URI, Configuration)} instead.">
  8373. <param name="name" type="java.lang.String"/>
  8374. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8375. <exception name="IOException" type="java.io.IOException"/>
  8376. <doc>
  8377. <![CDATA[@deprecated call {@link #get(URI, Configuration)} instead.]]>
  8378. </doc>
  8379. </method>
  8380. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8381. abstract="false" native="false" synchronized="false"
  8382. static="true" final="false" visibility="public"
  8383. deprecated="not deprecated">
  8384. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8385. <exception name="IOException" type="java.io.IOException"/>
  8386. <doc>
  8387. <![CDATA[Get the local FileSystem.
  8388. @param conf the configuration to configure the FileSystem with
  8389. if it is newly instantiated.
  8390. @return a LocalFileSystem
  8391. @throws IOException if somehow the local FS cannot be instantiated.]]>
  8392. </doc>
  8393. </method>
  8394. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8395. abstract="false" native="false" synchronized="false"
  8396. static="true" final="false" visibility="public"
  8397. deprecated="not deprecated">
  8398. <param name="uri" type="java.net.URI"/>
  8399. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8400. <exception name="IOException" type="java.io.IOException"/>
  8401. <doc>
  8402. <![CDATA[Get a FileSystem for this URI's scheme and authority.
  8403. <ol>
  8404. <li>
  8405. If the configuration has the property
  8406. {@code "fs.$SCHEME.impl.disable.cache"} set to true,
  8407. a new instance will be created, initialized with the supplied URI and
  8408. configuration, then returned without being cached.
  8409. </li>
  8410. <li>
  8411. If the there is a cached FS instance matching the same URI, it will
  8412. be returned.
  8413. </li>
  8414. <li>
  8415. Otherwise: a new FS instance will be created, initialized with the
  8416. configuration and URI, cached and returned to the caller.
  8417. </li>
  8418. </ol>
  8419. @throws IOException if the FileSystem cannot be instantiated.]]>
  8420. </doc>
  8421. </method>
  8422. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8423. abstract="false" native="false" synchronized="false"
  8424. static="true" final="false" visibility="public"
  8425. deprecated="not deprecated">
  8426. <param name="uri" type="java.net.URI"/>
  8427. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8428. <param name="user" type="java.lang.String"/>
  8429. <exception name="IOException" type="java.io.IOException"/>
  8430. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8431. <doc>
  8432. <![CDATA[Returns the FileSystem for this URI's scheme and authority and the
  8433. given user. Internally invokes {@link #newInstance(URI, Configuration)}
  8434. @param uri of the filesystem
  8435. @param conf the configuration to use
  8436. @param user to perform the get as
  8437. @return filesystem instance
  8438. @throws IOException if the FileSystem cannot be instantiated.
  8439. @throws InterruptedException If the {@code UGI.doAs()} call was
  8440. somehow interrupted.]]>
  8441. </doc>
  8442. </method>
  8443. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8444. abstract="false" native="false" synchronized="false"
  8445. static="true" final="false" visibility="public"
  8446. deprecated="not deprecated">
  8447. <param name="uri" type="java.net.URI"/>
  8448. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  8449. <exception name="IOException" type="java.io.IOException"/>
  8450. <doc>
  8451. <![CDATA[Returns the FileSystem for this URI's scheme and authority.
  8452. The entire URI is passed to the FileSystem instance's initialize method.
  8453. This always returns a new FileSystem object.
  8454. @param uri FS URI
  8455. @param config configuration to use
  8456. @return the new FS instance
  8457. @throws IOException FS creation or initialization failure.]]>
  8458. </doc>
  8459. </method>
  8460. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8461. abstract="false" native="false" synchronized="false"
  8462. static="true" final="false" visibility="public"
  8463. deprecated="not deprecated">
  8464. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8465. <exception name="IOException" type="java.io.IOException"/>
  8466. <doc>
  8467. <![CDATA[Returns a unique configured FileSystem implementation for the default
  8468. filesystem of the supplied configuration.
  8469. This always returns a new FileSystem object.
  8470. @param conf the configuration to use
  8471. @return the new FS instance
  8472. @throws IOException FS creation or initialization failure.]]>
  8473. </doc>
  8474. </method>
  8475. <method name="newInstanceLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8476. abstract="false" native="false" synchronized="false"
  8477. static="true" final="false" visibility="public"
  8478. deprecated="not deprecated">
  8479. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8480. <exception name="IOException" type="java.io.IOException"/>
  8481. <doc>
  8482. <![CDATA[Get a unique local FileSystem object.
  8483. @param conf the configuration to configure the FileSystem with
  8484. @return a new LocalFileSystem object.
  8485. @throws IOException FS creation or initialization failure.]]>
  8486. </doc>
  8487. </method>
  8488. <method name="closeAll"
  8489. abstract="false" native="false" synchronized="false"
  8490. static="true" final="false" visibility="public"
  8491. deprecated="not deprecated">
  8492. <exception name="IOException" type="java.io.IOException"/>
  8493. <doc>
  8494. <![CDATA[Close all cached FileSystem instances. After this operation, they
  8495. may not be used in any operations.
  8496. @throws IOException a problem arose closing one or more filesystem.]]>
  8497. </doc>
  8498. </method>
  8499. <method name="closeAllForUGI"
  8500. abstract="false" native="false" synchronized="false"
  8501. static="true" final="false" visibility="public"
  8502. deprecated="not deprecated">
  8503. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  8504. <exception name="IOException" type="java.io.IOException"/>
  8505. <doc>
  8506. <![CDATA[Close all cached FileSystem instances for a given UGI.
  8507. Be sure those filesystems are not used anymore.
  8508. @param ugi user group info to close
  8509. @throws IOException a problem arose closing one or more filesystem.]]>
  8510. </doc>
  8511. </method>
  8512. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  8513. abstract="false" native="false" synchronized="false"
  8514. static="false" final="false" visibility="public"
  8515. deprecated="not deprecated">
  8516. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8517. <doc>
  8518. <![CDATA[Qualify a path to one which uses this FileSystem and, if relative,
  8519. made absolute.
  8520. @param path to qualify.
  8521. @return this path if it contains a scheme and authority and is absolute, or
  8522. a new path that includes a path and authority and is fully qualified
  8523. @see Path#makeQualified(URI, Path)
  8524. @throws IllegalArgumentException if the path has a schema/URI different
  8525. from this FileSystem.]]>
  8526. </doc>
  8527. </method>
  8528. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8529. abstract="false" native="false" synchronized="false"
  8530. static="true" final="false" visibility="public"
  8531. deprecated="not deprecated">
  8532. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8533. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8534. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8535. <exception name="IOException" type="java.io.IOException"/>
  8536. <doc>
  8537. <![CDATA[Create a file with the provided permission.
  8538. The permission of the file is set to be the provided permission as in
  8539. setPermission, not permission&~umask
  8540. The HDFS implementation is implemented using two RPCs.
  8541. It is understood that it is inefficient,
  8542. but the implementation is thread-safe. The other option is to change the
  8543. value of umask in configuration to be 0, but it is not thread-safe.
  8544. @param fs FileSystem
  8545. @param file the name of the file to be created
  8546. @param permission the permission of the file
  8547. @return an output stream
  8548. @throws IOException IO failure]]>
  8549. </doc>
  8550. </method>
  8551. <method name="mkdirs" return="boolean"
  8552. abstract="false" native="false" synchronized="false"
  8553. static="true" final="false" visibility="public"
  8554. deprecated="not deprecated">
  8555. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8556. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8557. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8558. <exception name="IOException" type="java.io.IOException"/>
  8559. <doc>
  8560. <![CDATA[Create a directory with the provided permission.
  8561. The permission of the directory is set to be the provided permission as in
  8562. setPermission, not permission&~umask
  8563. @see #create(FileSystem, Path, FsPermission)
  8564. @param fs FileSystem handle
  8565. @param dir the name of the directory to be created
  8566. @param permission the permission of the directory
  8567. @return true if the directory creation succeeds; false otherwise
  8568. @throws IOException A problem creating the directories.]]>
  8569. </doc>
  8570. </method>
  8571. <method name="checkPath"
  8572. abstract="false" native="false" synchronized="false"
  8573. static="false" final="false" visibility="protected"
  8574. deprecated="not deprecated">
  8575. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8576. <doc>
  8577. <![CDATA[Check that a Path belongs to this FileSystem.
  8578. The base implementation performs case insensitive equality checks
  8579. of the URIs' schemes and authorities. Subclasses may implement slightly
  8580. different checks.
  8581. @param path to check
  8582. @throws IllegalArgumentException if the path is not considered to be
  8583. part of this FileSystem.]]>
  8584. </doc>
  8585. </method>
  8586. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8587. abstract="false" native="false" synchronized="false"
  8588. static="false" final="false" visibility="public"
  8589. deprecated="not deprecated">
  8590. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  8591. <param name="start" type="long"/>
  8592. <param name="len" type="long"/>
  8593. <exception name="IOException" type="java.io.IOException"/>
  8594. <doc>
  8595. <![CDATA[Return an array containing hostnames, offset and size of
  8596. portions of the given file. For nonexistent
  8597. file or regions, {@code null} is returned.
  8598. <pre>
  8599. if f == null :
  8600. result = null
  8601. elif f.getLen() <= start:
  8602. result = []
  8603. else result = [ locations(FS, b) for b in blocks(FS, p, s, s+l)]
  8604. </pre>
  8605. This call is most helpful with and distributed filesystem
  8606. where the hostnames of machines that contain blocks of the given file
  8607. can be determined.
  8608. The default implementation returns an array containing one element:
  8609. <pre>
  8610. BlockLocation( { "localhost:9866" }, { "localhost" }, 0, file.getLen())
  8611. </pre>
  8612. In HDFS, if file is three-replicated, the returned array contains
  8613. elements like:
  8614. <pre>
  8615. BlockLocation(offset: 0, length: BLOCK_SIZE,
  8616. hosts: {"host1:9866", "host2:9866, host3:9866"})
  8617. BlockLocation(offset: BLOCK_SIZE, length: BLOCK_SIZE,
  8618. hosts: {"host2:9866", "host3:9866, host4:9866"})
  8619. </pre>
  8620. And if a file is erasure-coded, the returned BlockLocation are logical
  8621. block groups.
  8622. Suppose we have a RS_3_2 coded file (3 data units and 2 parity units).
  8623. 1. If the file size is less than one stripe size, say 2 * CELL_SIZE, then
  8624. there will be one BlockLocation returned, with 0 offset, actual file size
  8625. and 4 hosts (2 data blocks and 2 parity blocks) hosting the actual blocks.
  8626. 3. If the file size is less than one group size but greater than one
  8627. stripe size, then there will be one BlockLocation returned, with 0 offset,
  8628. actual file size with 5 hosts (3 data blocks and 2 parity blocks) hosting
  8629. the actual blocks.
  8630. 4. If the file size is greater than one group size, 3 * BLOCK_SIZE + 123
  8631. for example, then the result will be like:
  8632. <pre>
  8633. BlockLocation(offset: 0, length: 3 * BLOCK_SIZE, hosts: {"host1:9866",
  8634. "host2:9866","host3:9866","host4:9866","host5:9866"})
  8635. BlockLocation(offset: 3 * BLOCK_SIZE, length: 123, hosts: {"host1:9866",
  8636. "host4:9866", "host5:9866"})
  8637. </pre>
  8638. @param file FilesStatus to get data from
  8639. @param start offset into the given file
  8640. @param len length for which to get locations for
  8641. @throws IOException IO failure]]>
  8642. </doc>
  8643. </method>
  8644. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8645. abstract="false" native="false" synchronized="false"
  8646. static="false" final="false" visibility="public"
  8647. deprecated="not deprecated">
  8648. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8649. <param name="start" type="long"/>
  8650. <param name="len" type="long"/>
  8651. <exception name="IOException" type="java.io.IOException"/>
  8652. <doc>
  8653. <![CDATA[Return an array containing hostnames, offset and size of
  8654. portions of the given file. For a nonexistent
  8655. file or regions, {@code null} is returned.
  8656. This call is most helpful with location-aware distributed
  8657. filesystems, where it returns hostnames of machines that
  8658. contain the given file.
  8659. A FileSystem will normally return the equivalent result
  8660. of passing the {@code FileStatus} of the path to
  8661. {@link #getFileBlockLocations(FileStatus, long, long)}
  8662. @param p path is used to identify an FS since an FS could have
  8663. another FS that it could be delegating the call to
  8664. @param start offset into the given file
  8665. @param len length for which to get locations for
  8666. @throws FileNotFoundException when the path does not exist
  8667. @throws IOException IO failure]]>
  8668. </doc>
  8669. </method>
  8670. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8671. abstract="false" native="false" synchronized="false"
  8672. static="false" final="false" visibility="public"
  8673. deprecated="use {@link #getServerDefaults(Path)} instead">
  8674. <exception name="IOException" type="java.io.IOException"/>
  8675. <doc>
  8676. <![CDATA[Return a set of server default configuration values.
  8677. @return server default configuration values
  8678. @throws IOException IO failure
  8679. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  8680. </doc>
  8681. </method>
  8682. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8683. abstract="false" native="false" synchronized="false"
  8684. static="false" final="false" visibility="public"
  8685. deprecated="not deprecated">
  8686. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8687. <exception name="IOException" type="java.io.IOException"/>
  8688. <doc>
  8689. <![CDATA[Return a set of server default configuration values.
  8690. @param p path is used to identify an FS since an FS could have
  8691. another FS that it could be delegating the call to
  8692. @return server default configuration values
  8693. @throws IOException IO failure]]>
  8694. </doc>
  8695. </method>
  8696. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  8697. abstract="false" native="false" synchronized="false"
  8698. static="false" final="false" visibility="public"
  8699. deprecated="not deprecated">
  8700. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8701. <exception name="IOException" type="java.io.IOException"/>
  8702. <doc>
  8703. <![CDATA[Return the fully-qualified path of path, resolving the path
  8704. through any symlinks or mount point.
  8705. @param p path to be resolved
  8706. @return fully qualified path
  8707. @throws FileNotFoundException if the path is not present
  8708. @throws IOException for any other error]]>
  8709. </doc>
  8710. </method>
  8711. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8712. abstract="true" native="false" synchronized="false"
  8713. static="false" final="false" visibility="public"
  8714. deprecated="not deprecated">
  8715. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8716. <param name="bufferSize" type="int"/>
  8717. <exception name="IOException" type="java.io.IOException"/>
  8718. <doc>
  8719. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8720. @param f the file name to open
  8721. @param bufferSize the size of the buffer to be used.
  8722. @throws IOException IO failure]]>
  8723. </doc>
  8724. </method>
  8725. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8726. abstract="false" native="false" synchronized="false"
  8727. static="false" final="false" visibility="public"
  8728. deprecated="not deprecated">
  8729. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8730. <exception name="IOException" type="java.io.IOException"/>
  8731. <doc>
  8732. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8733. @param f the file to open
  8734. @throws IOException IO failure]]>
  8735. </doc>
  8736. </method>
  8737. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8738. abstract="false" native="false" synchronized="false"
  8739. static="false" final="false" visibility="public"
  8740. deprecated="not deprecated">
  8741. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  8742. <exception name="IOException" type="java.io.IOException"/>
  8743. <doc>
  8744. <![CDATA[Open an FSDataInputStream matching the PathHandle instance. The
  8745. implementation may encode metadata in PathHandle to address the
  8746. resource directly and verify that the resource referenced
  8747. satisfies constraints specified at its construciton.
  8748. @param fd PathHandle object returned by the FS authority.
  8749. @throws InvalidPathHandleException If {@link PathHandle} constraints are
  8750. not satisfied
  8751. @throws IOException IO failure
  8752. @throws UnsupportedOperationException If {@link #open(PathHandle, int)}
  8753. not overridden by subclass]]>
  8754. </doc>
  8755. </method>
  8756. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8757. abstract="false" native="false" synchronized="false"
  8758. static="false" final="false" visibility="public"
  8759. deprecated="not deprecated">
  8760. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  8761. <param name="bufferSize" type="int"/>
  8762. <exception name="IOException" type="java.io.IOException"/>
  8763. <doc>
  8764. <![CDATA[Open an FSDataInputStream matching the PathHandle instance. The
  8765. implementation may encode metadata in PathHandle to address the
  8766. resource directly and verify that the resource referenced
  8767. satisfies constraints specified at its construciton.
  8768. @param fd PathHandle object returned by the FS authority.
  8769. @param bufferSize the size of the buffer to use
  8770. @throws InvalidPathHandleException If {@link PathHandle} constraints are
  8771. not satisfied
  8772. @throws IOException IO failure
  8773. @throws UnsupportedOperationException If not overridden by subclass]]>
  8774. </doc>
  8775. </method>
  8776. <method name="getPathHandle" return="org.apache.hadoop.fs.PathHandle"
  8777. abstract="false" native="false" synchronized="false"
  8778. static="false" final="true" visibility="public"
  8779. deprecated="not deprecated">
  8780. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  8781. <param name="opt" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  8782. <doc>
  8783. <![CDATA[Create a durable, serializable handle to the referent of the given
  8784. entity.
  8785. @param stat Referent in the target FileSystem
  8786. @param opt If absent, assume {@link HandleOpt#path()}.
  8787. @throws IllegalArgumentException If the FileStatus does not belong to
  8788. this FileSystem
  8789. @throws UnsupportedOperationException If {@link #createPathHandle}
  8790. not overridden by subclass.
  8791. @throws UnsupportedOperationException If this FileSystem cannot enforce
  8792. the specified constraints.]]>
  8793. </doc>
  8794. </method>
  8795. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  8796. abstract="false" native="false" synchronized="false"
  8797. static="false" final="false" visibility="protected"
  8798. deprecated="not deprecated">
  8799. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  8800. <param name="opt" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  8801. <doc>
  8802. <![CDATA[Hook to implement support for {@link PathHandle} operations.
  8803. @param stat Referent in the target FileSystem
  8804. @param opt Constraints that determine the validity of the
  8805. {@link PathHandle} reference.]]>
  8806. </doc>
  8807. </method>
  8808. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8809. abstract="false" native="false" synchronized="false"
  8810. static="false" final="false" visibility="public"
  8811. deprecated="not deprecated">
  8812. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8813. <exception name="IOException" type="java.io.IOException"/>
  8814. <doc>
  8815. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8816. Files are overwritten by default.
  8817. @param f the file to create
  8818. @throws IOException IO failure]]>
  8819. </doc>
  8820. </method>
  8821. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8822. abstract="false" native="false" synchronized="false"
  8823. static="false" final="false" visibility="public"
  8824. deprecated="not deprecated">
  8825. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8826. <param name="overwrite" type="boolean"/>
  8827. <exception name="IOException" type="java.io.IOException"/>
  8828. <doc>
  8829. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8830. @param f the file to create
  8831. @param overwrite if a file with this name already exists, then if true,
  8832. the file will be overwritten, and if false an exception will be thrown.
  8833. @throws IOException IO failure]]>
  8834. </doc>
  8835. </method>
  8836. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8837. abstract="false" native="false" synchronized="false"
  8838. static="false" final="false" visibility="public"
  8839. deprecated="not deprecated">
  8840. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8841. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8842. <exception name="IOException" type="java.io.IOException"/>
  8843. <doc>
  8844. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8845. reporting.
  8846. Files are overwritten by default.
  8847. @param f the file to create
  8848. @param progress to report progress
  8849. @throws IOException IO failure]]>
  8850. </doc>
  8851. </method>
  8852. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8853. abstract="false" native="false" synchronized="false"
  8854. static="false" final="false" visibility="public"
  8855. deprecated="not deprecated">
  8856. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8857. <param name="replication" type="short"/>
  8858. <exception name="IOException" type="java.io.IOException"/>
  8859. <doc>
  8860. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8861. Files are overwritten by default.
  8862. @param f the file to create
  8863. @param replication the replication factor
  8864. @throws IOException IO failure]]>
  8865. </doc>
  8866. </method>
  8867. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8868. abstract="false" native="false" synchronized="false"
  8869. static="false" final="false" visibility="public"
  8870. deprecated="not deprecated">
  8871. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8872. <param name="replication" type="short"/>
  8873. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8874. <exception name="IOException" type="java.io.IOException"/>
  8875. <doc>
  8876. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8877. reporting.
  8878. Files are overwritten by default.
  8879. @param f the file to create
  8880. @param replication the replication factor
  8881. @param progress to report progress
  8882. @throws IOException IO failure]]>
  8883. </doc>
  8884. </method>
  8885. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8886. abstract="false" native="false" synchronized="false"
  8887. static="false" final="false" visibility="public"
  8888. deprecated="not deprecated">
  8889. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8890. <param name="overwrite" type="boolean"/>
  8891. <param name="bufferSize" type="int"/>
  8892. <exception name="IOException" type="java.io.IOException"/>
  8893. <doc>
  8894. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8895. @param f the file to create
  8896. @param overwrite if a path with this name already exists, then if true,
  8897. the file will be overwritten, and if false an error will be thrown.
  8898. @param bufferSize the size of the buffer to be used.
  8899. @throws IOException IO failure]]>
  8900. </doc>
  8901. </method>
  8902. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8903. abstract="false" native="false" synchronized="false"
  8904. static="false" final="false" visibility="public"
  8905. deprecated="not deprecated">
  8906. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8907. <param name="overwrite" type="boolean"/>
  8908. <param name="bufferSize" type="int"/>
  8909. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8910. <exception name="IOException" type="java.io.IOException"/>
  8911. <doc>
  8912. <![CDATA[Create an {@link FSDataOutputStream} at the indicated Path
  8913. with write-progress reporting.
  8914. The frequency of callbacks is implementation-specific; it may be "none".
  8915. @param f the path of the file to open
  8916. @param overwrite if a file with this name already exists, then if true,
  8917. the file will be overwritten, and if false an error will be thrown.
  8918. @param bufferSize the size of the buffer to be used.
  8919. @throws IOException IO failure]]>
  8920. </doc>
  8921. </method>
  8922. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8923. abstract="false" native="false" synchronized="false"
  8924. static="false" final="false" visibility="public"
  8925. deprecated="not deprecated">
  8926. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8927. <param name="overwrite" type="boolean"/>
  8928. <param name="bufferSize" type="int"/>
  8929. <param name="replication" type="short"/>
  8930. <param name="blockSize" type="long"/>
  8931. <exception name="IOException" type="java.io.IOException"/>
  8932. <doc>
  8933. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8934. @param f the file name to open
  8935. @param overwrite if a file with this name already exists, then if true,
  8936. the file will be overwritten, and if false an error will be thrown.
  8937. @param bufferSize the size of the buffer to be used.
  8938. @param replication required block replication for the file.
  8939. @throws IOException IO failure]]>
  8940. </doc>
  8941. </method>
  8942. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8943. abstract="false" native="false" synchronized="false"
  8944. static="false" final="false" visibility="public"
  8945. deprecated="not deprecated">
  8946. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8947. <param name="overwrite" type="boolean"/>
  8948. <param name="bufferSize" type="int"/>
  8949. <param name="replication" type="short"/>
  8950. <param name="blockSize" type="long"/>
  8951. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8952. <exception name="IOException" type="java.io.IOException"/>
  8953. <doc>
  8954. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8955. reporting.
  8956. @param f the file name to open
  8957. @param overwrite if a file with this name already exists, then if true,
  8958. the file will be overwritten, and if false an error will be thrown.
  8959. @param bufferSize the size of the buffer to be used.
  8960. @param replication required block replication for the file.
  8961. @throws IOException IO failure]]>
  8962. </doc>
  8963. </method>
  8964. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8965. abstract="true" native="false" synchronized="false"
  8966. static="false" final="false" visibility="public"
  8967. deprecated="not deprecated">
  8968. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8969. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8970. <param name="overwrite" type="boolean"/>
  8971. <param name="bufferSize" type="int"/>
  8972. <param name="replication" type="short"/>
  8973. <param name="blockSize" type="long"/>
  8974. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8975. <exception name="IOException" type="java.io.IOException"/>
  8976. <doc>
  8977. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8978. reporting.
  8979. @param f the file name to open
  8980. @param permission file permission
  8981. @param overwrite if a file with this name already exists, then if true,
  8982. the file will be overwritten, and if false an error will be thrown.
  8983. @param bufferSize the size of the buffer to be used.
  8984. @param replication required block replication for the file.
  8985. @param blockSize block size
  8986. @param progress the progress reporter
  8987. @throws IOException IO failure
  8988. @see #setPermission(Path, FsPermission)]]>
  8989. </doc>
  8990. </method>
  8991. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8992. abstract="false" native="false" synchronized="false"
  8993. static="false" final="false" visibility="public"
  8994. deprecated="not deprecated">
  8995. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8996. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8997. <param name="flags" type="java.util.EnumSet"/>
  8998. <param name="bufferSize" type="int"/>
  8999. <param name="replication" type="short"/>
  9000. <param name="blockSize" type="long"/>
  9001. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9002. <exception name="IOException" type="java.io.IOException"/>
  9003. <doc>
  9004. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9005. reporting.
  9006. @param f the file name to open
  9007. @param permission file permission
  9008. @param flags {@link CreateFlag}s to use for this stream.
  9009. @param bufferSize the size of the buffer to be used.
  9010. @param replication required block replication for the file.
  9011. @param blockSize block size
  9012. @param progress the progress reporter
  9013. @throws IOException IO failure
  9014. @see #setPermission(Path, FsPermission)]]>
  9015. </doc>
  9016. </method>
  9017. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9018. abstract="false" native="false" synchronized="false"
  9019. static="false" final="false" visibility="public"
  9020. deprecated="not deprecated">
  9021. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9022. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9023. <param name="flags" type="java.util.EnumSet"/>
  9024. <param name="bufferSize" type="int"/>
  9025. <param name="replication" type="short"/>
  9026. <param name="blockSize" type="long"/>
  9027. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9028. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  9029. <exception name="IOException" type="java.io.IOException"/>
  9030. <doc>
  9031. <![CDATA[Create an FSDataOutputStream at the indicated Path with a custom
  9032. checksum option.
  9033. @param f the file name to open
  9034. @param permission file permission
  9035. @param flags {@link CreateFlag}s to use for this stream.
  9036. @param bufferSize the size of the buffer to be used.
  9037. @param replication required block replication for the file.
  9038. @param blockSize block size
  9039. @param progress the progress reporter
  9040. @param checksumOpt checksum parameter. If null, the values
  9041. found in conf will be used.
  9042. @throws IOException IO failure
  9043. @see #setPermission(Path, FsPermission)]]>
  9044. </doc>
  9045. </method>
  9046. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  9047. abstract="false" native="false" synchronized="false"
  9048. static="false" final="false" visibility="protected"
  9049. deprecated="not deprecated">
  9050. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9051. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9052. <param name="flag" type="java.util.EnumSet"/>
  9053. <param name="bufferSize" type="int"/>
  9054. <param name="replication" type="short"/>
  9055. <param name="blockSize" type="long"/>
  9056. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9057. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  9058. <exception name="IOException" type="java.io.IOException"/>
  9059. <doc>
  9060. <![CDATA[This create has been added to support the FileContext that processes
  9061. the permission with umask before calling this method.
  9062. This a temporary method added to support the transition from FileSystem
  9063. to FileContext for user applications.
  9064. @throws IOException IO failure]]>
  9065. </doc>
  9066. </method>
  9067. <method name="primitiveMkdir" return="boolean"
  9068. abstract="false" native="false" synchronized="false"
  9069. static="false" final="false" visibility="protected"
  9070. deprecated="not deprecated">
  9071. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9072. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9073. <exception name="IOException" type="java.io.IOException"/>
  9074. <doc>
  9075. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  9076. It has been added to support the FileContext that processes the permission
  9077. with umask before calling this method.
  9078. This a temporary method added to support the transition from FileSystem
  9079. to FileContext for user applications.
  9080. @param f path
  9081. @param absolutePermission permissions
  9082. @return true if the directory was actually created.
  9083. @throws IOException IO failure
  9084. @see #mkdirs(Path, FsPermission)]]>
  9085. </doc>
  9086. </method>
  9087. <method name="primitiveMkdir"
  9088. abstract="false" native="false" synchronized="false"
  9089. static="false" final="false" visibility="protected"
  9090. deprecated="not deprecated">
  9091. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9092. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9093. <param name="createParent" type="boolean"/>
  9094. <exception name="IOException" type="java.io.IOException"/>
  9095. <doc>
  9096. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  9097. It has been added to support the FileContext that processes the permission
  9098. with umask before calling this method.
  9099. This a temporary method added to support the transition from FileSystem
  9100. to FileContext for user applications.]]>
  9101. </doc>
  9102. </method>
  9103. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9104. abstract="false" native="false" synchronized="false"
  9105. static="false" final="false" visibility="public"
  9106. deprecated="not deprecated">
  9107. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9108. <param name="overwrite" type="boolean"/>
  9109. <param name="bufferSize" type="int"/>
  9110. <param name="replication" type="short"/>
  9111. <param name="blockSize" type="long"/>
  9112. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9113. <exception name="IOException" type="java.io.IOException"/>
  9114. <doc>
  9115. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9116. reporting. Same as create(), except fails if parent directory doesn't
  9117. already exist.
  9118. @param f the file name to open
  9119. @param overwrite if a file with this name already exists, then if true,
  9120. the file will be overwritten, and if false an error will be thrown.
  9121. @param bufferSize the size of the buffer to be used.
  9122. @param replication required block replication for the file.
  9123. @param blockSize block size
  9124. @param progress the progress reporter
  9125. @throws IOException IO failure
  9126. @see #setPermission(Path, FsPermission)]]>
  9127. </doc>
  9128. </method>
  9129. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9130. abstract="false" native="false" synchronized="false"
  9131. static="false" final="false" visibility="public"
  9132. deprecated="not deprecated">
  9133. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9134. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9135. <param name="overwrite" type="boolean"/>
  9136. <param name="bufferSize" type="int"/>
  9137. <param name="replication" type="short"/>
  9138. <param name="blockSize" type="long"/>
  9139. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9140. <exception name="IOException" type="java.io.IOException"/>
  9141. <doc>
  9142. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9143. reporting. Same as create(), except fails if parent directory doesn't
  9144. already exist.
  9145. @param f the file name to open
  9146. @param permission file permission
  9147. @param overwrite if a file with this name already exists, then if true,
  9148. the file will be overwritten, and if false an error will be thrown.
  9149. @param bufferSize the size of the buffer to be used.
  9150. @param replication required block replication for the file.
  9151. @param blockSize block size
  9152. @param progress the progress reporter
  9153. @throws IOException IO failure
  9154. @see #setPermission(Path, FsPermission)]]>
  9155. </doc>
  9156. </method>
  9157. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9158. abstract="false" native="false" synchronized="false"
  9159. static="false" final="false" visibility="public"
  9160. deprecated="not deprecated">
  9161. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9162. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9163. <param name="flags" type="java.util.EnumSet"/>
  9164. <param name="bufferSize" type="int"/>
  9165. <param name="replication" type="short"/>
  9166. <param name="blockSize" type="long"/>
  9167. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9168. <exception name="IOException" type="java.io.IOException"/>
  9169. <doc>
  9170. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9171. reporting. Same as create(), except fails if parent directory doesn't
  9172. already exist.
  9173. @param f the file name to open
  9174. @param permission file permission
  9175. @param flags {@link CreateFlag}s to use for this stream.
  9176. @param bufferSize the size of the buffer to be used.
  9177. @param replication required block replication for the file.
  9178. @param blockSize block size
  9179. @param progress the progress reporter
  9180. @throws IOException IO failure
  9181. @see #setPermission(Path, FsPermission)]]>
  9182. </doc>
  9183. </method>
  9184. <method name="createNewFile" return="boolean"
  9185. abstract="false" native="false" synchronized="false"
  9186. static="false" final="false" visibility="public"
  9187. deprecated="not deprecated">
  9188. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9189. <exception name="IOException" type="java.io.IOException"/>
  9190. <doc>
  9191. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  9192. create fails, or if it already existed, return false.
  9193. <i>Important: the default implementation is not atomic</i>
  9194. @param f path to use for create
  9195. @throws IOException IO failure]]>
  9196. </doc>
  9197. </method>
  9198. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9199. abstract="false" native="false" synchronized="false"
  9200. static="false" final="false" visibility="public"
  9201. deprecated="not deprecated">
  9202. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9203. <exception name="IOException" type="java.io.IOException"/>
  9204. <doc>
  9205. <![CDATA[Append to an existing file (optional operation).
  9206. Same as
  9207. {@code append(f, getConf().getInt(IO_FILE_BUFFER_SIZE_KEY,
  9208. IO_FILE_BUFFER_SIZE_DEFAULT), null)}
  9209. @param f the existing file to be appended.
  9210. @throws IOException IO failure
  9211. @throws UnsupportedOperationException if the operation is unsupported
  9212. (default).]]>
  9213. </doc>
  9214. </method>
  9215. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9216. abstract="false" native="false" synchronized="false"
  9217. static="false" final="false" visibility="public"
  9218. deprecated="not deprecated">
  9219. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9220. <param name="bufferSize" type="int"/>
  9221. <exception name="IOException" type="java.io.IOException"/>
  9222. <doc>
  9223. <![CDATA[Append to an existing file (optional operation).
  9224. Same as append(f, bufferSize, null).
  9225. @param f the existing file to be appended.
  9226. @param bufferSize the size of the buffer to be used.
  9227. @throws IOException IO failure
  9228. @throws UnsupportedOperationException if the operation is unsupported
  9229. (default).]]>
  9230. </doc>
  9231. </method>
  9232. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9233. abstract="true" native="false" synchronized="false"
  9234. static="false" final="false" visibility="public"
  9235. deprecated="not deprecated">
  9236. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9237. <param name="bufferSize" type="int"/>
  9238. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9239. <exception name="IOException" type="java.io.IOException"/>
  9240. <doc>
  9241. <![CDATA[Append to an existing file (optional operation).
  9242. @param f the existing file to be appended.
  9243. @param bufferSize the size of the buffer to be used.
  9244. @param progress for reporting progress if it is not null.
  9245. @throws IOException IO failure
  9246. @throws UnsupportedOperationException if the operation is unsupported
  9247. (default).]]>
  9248. </doc>
  9249. </method>
  9250. <method name="concat"
  9251. abstract="false" native="false" synchronized="false"
  9252. static="false" final="false" visibility="public"
  9253. deprecated="not deprecated">
  9254. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  9255. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  9256. <exception name="IOException" type="java.io.IOException"/>
  9257. <doc>
  9258. <![CDATA[Concat existing files together.
  9259. @param trg the path to the target destination.
  9260. @param psrcs the paths to the sources to use for the concatenation.
  9261. @throws IOException IO failure
  9262. @throws UnsupportedOperationException if the operation is unsupported
  9263. (default).]]>
  9264. </doc>
  9265. </method>
  9266. <method name="getReplication" return="short"
  9267. abstract="false" native="false" synchronized="false"
  9268. static="false" final="false" visibility="public"
  9269. deprecated="Use {@link #getFileStatus(Path)} instead">
  9270. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9271. <exception name="IOException" type="java.io.IOException"/>
  9272. <doc>
  9273. <![CDATA[Get the replication factor.
  9274. @deprecated Use {@link #getFileStatus(Path)} instead
  9275. @param src file name
  9276. @return file replication
  9277. @throws FileNotFoundException if the path does not resolve.
  9278. @throws IOException an IO failure]]>
  9279. </doc>
  9280. </method>
  9281. <method name="setReplication" return="boolean"
  9282. abstract="false" native="false" synchronized="false"
  9283. static="false" final="false" visibility="public"
  9284. deprecated="not deprecated">
  9285. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9286. <param name="replication" type="short"/>
  9287. <exception name="IOException" type="java.io.IOException"/>
  9288. <doc>
  9289. <![CDATA[Set the replication for an existing file.
  9290. If a filesystem does not support replication, it will always
  9291. return true: the check for a file existing may be bypassed.
  9292. This is the default behavior.
  9293. @param src file name
  9294. @param replication new replication
  9295. @throws IOException
  9296. @return true if successful, or the feature in unsupported;
  9297. false if replication is supported but the file does not exist,
  9298. or is a directory]]>
  9299. </doc>
  9300. </method>
  9301. <method name="rename" return="boolean"
  9302. abstract="true" native="false" synchronized="false"
  9303. static="false" final="false" visibility="public"
  9304. deprecated="not deprecated">
  9305. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9306. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9307. <exception name="IOException" type="java.io.IOException"/>
  9308. <doc>
  9309. <![CDATA[Renames Path src to Path dst.
  9310. @param src path to be renamed
  9311. @param dst new path after rename
  9312. @throws IOException on failure
  9313. @return true if rename is successful]]>
  9314. </doc>
  9315. </method>
  9316. <method name="rename"
  9317. abstract="false" native="false" synchronized="false"
  9318. static="false" final="false" visibility="protected"
  9319. deprecated="not deprecated">
  9320. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9321. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9322. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  9323. <exception name="IOException" type="java.io.IOException"/>
  9324. <doc>
  9325. <![CDATA[Renames Path src to Path dst
  9326. <ul>
  9327. <li>Fails if src is a file and dst is a directory.</li>
  9328. <li>Fails if src is a directory and dst is a file.</li>
  9329. <li>Fails if the parent of dst does not exist or is a file.</li>
  9330. </ul>
  9331. <p>
  9332. If OVERWRITE option is not passed as an argument, rename fails
  9333. if the dst already exists.
  9334. <p>
  9335. If OVERWRITE option is passed as an argument, rename overwrites
  9336. the dst if it is a file or an empty directory. Rename fails if dst is
  9337. a non-empty directory.
  9338. <p>
  9339. Note that atomicity of rename is dependent on the file system
  9340. implementation. Please refer to the file system documentation for
  9341. details. This default implementation is non atomic.
  9342. <p>
  9343. This method is deprecated since it is a temporary method added to
  9344. support the transition from FileSystem to FileContext for user
  9345. applications.
  9346. @param src path to be renamed
  9347. @param dst new path after rename
  9348. @throws FileNotFoundException src path does not exist, or the parent
  9349. path of dst does not exist.
  9350. @throws FileAlreadyExistsException dest path exists and is a file
  9351. @throws ParentNotDirectoryException if the parent path of dest is not
  9352. a directory
  9353. @throws IOException on failure]]>
  9354. </doc>
  9355. </method>
  9356. <method name="truncate" return="boolean"
  9357. abstract="false" native="false" synchronized="false"
  9358. static="false" final="false" visibility="public"
  9359. deprecated="not deprecated">
  9360. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9361. <param name="newLength" type="long"/>
  9362. <exception name="IOException" type="java.io.IOException"/>
  9363. <doc>
  9364. <![CDATA[Truncate the file in the indicated path to the indicated size.
  9365. <ul>
  9366. <li>Fails if path is a directory.</li>
  9367. <li>Fails if path does not exist.</li>
  9368. <li>Fails if path is not closed.</li>
  9369. <li>Fails if new size is greater than current size.</li>
  9370. </ul>
  9371. @param f The path to the file to be truncated
  9372. @param newLength The size the file is to be truncated to
  9373. @return <code>true</code> if the file has been truncated to the desired
  9374. <code>newLength</code> and is immediately available to be reused for
  9375. write operations such as <code>append</code>, or
  9376. <code>false</code> if a background process of adjusting the length of
  9377. the last block has been started, and clients should wait for it to
  9378. complete before proceeding with further file updates.
  9379. @throws IOException IO failure
  9380. @throws UnsupportedOperationException if the operation is unsupported
  9381. (default).]]>
  9382. </doc>
  9383. </method>
  9384. <method name="delete" return="boolean"
  9385. abstract="false" native="false" synchronized="false"
  9386. static="false" final="false" visibility="public"
  9387. deprecated="Use {@link #delete(Path, boolean)} instead.">
  9388. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9389. <exception name="IOException" type="java.io.IOException"/>
  9390. <doc>
  9391. <![CDATA[Delete a file/directory.
  9392. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  9393. </doc>
  9394. </method>
  9395. <method name="delete" return="boolean"
  9396. abstract="true" native="false" synchronized="false"
  9397. static="false" final="false" visibility="public"
  9398. deprecated="not deprecated">
  9399. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9400. <param name="recursive" type="boolean"/>
  9401. <exception name="IOException" type="java.io.IOException"/>
  9402. <doc>
  9403. <![CDATA[Delete a file.
  9404. @param f the path to delete.
  9405. @param recursive if path is a directory and set to
  9406. true, the directory is deleted else throws an exception. In
  9407. case of a file the recursive can be set to either true or false.
  9408. @return true if delete is successful else false.
  9409. @throws IOException IO failure]]>
  9410. </doc>
  9411. </method>
  9412. <method name="deleteOnExit" return="boolean"
  9413. abstract="false" native="false" synchronized="false"
  9414. static="false" final="false" visibility="public"
  9415. deprecated="not deprecated">
  9416. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9417. <exception name="IOException" type="java.io.IOException"/>
  9418. <doc>
  9419. <![CDATA[Mark a path to be deleted when its FileSystem is closed.
  9420. When the JVM shuts down cleanly, all cached FileSystem objects will be
  9421. closed automatically. These the marked paths will be deleted as a result.
  9422. If a FileSystem instance is not cached, i.e. has been created with
  9423. {@link #createFileSystem(URI, Configuration)}, then the paths will
  9424. be deleted in when {@link #close()} is called on that instance.
  9425. The path must exist in the filesystem at the time of the method call;
  9426. it does not have to exist at the time of JVM shutdown.
  9427. Notes
  9428. <ol>
  9429. <li>Clean shutdown of the JVM cannot be guaranteed.</li>
  9430. <li>The time to shut down a FileSystem will depends on the number of
  9431. files to delete. For filesystems where the cost of checking
  9432. for the existence of a file/directory and the actual delete operation
  9433. (for example: object stores) is high, the time to shutdown the JVM can be
  9434. significantly extended by over-use of this feature.</li>
  9435. <li>Connectivity problems with a remote filesystem may delay shutdown
  9436. further, and may cause the files to not be deleted.</li>
  9437. </ol>
  9438. @param f the path to delete.
  9439. @return true if deleteOnExit is successful, otherwise false.
  9440. @throws IOException IO failure]]>
  9441. </doc>
  9442. </method>
  9443. <method name="cancelDeleteOnExit" return="boolean"
  9444. abstract="false" native="false" synchronized="false"
  9445. static="false" final="false" visibility="public"
  9446. deprecated="not deprecated">
  9447. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9448. <doc>
  9449. <![CDATA[Cancel the scheduled deletion of the path when the FileSystem is closed.
  9450. @param f the path to cancel deletion
  9451. @return true if the path was found in the delete-on-exit list.]]>
  9452. </doc>
  9453. </method>
  9454. <method name="processDeleteOnExit"
  9455. abstract="false" native="false" synchronized="false"
  9456. static="false" final="false" visibility="protected"
  9457. deprecated="not deprecated">
  9458. <doc>
  9459. <![CDATA[Delete all paths that were marked as delete-on-exit. This recursively
  9460. deletes all files and directories in the specified paths.
  9461. The time to process this operation is {@code O(paths)}, with the actual
  9462. time dependent on the time for existence and deletion operations to
  9463. complete, successfully or not.]]>
  9464. </doc>
  9465. </method>
  9466. <method name="exists" return="boolean"
  9467. abstract="false" native="false" synchronized="false"
  9468. static="false" final="false" visibility="public"
  9469. deprecated="not deprecated">
  9470. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9471. <exception name="IOException" type="java.io.IOException"/>
  9472. <doc>
  9473. <![CDATA[Check if a path exists.
  9474. It is highly discouraged to call this method back to back with other
  9475. {@link #getFileStatus(Path)} calls, as this will involve multiple redundant
  9476. RPC calls in HDFS.
  9477. @param f source path
  9478. @return true if the path exists
  9479. @throws IOException IO failure]]>
  9480. </doc>
  9481. </method>
  9482. <method name="isDirectory" return="boolean"
  9483. abstract="false" native="false" synchronized="false"
  9484. static="false" final="false" visibility="public"
  9485. deprecated="Use {@link #getFileStatus(Path)} instead">
  9486. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9487. <exception name="IOException" type="java.io.IOException"/>
  9488. <doc>
  9489. <![CDATA[True iff the named path is a directory.
  9490. Note: Avoid using this method. Instead reuse the FileStatus
  9491. returned by getFileStatus() or listStatus() methods.
  9492. @param f path to check
  9493. @throws IOException IO failure
  9494. @deprecated Use {@link #getFileStatus(Path)} instead]]>
  9495. </doc>
  9496. </method>
  9497. <method name="isFile" return="boolean"
  9498. abstract="false" native="false" synchronized="false"
  9499. static="false" final="false" visibility="public"
  9500. deprecated="Use {@link #getFileStatus(Path)} instead">
  9501. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9502. <exception name="IOException" type="java.io.IOException"/>
  9503. <doc>
  9504. <![CDATA[True iff the named path is a regular file.
  9505. Note: Avoid using this method. Instead reuse the FileStatus
  9506. returned by {@link #getFileStatus(Path)} or listStatus() methods.
  9507. @param f path to check
  9508. @throws IOException IO failure
  9509. @deprecated Use {@link #getFileStatus(Path)} instead]]>
  9510. </doc>
  9511. </method>
  9512. <method name="getLength" return="long"
  9513. abstract="false" native="false" synchronized="false"
  9514. static="false" final="false" visibility="public"
  9515. deprecated="Use {@link #getFileStatus(Path)} instead.">
  9516. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9517. <exception name="IOException" type="java.io.IOException"/>
  9518. <doc>
  9519. <![CDATA[The number of bytes in a file.
  9520. @return the number of bytes; 0 for a directory
  9521. @deprecated Use {@link #getFileStatus(Path)} instead.
  9522. @throws FileNotFoundException if the path does not resolve
  9523. @throws IOException IO failure]]>
  9524. </doc>
  9525. </method>
  9526. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  9527. abstract="false" native="false" synchronized="false"
  9528. static="false" final="false" visibility="public"
  9529. deprecated="not deprecated">
  9530. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9531. <exception name="IOException" type="java.io.IOException"/>
  9532. <doc>
  9533. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.
  9534. @param f path to use
  9535. @throws FileNotFoundException if the path does not resolve
  9536. @throws IOException IO failure]]>
  9537. </doc>
  9538. </method>
  9539. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  9540. abstract="false" native="false" synchronized="false"
  9541. static="false" final="false" visibility="public"
  9542. deprecated="not deprecated">
  9543. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9544. <exception name="IOException" type="java.io.IOException"/>
  9545. <doc>
  9546. <![CDATA[Return the {@link QuotaUsage} of a given {@link Path}.
  9547. @param f path to use
  9548. @return the quota usage
  9549. @throws IOException IO failure]]>
  9550. </doc>
  9551. </method>
  9552. <method name="setQuota"
  9553. abstract="false" native="false" synchronized="false"
  9554. static="false" final="false" visibility="public"
  9555. deprecated="not deprecated">
  9556. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9557. <param name="namespaceQuota" type="long"/>
  9558. <param name="storagespaceQuota" type="long"/>
  9559. <exception name="IOException" type="java.io.IOException"/>
  9560. <doc>
  9561. <![CDATA[Set quota for the given {@link Path}.
  9562. @param src the target path to set quota for
  9563. @param namespaceQuota the namespace quota (i.e., # of files/directories)
  9564. to set
  9565. @param storagespaceQuota the storage space quota to set
  9566. @throws IOException IO failure]]>
  9567. </doc>
  9568. </method>
  9569. <method name="setQuotaByStorageType"
  9570. abstract="false" native="false" synchronized="false"
  9571. static="false" final="false" visibility="public"
  9572. deprecated="not deprecated">
  9573. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9574. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  9575. <param name="quota" type="long"/>
  9576. <exception name="IOException" type="java.io.IOException"/>
  9577. <doc>
  9578. <![CDATA[Set per storage type quota for the given {@link Path}.
  9579. @param src the target path to set storage type quota for
  9580. @param type the storage type to set
  9581. @param quota the quota to set for the given storage type
  9582. @throws IOException IO failure]]>
  9583. </doc>
  9584. </method>
  9585. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9586. abstract="true" native="false" synchronized="false"
  9587. static="false" final="false" visibility="public"
  9588. deprecated="not deprecated">
  9589. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9590. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9591. <exception name="IOException" type="java.io.IOException"/>
  9592. <doc>
  9593. <![CDATA[List the statuses of the files/directories in the given path if the path is
  9594. a directory.
  9595. <p>
  9596. Does not guarantee to return the List of files/directories status in a
  9597. sorted order.
  9598. <p>
  9599. Will not return null. Expect IOException upon access error.
  9600. @param f given path
  9601. @return the statuses of the files/directories in the given patch
  9602. @throws FileNotFoundException when the path does not exist
  9603. @throws IOException see specific implementation]]>
  9604. </doc>
  9605. </method>
  9606. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  9607. abstract="false" native="false" synchronized="false"
  9608. static="false" final="false" visibility="public"
  9609. deprecated="not deprecated">
  9610. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9611. <exception name="IOException" type="java.io.IOException"/>
  9612. <doc>
  9613. <![CDATA[List corrupted file blocks.
  9614. @return an iterator over the corrupt files under the given path
  9615. (may contain duplicates if a file has more than one corrupt block)
  9616. @throws UnsupportedOperationException if the operation is unsupported
  9617. (default).
  9618. @throws IOException IO failure]]>
  9619. </doc>
  9620. </method>
  9621. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9622. abstract="false" native="false" synchronized="false"
  9623. static="false" final="false" visibility="public"
  9624. deprecated="not deprecated">
  9625. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9626. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9627. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9628. <exception name="IOException" type="java.io.IOException"/>
  9629. <doc>
  9630. <![CDATA[Filter files/directories in the given path using the user-supplied path
  9631. filter.
  9632. <p>
  9633. Does not guarantee to return the List of files/directories status in a
  9634. sorted order.
  9635. @param f
  9636. a path name
  9637. @param filter
  9638. the user-supplied path filter
  9639. @return an array of FileStatus objects for the files under the given path
  9640. after applying the filter
  9641. @throws FileNotFoundException when the path does not exist
  9642. @throws IOException see specific implementation]]>
  9643. </doc>
  9644. </method>
  9645. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9646. abstract="false" native="false" synchronized="false"
  9647. static="false" final="false" visibility="public"
  9648. deprecated="not deprecated">
  9649. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  9650. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9651. <exception name="IOException" type="java.io.IOException"/>
  9652. <doc>
  9653. <![CDATA[Filter files/directories in the given list of paths using default
  9654. path filter.
  9655. <p>
  9656. Does not guarantee to return the List of files/directories status in a
  9657. sorted order.
  9658. @param files
  9659. a list of paths
  9660. @return a list of statuses for the files under the given paths after
  9661. applying the filter default Path filter
  9662. @throws FileNotFoundException when the path does not exist
  9663. @throws IOException see specific implementation]]>
  9664. </doc>
  9665. </method>
  9666. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9667. abstract="false" native="false" synchronized="false"
  9668. static="false" final="false" visibility="public"
  9669. deprecated="not deprecated">
  9670. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  9671. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9672. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9673. <exception name="IOException" type="java.io.IOException"/>
  9674. <doc>
  9675. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  9676. path filter.
  9677. <p>
  9678. Does not guarantee to return the List of files/directories status in a
  9679. sorted order.
  9680. @param files
  9681. a list of paths
  9682. @param filter
  9683. the user-supplied path filter
  9684. @return a list of statuses for the files under the given paths after
  9685. applying the filter
  9686. @throws FileNotFoundException when the path does not exist
  9687. @throws IOException see specific implementation]]>
  9688. </doc>
  9689. </method>
  9690. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9691. abstract="false" native="false" synchronized="false"
  9692. static="false" final="false" visibility="public"
  9693. deprecated="not deprecated">
  9694. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  9695. <exception name="IOException" type="java.io.IOException"/>
  9696. <doc>
  9697. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  9698. files. Results are sorted by their names.
  9699. <p>
  9700. A filename pattern is composed of <i>regular</i> characters and
  9701. <i>special pattern matching</i> characters, which are:
  9702. <dl>
  9703. <dd>
  9704. <dl>
  9705. <p>
  9706. <dt> <tt> ? </tt>
  9707. <dd> Matches any single character.
  9708. <p>
  9709. <dt> <tt> * </tt>
  9710. <dd> Matches zero or more characters.
  9711. <p>
  9712. <dt> <tt> [<i>abc</i>] </tt>
  9713. <dd> Matches a single character from character set
  9714. <tt>{<i>a,b,c</i>}</tt>.
  9715. <p>
  9716. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  9717. <dd> Matches a single character from the character range
  9718. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  9719. lexicographically less than or equal to character <tt><i>b</i></tt>.
  9720. <p>
  9721. <dt> <tt> [^<i>a</i>] </tt>
  9722. <dd> Matches a single character that is not from character set or range
  9723. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  9724. immediately to the right of the opening bracket.
  9725. <p>
  9726. <dt> <tt> \<i>c</i> </tt>
  9727. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  9728. <p>
  9729. <dt> <tt> {ab,cd} </tt>
  9730. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  9731. <p>
  9732. <dt> <tt> {ab,c{de,fh}} </tt>
  9733. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  9734. </dl>
  9735. </dd>
  9736. </dl>
  9737. @param pathPattern a glob specifying a path pattern
  9738. @return an array of paths that match the path pattern
  9739. @throws IOException IO failure]]>
  9740. </doc>
  9741. </method>
  9742. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9743. abstract="false" native="false" synchronized="false"
  9744. static="false" final="false" visibility="public"
  9745. deprecated="not deprecated">
  9746. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  9747. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9748. <exception name="IOException" type="java.io.IOException"/>
  9749. <doc>
  9750. <![CDATA[Return an array of {@link FileStatus} objects whose path names match
  9751. {@code pathPattern} and is accepted by the user-supplied path filter.
  9752. Results are sorted by their path names.
  9753. @param pathPattern a glob specifying the path pattern
  9754. @param filter a user-supplied path filter
  9755. @return null if {@code pathPattern} has no glob and the path does not exist
  9756. an empty array if {@code pathPattern} has a glob and no path
  9757. matches it else an array of {@link FileStatus} objects matching the
  9758. pattern
  9759. @throws IOException if any I/O error occurs when fetching file status]]>
  9760. </doc>
  9761. </method>
  9762. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9763. abstract="false" native="false" synchronized="false"
  9764. static="false" final="false" visibility="public"
  9765. deprecated="not deprecated">
  9766. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9767. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9768. <exception name="IOException" type="java.io.IOException"/>
  9769. <doc>
  9770. <![CDATA[List the statuses of the files/directories in the given path if the path is
  9771. a directory.
  9772. Return the file's status and block locations If the path is a file.
  9773. If a returned status is a file, it contains the file's block locations.
  9774. @param f is the path
  9775. @return an iterator that traverses statuses of the files/directories
  9776. in the given path
  9777. @throws FileNotFoundException If <code>f</code> does not exist
  9778. @throws IOException If an I/O error occurred]]>
  9779. </doc>
  9780. </method>
  9781. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9782. abstract="false" native="false" synchronized="false"
  9783. static="false" final="false" visibility="protected"
  9784. deprecated="not deprecated">
  9785. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9786. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9787. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9788. <exception name="IOException" type="java.io.IOException"/>
  9789. <doc>
  9790. <![CDATA[List a directory.
  9791. The returned results include its block location if it is a file
  9792. The results are filtered by the given path filter
  9793. @param f a path
  9794. @param filter a path filter
  9795. @return an iterator that traverses statuses of the files/directories
  9796. in the given path
  9797. @throws FileNotFoundException if <code>f</code> does not exist
  9798. @throws IOException if any I/O error occurred]]>
  9799. </doc>
  9800. </method>
  9801. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  9802. abstract="false" native="false" synchronized="false"
  9803. static="false" final="false" visibility="public"
  9804. deprecated="not deprecated">
  9805. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9806. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9807. <exception name="IOException" type="java.io.IOException"/>
  9808. <doc>
  9809. <![CDATA[Returns a remote iterator so that followup calls are made on demand
  9810. while consuming the entries. Each FileSystem implementation should
  9811. override this method and provide a more efficient implementation, if
  9812. possible.
  9813. Does not guarantee to return the iterator that traverses statuses
  9814. of the files in a sorted order.
  9815. @param p target path
  9816. @return remote iterator
  9817. @throws FileNotFoundException if <code>p</code> does not exist
  9818. @throws IOException if any I/O error occurred]]>
  9819. </doc>
  9820. </method>
  9821. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  9822. abstract="false" native="false" synchronized="false"
  9823. static="false" final="false" visibility="public"
  9824. deprecated="not deprecated">
  9825. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9826. <param name="recursive" type="boolean"/>
  9827. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9828. <exception name="IOException" type="java.io.IOException"/>
  9829. <doc>
  9830. <![CDATA[List the statuses and block locations of the files in the given path.
  9831. Does not guarantee to return the iterator that traverses statuses
  9832. of the files in a sorted order.
  9833. <pre>
  9834. If the path is a directory,
  9835. if recursive is false, returns files in the directory;
  9836. if recursive is true, return files in the subtree rooted at the path.
  9837. If the path is a file, return the file's status and block locations.
  9838. </pre>
  9839. @param f is the path
  9840. @param recursive if the subdirectories need to be traversed recursively
  9841. @return an iterator that traverses statuses of the files
  9842. @throws FileNotFoundException when the path does not exist;
  9843. @throws IOException see specific implementation]]>
  9844. </doc>
  9845. </method>
  9846. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  9847. abstract="false" native="false" synchronized="false"
  9848. static="false" final="false" visibility="public"
  9849. deprecated="not deprecated">
  9850. <doc>
  9851. <![CDATA[Return the current user's home directory in this FileSystem.
  9852. The default implementation returns {@code "/user/$USER/"}.]]>
  9853. </doc>
  9854. </method>
  9855. <method name="setWorkingDirectory"
  9856. abstract="true" native="false" synchronized="false"
  9857. static="false" final="false" visibility="public"
  9858. deprecated="not deprecated">
  9859. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  9860. <doc>
  9861. <![CDATA[Set the current working directory for the given FileSystem. All relative
  9862. paths will be resolved relative to it.
  9863. @param new_dir Path of new working directory]]>
  9864. </doc>
  9865. </method>
  9866. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9867. abstract="true" native="false" synchronized="false"
  9868. static="false" final="false" visibility="public"
  9869. deprecated="not deprecated">
  9870. <doc>
  9871. <![CDATA[Get the current working directory for the given FileSystem
  9872. @return the directory pathname]]>
  9873. </doc>
  9874. </method>
  9875. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9876. abstract="false" native="false" synchronized="false"
  9877. static="false" final="false" visibility="protected"
  9878. deprecated="not deprecated">
  9879. <doc>
  9880. <![CDATA[Note: with the new FileContext class, getWorkingDirectory()
  9881. will be removed.
  9882. The working directory is implemented in FileContext.
  9883. Some FileSystems like LocalFileSystem have an initial workingDir
  9884. that we use as the starting workingDir. For other file systems
  9885. like HDFS there is no built in notion of an initial workingDir.
  9886. @return if there is built in notion of workingDir then it
  9887. is returned; else a null is returned.]]>
  9888. </doc>
  9889. </method>
  9890. <method name="mkdirs" return="boolean"
  9891. abstract="false" native="false" synchronized="false"
  9892. static="false" final="false" visibility="public"
  9893. deprecated="not deprecated">
  9894. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9895. <exception name="IOException" type="java.io.IOException"/>
  9896. <doc>
  9897. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.
  9898. @param f path
  9899. @return true if the directory was created
  9900. @throws IOException IO failure]]>
  9901. </doc>
  9902. </method>
  9903. <method name="mkdirs" return="boolean"
  9904. abstract="true" native="false" synchronized="false"
  9905. static="false" final="false" visibility="public"
  9906. deprecated="not deprecated">
  9907. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9908. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9909. <exception name="IOException" type="java.io.IOException"/>
  9910. <doc>
  9911. <![CDATA[Make the given file and all non-existent parents into
  9912. directories. Has roughly the semantics of Unix @{code mkdir -p}.
  9913. Existence of the directory hierarchy is not an error.
  9914. @param f path to create
  9915. @param permission to apply to f
  9916. @throws IOException IO failure]]>
  9917. </doc>
  9918. </method>
  9919. <method name="copyFromLocalFile"
  9920. abstract="false" native="false" synchronized="false"
  9921. static="false" final="false" visibility="public"
  9922. deprecated="not deprecated">
  9923. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9924. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9925. <exception name="IOException" type="java.io.IOException"/>
  9926. <doc>
  9927. <![CDATA[The src file is on the local disk. Add it to filesystem at
  9928. the given dst name and the source is kept intact afterwards
  9929. @param src path
  9930. @param dst path
  9931. @throws IOException IO failure]]>
  9932. </doc>
  9933. </method>
  9934. <method name="moveFromLocalFile"
  9935. abstract="false" native="false" synchronized="false"
  9936. static="false" final="false" visibility="public"
  9937. deprecated="not deprecated">
  9938. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9939. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9940. <exception name="IOException" type="java.io.IOException"/>
  9941. <doc>
  9942. <![CDATA[The src files is on the local disk. Add it to filesystem at
  9943. the given dst name, removing the source afterwards.
  9944. @param srcs source paths
  9945. @param dst path
  9946. @throws IOException IO failure]]>
  9947. </doc>
  9948. </method>
  9949. <method name="moveFromLocalFile"
  9950. abstract="false" native="false" synchronized="false"
  9951. static="false" final="false" visibility="public"
  9952. deprecated="not deprecated">
  9953. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9954. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9955. <exception name="IOException" type="java.io.IOException"/>
  9956. <doc>
  9957. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  9958. the given dst name, removing the source afterwards.
  9959. @param src local path
  9960. @param dst path
  9961. @throws IOException IO failure]]>
  9962. </doc>
  9963. </method>
  9964. <method name="copyFromLocalFile"
  9965. abstract="false" native="false" synchronized="false"
  9966. static="false" final="false" visibility="public"
  9967. deprecated="not deprecated">
  9968. <param name="delSrc" type="boolean"/>
  9969. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9970. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9971. <exception name="IOException" type="java.io.IOException"/>
  9972. <doc>
  9973. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  9974. the given dst name.
  9975. delSrc indicates if the source should be removed
  9976. @param delSrc whether to delete the src
  9977. @param src path
  9978. @param dst path]]>
  9979. </doc>
  9980. </method>
  9981. <method name="copyFromLocalFile"
  9982. abstract="false" native="false" synchronized="false"
  9983. static="false" final="false" visibility="public"
  9984. deprecated="not deprecated">
  9985. <param name="delSrc" type="boolean"/>
  9986. <param name="overwrite" type="boolean"/>
  9987. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9988. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9989. <exception name="IOException" type="java.io.IOException"/>
  9990. <doc>
  9991. <![CDATA[The src files are on the local disk. Add it to the filesystem at
  9992. the given dst name.
  9993. delSrc indicates if the source should be removed
  9994. @param delSrc whether to delete the src
  9995. @param overwrite whether to overwrite an existing file
  9996. @param srcs array of paths which are source
  9997. @param dst path
  9998. @throws IOException IO failure]]>
  9999. </doc>
  10000. </method>
  10001. <method name="copyFromLocalFile"
  10002. abstract="false" native="false" synchronized="false"
  10003. static="false" final="false" visibility="public"
  10004. deprecated="not deprecated">
  10005. <param name="delSrc" type="boolean"/>
  10006. <param name="overwrite" type="boolean"/>
  10007. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10008. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10009. <exception name="IOException" type="java.io.IOException"/>
  10010. <doc>
  10011. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  10012. the given dst name.
  10013. delSrc indicates if the source should be removed
  10014. @param delSrc whether to delete the src
  10015. @param overwrite whether to overwrite an existing file
  10016. @param src path
  10017. @param dst path
  10018. @throws IOException IO failure]]>
  10019. </doc>
  10020. </method>
  10021. <method name="copyToLocalFile"
  10022. abstract="false" native="false" synchronized="false"
  10023. static="false" final="false" visibility="public"
  10024. deprecated="not deprecated">
  10025. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10026. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10027. <exception name="IOException" type="java.io.IOException"/>
  10028. <doc>
  10029. <![CDATA[Copy it a file from the remote filesystem to the local one.
  10030. @param src path src file in the remote filesystem
  10031. @param dst path local destination
  10032. @throws IOException IO failure]]>
  10033. </doc>
  10034. </method>
  10035. <method name="moveToLocalFile"
  10036. abstract="false" native="false" synchronized="false"
  10037. static="false" final="false" visibility="public"
  10038. deprecated="not deprecated">
  10039. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10040. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10041. <exception name="IOException" type="java.io.IOException"/>
  10042. <doc>
  10043. <![CDATA[Copy a file to the local filesystem, then delete it from the
  10044. remote filesystem (if successfully copied).
  10045. @param src path src file in the remote filesystem
  10046. @param dst path local destination
  10047. @throws IOException IO failure]]>
  10048. </doc>
  10049. </method>
  10050. <method name="copyToLocalFile"
  10051. abstract="false" native="false" synchronized="false"
  10052. static="false" final="false" visibility="public"
  10053. deprecated="not deprecated">
  10054. <param name="delSrc" type="boolean"/>
  10055. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10056. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10057. <exception name="IOException" type="java.io.IOException"/>
  10058. <doc>
  10059. <![CDATA[Copy it a file from a remote filesystem to the local one.
  10060. delSrc indicates if the src will be removed or not.
  10061. @param delSrc whether to delete the src
  10062. @param src path src file in the remote filesystem
  10063. @param dst path local destination
  10064. @throws IOException IO failure]]>
  10065. </doc>
  10066. </method>
  10067. <method name="copyToLocalFile"
  10068. abstract="false" native="false" synchronized="false"
  10069. static="false" final="false" visibility="public"
  10070. deprecated="not deprecated">
  10071. <param name="delSrc" type="boolean"/>
  10072. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10073. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10074. <param name="useRawLocalFileSystem" type="boolean"/>
  10075. <exception name="IOException" type="java.io.IOException"/>
  10076. <doc>
  10077. <![CDATA[The src file is under this filesystem, and the dst is on the local disk.
  10078. Copy it from the remote filesystem to the local dst name.
  10079. delSrc indicates if the src will be removed
  10080. or not. useRawLocalFileSystem indicates whether to use RawLocalFileSystem
  10081. as the local file system or not. RawLocalFileSystem is non checksumming,
  10082. So, It will not create any crc files at local.
  10083. @param delSrc
  10084. whether to delete the src
  10085. @param src
  10086. path
  10087. @param dst
  10088. path
  10089. @param useRawLocalFileSystem
  10090. whether to use RawLocalFileSystem as local file system or not.
  10091. @throws IOException for any IO error]]>
  10092. </doc>
  10093. </method>
  10094. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  10095. abstract="false" native="false" synchronized="false"
  10096. static="false" final="false" visibility="public"
  10097. deprecated="not deprecated">
  10098. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10099. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10100. <exception name="IOException" type="java.io.IOException"/>
  10101. <doc>
  10102. <![CDATA[Returns a local file that the user can write output to. The caller
  10103. provides both the eventual target name in this FileSystem
  10104. and the local working file path.
  10105. If this FileSystem is local, we write directly into the target. If
  10106. the FileSystem is not local, we write into the tmp local area.
  10107. @param fsOutputFile path of output file
  10108. @param tmpLocalFile path of local tmp file
  10109. @throws IOException IO failure]]>
  10110. </doc>
  10111. </method>
  10112. <method name="completeLocalOutput"
  10113. abstract="false" native="false" synchronized="false"
  10114. static="false" final="false" visibility="public"
  10115. deprecated="not deprecated">
  10116. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10117. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10118. <exception name="IOException" type="java.io.IOException"/>
  10119. <doc>
  10120. <![CDATA[Called when we're all done writing to the target.
  10121. A local FS will do nothing, because we've written to exactly the
  10122. right place.
  10123. A remote FS will copy the contents of tmpLocalFile to the correct target at
  10124. fsOutputFile.
  10125. @param fsOutputFile path of output file
  10126. @param tmpLocalFile path to local tmp file
  10127. @throws IOException IO failure]]>
  10128. </doc>
  10129. </method>
  10130. <method name="close"
  10131. abstract="false" native="false" synchronized="false"
  10132. static="false" final="false" visibility="public"
  10133. deprecated="not deprecated">
  10134. <exception name="IOException" type="java.io.IOException"/>
  10135. <doc>
  10136. <![CDATA[Close this FileSystem instance.
  10137. Will release any held locks, delete all files queued for deletion
  10138. through calls to {@link #deleteOnExit(Path)}, and remove this FS instance
  10139. from the cache, if cached.
  10140. After this operation, the outcome of any method call on this FileSystem
  10141. instance, or any input/output stream created by it is <i>undefined</i>.
  10142. @throws IOException IO failure]]>
  10143. </doc>
  10144. </method>
  10145. <method name="getUsed" return="long"
  10146. abstract="false" native="false" synchronized="false"
  10147. static="false" final="false" visibility="public"
  10148. deprecated="not deprecated">
  10149. <exception name="IOException" type="java.io.IOException"/>
  10150. <doc>
  10151. <![CDATA[Return the total size of all files in the filesystem.
  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. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10160. <exception name="IOException" type="java.io.IOException"/>
  10161. <doc>
  10162. <![CDATA[Return the total size of all files from a specified path.
  10163. @throws IOException IO failure]]>
  10164. </doc>
  10165. </method>
  10166. <method name="getBlockSize" return="long"
  10167. abstract="false" native="false" synchronized="false"
  10168. static="false" final="false" visibility="public"
  10169. deprecated="Use {@link #getFileStatus(Path)} instead">
  10170. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10171. <exception name="IOException" type="java.io.IOException"/>
  10172. <doc>
  10173. <![CDATA[Get the block size for a particular file.
  10174. @param f the filename
  10175. @return the number of bytes in a block
  10176. @deprecated Use {@link #getFileStatus(Path)} instead
  10177. @throws FileNotFoundException if the path is not present
  10178. @throws IOException IO failure]]>
  10179. </doc>
  10180. </method>
  10181. <method name="getDefaultBlockSize" return="long"
  10182. abstract="false" native="false" synchronized="false"
  10183. static="false" final="false" visibility="public"
  10184. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  10185. <doc>
  10186. <![CDATA[Return the number of bytes that large input files should be optimally
  10187. be split into to minimize I/O time.
  10188. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  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="not deprecated">
  10195. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10196. <doc>
  10197. <![CDATA[Return the number of bytes that large input files should be optimally
  10198. be split into to minimize I/O time. The given path will be used to
  10199. locate the actual filesystem. The full path does not have to exist.
  10200. @param f path of file
  10201. @return the default block size for the path's filesystem]]>
  10202. </doc>
  10203. </method>
  10204. <method name="getDefaultReplication" return="short"
  10205. abstract="false" native="false" synchronized="false"
  10206. static="false" final="false" visibility="public"
  10207. deprecated="use {@link #getDefaultReplication(Path)} instead">
  10208. <doc>
  10209. <![CDATA[Get the default replication.
  10210. @return the replication; the default value is "1".
  10211. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  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="not deprecated">
  10218. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10219. <doc>
  10220. <![CDATA[Get the default replication for a path.
  10221. The given path will be used to locate the actual FileSystem to query.
  10222. The full path does not have to exist.
  10223. @param path of the file
  10224. @return default replication for the path's filesystem]]>
  10225. </doc>
  10226. </method>
  10227. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  10228. abstract="true" native="false" synchronized="false"
  10229. static="false" final="false" visibility="public"
  10230. deprecated="not deprecated">
  10231. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10232. <exception name="IOException" type="java.io.IOException"/>
  10233. <doc>
  10234. <![CDATA[Return a file status object that represents the path.
  10235. @param f The path we want information from
  10236. @return a FileStatus object
  10237. @throws FileNotFoundException when the path does not exist
  10238. @throws IOException see specific implementation]]>
  10239. </doc>
  10240. </method>
  10241. <method name="msync"
  10242. abstract="false" native="false" synchronized="false"
  10243. static="false" final="false" visibility="public"
  10244. deprecated="not deprecated">
  10245. <exception name="IOException" type="java.io.IOException"/>
  10246. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  10247. <doc>
  10248. <![CDATA[Synchronize client metadata state.
  10249. <p>
  10250. In some FileSystem implementations such as HDFS metadata
  10251. synchronization is essential to guarantee consistency of read requests
  10252. particularly in HA setting.
  10253. @throws IOException
  10254. @throws UnsupportedOperationException]]>
  10255. </doc>
  10256. </method>
  10257. <method name="fixRelativePart" return="org.apache.hadoop.fs.Path"
  10258. abstract="false" native="false" synchronized="false"
  10259. static="false" final="false" visibility="protected"
  10260. deprecated="not deprecated">
  10261. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10262. <doc>
  10263. <![CDATA[See {@link FileContext#fixRelativePart}.]]>
  10264. </doc>
  10265. </method>
  10266. <method name="createSymlink"
  10267. abstract="false" native="false" synchronized="false"
  10268. static="false" final="false" visibility="public"
  10269. deprecated="not deprecated">
  10270. <param name="target" type="org.apache.hadoop.fs.Path"/>
  10271. <param name="link" type="org.apache.hadoop.fs.Path"/>
  10272. <param name="createParent" type="boolean"/>
  10273. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10274. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  10275. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10276. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  10277. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10278. <exception name="IOException" type="java.io.IOException"/>
  10279. <doc>
  10280. <![CDATA[See {@link FileContext#createSymlink(Path, Path, boolean)}.]]>
  10281. </doc>
  10282. </method>
  10283. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  10284. abstract="false" native="false" synchronized="false"
  10285. static="false" final="false" visibility="public"
  10286. deprecated="not deprecated">
  10287. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10288. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10289. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10290. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10291. <exception name="IOException" type="java.io.IOException"/>
  10292. <doc>
  10293. <![CDATA[See {@link FileContext#getFileLinkStatus(Path)}.
  10294. @throws FileNotFoundException when the path does not exist
  10295. @throws IOException see specific implementation]]>
  10296. </doc>
  10297. </method>
  10298. <method name="supportsSymlinks" return="boolean"
  10299. abstract="false" native="false" synchronized="false"
  10300. static="false" final="false" visibility="public"
  10301. deprecated="not deprecated">
  10302. <doc>
  10303. <![CDATA[See {@link AbstractFileSystem#supportsSymlinks()}.]]>
  10304. </doc>
  10305. </method>
  10306. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  10307. abstract="false" native="false" synchronized="false"
  10308. static="false" final="false" visibility="public"
  10309. deprecated="not deprecated">
  10310. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10311. <exception name="IOException" type="java.io.IOException"/>
  10312. <doc>
  10313. <![CDATA[See {@link FileContext#getLinkTarget(Path)}.
  10314. @throws UnsupportedOperationException if the operation is unsupported
  10315. (default outcome).]]>
  10316. </doc>
  10317. </method>
  10318. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  10319. abstract="false" native="false" synchronized="false"
  10320. static="false" final="false" visibility="protected"
  10321. deprecated="not deprecated">
  10322. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10323. <exception name="IOException" type="java.io.IOException"/>
  10324. <doc>
  10325. <![CDATA[See {@link AbstractFileSystem#getLinkTarget(Path)}.
  10326. @throws UnsupportedOperationException if the operation is unsupported
  10327. (default outcome).]]>
  10328. </doc>
  10329. </method>
  10330. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10331. abstract="false" native="false" synchronized="false"
  10332. static="false" final="false" visibility="public"
  10333. deprecated="not deprecated">
  10334. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10335. <exception name="IOException" type="java.io.IOException"/>
  10336. <doc>
  10337. <![CDATA[Get the checksum of a file, if the FS supports checksums.
  10338. @param f The file path
  10339. @return The file checksum. The default return value is null,
  10340. which indicates that no checksum algorithm is implemented
  10341. in the corresponding FileSystem.
  10342. @throws IOException IO failure]]>
  10343. </doc>
  10344. </method>
  10345. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10346. abstract="false" native="false" synchronized="false"
  10347. static="false" final="false" visibility="public"
  10348. deprecated="not deprecated">
  10349. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10350. <param name="length" type="long"/>
  10351. <exception name="IOException" type="java.io.IOException"/>
  10352. <doc>
  10353. <![CDATA[Get the checksum of a file, from the beginning of the file till the
  10354. specific length.
  10355. @param f The file path
  10356. @param length The length of the file range for checksum calculation
  10357. @return The file checksum or null if checksums are not supported.
  10358. @throws IOException IO failure]]>
  10359. </doc>
  10360. </method>
  10361. <method name="setVerifyChecksum"
  10362. abstract="false" native="false" synchronized="false"
  10363. static="false" final="false" visibility="public"
  10364. deprecated="not deprecated">
  10365. <param name="verifyChecksum" type="boolean"/>
  10366. <doc>
  10367. <![CDATA[Set the verify checksum flag. This is only applicable if the
  10368. corresponding filesystem supports checksums.
  10369. By default doesn't do anything.
  10370. @param verifyChecksum Verify checksum flag]]>
  10371. </doc>
  10372. </method>
  10373. <method name="setWriteChecksum"
  10374. abstract="false" native="false" synchronized="false"
  10375. static="false" final="false" visibility="public"
  10376. deprecated="not deprecated">
  10377. <param name="writeChecksum" type="boolean"/>
  10378. <doc>
  10379. <![CDATA[Set the write checksum flag. This is only applicable if the
  10380. corresponding filesystem supports checksums.
  10381. By default doesn't do anything.
  10382. @param writeChecksum Write checksum flag]]>
  10383. </doc>
  10384. </method>
  10385. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  10386. abstract="false" native="false" synchronized="false"
  10387. static="false" final="false" visibility="public"
  10388. deprecated="not deprecated">
  10389. <exception name="IOException" type="java.io.IOException"/>
  10390. <doc>
  10391. <![CDATA[Returns a status object describing the use and capacity of the
  10392. filesystem. If the filesystem has multiple partitions, the
  10393. use and capacity of the root partition is reflected.
  10394. @return a FsStatus object
  10395. @throws IOException
  10396. see specific implementation]]>
  10397. </doc>
  10398. </method>
  10399. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  10400. abstract="false" native="false" synchronized="false"
  10401. static="false" final="false" visibility="public"
  10402. deprecated="not deprecated">
  10403. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10404. <exception name="IOException" type="java.io.IOException"/>
  10405. <doc>
  10406. <![CDATA[Returns a status object describing the use and capacity of the
  10407. filesystem. If the filesystem has multiple partitions, the
  10408. use and capacity of the partition pointed to by the specified
  10409. path is reflected.
  10410. @param p Path for which status should be obtained. null means
  10411. the default partition.
  10412. @return a FsStatus object
  10413. @throws IOException
  10414. see specific implementation]]>
  10415. </doc>
  10416. </method>
  10417. <method name="setPermission"
  10418. abstract="false" native="false" synchronized="false"
  10419. static="false" final="false" visibility="public"
  10420. deprecated="not deprecated">
  10421. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10422. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10423. <exception name="IOException" type="java.io.IOException"/>
  10424. <doc>
  10425. <![CDATA[Set permission of a path.
  10426. @param p The path
  10427. @param permission permission
  10428. @throws IOException IO failure]]>
  10429. </doc>
  10430. </method>
  10431. <method name="setOwner"
  10432. abstract="false" native="false" synchronized="false"
  10433. static="false" final="false" visibility="public"
  10434. deprecated="not deprecated">
  10435. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10436. <param name="username" type="java.lang.String"/>
  10437. <param name="groupname" type="java.lang.String"/>
  10438. <exception name="IOException" type="java.io.IOException"/>
  10439. <doc>
  10440. <![CDATA[Set owner of a path (i.e. a file or a directory).
  10441. The parameters username and groupname cannot both be null.
  10442. @param p The path
  10443. @param username If it is null, the original username remains unchanged.
  10444. @param groupname If it is null, the original groupname remains unchanged.
  10445. @throws IOException IO failure]]>
  10446. </doc>
  10447. </method>
  10448. <method name="setTimes"
  10449. abstract="false" native="false" synchronized="false"
  10450. static="false" final="false" visibility="public"
  10451. deprecated="not deprecated">
  10452. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10453. <param name="mtime" type="long"/>
  10454. <param name="atime" type="long"/>
  10455. <exception name="IOException" type="java.io.IOException"/>
  10456. <doc>
  10457. <![CDATA[Set access time of a file.
  10458. @param p The path
  10459. @param mtime Set the modification time of this file.
  10460. The number of milliseconds since Jan 1, 1970.
  10461. A value of -1 means that this call should not set modification time.
  10462. @param atime Set the access time of this file.
  10463. The number of milliseconds since Jan 1, 1970.
  10464. A value of -1 means that this call should not set access time.
  10465. @throws IOException IO failure]]>
  10466. </doc>
  10467. </method>
  10468. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10469. abstract="false" native="false" synchronized="false"
  10470. static="false" final="true" visibility="public"
  10471. deprecated="not deprecated">
  10472. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10473. <exception name="IOException" type="java.io.IOException"/>
  10474. <doc>
  10475. <![CDATA[Create a snapshot with a default name.
  10476. @param path The directory where snapshots will be taken.
  10477. @return the snapshot path.
  10478. @throws IOException IO failure
  10479. @throws UnsupportedOperationException if the operation is unsupported]]>
  10480. </doc>
  10481. </method>
  10482. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10483. abstract="false" native="false" synchronized="false"
  10484. static="false" final="false" visibility="public"
  10485. deprecated="not deprecated">
  10486. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10487. <param name="snapshotName" type="java.lang.String"/>
  10488. <exception name="IOException" type="java.io.IOException"/>
  10489. <doc>
  10490. <![CDATA[Create a snapshot.
  10491. @param path The directory where snapshots will be taken.
  10492. @param snapshotName The name of the snapshot
  10493. @return the snapshot path.
  10494. @throws IOException IO failure
  10495. @throws UnsupportedOperationException if the operation is unsupported]]>
  10496. </doc>
  10497. </method>
  10498. <method name="renameSnapshot"
  10499. abstract="false" native="false" synchronized="false"
  10500. static="false" final="false" visibility="public"
  10501. deprecated="not deprecated">
  10502. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10503. <param name="snapshotOldName" type="java.lang.String"/>
  10504. <param name="snapshotNewName" type="java.lang.String"/>
  10505. <exception name="IOException" type="java.io.IOException"/>
  10506. <doc>
  10507. <![CDATA[Rename a snapshot.
  10508. @param path The directory path where the snapshot was taken
  10509. @param snapshotOldName Old name of the snapshot
  10510. @param snapshotNewName New name of the snapshot
  10511. @throws IOException IO failure
  10512. @throws UnsupportedOperationException if the operation is unsupported
  10513. (default outcome).]]>
  10514. </doc>
  10515. </method>
  10516. <method name="deleteSnapshot"
  10517. abstract="false" native="false" synchronized="false"
  10518. static="false" final="false" visibility="public"
  10519. deprecated="not deprecated">
  10520. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10521. <param name="snapshotName" type="java.lang.String"/>
  10522. <exception name="IOException" type="java.io.IOException"/>
  10523. <doc>
  10524. <![CDATA[Delete a snapshot of a directory.
  10525. @param path The directory that the to-be-deleted snapshot belongs to
  10526. @param snapshotName The name of the snapshot
  10527. @throws IOException IO failure
  10528. @throws UnsupportedOperationException if the operation is unsupported
  10529. (default outcome).]]>
  10530. </doc>
  10531. </method>
  10532. <method name="modifyAclEntries"
  10533. abstract="false" native="false" synchronized="false"
  10534. static="false" final="false" visibility="public"
  10535. deprecated="not deprecated">
  10536. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10537. <param name="aclSpec" type="java.util.List"/>
  10538. <exception name="IOException" type="java.io.IOException"/>
  10539. <doc>
  10540. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  10541. entries or modify the permissions on existing ACL entries. All existing
  10542. ACL entries that are not specified in this call are retained without
  10543. changes. (Modifications are merged into the current ACL.)
  10544. @param path Path to modify
  10545. @param aclSpec List<AclEntry> describing modifications
  10546. @throws IOException if an ACL could not be modified
  10547. @throws UnsupportedOperationException if the operation is unsupported
  10548. (default outcome).]]>
  10549. </doc>
  10550. </method>
  10551. <method name="removeAclEntries"
  10552. abstract="false" native="false" synchronized="false"
  10553. static="false" final="false" visibility="public"
  10554. deprecated="not deprecated">
  10555. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10556. <param name="aclSpec" type="java.util.List"/>
  10557. <exception name="IOException" type="java.io.IOException"/>
  10558. <doc>
  10559. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  10560. retained.
  10561. @param path Path to modify
  10562. @param aclSpec List describing entries to remove
  10563. @throws IOException if an ACL could not be modified
  10564. @throws UnsupportedOperationException if the operation is unsupported
  10565. (default outcome).]]>
  10566. </doc>
  10567. </method>
  10568. <method name="removeDefaultAcl"
  10569. abstract="false" native="false" synchronized="false"
  10570. static="false" final="false" visibility="public"
  10571. deprecated="not deprecated">
  10572. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10573. <exception name="IOException" type="java.io.IOException"/>
  10574. <doc>
  10575. <![CDATA[Removes all default ACL entries from files and directories.
  10576. @param path Path to modify
  10577. @throws IOException if an ACL could not be modified
  10578. @throws UnsupportedOperationException if the operation is unsupported
  10579. (default outcome).]]>
  10580. </doc>
  10581. </method>
  10582. <method name="removeAcl"
  10583. abstract="false" native="false" synchronized="false"
  10584. static="false" final="false" visibility="public"
  10585. deprecated="not deprecated">
  10586. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10587. <exception name="IOException" type="java.io.IOException"/>
  10588. <doc>
  10589. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  10590. for user, group, and others are retained for compatibility with permission
  10591. bits.
  10592. @param path Path to modify
  10593. @throws IOException if an ACL could not be removed
  10594. @throws UnsupportedOperationException if the operation is unsupported
  10595. (default outcome).]]>
  10596. </doc>
  10597. </method>
  10598. <method name="setAcl"
  10599. abstract="false" native="false" synchronized="false"
  10600. static="false" final="false" visibility="public"
  10601. deprecated="not deprecated">
  10602. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10603. <param name="aclSpec" type="java.util.List"/>
  10604. <exception name="IOException" type="java.io.IOException"/>
  10605. <doc>
  10606. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  10607. entries.
  10608. @param path Path to modify
  10609. @param aclSpec List describing modifications, which must include entries
  10610. for user, group, and others for compatibility with permission bits.
  10611. @throws IOException if an ACL could not be modified
  10612. @throws UnsupportedOperationException if the operation is unsupported
  10613. (default outcome).]]>
  10614. </doc>
  10615. </method>
  10616. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  10617. abstract="false" native="false" synchronized="false"
  10618. static="false" final="false" visibility="public"
  10619. deprecated="not deprecated">
  10620. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10621. <exception name="IOException" type="java.io.IOException"/>
  10622. <doc>
  10623. <![CDATA[Gets the ACL of a file or directory.
  10624. @param path Path to get
  10625. @return AclStatus describing the ACL of the file or directory
  10626. @throws IOException if an ACL could not be read
  10627. @throws UnsupportedOperationException if the operation is unsupported
  10628. (default outcome).]]>
  10629. </doc>
  10630. </method>
  10631. <method name="setXAttr"
  10632. abstract="false" native="false" synchronized="false"
  10633. static="false" final="false" visibility="public"
  10634. deprecated="not deprecated">
  10635. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10636. <param name="name" type="java.lang.String"/>
  10637. <param name="value" type="byte[]"/>
  10638. <exception name="IOException" type="java.io.IOException"/>
  10639. <doc>
  10640. <![CDATA[Set an xattr of a file or directory.
  10641. The name must be prefixed with the namespace followed by ".". For example,
  10642. "user.attr".
  10643. <p>
  10644. Refer to the HDFS extended attributes user documentation for details.
  10645. @param path Path to modify
  10646. @param name xattr name.
  10647. @param value xattr value.
  10648. @throws IOException IO failure
  10649. @throws UnsupportedOperationException if the operation is unsupported
  10650. (default outcome).]]>
  10651. </doc>
  10652. </method>
  10653. <method name="setXAttr"
  10654. abstract="false" native="false" synchronized="false"
  10655. static="false" final="false" visibility="public"
  10656. deprecated="not deprecated">
  10657. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10658. <param name="name" type="java.lang.String"/>
  10659. <param name="value" type="byte[]"/>
  10660. <param name="flag" type="java.util.EnumSet"/>
  10661. <exception name="IOException" type="java.io.IOException"/>
  10662. <doc>
  10663. <![CDATA[Set an xattr of a file or directory.
  10664. The name must be prefixed with the namespace followed by ".". For example,
  10665. "user.attr".
  10666. <p>
  10667. Refer to the HDFS extended attributes user documentation for details.
  10668. @param path Path to modify
  10669. @param name xattr name.
  10670. @param value xattr value.
  10671. @param flag xattr set flag
  10672. @throws IOException IO failure
  10673. @throws UnsupportedOperationException if the operation is unsupported
  10674. (default outcome).]]>
  10675. </doc>
  10676. </method>
  10677. <method name="getXAttr" return="byte[]"
  10678. abstract="false" native="false" synchronized="false"
  10679. static="false" final="false" visibility="public"
  10680. deprecated="not deprecated">
  10681. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10682. <param name="name" type="java.lang.String"/>
  10683. <exception name="IOException" type="java.io.IOException"/>
  10684. <doc>
  10685. <![CDATA[Get an xattr name and value for a file or directory.
  10686. The name must be prefixed with the namespace followed by ".". For example,
  10687. "user.attr".
  10688. <p>
  10689. Refer to the HDFS extended attributes user documentation for details.
  10690. @param path Path to get extended attribute
  10691. @param name xattr name.
  10692. @return byte[] xattr value.
  10693. @throws IOException IO failure
  10694. @throws UnsupportedOperationException if the operation is unsupported
  10695. (default outcome).]]>
  10696. </doc>
  10697. </method>
  10698. <method name="getXAttrs" return="java.util.Map"
  10699. abstract="false" native="false" synchronized="false"
  10700. static="false" final="false" visibility="public"
  10701. deprecated="not deprecated">
  10702. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10703. <exception name="IOException" type="java.io.IOException"/>
  10704. <doc>
  10705. <![CDATA[Get all of the xattr name/value pairs for a file or directory.
  10706. Only those xattrs which the logged-in user has permissions to view
  10707. are returned.
  10708. <p>
  10709. Refer to the HDFS extended attributes user documentation for details.
  10710. @param path Path to get extended attributes
  10711. @return Map describing the XAttrs of the file or directory
  10712. @throws IOException IO failure
  10713. @throws UnsupportedOperationException if the operation is unsupported
  10714. (default outcome).]]>
  10715. </doc>
  10716. </method>
  10717. <method name="getXAttrs" return="java.util.Map"
  10718. abstract="false" native="false" synchronized="false"
  10719. static="false" final="false" visibility="public"
  10720. deprecated="not deprecated">
  10721. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10722. <param name="names" type="java.util.List"/>
  10723. <exception name="IOException" type="java.io.IOException"/>
  10724. <doc>
  10725. <![CDATA[Get all of the xattrs name/value pairs for a file or directory.
  10726. Only those xattrs which the logged-in user has permissions to view
  10727. are returned.
  10728. <p>
  10729. Refer to the HDFS extended attributes user documentation for details.
  10730. @param path Path to get extended attributes
  10731. @param names XAttr names.
  10732. @return Map describing the XAttrs of the file or directory
  10733. @throws IOException IO failure
  10734. @throws UnsupportedOperationException if the operation is unsupported
  10735. (default outcome).]]>
  10736. </doc>
  10737. </method>
  10738. <method name="listXAttrs" return="java.util.List"
  10739. abstract="false" native="false" synchronized="false"
  10740. static="false" final="false" visibility="public"
  10741. deprecated="not deprecated">
  10742. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10743. <exception name="IOException" type="java.io.IOException"/>
  10744. <doc>
  10745. <![CDATA[Get all of the xattr names for a file or directory.
  10746. Only those xattr names which the logged-in user has permissions to view
  10747. are returned.
  10748. <p>
  10749. Refer to the HDFS extended attributes user documentation for details.
  10750. @param path Path to get extended attributes
  10751. @return List<String> of the XAttr names of the file or directory
  10752. @throws IOException IO failure
  10753. @throws UnsupportedOperationException if the operation is unsupported
  10754. (default outcome).]]>
  10755. </doc>
  10756. </method>
  10757. <method name="removeXAttr"
  10758. abstract="false" native="false" synchronized="false"
  10759. static="false" final="false" visibility="public"
  10760. deprecated="not deprecated">
  10761. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10762. <param name="name" type="java.lang.String"/>
  10763. <exception name="IOException" type="java.io.IOException"/>
  10764. <doc>
  10765. <![CDATA[Remove an xattr of a file or directory.
  10766. The name must be prefixed with the namespace followed by ".". For example,
  10767. "user.attr".
  10768. <p>
  10769. Refer to the HDFS extended attributes user documentation for details.
  10770. @param path Path to remove extended attribute
  10771. @param name xattr name
  10772. @throws IOException IO failure
  10773. @throws UnsupportedOperationException if the operation is unsupported
  10774. (default outcome).]]>
  10775. </doc>
  10776. </method>
  10777. <method name="satisfyStoragePolicy"
  10778. abstract="false" native="false" synchronized="false"
  10779. static="false" final="false" visibility="public"
  10780. deprecated="not deprecated">
  10781. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10782. <exception name="IOException" type="java.io.IOException"/>
  10783. <doc>
  10784. <![CDATA[Set the source path to satisfy storage policy.
  10785. @param path The source path referring to either a directory or a file.
  10786. @throws IOException]]>
  10787. </doc>
  10788. </method>
  10789. <method name="setStoragePolicy"
  10790. abstract="false" native="false" synchronized="false"
  10791. static="false" final="false" visibility="public"
  10792. deprecated="not deprecated">
  10793. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10794. <param name="policyName" type="java.lang.String"/>
  10795. <exception name="IOException" type="java.io.IOException"/>
  10796. <doc>
  10797. <![CDATA[Set the storage policy for a given file or directory.
  10798. @param src file or directory path.
  10799. @param policyName the name of the target storage policy. The list
  10800. of supported Storage policies can be retrieved
  10801. via {@link #getAllStoragePolicies}.
  10802. @throws IOException IO failure
  10803. @throws UnsupportedOperationException if the operation is unsupported
  10804. (default outcome).]]>
  10805. </doc>
  10806. </method>
  10807. <method name="unsetStoragePolicy"
  10808. abstract="false" native="false" synchronized="false"
  10809. static="false" final="false" visibility="public"
  10810. deprecated="not deprecated">
  10811. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10812. <exception name="IOException" type="java.io.IOException"/>
  10813. <doc>
  10814. <![CDATA[Unset the storage policy set for a given file or directory.
  10815. @param src file or directory path.
  10816. @throws IOException IO failure
  10817. @throws UnsupportedOperationException if the operation is unsupported
  10818. (default outcome).]]>
  10819. </doc>
  10820. </method>
  10821. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  10822. abstract="false" native="false" synchronized="false"
  10823. static="false" final="false" visibility="public"
  10824. deprecated="not deprecated">
  10825. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10826. <exception name="IOException" type="java.io.IOException"/>
  10827. <doc>
  10828. <![CDATA[Query the effective storage policy ID for the given file or directory.
  10829. @param src file or directory path.
  10830. @return storage policy for give file.
  10831. @throws IOException IO failure
  10832. @throws UnsupportedOperationException if the operation is unsupported
  10833. (default outcome).]]>
  10834. </doc>
  10835. </method>
  10836. <method name="getAllStoragePolicies" return="java.util.Collection"
  10837. abstract="false" native="false" synchronized="false"
  10838. static="false" final="false" visibility="public"
  10839. deprecated="not deprecated">
  10840. <exception name="IOException" type="java.io.IOException"/>
  10841. <doc>
  10842. <![CDATA[Retrieve all the storage policies supported by this file system.
  10843. @return all storage policies supported by this filesystem.
  10844. @throws IOException IO failure
  10845. @throws UnsupportedOperationException if the operation is unsupported
  10846. (default outcome).]]>
  10847. </doc>
  10848. </method>
  10849. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  10850. abstract="false" native="false" synchronized="false"
  10851. static="false" final="false" visibility="public"
  10852. deprecated="not deprecated">
  10853. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10854. <doc>
  10855. <![CDATA[Get the root directory of Trash for current user when the path specified
  10856. is deleted.
  10857. @param path the trash root of the path to be determined.
  10858. @return the default implementation returns {@code /user/$USER/.Trash}]]>
  10859. </doc>
  10860. </method>
  10861. <method name="getTrashRoots" return="java.util.Collection"
  10862. abstract="false" native="false" synchronized="false"
  10863. static="false" final="false" visibility="public"
  10864. deprecated="not deprecated">
  10865. <param name="allUsers" type="boolean"/>
  10866. <doc>
  10867. <![CDATA[Get all the trash roots for current user or all users.
  10868. @param allUsers return trash roots for all users if true.
  10869. @return all the trash root directories.
  10870. Default FileSystem returns .Trash under users' home directories if
  10871. {@code /user/$USER/.Trash} exists.]]>
  10872. </doc>
  10873. </method>
  10874. <method name="hasPathCapability" return="boolean"
  10875. abstract="false" native="false" synchronized="false"
  10876. static="false" final="false" visibility="public"
  10877. deprecated="not deprecated">
  10878. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10879. <param name="capability" type="java.lang.String"/>
  10880. <exception name="IOException" type="java.io.IOException"/>
  10881. <doc>
  10882. <![CDATA[The base FileSystem implementation generally has no knowledge
  10883. of the capabilities of actual implementations.
  10884. Unless it has a way to explicitly determine the capabilities,
  10885. this method returns false.
  10886. {@inheritDoc}]]>
  10887. </doc>
  10888. </method>
  10889. <method name="getFileSystemClass" return="java.lang.Class"
  10890. abstract="false" native="false" synchronized="false"
  10891. static="true" final="false" visibility="public"
  10892. deprecated="not deprecated">
  10893. <param name="scheme" type="java.lang.String"/>
  10894. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10895. <exception name="IOException" type="java.io.IOException"/>
  10896. <doc>
  10897. <![CDATA[Get the FileSystem implementation class of a filesystem.
  10898. This triggers a scan and load of all FileSystem implementations listed as
  10899. services and discovered via the {@link ServiceLoader}
  10900. @param scheme URL scheme of FS
  10901. @param conf configuration: can be null, in which case the check for
  10902. a filesystem binding declaration in the configuration is skipped.
  10903. @return the filesystem
  10904. @throws UnsupportedFileSystemException if there was no known implementation
  10905. for the scheme.
  10906. @throws IOException if the filesystem could not be loaded]]>
  10907. </doc>
  10908. </method>
  10909. <method name="getStatistics" return="java.util.Map"
  10910. abstract="false" native="false" synchronized="true"
  10911. static="true" final="false" visibility="public"
  10912. deprecated="use {@link #getGlobalStorageStatistics()}">
  10913. <doc>
  10914. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  10915. @return a Map having a key as URI scheme and value as Statistics object
  10916. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10917. </doc>
  10918. </method>
  10919. <method name="getAllStatistics" return="java.util.List"
  10920. abstract="false" native="false" synchronized="true"
  10921. static="true" final="false" visibility="public"
  10922. deprecated="use {@link #getGlobalStorageStatistics()}">
  10923. <doc>
  10924. <![CDATA[Return the FileSystem classes that have Statistics.
  10925. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10926. </doc>
  10927. </method>
  10928. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  10929. abstract="false" native="false" synchronized="true"
  10930. static="true" final="false" visibility="public"
  10931. deprecated="use {@link #getGlobalStorageStatistics()}">
  10932. <param name="scheme" type="java.lang.String"/>
  10933. <param name="cls" type="java.lang.Class"/>
  10934. <doc>
  10935. <![CDATA[Get the statistics for a particular file system.
  10936. @param cls the class to lookup
  10937. @return a statistics object
  10938. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10939. </doc>
  10940. </method>
  10941. <method name="clearStatistics"
  10942. abstract="false" native="false" synchronized="true"
  10943. static="true" final="false" visibility="public"
  10944. deprecated="not deprecated">
  10945. <doc>
  10946. <![CDATA[Reset all statistics for all file systems.]]>
  10947. </doc>
  10948. </method>
  10949. <method name="printStatistics"
  10950. abstract="false" native="false" synchronized="true"
  10951. static="true" final="false" visibility="public"
  10952. deprecated="not deprecated">
  10953. <exception name="IOException" type="java.io.IOException"/>
  10954. <doc>
  10955. <![CDATA[Print all statistics for all file systems to {@code System.out}]]>
  10956. </doc>
  10957. </method>
  10958. <method name="areSymlinksEnabled" return="boolean"
  10959. abstract="false" native="false" synchronized="false"
  10960. static="true" final="false" visibility="public"
  10961. deprecated="not deprecated">
  10962. </method>
  10963. <method name="enableSymlinks"
  10964. abstract="false" native="false" synchronized="false"
  10965. static="true" final="false" visibility="public"
  10966. deprecated="not deprecated">
  10967. </method>
  10968. <method name="getStorageStatistics" return="org.apache.hadoop.fs.StorageStatistics"
  10969. abstract="false" native="false" synchronized="false"
  10970. static="false" final="false" visibility="public"
  10971. deprecated="not deprecated">
  10972. <doc>
  10973. <![CDATA[Get the StorageStatistics for this FileSystem object. These statistics are
  10974. per-instance. They are not shared with any other FileSystem object.
  10975. <p>This is a default method which is intended to be overridden by
  10976. subclasses. The default implementation returns an empty storage statistics
  10977. object.</p>
  10978. @return The StorageStatistics for this FileSystem instance.
  10979. Will never be null.]]>
  10980. </doc>
  10981. </method>
  10982. <method name="getGlobalStorageStatistics" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  10983. abstract="false" native="false" synchronized="false"
  10984. static="true" final="false" visibility="public"
  10985. deprecated="not deprecated">
  10986. <doc>
  10987. <![CDATA[Get the global storage statistics.]]>
  10988. </doc>
  10989. </method>
  10990. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  10991. abstract="false" native="false" synchronized="false"
  10992. static="false" final="false" visibility="public"
  10993. deprecated="not deprecated">
  10994. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10995. <doc>
  10996. <![CDATA[Create a new FSDataOutputStreamBuilder for the file with path.
  10997. Files are overwritten by default.
  10998. @param path file path
  10999. @return a FSDataOutputStreamBuilder object to build the file
  11000. HADOOP-14384. Temporarily reduce the visibility of method before the
  11001. builder interface becomes stable.]]>
  11002. </doc>
  11003. </method>
  11004. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  11005. abstract="false" native="false" synchronized="false"
  11006. static="false" final="false" visibility="public"
  11007. deprecated="not deprecated">
  11008. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11009. <doc>
  11010. <![CDATA[Create a Builder to append a file.
  11011. @param path file path.
  11012. @return a {@link FSDataOutputStreamBuilder} to build file append request.]]>
  11013. </doc>
  11014. </method>
  11015. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  11016. transient="false" volatile="false"
  11017. static="true" final="true" visibility="public"
  11018. deprecated="not deprecated">
  11019. </field>
  11020. <field name="DEFAULT_FS" type="java.lang.String"
  11021. transient="false" volatile="false"
  11022. static="true" final="true" visibility="public"
  11023. deprecated="not deprecated">
  11024. </field>
  11025. <field name="LOG" type="org.apache.commons.logging.Log"
  11026. transient="false" volatile="false"
  11027. static="true" final="true" visibility="public"
  11028. deprecated="not deprecated">
  11029. <doc>
  11030. <![CDATA[This log is widely used in the org.apache.hadoop.fs code and tests,
  11031. so must be considered something to only be changed with care.]]>
  11032. </doc>
  11033. </field>
  11034. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  11035. transient="false" volatile="false"
  11036. static="true" final="true" visibility="public"
  11037. deprecated="not deprecated">
  11038. <doc>
  11039. <![CDATA[Priority of the FileSystem shutdown hook: {@value}.]]>
  11040. </doc>
  11041. </field>
  11042. <field name="TRASH_PREFIX" type="java.lang.String"
  11043. transient="false" volatile="false"
  11044. static="true" final="true" visibility="public"
  11045. deprecated="not deprecated">
  11046. <doc>
  11047. <![CDATA[Prefix for trash directory: {@value}.]]>
  11048. </doc>
  11049. </field>
  11050. <field name="USER_HOME_PREFIX" type="java.lang.String"
  11051. transient="false" volatile="false"
  11052. static="true" final="true" visibility="public"
  11053. deprecated="not deprecated">
  11054. </field>
  11055. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  11056. transient="false" volatile="false"
  11057. static="false" final="false" visibility="protected"
  11058. deprecated="not deprecated">
  11059. <doc>
  11060. <![CDATA[The statistics for this file system.]]>
  11061. </doc>
  11062. </field>
  11063. <doc>
  11064. <![CDATA[An abstract base class for a fairly generic filesystem. It
  11065. may be implemented as a distributed filesystem, or as a "local"
  11066. one that reflects the locally-connected disk. The local version
  11067. exists for small Hadoop instances and for testing.
  11068. <p>
  11069. All user code that may potentially use the Hadoop Distributed
  11070. File System should be written to use a FileSystem object or its
  11071. successor, {@link FileContext}.
  11072. <p>
  11073. The local implementation is {@link LocalFileSystem} and distributed
  11074. implementation is DistributedFileSystem. There are other implementations
  11075. for object stores and (outside the Apache Hadoop codebase),
  11076. third party filesystems.
  11077. <p>
  11078. Notes
  11079. <ol>
  11080. <li>The behaviour of the filesystem is
  11081. <a href="https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/filesystem/filesystem.html">
  11082. specified in the Hadoop documentation. </a>
  11083. However, the normative specification of the behavior of this class is
  11084. actually HDFS: if HDFS does not behave the way these Javadocs or
  11085. the specification in the Hadoop documentations define, assume that
  11086. the documentation is incorrect.
  11087. </li>
  11088. <li>The term {@code FileSystem} refers to an instance of this class.</li>
  11089. <li>The acronym "FS" is used as an abbreviation of FileSystem.</li>
  11090. <li>The term {@code filesystem} refers to the distributed/local filesystem
  11091. itself, rather than the class used to interact with it.</li>
  11092. <li>The term "file" refers to a file in the remote filesystem,
  11093. rather than instances of {@code java.io.File}.</li>
  11094. </ol>]]>
  11095. </doc>
  11096. </class>
  11097. <!-- end class org.apache.hadoop.fs.FileSystem -->
  11098. <!-- start class org.apache.hadoop.fs.FileUtil -->
  11099. <class name="FileUtil" extends="java.lang.Object"
  11100. abstract="false"
  11101. static="false" final="false" visibility="public"
  11102. deprecated="not deprecated">
  11103. <constructor name="FileUtil"
  11104. static="false" final="false" visibility="public"
  11105. deprecated="not deprecated">
  11106. </constructor>
  11107. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  11108. abstract="false" native="false" synchronized="false"
  11109. static="true" final="false" visibility="public"
  11110. deprecated="not deprecated">
  11111. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  11112. <doc>
  11113. <![CDATA[convert an array of FileStatus to an array of Path
  11114. @param stats
  11115. an array of FileStatus objects
  11116. @return an array of paths corresponding to the input]]>
  11117. </doc>
  11118. </method>
  11119. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  11120. abstract="false" native="false" synchronized="false"
  11121. static="true" final="false" visibility="public"
  11122. deprecated="not deprecated">
  11123. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  11124. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11125. <doc>
  11126. <![CDATA[convert an array of FileStatus to an array of Path.
  11127. If stats if null, return path
  11128. @param stats
  11129. an array of FileStatus objects
  11130. @param path
  11131. default path to return in stats is null
  11132. @return an array of paths corresponding to the input]]>
  11133. </doc>
  11134. </method>
  11135. <method name="fullyDeleteOnExit"
  11136. abstract="false" native="false" synchronized="false"
  11137. static="true" final="false" visibility="public"
  11138. deprecated="not deprecated">
  11139. <param name="file" type="java.io.File"/>
  11140. <doc>
  11141. <![CDATA[Register all files recursively to be deleted on exit.
  11142. @param file File/directory to be deleted]]>
  11143. </doc>
  11144. </method>
  11145. <method name="fullyDelete" return="boolean"
  11146. abstract="false" native="false" synchronized="false"
  11147. static="true" final="false" visibility="public"
  11148. deprecated="not deprecated">
  11149. <param name="dir" type="java.io.File"/>
  11150. <doc>
  11151. <![CDATA[Delete a directory and all its contents. If
  11152. we return false, the directory may be partially-deleted.
  11153. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  11154. to by the symlink is not deleted.
  11155. (2) If dir is symlink to a directory, symlink is deleted. The directory
  11156. pointed to by symlink is not deleted.
  11157. (3) If dir is a normal file, it is deleted.
  11158. (4) If dir is a normal directory, then dir and all its contents recursively
  11159. are deleted.]]>
  11160. </doc>
  11161. </method>
  11162. <method name="fullyDelete" return="boolean"
  11163. abstract="false" native="false" synchronized="false"
  11164. static="true" final="false" visibility="public"
  11165. deprecated="not deprecated">
  11166. <param name="dir" type="java.io.File"/>
  11167. <param name="tryGrantPermissions" type="boolean"/>
  11168. <doc>
  11169. <![CDATA[Delete a directory and all its contents. If
  11170. we return false, the directory may be partially-deleted.
  11171. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  11172. to by the symlink is not deleted.
  11173. (2) If dir is symlink to a directory, symlink is deleted. The directory
  11174. pointed to by symlink is not deleted.
  11175. (3) If dir is a normal file, it is deleted.
  11176. (4) If dir is a normal directory, then dir and all its contents recursively
  11177. are deleted.
  11178. @param dir the file or directory to be deleted
  11179. @param tryGrantPermissions true if permissions should be modified to delete a file.
  11180. @return true on success false on failure.]]>
  11181. </doc>
  11182. </method>
  11183. <method name="readLink" return="java.lang.String"
  11184. abstract="false" native="false" synchronized="false"
  11185. static="true" final="false" visibility="public"
  11186. deprecated="not deprecated">
  11187. <param name="f" type="java.io.File"/>
  11188. <doc>
  11189. <![CDATA[Returns the target of the given symlink. Returns the empty string if
  11190. the given path does not refer to a symlink or there is an error
  11191. accessing the symlink.
  11192. @param f File representing the symbolic link.
  11193. @return The target of the symbolic link, empty string on error or if not
  11194. a symlink.]]>
  11195. </doc>
  11196. </method>
  11197. <method name="fullyDeleteContents" return="boolean"
  11198. abstract="false" native="false" synchronized="false"
  11199. static="true" final="false" visibility="public"
  11200. deprecated="not deprecated">
  11201. <param name="dir" type="java.io.File"/>
  11202. <doc>
  11203. <![CDATA[Delete the contents of a directory, not the directory itself. If
  11204. we return false, the directory may be partially-deleted.
  11205. If dir is a symlink to a directory, all the contents of the actual
  11206. directory pointed to by dir will be deleted.]]>
  11207. </doc>
  11208. </method>
  11209. <method name="fullyDeleteContents" return="boolean"
  11210. abstract="false" native="false" synchronized="false"
  11211. static="true" final="false" visibility="public"
  11212. deprecated="not deprecated">
  11213. <param name="dir" type="java.io.File"/>
  11214. <param name="tryGrantPermissions" type="boolean"/>
  11215. <doc>
  11216. <![CDATA[Delete the contents of a directory, not the directory itself. If
  11217. we return false, the directory may be partially-deleted.
  11218. If dir is a symlink to a directory, all the contents of the actual
  11219. directory pointed to by dir will be deleted.
  11220. @param tryGrantPermissions if 'true', try grant +rwx permissions to this
  11221. and all the underlying directories before trying to delete their contents.]]>
  11222. </doc>
  11223. </method>
  11224. <method name="fullyDelete"
  11225. abstract="false" native="false" synchronized="false"
  11226. static="true" final="false" visibility="public"
  11227. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  11228. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11229. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11230. <exception name="IOException" type="java.io.IOException"/>
  11231. <doc>
  11232. <![CDATA[Recursively delete a directory.
  11233. @param fs {@link FileSystem} on which the path is present
  11234. @param dir directory to recursively delete
  11235. @throws IOException
  11236. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  11237. </doc>
  11238. </method>
  11239. <method name="copy" return="boolean"
  11240. abstract="false" native="false" synchronized="false"
  11241. static="true" final="false" visibility="public"
  11242. deprecated="not deprecated">
  11243. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11244. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11245. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11246. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11247. <param name="deleteSource" type="boolean"/>
  11248. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11249. <exception name="IOException" type="java.io.IOException"/>
  11250. <doc>
  11251. <![CDATA[Copy files between FileSystems.]]>
  11252. </doc>
  11253. </method>
  11254. <method name="copy" return="boolean"
  11255. abstract="false" native="false" synchronized="false"
  11256. static="true" final="false" visibility="public"
  11257. deprecated="not deprecated">
  11258. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11259. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  11260. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11261. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11262. <param name="deleteSource" type="boolean"/>
  11263. <param name="overwrite" type="boolean"/>
  11264. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11265. <exception name="IOException" type="java.io.IOException"/>
  11266. </method>
  11267. <method name="copy" return="boolean"
  11268. abstract="false" native="false" synchronized="false"
  11269. static="true" final="false" visibility="public"
  11270. deprecated="not deprecated">
  11271. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11272. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11273. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11274. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11275. <param name="deleteSource" type="boolean"/>
  11276. <param name="overwrite" type="boolean"/>
  11277. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11278. <exception name="IOException" type="java.io.IOException"/>
  11279. <doc>
  11280. <![CDATA[Copy files between FileSystems.]]>
  11281. </doc>
  11282. </method>
  11283. <method name="copy" return="boolean"
  11284. abstract="false" native="false" synchronized="false"
  11285. static="true" final="false" visibility="public"
  11286. deprecated="not deprecated">
  11287. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11288. <param name="srcStatus" type="org.apache.hadoop.fs.FileStatus"/>
  11289. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11290. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11291. <param name="deleteSource" type="boolean"/>
  11292. <param name="overwrite" type="boolean"/>
  11293. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11294. <exception name="IOException" type="java.io.IOException"/>
  11295. <doc>
  11296. <![CDATA[Copy files between FileSystems.]]>
  11297. </doc>
  11298. </method>
  11299. <method name="copy" return="boolean"
  11300. abstract="false" native="false" synchronized="false"
  11301. static="true" final="false" visibility="public"
  11302. deprecated="not deprecated">
  11303. <param name="src" type="java.io.File"/>
  11304. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11305. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11306. <param name="deleteSource" type="boolean"/>
  11307. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11308. <exception name="IOException" type="java.io.IOException"/>
  11309. <doc>
  11310. <![CDATA[Copy local files to a FileSystem.]]>
  11311. </doc>
  11312. </method>
  11313. <method name="copy" return="boolean"
  11314. abstract="false" native="false" synchronized="false"
  11315. static="true" final="false" visibility="public"
  11316. deprecated="not deprecated">
  11317. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11318. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11319. <param name="dst" type="java.io.File"/>
  11320. <param name="deleteSource" type="boolean"/>
  11321. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11322. <exception name="IOException" type="java.io.IOException"/>
  11323. <doc>
  11324. <![CDATA[Copy FileSystem files to local files.]]>
  11325. </doc>
  11326. </method>
  11327. <method name="makeShellPath" return="java.lang.String"
  11328. abstract="false" native="false" synchronized="false"
  11329. static="true" final="false" visibility="public"
  11330. deprecated="not deprecated">
  11331. <param name="filename" type="java.lang.String"/>
  11332. <exception name="IOException" type="java.io.IOException"/>
  11333. <doc>
  11334. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11335. @param filename The filename to convert
  11336. @return The unix pathname
  11337. @throws IOException on windows, there can be problems with the subprocess]]>
  11338. </doc>
  11339. </method>
  11340. <method name="makeShellPath" return="java.lang.String"
  11341. abstract="false" native="false" synchronized="false"
  11342. static="true" final="false" visibility="public"
  11343. deprecated="not deprecated">
  11344. <param name="file" type="java.io.File"/>
  11345. <exception name="IOException" type="java.io.IOException"/>
  11346. <doc>
  11347. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11348. @param file The filename to convert
  11349. @return The unix pathname
  11350. @throws IOException on windows, there can be problems with the subprocess]]>
  11351. </doc>
  11352. </method>
  11353. <method name="makeSecureShellPath" return="java.lang.String"
  11354. abstract="false" native="false" synchronized="false"
  11355. static="true" final="false" visibility="public"
  11356. deprecated="not deprecated">
  11357. <param name="file" type="java.io.File"/>
  11358. <exception name="IOException" type="java.io.IOException"/>
  11359. <doc>
  11360. <![CDATA[Convert a os-native filename to a path that works for the shell
  11361. and avoids script injection attacks.
  11362. @param file The filename to convert
  11363. @return The unix pathname
  11364. @throws IOException on windows, there can be problems with the subprocess]]>
  11365. </doc>
  11366. </method>
  11367. <method name="makeShellPath" return="java.lang.String"
  11368. abstract="false" native="false" synchronized="false"
  11369. static="true" final="false" visibility="public"
  11370. deprecated="not deprecated">
  11371. <param name="file" type="java.io.File"/>
  11372. <param name="makeCanonicalPath" type="boolean"/>
  11373. <exception name="IOException" type="java.io.IOException"/>
  11374. <doc>
  11375. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11376. @param file The filename to convert
  11377. @param makeCanonicalPath
  11378. Whether to make canonical path for the file passed
  11379. @return The unix pathname
  11380. @throws IOException on windows, there can be problems with the subprocess]]>
  11381. </doc>
  11382. </method>
  11383. <method name="getDU" return="long"
  11384. abstract="false" native="false" synchronized="false"
  11385. static="true" final="false" visibility="public"
  11386. deprecated="not deprecated">
  11387. <param name="dir" type="java.io.File"/>
  11388. <doc>
  11389. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  11390. implementation.
  11391. @param dir
  11392. The input dir to get the disk space of this local dir
  11393. @return The total disk space of the input local directory]]>
  11394. </doc>
  11395. </method>
  11396. <method name="unZip"
  11397. abstract="false" native="false" synchronized="false"
  11398. static="true" final="false" visibility="public"
  11399. deprecated="not deprecated">
  11400. <param name="inputStream" type="java.io.InputStream"/>
  11401. <param name="toDir" type="java.io.File"/>
  11402. <exception name="IOException" type="java.io.IOException"/>
  11403. <doc>
  11404. <![CDATA[Given a stream input it will unzip the it in the unzip directory.
  11405. passed as the second parameter
  11406. @param inputStream The zip file as input
  11407. @param toDir The unzip directory where to unzip the zip file.
  11408. @throws IOException an exception occurred]]>
  11409. </doc>
  11410. </method>
  11411. <method name="unZip"
  11412. abstract="false" native="false" synchronized="false"
  11413. static="true" final="false" visibility="public"
  11414. deprecated="not deprecated">
  11415. <param name="inFile" type="java.io.File"/>
  11416. <param name="unzipDir" type="java.io.File"/>
  11417. <exception name="IOException" type="java.io.IOException"/>
  11418. <doc>
  11419. <![CDATA[Given a File input it will unzip it in the unzip directory.
  11420. passed as the second parameter
  11421. @param inFile The zip file as input
  11422. @param unzipDir The unzip directory where to unzip the zip file.
  11423. @throws IOException An I/O exception has occurred]]>
  11424. </doc>
  11425. </method>
  11426. <method name="unTar"
  11427. abstract="false" native="false" synchronized="false"
  11428. static="true" final="false" visibility="public"
  11429. deprecated="not deprecated">
  11430. <param name="inputStream" type="java.io.InputStream"/>
  11431. <param name="untarDir" type="java.io.File"/>
  11432. <param name="gzipped" type="boolean"/>
  11433. <exception name="IOException" type="java.io.IOException"/>
  11434. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  11435. <exception name="ExecutionException" type="java.util.concurrent.ExecutionException"/>
  11436. <doc>
  11437. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  11438. passed as the second parameter
  11439. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  11440. @param inputStream The tar file as input.
  11441. @param untarDir The untar directory where to untar the tar file.
  11442. @param gzipped The input stream is gzipped
  11443. TODO Use magic number and PusbackInputStream to identify
  11444. @throws IOException an exception occurred
  11445. @throws InterruptedException command interrupted
  11446. @throws ExecutionException task submit failed]]>
  11447. </doc>
  11448. </method>
  11449. <method name="unTar"
  11450. abstract="false" native="false" synchronized="false"
  11451. static="true" final="false" visibility="public"
  11452. deprecated="not deprecated">
  11453. <param name="inFile" type="java.io.File"/>
  11454. <param name="untarDir" type="java.io.File"/>
  11455. <exception name="IOException" type="java.io.IOException"/>
  11456. <doc>
  11457. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  11458. passed as the second parameter
  11459. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  11460. @param inFile The tar file as input.
  11461. @param untarDir The untar directory where to untar the tar file.
  11462. @throws IOException]]>
  11463. </doc>
  11464. </method>
  11465. <method name="symLink" return="int"
  11466. abstract="false" native="false" synchronized="false"
  11467. static="true" final="false" visibility="public"
  11468. deprecated="not deprecated">
  11469. <param name="target" type="java.lang.String"/>
  11470. <param name="linkname" type="java.lang.String"/>
  11471. <exception name="IOException" type="java.io.IOException"/>
  11472. <doc>
  11473. <![CDATA[Create a soft link between a src and destination
  11474. only on a local disk. HDFS does not support this.
  11475. On Windows, when symlink creation fails due to security
  11476. setting, we will log a warning. The return code in this
  11477. case is 2.
  11478. @param target the target for symlink
  11479. @param linkname the symlink
  11480. @return 0 on success]]>
  11481. </doc>
  11482. </method>
  11483. <method name="chmod" return="int"
  11484. abstract="false" native="false" synchronized="false"
  11485. static="true" final="false" visibility="public"
  11486. deprecated="not deprecated">
  11487. <param name="filename" type="java.lang.String"/>
  11488. <param name="perm" type="java.lang.String"/>
  11489. <exception name="IOException" type="java.io.IOException"/>
  11490. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  11491. <doc>
  11492. <![CDATA[Change the permissions on a filename.
  11493. @param filename the name of the file to change
  11494. @param perm the permission string
  11495. @return the exit code from the command
  11496. @throws IOException
  11497. @throws InterruptedException]]>
  11498. </doc>
  11499. </method>
  11500. <method name="chmod" return="int"
  11501. abstract="false" native="false" synchronized="false"
  11502. static="true" final="false" visibility="public"
  11503. deprecated="not deprecated">
  11504. <param name="filename" type="java.lang.String"/>
  11505. <param name="perm" type="java.lang.String"/>
  11506. <param name="recursive" type="boolean"/>
  11507. <exception name="IOException" type="java.io.IOException"/>
  11508. <doc>
  11509. <![CDATA[Change the permissions on a file / directory, recursively, if
  11510. needed.
  11511. @param filename name of the file whose permissions are to change
  11512. @param perm permission string
  11513. @param recursive true, if permissions should be changed recursively
  11514. @return the exit code from the command.
  11515. @throws IOException]]>
  11516. </doc>
  11517. </method>
  11518. <method name="setOwner"
  11519. abstract="false" native="false" synchronized="false"
  11520. static="true" final="false" visibility="public"
  11521. deprecated="not deprecated">
  11522. <param name="file" type="java.io.File"/>
  11523. <param name="username" type="java.lang.String"/>
  11524. <param name="groupname" type="java.lang.String"/>
  11525. <exception name="IOException" type="java.io.IOException"/>
  11526. <doc>
  11527. <![CDATA[Set the ownership on a file / directory. User name and group name
  11528. cannot both be null.
  11529. @param file the file to change
  11530. @param username the new user owner name
  11531. @param groupname the new group owner name
  11532. @throws IOException]]>
  11533. </doc>
  11534. </method>
  11535. <method name="setReadable" return="boolean"
  11536. abstract="false" native="false" synchronized="false"
  11537. static="true" final="false" visibility="public"
  11538. deprecated="not deprecated">
  11539. <param name="f" type="java.io.File"/>
  11540. <param name="readable" type="boolean"/>
  11541. <doc>
  11542. <![CDATA[Platform independent implementation for {@link File#setReadable(boolean)}
  11543. File#setReadable does not work as expected on Windows.
  11544. @param f input file
  11545. @param readable
  11546. @return true on success, false otherwise]]>
  11547. </doc>
  11548. </method>
  11549. <method name="setWritable" return="boolean"
  11550. abstract="false" native="false" synchronized="false"
  11551. static="true" final="false" visibility="public"
  11552. deprecated="not deprecated">
  11553. <param name="f" type="java.io.File"/>
  11554. <param name="writable" type="boolean"/>
  11555. <doc>
  11556. <![CDATA[Platform independent implementation for {@link File#setWritable(boolean)}
  11557. File#setWritable does not work as expected on Windows.
  11558. @param f input file
  11559. @param writable
  11560. @return true on success, false otherwise]]>
  11561. </doc>
  11562. </method>
  11563. <method name="setExecutable" return="boolean"
  11564. abstract="false" native="false" synchronized="false"
  11565. static="true" final="false" visibility="public"
  11566. deprecated="not deprecated">
  11567. <param name="f" type="java.io.File"/>
  11568. <param name="executable" type="boolean"/>
  11569. <doc>
  11570. <![CDATA[Platform independent implementation for {@link File#setExecutable(boolean)}
  11571. File#setExecutable does not work as expected on Windows.
  11572. Note: revoking execute permission on folders does not have the same
  11573. behavior on Windows as on Unix platforms. Creating, deleting or renaming
  11574. a file within that folder will still succeed on Windows.
  11575. @param f input file
  11576. @param executable
  11577. @return true on success, false otherwise]]>
  11578. </doc>
  11579. </method>
  11580. <method name="canRead" return="boolean"
  11581. abstract="false" native="false" synchronized="false"
  11582. static="true" final="false" visibility="public"
  11583. deprecated="not deprecated">
  11584. <param name="f" type="java.io.File"/>
  11585. <doc>
  11586. <![CDATA[Platform independent implementation for {@link File#canRead()}
  11587. @param f input file
  11588. @return On Unix, same as {@link File#canRead()}
  11589. On Windows, true if process has read access on the path]]>
  11590. </doc>
  11591. </method>
  11592. <method name="canWrite" return="boolean"
  11593. abstract="false" native="false" synchronized="false"
  11594. static="true" final="false" visibility="public"
  11595. deprecated="not deprecated">
  11596. <param name="f" type="java.io.File"/>
  11597. <doc>
  11598. <![CDATA[Platform independent implementation for {@link File#canWrite()}
  11599. @param f input file
  11600. @return On Unix, same as {@link File#canWrite()}
  11601. On Windows, true if process has write access on the path]]>
  11602. </doc>
  11603. </method>
  11604. <method name="canExecute" return="boolean"
  11605. abstract="false" native="false" synchronized="false"
  11606. static="true" final="false" visibility="public"
  11607. deprecated="not deprecated">
  11608. <param name="f" type="java.io.File"/>
  11609. <doc>
  11610. <![CDATA[Platform independent implementation for {@link File#canExecute()}
  11611. @param f input file
  11612. @return On Unix, same as {@link File#canExecute()}
  11613. On Windows, true if process has execute access on the path]]>
  11614. </doc>
  11615. </method>
  11616. <method name="setPermission"
  11617. abstract="false" native="false" synchronized="false"
  11618. static="true" final="false" visibility="public"
  11619. deprecated="not deprecated">
  11620. <param name="f" type="java.io.File"/>
  11621. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11622. <exception name="IOException" type="java.io.IOException"/>
  11623. <doc>
  11624. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  11625. of forking if group == other.
  11626. @param f the file to change
  11627. @param permission the new permissions
  11628. @throws IOException]]>
  11629. </doc>
  11630. </method>
  11631. <method name="createLocalTempFile" return="java.io.File"
  11632. abstract="false" native="false" synchronized="false"
  11633. static="true" final="true" visibility="public"
  11634. deprecated="not deprecated">
  11635. <param name="basefile" type="java.io.File"/>
  11636. <param name="prefix" type="java.lang.String"/>
  11637. <param name="isDeleteOnExit" type="boolean"/>
  11638. <exception name="IOException" type="java.io.IOException"/>
  11639. <doc>
  11640. <![CDATA[Create a tmp file for a base file.
  11641. @param basefile the base file of the tmp
  11642. @param prefix file name prefix of tmp
  11643. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  11644. @return a newly created tmp file
  11645. @exception IOException If a tmp file cannot created
  11646. @see java.io.File#createTempFile(String, String, File)
  11647. @see java.io.File#deleteOnExit()]]>
  11648. </doc>
  11649. </method>
  11650. <method name="replaceFile"
  11651. abstract="false" native="false" synchronized="false"
  11652. static="true" final="false" visibility="public"
  11653. deprecated="not deprecated">
  11654. <param name="src" type="java.io.File"/>
  11655. <param name="target" type="java.io.File"/>
  11656. <exception name="IOException" type="java.io.IOException"/>
  11657. <doc>
  11658. <![CDATA[Move the src file to the name specified by target.
  11659. @param src the source file
  11660. @param target the target file
  11661. @exception IOException If this operation fails]]>
  11662. </doc>
  11663. </method>
  11664. <method name="listFiles" return="java.io.File[]"
  11665. abstract="false" native="false" synchronized="false"
  11666. static="true" final="false" visibility="public"
  11667. deprecated="not deprecated">
  11668. <param name="dir" type="java.io.File"/>
  11669. <exception name="IOException" type="java.io.IOException"/>
  11670. <doc>
  11671. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  11672. when a dir is not a directory or for any I/O error. Instead of having
  11673. null check everywhere File#listFiles() is used, we will add utility API
  11674. to get around this problem. For the majority of cases where we prefer
  11675. an IOException to be thrown.
  11676. @param dir directory for which listing should be performed
  11677. @return list of files or empty list
  11678. @exception IOException for invalid directory or for a bad disk.]]>
  11679. </doc>
  11680. </method>
  11681. <method name="list" return="java.lang.String[]"
  11682. abstract="false" native="false" synchronized="false"
  11683. static="true" final="false" visibility="public"
  11684. deprecated="not deprecated">
  11685. <param name="dir" type="java.io.File"/>
  11686. <exception name="IOException" type="java.io.IOException"/>
  11687. <doc>
  11688. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  11689. when a dir is not a directory or for any I/O error. Instead of having
  11690. null check everywhere File#list() is used, we will add utility API
  11691. to get around this problem. For the majority of cases where we prefer
  11692. an IOException to be thrown.
  11693. @param dir directory for which listing should be performed
  11694. @return list of file names or empty string list
  11695. @exception AccessDeniedException for unreadable directory
  11696. @exception IOException for invalid directory or for bad disk]]>
  11697. </doc>
  11698. </method>
  11699. <method name="createJarWithClassPath" return="java.lang.String[]"
  11700. abstract="false" native="false" synchronized="false"
  11701. static="true" final="false" visibility="public"
  11702. deprecated="not deprecated">
  11703. <param name="inputClassPath" type="java.lang.String"/>
  11704. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  11705. <param name="callerEnv" type="java.util.Map"/>
  11706. <exception name="IOException" type="java.io.IOException"/>
  11707. </method>
  11708. <method name="createJarWithClassPath" return="java.lang.String[]"
  11709. abstract="false" native="false" synchronized="false"
  11710. static="true" final="false" visibility="public"
  11711. deprecated="not deprecated">
  11712. <param name="inputClassPath" type="java.lang.String"/>
  11713. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  11714. <param name="targetDir" type="org.apache.hadoop.fs.Path"/>
  11715. <param name="callerEnv" type="java.util.Map"/>
  11716. <exception name="IOException" type="java.io.IOException"/>
  11717. <doc>
  11718. <![CDATA[Create a jar file at the given path, containing a manifest with a classpath
  11719. that references all specified entries.
  11720. Some platforms may have an upper limit on command line length. For example,
  11721. the maximum command line length on Windows is 8191 characters, but the
  11722. length of the classpath may exceed this. To work around this limitation,
  11723. use this method to create a small intermediate jar with a manifest that
  11724. contains the full classpath. It returns the absolute path to the new jar,
  11725. which the caller may set as the classpath for a new process.
  11726. Environment variable evaluation is not supported within a jar manifest, so
  11727. this method expands environment variables before inserting classpath entries
  11728. to the manifest. The method parses environment variables according to
  11729. platform-specific syntax (%VAR% on Windows, or $VAR otherwise). On Windows,
  11730. environment variables are case-insensitive. For example, %VAR% and %var%
  11731. evaluate to the same value.
  11732. Specifying the classpath in a jar manifest does not support wildcards, so
  11733. this method expands wildcards internally. Any classpath entry that ends
  11734. with * is translated to all files at that path with extension .jar or .JAR.
  11735. @param inputClassPath String input classpath to bundle into the jar manifest
  11736. @param pwd Path to working directory to save jar
  11737. @param targetDir path to where the jar execution will have its working dir
  11738. @param callerEnv Map<String, String> caller's environment variables to use
  11739. for expansion
  11740. @return String[] with absolute path to new jar in position 0 and
  11741. unexpanded wild card entry path in position 1
  11742. @throws IOException if there is an I/O error while writing the jar file]]>
  11743. </doc>
  11744. </method>
  11745. <method name="getJarsInDirectory" return="java.util.List"
  11746. abstract="false" native="false" synchronized="false"
  11747. static="true" final="false" visibility="public"
  11748. deprecated="not deprecated">
  11749. <param name="path" type="java.lang.String"/>
  11750. <doc>
  11751. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  11752. wildcard path to return all jars from the directory to use in a classpath.
  11753. It operates only on local paths.
  11754. @param path the path to the directory. The path may include the wildcard.
  11755. @return the list of jars as URLs, or an empty list if there are no jars, or
  11756. the directory does not exist locally]]>
  11757. </doc>
  11758. </method>
  11759. <method name="getJarsInDirectory" return="java.util.List"
  11760. abstract="false" native="false" synchronized="false"
  11761. static="true" final="false" visibility="public"
  11762. deprecated="not deprecated">
  11763. <param name="path" type="java.lang.String"/>
  11764. <param name="useLocal" type="boolean"/>
  11765. <doc>
  11766. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  11767. wildcard path to return all jars from the directory to use in a classpath.
  11768. @param path the path to the directory. The path may include the wildcard.
  11769. @return the list of jars as URLs, or an empty list if there are no jars, or
  11770. the directory does not exist]]>
  11771. </doc>
  11772. </method>
  11773. <method name="compareFs" return="boolean"
  11774. abstract="false" native="false" synchronized="false"
  11775. static="true" final="false" visibility="public"
  11776. deprecated="not deprecated">
  11777. <param name="srcFs" type="org.apache.hadoop.fs.FileSystem"/>
  11778. <param name="destFs" type="org.apache.hadoop.fs.FileSystem"/>
  11779. </method>
  11780. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  11781. abstract="false" native="false" synchronized="false"
  11782. static="true" final="false" visibility="public"
  11783. deprecated="not deprecated">
  11784. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11785. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11786. <param name="bytes" type="byte[]"/>
  11787. <exception name="IOException" type="java.io.IOException"/>
  11788. <doc>
  11789. <![CDATA[Writes bytes to a file. This utility method opens the file for writing,
  11790. creating the file if it does not exist, or overwrites an existing file. All
  11791. bytes in the byte array are written to the file.
  11792. @param fs the file system with which to create the file
  11793. @param path the path to the file
  11794. @param bytes the byte array with the bytes to write
  11795. @return the file system
  11796. @throws NullPointerException if any of the arguments are {@code null}
  11797. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11798. </doc>
  11799. </method>
  11800. <method name="write" return="org.apache.hadoop.fs.FileContext"
  11801. abstract="false" native="false" synchronized="false"
  11802. static="true" final="false" visibility="public"
  11803. deprecated="not deprecated">
  11804. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  11805. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11806. <param name="bytes" type="byte[]"/>
  11807. <exception name="IOException" type="java.io.IOException"/>
  11808. <doc>
  11809. <![CDATA[Writes bytes to a file. This utility method opens the file for writing,
  11810. creating the file if it does not exist, or overwrites an existing file. All
  11811. bytes in the byte array are written to the file.
  11812. @param fileContext the file context with which to create the file
  11813. @param path the path to the file
  11814. @param bytes the byte array with the bytes to write
  11815. @return the file context
  11816. @throws NullPointerException if any of the arguments are {@code null}
  11817. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11818. </doc>
  11819. </method>
  11820. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  11821. abstract="false" native="false" synchronized="false"
  11822. static="true" final="false" visibility="public"
  11823. deprecated="not deprecated">
  11824. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11825. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11826. <param name="lines" type="java.lang.Iterable"/>
  11827. <param name="cs" type="java.nio.charset.Charset"/>
  11828. <exception name="IOException" type="java.io.IOException"/>
  11829. <doc>
  11830. <![CDATA[Write lines of text to a file. Each line is a char sequence and is written
  11831. to the file in sequence with each line terminated by the platform's line
  11832. separator, as defined by the system property {@code
  11833. line.separator}. Characters are encoded into bytes using the specified
  11834. charset. This utility method opens the file for writing, creating the file
  11835. if it does not exist, or overwrites an existing file.
  11836. @param fs the file system with which to create the file
  11837. @param path the path to the file
  11838. @param lines a Collection to iterate over the char sequences
  11839. @param cs the charset to use for encoding
  11840. @return the file system
  11841. @throws NullPointerException if any of the arguments are {@code null}
  11842. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11843. </doc>
  11844. </method>
  11845. <method name="write" return="org.apache.hadoop.fs.FileContext"
  11846. abstract="false" native="false" synchronized="false"
  11847. static="true" final="false" visibility="public"
  11848. deprecated="not deprecated">
  11849. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  11850. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11851. <param name="lines" type="java.lang.Iterable"/>
  11852. <param name="cs" type="java.nio.charset.Charset"/>
  11853. <exception name="IOException" type="java.io.IOException"/>
  11854. <doc>
  11855. <![CDATA[Write lines of text to a file. Each line is a char sequence and is written
  11856. to the file in sequence with each line terminated by the platform's line
  11857. separator, as defined by the system property {@code
  11858. line.separator}. Characters are encoded into bytes using the specified
  11859. charset. This utility method opens the file for writing, creating the file
  11860. if it does not exist, or overwrites an existing file.
  11861. @param fileContext the file context with which to create the file
  11862. @param path the path to the file
  11863. @param lines a Collection to iterate over the char sequences
  11864. @param cs the charset to use for encoding
  11865. @return the file context
  11866. @throws NullPointerException if any of the arguments are {@code null}
  11867. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11868. </doc>
  11869. </method>
  11870. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  11871. abstract="false" native="false" synchronized="false"
  11872. static="true" final="false" visibility="public"
  11873. deprecated="not deprecated">
  11874. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11875. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11876. <param name="charseq" type="java.lang.CharSequence"/>
  11877. <param name="cs" type="java.nio.charset.Charset"/>
  11878. <exception name="IOException" type="java.io.IOException"/>
  11879. <doc>
  11880. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using the
  11881. specified charset. This utility method opens the file for writing, creating
  11882. the file if it does not exist, or overwrites an existing file.
  11883. @param fs the file system with which to create the file
  11884. @param path the path to the file
  11885. @param charseq the char sequence to write to the file
  11886. @param cs the charset to use for encoding
  11887. @return the file system
  11888. @throws NullPointerException if any of the arguments are {@code null}
  11889. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11890. </doc>
  11891. </method>
  11892. <method name="write" return="org.apache.hadoop.fs.FileContext"
  11893. abstract="false" native="false" synchronized="false"
  11894. static="true" final="false" visibility="public"
  11895. deprecated="not deprecated">
  11896. <param name="fs" type="org.apache.hadoop.fs.FileContext"/>
  11897. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11898. <param name="charseq" type="java.lang.CharSequence"/>
  11899. <param name="cs" type="java.nio.charset.Charset"/>
  11900. <exception name="IOException" type="java.io.IOException"/>
  11901. <doc>
  11902. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using the
  11903. specified charset. This utility method opens the file for writing, creating
  11904. the file if it does not exist, or overwrites an existing file.
  11905. @param FileContext the file context with which to create the file
  11906. @param path the path to the file
  11907. @param charseq the char sequence to write to the file
  11908. @param cs the charset to use for encoding
  11909. @return the file context
  11910. @throws NullPointerException if any of the arguments are {@code null}
  11911. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11912. </doc>
  11913. </method>
  11914. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  11915. abstract="false" native="false" synchronized="false"
  11916. static="true" final="false" visibility="public"
  11917. deprecated="not deprecated">
  11918. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11919. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11920. <param name="charseq" type="java.lang.CharSequence"/>
  11921. <exception name="IOException" type="java.io.IOException"/>
  11922. <doc>
  11923. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using
  11924. UTF-8. This utility method opens the file for writing, creating the file if
  11925. it does not exist, or overwrites an existing file.
  11926. @param fs the files system with which to create the file
  11927. @param path the path to the file
  11928. @param charseq the char sequence to write to the file
  11929. @return the file system
  11930. @throws NullPointerException if any of the arguments are {@code null}
  11931. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11932. </doc>
  11933. </method>
  11934. <method name="write" return="org.apache.hadoop.fs.FileContext"
  11935. abstract="false" native="false" synchronized="false"
  11936. static="true" final="false" visibility="public"
  11937. deprecated="not deprecated">
  11938. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  11939. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11940. <param name="charseq" type="java.lang.CharSequence"/>
  11941. <exception name="IOException" type="java.io.IOException"/>
  11942. <doc>
  11943. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using
  11944. UTF-8. This utility method opens the file for writing, creating the file if
  11945. it does not exist, or overwrites an existing file.
  11946. @param fileContext the files system with which to create the file
  11947. @param path the path to the file
  11948. @param charseq the char sequence to write to the file
  11949. @return the file context
  11950. @throws NullPointerException if any of the arguments are {@code null}
  11951. @throws IOException if an I/O error occurs creating or writing to the file]]>
  11952. </doc>
  11953. </method>
  11954. <field name="SYMLINK_NO_PRIVILEGE" type="int"
  11955. transient="false" volatile="false"
  11956. static="true" final="true" visibility="public"
  11957. deprecated="not deprecated">
  11958. </field>
  11959. <doc>
  11960. <![CDATA[A collection of file-processing util methods]]>
  11961. </doc>
  11962. </class>
  11963. <!-- end class org.apache.hadoop.fs.FileUtil -->
  11964. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  11965. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  11966. abstract="false"
  11967. static="false" final="false" visibility="public"
  11968. deprecated="not deprecated">
  11969. <constructor name="FilterFileSystem"
  11970. static="false" final="false" visibility="public"
  11971. deprecated="not deprecated">
  11972. </constructor>
  11973. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  11974. static="false" final="false" visibility="public"
  11975. deprecated="not deprecated">
  11976. </constructor>
  11977. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  11978. abstract="false" native="false" synchronized="false"
  11979. static="false" final="false" visibility="public"
  11980. deprecated="not deprecated">
  11981. <doc>
  11982. <![CDATA[Get the raw file system
  11983. @return FileSystem being filtered]]>
  11984. </doc>
  11985. </method>
  11986. <method name="initialize"
  11987. abstract="false" native="false" synchronized="false"
  11988. static="false" final="false" visibility="public"
  11989. deprecated="not deprecated">
  11990. <param name="name" type="java.net.URI"/>
  11991. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11992. <exception name="IOException" type="java.io.IOException"/>
  11993. <doc>
  11994. <![CDATA[Called after a new FileSystem instance is constructed.
  11995. @param name a uri whose authority section names the host, port, etc.
  11996. for this FileSystem
  11997. @param conf the configuration]]>
  11998. </doc>
  11999. </method>
  12000. <method name="getUri" return="java.net.URI"
  12001. abstract="false" native="false" synchronized="false"
  12002. static="false" final="false" visibility="public"
  12003. deprecated="not deprecated">
  12004. <doc>
  12005. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  12006. </doc>
  12007. </method>
  12008. <method name="getCanonicalUri" return="java.net.URI"
  12009. abstract="false" native="false" synchronized="false"
  12010. static="false" final="false" visibility="protected"
  12011. deprecated="not deprecated">
  12012. </method>
  12013. <method name="canonicalizeUri" return="java.net.URI"
  12014. abstract="false" native="false" synchronized="false"
  12015. static="false" final="false" visibility="protected"
  12016. deprecated="not deprecated">
  12017. <param name="uri" type="java.net.URI"/>
  12018. </method>
  12019. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  12020. abstract="false" native="false" synchronized="false"
  12021. static="false" final="false" visibility="public"
  12022. deprecated="not deprecated">
  12023. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12024. <doc>
  12025. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  12026. </doc>
  12027. </method>
  12028. <method name="checkPath"
  12029. abstract="false" native="false" synchronized="false"
  12030. static="false" final="false" visibility="protected"
  12031. deprecated="not deprecated">
  12032. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12033. <doc>
  12034. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  12035. </doc>
  12036. </method>
  12037. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  12038. abstract="false" native="false" synchronized="false"
  12039. static="false" final="false" visibility="public"
  12040. deprecated="not deprecated">
  12041. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  12042. <param name="start" type="long"/>
  12043. <param name="len" type="long"/>
  12044. <exception name="IOException" type="java.io.IOException"/>
  12045. </method>
  12046. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  12047. abstract="false" native="false" synchronized="false"
  12048. static="false" final="false" visibility="public"
  12049. deprecated="not deprecated">
  12050. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12051. <exception name="IOException" type="java.io.IOException"/>
  12052. </method>
  12053. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  12054. abstract="false" native="false" synchronized="false"
  12055. static="false" final="false" visibility="public"
  12056. deprecated="not deprecated">
  12057. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12058. <param name="bufferSize" type="int"/>
  12059. <exception name="IOException" type="java.io.IOException"/>
  12060. <doc>
  12061. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  12062. @param f the file name to open
  12063. @param bufferSize the size of the buffer to be used.]]>
  12064. </doc>
  12065. </method>
  12066. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  12067. abstract="false" native="false" synchronized="false"
  12068. static="false" final="false" visibility="public"
  12069. deprecated="not deprecated">
  12070. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  12071. <param name="bufferSize" type="int"/>
  12072. <exception name="IOException" type="java.io.IOException"/>
  12073. </method>
  12074. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  12075. abstract="false" native="false" synchronized="false"
  12076. static="false" final="false" visibility="protected"
  12077. deprecated="not deprecated">
  12078. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  12079. <param name="opts" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  12080. </method>
  12081. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  12082. abstract="false" native="false" synchronized="false"
  12083. static="false" final="false" visibility="public"
  12084. deprecated="not deprecated">
  12085. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12086. <param name="bufferSize" type="int"/>
  12087. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12088. <exception name="IOException" type="java.io.IOException"/>
  12089. </method>
  12090. <method name="concat"
  12091. abstract="false" native="false" synchronized="false"
  12092. static="false" final="false" visibility="public"
  12093. deprecated="not deprecated">
  12094. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12095. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  12096. <exception name="IOException" type="java.io.IOException"/>
  12097. </method>
  12098. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  12099. abstract="false" native="false" synchronized="false"
  12100. static="false" final="false" visibility="public"
  12101. deprecated="not deprecated">
  12102. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12103. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12104. <param name="overwrite" type="boolean"/>
  12105. <param name="bufferSize" type="int"/>
  12106. <param name="replication" type="short"/>
  12107. <param name="blockSize" type="long"/>
  12108. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12109. <exception name="IOException" type="java.io.IOException"/>
  12110. </method>
  12111. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  12112. abstract="false" native="false" synchronized="false"
  12113. static="false" final="false" visibility="public"
  12114. deprecated="not deprecated">
  12115. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12116. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12117. <param name="flags" type="java.util.EnumSet"/>
  12118. <param name="bufferSize" type="int"/>
  12119. <param name="replication" type="short"/>
  12120. <param name="blockSize" type="long"/>
  12121. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12122. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  12123. <exception name="IOException" type="java.io.IOException"/>
  12124. </method>
  12125. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  12126. abstract="false" native="false" synchronized="false"
  12127. static="false" final="false" visibility="protected"
  12128. deprecated="not deprecated">
  12129. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12130. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  12131. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12132. <exception name="IOException" type="java.io.IOException"/>
  12133. </method>
  12134. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  12135. abstract="false" native="false" synchronized="false"
  12136. static="false" final="false" visibility="public"
  12137. deprecated="not deprecated">
  12138. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12139. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12140. <param name="flags" type="java.util.EnumSet"/>
  12141. <param name="bufferSize" type="int"/>
  12142. <param name="replication" type="short"/>
  12143. <param name="blockSize" type="long"/>
  12144. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12145. <exception name="IOException" type="java.io.IOException"/>
  12146. </method>
  12147. <method name="setReplication" return="boolean"
  12148. abstract="false" native="false" synchronized="false"
  12149. static="false" final="false" visibility="public"
  12150. deprecated="not deprecated">
  12151. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12152. <param name="replication" type="short"/>
  12153. <exception name="IOException" type="java.io.IOException"/>
  12154. <doc>
  12155. <![CDATA[Set replication for an existing file.
  12156. @param src file name
  12157. @param replication new replication
  12158. @throws IOException
  12159. @return true if successful;
  12160. false if file does not exist or is a directory]]>
  12161. </doc>
  12162. </method>
  12163. <method name="rename" return="boolean"
  12164. abstract="false" native="false" synchronized="false"
  12165. static="false" final="false" visibility="public"
  12166. deprecated="not deprecated">
  12167. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12168. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12169. <exception name="IOException" type="java.io.IOException"/>
  12170. <doc>
  12171. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  12172. or remote DFS.]]>
  12173. </doc>
  12174. </method>
  12175. <method name="rename"
  12176. abstract="false" native="false" synchronized="false"
  12177. static="false" final="false" visibility="protected"
  12178. deprecated="not deprecated">
  12179. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12180. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12181. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  12182. <exception name="IOException" type="java.io.IOException"/>
  12183. </method>
  12184. <method name="truncate" return="boolean"
  12185. abstract="false" native="false" synchronized="false"
  12186. static="false" final="false" visibility="public"
  12187. deprecated="not deprecated">
  12188. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12189. <param name="newLength" type="long"/>
  12190. <exception name="IOException" type="java.io.IOException"/>
  12191. </method>
  12192. <method name="delete" return="boolean"
  12193. abstract="false" native="false" synchronized="false"
  12194. static="false" final="false" visibility="public"
  12195. deprecated="not deprecated">
  12196. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12197. <param name="recursive" type="boolean"/>
  12198. <exception name="IOException" type="java.io.IOException"/>
  12199. <doc>
  12200. <![CDATA[Delete a file]]>
  12201. </doc>
  12202. </method>
  12203. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  12204. abstract="false" native="false" synchronized="false"
  12205. static="false" final="false" visibility="public"
  12206. deprecated="not deprecated">
  12207. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12208. <exception name="IOException" type="java.io.IOException"/>
  12209. <doc>
  12210. <![CDATA[List files in a directory.]]>
  12211. </doc>
  12212. </method>
  12213. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  12214. abstract="false" native="false" synchronized="false"
  12215. static="false" final="false" visibility="public"
  12216. deprecated="not deprecated">
  12217. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12218. <exception name="IOException" type="java.io.IOException"/>
  12219. </method>
  12220. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  12221. abstract="false" native="false" synchronized="false"
  12222. static="false" final="false" visibility="public"
  12223. deprecated="not deprecated">
  12224. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12225. <exception name="IOException" type="java.io.IOException"/>
  12226. <doc>
  12227. <![CDATA[List files and its block locations in a directory.]]>
  12228. </doc>
  12229. </method>
  12230. <method name="listStatusIterator" 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[Return a remote iterator for listing in a directory]]>
  12238. </doc>
  12239. </method>
  12240. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  12241. abstract="false" native="false" synchronized="false"
  12242. static="false" final="false" visibility="public"
  12243. deprecated="not deprecated">
  12244. </method>
  12245. <method name="setWorkingDirectory"
  12246. abstract="false" native="false" synchronized="false"
  12247. static="false" final="false" visibility="public"
  12248. deprecated="not deprecated">
  12249. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  12250. <doc>
  12251. <![CDATA[Set the current working directory for the given file system. All relative
  12252. paths will be resolved relative to it.
  12253. @param newDir]]>
  12254. </doc>
  12255. </method>
  12256. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  12257. abstract="false" native="false" synchronized="false"
  12258. static="false" final="false" visibility="public"
  12259. deprecated="not deprecated">
  12260. <doc>
  12261. <![CDATA[Get the current working directory for the given file system
  12262. @return the directory pathname]]>
  12263. </doc>
  12264. </method>
  12265. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  12266. abstract="false" native="false" synchronized="false"
  12267. static="false" final="false" visibility="protected"
  12268. deprecated="not deprecated">
  12269. </method>
  12270. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  12271. abstract="false" native="false" synchronized="false"
  12272. static="false" final="false" visibility="public"
  12273. deprecated="not deprecated">
  12274. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12275. <exception name="IOException" type="java.io.IOException"/>
  12276. </method>
  12277. <method name="mkdirs" return="boolean"
  12278. abstract="false" native="false" synchronized="false"
  12279. static="false" final="false" visibility="public"
  12280. deprecated="not deprecated">
  12281. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12282. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12283. <exception name="IOException" type="java.io.IOException"/>
  12284. </method>
  12285. <method name="mkdirs" return="boolean"
  12286. abstract="false" native="false" synchronized="false"
  12287. static="false" final="false" visibility="public"
  12288. deprecated="not deprecated">
  12289. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12290. <exception name="IOException" type="java.io.IOException"/>
  12291. </method>
  12292. <method name="copyFromLocalFile"
  12293. abstract="false" native="false" synchronized="false"
  12294. static="false" final="false" visibility="public"
  12295. deprecated="not deprecated">
  12296. <param name="delSrc" type="boolean"/>
  12297. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12298. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12299. <exception name="IOException" type="java.io.IOException"/>
  12300. <doc>
  12301. <![CDATA[The src file is on the local disk. Add it to FS at
  12302. the given dst name.
  12303. delSrc indicates if the source should be removed]]>
  12304. </doc>
  12305. </method>
  12306. <method name="copyFromLocalFile"
  12307. abstract="false" native="false" synchronized="false"
  12308. static="false" final="false" visibility="public"
  12309. deprecated="not deprecated">
  12310. <param name="delSrc" type="boolean"/>
  12311. <param name="overwrite" type="boolean"/>
  12312. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  12313. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12314. <exception name="IOException" type="java.io.IOException"/>
  12315. <doc>
  12316. <![CDATA[The src files are on the local disk. Add it to FS at
  12317. the given dst name.
  12318. delSrc indicates if the source should be removed]]>
  12319. </doc>
  12320. </method>
  12321. <method name="copyFromLocalFile"
  12322. abstract="false" native="false" synchronized="false"
  12323. static="false" final="false" visibility="public"
  12324. deprecated="not deprecated">
  12325. <param name="delSrc" type="boolean"/>
  12326. <param name="overwrite" type="boolean"/>
  12327. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12328. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12329. <exception name="IOException" type="java.io.IOException"/>
  12330. <doc>
  12331. <![CDATA[The src file is on the local disk. Add it to FS at
  12332. the given dst name.
  12333. delSrc indicates if the source should be removed]]>
  12334. </doc>
  12335. </method>
  12336. <method name="copyToLocalFile"
  12337. abstract="false" native="false" synchronized="false"
  12338. static="false" final="false" visibility="public"
  12339. deprecated="not deprecated">
  12340. <param name="delSrc" type="boolean"/>
  12341. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12342. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12343. <exception name="IOException" type="java.io.IOException"/>
  12344. <doc>
  12345. <![CDATA[The src file is under FS, and the dst is on the local disk.
  12346. Copy it from FS control to the local dst name.
  12347. delSrc indicates if the src will be removed or not.]]>
  12348. </doc>
  12349. </method>
  12350. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  12351. abstract="false" native="false" synchronized="false"
  12352. static="false" final="false" visibility="public"
  12353. deprecated="not deprecated">
  12354. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  12355. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  12356. <exception name="IOException" type="java.io.IOException"/>
  12357. <doc>
  12358. <![CDATA[Returns a local File that the user can write output to. The caller
  12359. provides both the eventual FS target name and the local working
  12360. file. If the FS is local, we write directly into the target. If
  12361. the FS is remote, we write into the tmp local area.]]>
  12362. </doc>
  12363. </method>
  12364. <method name="completeLocalOutput"
  12365. abstract="false" native="false" synchronized="false"
  12366. static="false" final="false" visibility="public"
  12367. deprecated="not deprecated">
  12368. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  12369. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  12370. <exception name="IOException" type="java.io.IOException"/>
  12371. <doc>
  12372. <![CDATA[Called when we're all done writing to the target. A local FS will
  12373. do nothing, because we've written to exactly the right place. A remote
  12374. FS will copy the contents of tmpLocalFile to the correct target at
  12375. fsOutputFile.]]>
  12376. </doc>
  12377. </method>
  12378. <method name="getUsed" return="long"
  12379. abstract="false" native="false" synchronized="false"
  12380. static="false" final="false" visibility="public"
  12381. deprecated="not deprecated">
  12382. <exception name="IOException" type="java.io.IOException"/>
  12383. <doc>
  12384. <![CDATA[Return the total size of all files in the filesystem.]]>
  12385. </doc>
  12386. </method>
  12387. <method name="getUsed" return="long"
  12388. abstract="false" native="false" synchronized="false"
  12389. static="false" final="false" visibility="public"
  12390. deprecated="not deprecated">
  12391. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12392. <exception name="IOException" type="java.io.IOException"/>
  12393. <doc>
  12394. <![CDATA[Return the total size of all files from a specified path.]]>
  12395. </doc>
  12396. </method>
  12397. <method name="getDefaultBlockSize" return="long"
  12398. abstract="false" native="false" synchronized="false"
  12399. static="false" final="false" visibility="public"
  12400. deprecated="not deprecated">
  12401. </method>
  12402. <method name="getDefaultReplication" return="short"
  12403. abstract="false" native="false" synchronized="false"
  12404. static="false" final="false" visibility="public"
  12405. deprecated="not deprecated">
  12406. </method>
  12407. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  12408. abstract="false" native="false" synchronized="false"
  12409. static="false" final="false" visibility="public"
  12410. deprecated="not deprecated">
  12411. <exception name="IOException" type="java.io.IOException"/>
  12412. </method>
  12413. <method name="getDefaultBlockSize" return="long"
  12414. abstract="false" native="false" synchronized="false"
  12415. static="false" final="false" visibility="public"
  12416. deprecated="not deprecated">
  12417. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12418. </method>
  12419. <method name="getDefaultReplication" return="short"
  12420. abstract="false" native="false" synchronized="false"
  12421. static="false" final="false" visibility="public"
  12422. deprecated="not deprecated">
  12423. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12424. </method>
  12425. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  12426. abstract="false" native="false" synchronized="false"
  12427. static="false" final="false" visibility="public"
  12428. deprecated="not deprecated">
  12429. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12430. <exception name="IOException" type="java.io.IOException"/>
  12431. </method>
  12432. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  12433. abstract="false" native="false" synchronized="false"
  12434. static="false" final="false" visibility="public"
  12435. deprecated="not deprecated">
  12436. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12437. <exception name="IOException" type="java.io.IOException"/>
  12438. <doc>
  12439. <![CDATA[Get file status.]]>
  12440. </doc>
  12441. </method>
  12442. <method name="msync"
  12443. abstract="false" native="false" synchronized="false"
  12444. static="false" final="false" visibility="public"
  12445. deprecated="not deprecated">
  12446. <exception name="IOException" type="java.io.IOException"/>
  12447. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12448. </method>
  12449. <method name="access"
  12450. abstract="false" native="false" synchronized="false"
  12451. static="false" final="false" visibility="public"
  12452. deprecated="not deprecated">
  12453. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12454. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  12455. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12456. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12457. <exception name="IOException" type="java.io.IOException"/>
  12458. </method>
  12459. <method name="createSymlink"
  12460. abstract="false" native="false" synchronized="false"
  12461. static="false" final="false" visibility="public"
  12462. deprecated="not deprecated">
  12463. <param name="target" type="org.apache.hadoop.fs.Path"/>
  12464. <param name="link" type="org.apache.hadoop.fs.Path"/>
  12465. <param name="createParent" type="boolean"/>
  12466. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12467. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  12468. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12469. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  12470. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  12471. <exception name="IOException" type="java.io.IOException"/>
  12472. </method>
  12473. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  12474. abstract="false" native="false" synchronized="false"
  12475. static="false" final="false" visibility="public"
  12476. deprecated="not deprecated">
  12477. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12478. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12479. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12480. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  12481. <exception name="IOException" type="java.io.IOException"/>
  12482. </method>
  12483. <method name="supportsSymlinks" return="boolean"
  12484. abstract="false" native="false" synchronized="false"
  12485. static="false" final="false" visibility="public"
  12486. deprecated="not deprecated">
  12487. </method>
  12488. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  12489. abstract="false" native="false" synchronized="false"
  12490. static="false" final="false" visibility="public"
  12491. deprecated="not deprecated">
  12492. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12493. <exception name="IOException" type="java.io.IOException"/>
  12494. </method>
  12495. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  12496. abstract="false" native="false" synchronized="false"
  12497. static="false" final="false" visibility="protected"
  12498. deprecated="not deprecated">
  12499. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12500. <exception name="IOException" type="java.io.IOException"/>
  12501. </method>
  12502. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  12503. abstract="false" native="false" synchronized="false"
  12504. static="false" final="false" visibility="public"
  12505. deprecated="not deprecated">
  12506. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12507. <exception name="IOException" type="java.io.IOException"/>
  12508. </method>
  12509. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  12510. abstract="false" native="false" synchronized="false"
  12511. static="false" final="false" visibility="public"
  12512. deprecated="not deprecated">
  12513. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12514. <param name="length" type="long"/>
  12515. <exception name="IOException" type="java.io.IOException"/>
  12516. </method>
  12517. <method name="setVerifyChecksum"
  12518. abstract="false" native="false" synchronized="false"
  12519. static="false" final="false" visibility="public"
  12520. deprecated="not deprecated">
  12521. <param name="verifyChecksum" type="boolean"/>
  12522. </method>
  12523. <method name="setWriteChecksum"
  12524. abstract="false" native="false" synchronized="false"
  12525. static="false" final="false" visibility="public"
  12526. deprecated="not deprecated">
  12527. <param name="writeChecksum" type="boolean"/>
  12528. </method>
  12529. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  12530. abstract="false" native="false" synchronized="false"
  12531. static="false" final="false" visibility="public"
  12532. deprecated="not deprecated">
  12533. </method>
  12534. <method name="close"
  12535. abstract="false" native="false" synchronized="false"
  12536. static="false" final="false" visibility="public"
  12537. deprecated="not deprecated">
  12538. <exception name="IOException" type="java.io.IOException"/>
  12539. </method>
  12540. <method name="setOwner"
  12541. abstract="false" native="false" synchronized="false"
  12542. static="false" final="false" visibility="public"
  12543. deprecated="not deprecated">
  12544. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12545. <param name="username" type="java.lang.String"/>
  12546. <param name="groupname" type="java.lang.String"/>
  12547. <exception name="IOException" type="java.io.IOException"/>
  12548. </method>
  12549. <method name="setTimes"
  12550. abstract="false" native="false" synchronized="false"
  12551. static="false" final="false" visibility="public"
  12552. deprecated="not deprecated">
  12553. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12554. <param name="mtime" type="long"/>
  12555. <param name="atime" type="long"/>
  12556. <exception name="IOException" type="java.io.IOException"/>
  12557. </method>
  12558. <method name="setPermission"
  12559. abstract="false" native="false" synchronized="false"
  12560. static="false" final="false" visibility="public"
  12561. deprecated="not deprecated">
  12562. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12563. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12564. <exception name="IOException" type="java.io.IOException"/>
  12565. </method>
  12566. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  12567. abstract="false" native="false" synchronized="false"
  12568. static="false" final="false" visibility="protected"
  12569. deprecated="not deprecated">
  12570. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12571. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12572. <param name="flag" type="java.util.EnumSet"/>
  12573. <param name="bufferSize" type="int"/>
  12574. <param name="replication" type="short"/>
  12575. <param name="blockSize" type="long"/>
  12576. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12577. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  12578. <exception name="IOException" type="java.io.IOException"/>
  12579. </method>
  12580. <method name="primitiveMkdir" return="boolean"
  12581. abstract="false" native="false" synchronized="false"
  12582. static="false" final="false" visibility="protected"
  12583. deprecated="not deprecated">
  12584. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12585. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12586. <exception name="IOException" type="java.io.IOException"/>
  12587. </method>
  12588. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  12589. abstract="false" native="false" synchronized="false"
  12590. static="false" final="false" visibility="public"
  12591. deprecated="not deprecated">
  12592. </method>
  12593. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  12594. abstract="false" native="false" synchronized="false"
  12595. static="false" final="false" visibility="public"
  12596. deprecated="not deprecated">
  12597. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12598. <param name="snapshotName" type="java.lang.String"/>
  12599. <exception name="IOException" type="java.io.IOException"/>
  12600. </method>
  12601. <method name="renameSnapshot"
  12602. abstract="false" native="false" synchronized="false"
  12603. static="false" final="false" visibility="public"
  12604. deprecated="not deprecated">
  12605. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12606. <param name="snapshotOldName" type="java.lang.String"/>
  12607. <param name="snapshotNewName" type="java.lang.String"/>
  12608. <exception name="IOException" type="java.io.IOException"/>
  12609. </method>
  12610. <method name="deleteSnapshot"
  12611. abstract="false" native="false" synchronized="false"
  12612. static="false" final="false" visibility="public"
  12613. deprecated="not deprecated">
  12614. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12615. <param name="snapshotName" type="java.lang.String"/>
  12616. <exception name="IOException" type="java.io.IOException"/>
  12617. </method>
  12618. <method name="modifyAclEntries"
  12619. abstract="false" native="false" synchronized="false"
  12620. static="false" final="false" visibility="public"
  12621. deprecated="not deprecated">
  12622. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12623. <param name="aclSpec" type="java.util.List"/>
  12624. <exception name="IOException" type="java.io.IOException"/>
  12625. </method>
  12626. <method name="removeAclEntries"
  12627. abstract="false" native="false" synchronized="false"
  12628. static="false" final="false" visibility="public"
  12629. deprecated="not deprecated">
  12630. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12631. <param name="aclSpec" type="java.util.List"/>
  12632. <exception name="IOException" type="java.io.IOException"/>
  12633. </method>
  12634. <method name="removeDefaultAcl"
  12635. abstract="false" native="false" synchronized="false"
  12636. static="false" final="false" visibility="public"
  12637. deprecated="not deprecated">
  12638. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12639. <exception name="IOException" type="java.io.IOException"/>
  12640. </method>
  12641. <method name="removeAcl"
  12642. abstract="false" native="false" synchronized="false"
  12643. static="false" final="false" visibility="public"
  12644. deprecated="not deprecated">
  12645. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12646. <exception name="IOException" type="java.io.IOException"/>
  12647. </method>
  12648. <method name="setAcl"
  12649. abstract="false" native="false" synchronized="false"
  12650. static="false" final="false" visibility="public"
  12651. deprecated="not deprecated">
  12652. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12653. <param name="aclSpec" type="java.util.List"/>
  12654. <exception name="IOException" type="java.io.IOException"/>
  12655. </method>
  12656. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  12657. abstract="false" native="false" synchronized="false"
  12658. static="false" final="false" visibility="public"
  12659. deprecated="not deprecated">
  12660. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12661. <exception name="IOException" type="java.io.IOException"/>
  12662. </method>
  12663. <method name="setXAttr"
  12664. abstract="false" native="false" synchronized="false"
  12665. static="false" final="false" visibility="public"
  12666. deprecated="not deprecated">
  12667. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12668. <param name="name" type="java.lang.String"/>
  12669. <param name="value" type="byte[]"/>
  12670. <exception name="IOException" type="java.io.IOException"/>
  12671. </method>
  12672. <method name="setXAttr"
  12673. abstract="false" native="false" synchronized="false"
  12674. static="false" final="false" visibility="public"
  12675. deprecated="not deprecated">
  12676. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12677. <param name="name" type="java.lang.String"/>
  12678. <param name="value" type="byte[]"/>
  12679. <param name="flag" type="java.util.EnumSet"/>
  12680. <exception name="IOException" type="java.io.IOException"/>
  12681. </method>
  12682. <method name="getXAttr" return="byte[]"
  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. <exception name="IOException" type="java.io.IOException"/>
  12689. </method>
  12690. <method name="getXAttrs" return="java.util.Map"
  12691. abstract="false" native="false" synchronized="false"
  12692. static="false" final="false" visibility="public"
  12693. deprecated="not deprecated">
  12694. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12695. <exception name="IOException" type="java.io.IOException"/>
  12696. </method>
  12697. <method name="getXAttrs" return="java.util.Map"
  12698. abstract="false" native="false" synchronized="false"
  12699. static="false" final="false" visibility="public"
  12700. deprecated="not deprecated">
  12701. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12702. <param name="names" type="java.util.List"/>
  12703. <exception name="IOException" type="java.io.IOException"/>
  12704. </method>
  12705. <method name="listXAttrs" return="java.util.List"
  12706. abstract="false" native="false" synchronized="false"
  12707. static="false" final="false" visibility="public"
  12708. deprecated="not deprecated">
  12709. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12710. <exception name="IOException" type="java.io.IOException"/>
  12711. </method>
  12712. <method name="removeXAttr"
  12713. abstract="false" native="false" synchronized="false"
  12714. static="false" final="false" visibility="public"
  12715. deprecated="not deprecated">
  12716. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12717. <param name="name" type="java.lang.String"/>
  12718. <exception name="IOException" type="java.io.IOException"/>
  12719. </method>
  12720. <method name="satisfyStoragePolicy"
  12721. abstract="false" native="false" synchronized="false"
  12722. static="false" final="false" visibility="public"
  12723. deprecated="not deprecated">
  12724. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12725. <exception name="IOException" type="java.io.IOException"/>
  12726. </method>
  12727. <method name="setStoragePolicy"
  12728. abstract="false" native="false" synchronized="false"
  12729. static="false" final="false" visibility="public"
  12730. deprecated="not deprecated">
  12731. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12732. <param name="policyName" type="java.lang.String"/>
  12733. <exception name="IOException" type="java.io.IOException"/>
  12734. </method>
  12735. <method name="unsetStoragePolicy"
  12736. abstract="false" native="false" synchronized="false"
  12737. static="false" final="false" visibility="public"
  12738. deprecated="not deprecated">
  12739. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12740. <exception name="IOException" type="java.io.IOException"/>
  12741. </method>
  12742. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  12743. abstract="false" native="false" synchronized="false"
  12744. static="false" final="false" visibility="public"
  12745. deprecated="not deprecated">
  12746. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12747. <exception name="IOException" type="java.io.IOException"/>
  12748. </method>
  12749. <method name="getAllStoragePolicies" return="java.util.Collection"
  12750. abstract="false" native="false" synchronized="false"
  12751. static="false" final="false" visibility="public"
  12752. deprecated="not deprecated">
  12753. <exception name="IOException" type="java.io.IOException"/>
  12754. </method>
  12755. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  12756. abstract="false" native="false" synchronized="false"
  12757. static="false" final="false" visibility="public"
  12758. deprecated="not deprecated">
  12759. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12760. </method>
  12761. <method name="getTrashRoots" return="java.util.Collection"
  12762. abstract="false" native="false" synchronized="false"
  12763. static="false" final="false" visibility="public"
  12764. deprecated="not deprecated">
  12765. <param name="allUsers" type="boolean"/>
  12766. </method>
  12767. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  12768. abstract="false" native="false" synchronized="false"
  12769. static="false" final="false" visibility="public"
  12770. deprecated="not deprecated">
  12771. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12772. </method>
  12773. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  12774. abstract="false" native="false" synchronized="false"
  12775. static="false" final="false" visibility="public"
  12776. deprecated="not deprecated">
  12777. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12778. </method>
  12779. <method name="hasPathCapability" return="boolean"
  12780. abstract="false" native="false" synchronized="false"
  12781. static="false" final="false" visibility="public"
  12782. deprecated="not deprecated">
  12783. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12784. <param name="capability" type="java.lang.String"/>
  12785. <exception name="IOException" type="java.io.IOException"/>
  12786. </method>
  12787. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  12788. transient="false" volatile="false"
  12789. static="false" final="false" visibility="protected"
  12790. deprecated="not deprecated">
  12791. </field>
  12792. <field name="swapScheme" type="java.lang.String"
  12793. transient="false" volatile="false"
  12794. static="false" final="false" visibility="protected"
  12795. deprecated="not deprecated">
  12796. </field>
  12797. <doc>
  12798. <![CDATA[A <code>FilterFileSystem</code> contains
  12799. some other file system, which it uses as
  12800. its basic file system, possibly transforming
  12801. the data along the way or providing additional
  12802. functionality. The class <code>FilterFileSystem</code>
  12803. itself simply overrides all methods of
  12804. <code>FileSystem</code> with versions that
  12805. pass all requests to the contained file
  12806. system. Subclasses of <code>FilterFileSystem</code>
  12807. may further override some of these methods
  12808. and may also provide additional methods
  12809. and fields.]]>
  12810. </doc>
  12811. </class>
  12812. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  12813. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  12814. <interface name="FsConstants" abstract="true"
  12815. static="false" final="false" visibility="public"
  12816. deprecated="not deprecated">
  12817. <field name="LOCAL_FS_URI" type="java.net.URI"
  12818. transient="false" volatile="false"
  12819. static="true" final="true" visibility="public"
  12820. deprecated="not deprecated">
  12821. </field>
  12822. <field name="FTP_SCHEME" type="java.lang.String"
  12823. transient="false" volatile="false"
  12824. static="true" final="true" visibility="public"
  12825. deprecated="not deprecated">
  12826. </field>
  12827. <field name="MAX_PATH_LINKS" type="int"
  12828. transient="false" volatile="false"
  12829. static="true" final="true" visibility="public"
  12830. deprecated="not deprecated">
  12831. </field>
  12832. <field name="VIEWFS_URI" type="java.net.URI"
  12833. transient="false" volatile="false"
  12834. static="true" final="true" visibility="public"
  12835. deprecated="not deprecated">
  12836. <doc>
  12837. <![CDATA[ViewFs: viewFs file system (ie the mount file system on client side)]]>
  12838. </doc>
  12839. </field>
  12840. <field name="VIEWFS_SCHEME" type="java.lang.String"
  12841. transient="false" volatile="false"
  12842. static="true" final="true" visibility="public"
  12843. deprecated="not deprecated">
  12844. </field>
  12845. <field name="FS_VIEWFS_OVERLOAD_SCHEME_TARGET_FS_IMPL_PATTERN" type="java.lang.String"
  12846. transient="false" volatile="false"
  12847. static="true" final="true" visibility="public"
  12848. deprecated="not deprecated">
  12849. </field>
  12850. <field name="VIEWFS_TYPE" 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="VIEWFSOS_TYPE" type="java.lang.String"
  12856. transient="false" volatile="false"
  12857. static="true" final="true" visibility="public"
  12858. deprecated="not deprecated">
  12859. </field>
  12860. <doc>
  12861. <![CDATA[FileSystem related constants.]]>
  12862. </doc>
  12863. </interface>
  12864. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  12865. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  12866. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  12867. abstract="false"
  12868. static="false" final="false" visibility="public"
  12869. deprecated="not deprecated">
  12870. <implements name="org.apache.hadoop.fs.Seekable"/>
  12871. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  12872. <implements name="org.apache.hadoop.fs.ByteBufferReadable"/>
  12873. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  12874. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  12875. <implements name="org.apache.hadoop.fs.CanSetReadahead"/>
  12876. <implements name="org.apache.hadoop.fs.HasEnhancedByteBufferAccess"/>
  12877. <implements name="org.apache.hadoop.fs.CanUnbuffer"/>
  12878. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  12879. <constructor name="FSDataInputStream" type="java.io.InputStream"
  12880. static="false" final="false" visibility="public"
  12881. deprecated="not deprecated">
  12882. </constructor>
  12883. <method name="seek"
  12884. abstract="false" native="false" synchronized="false"
  12885. static="false" final="false" visibility="public"
  12886. deprecated="not deprecated">
  12887. <param name="desired" type="long"/>
  12888. <exception name="IOException" type="java.io.IOException"/>
  12889. <doc>
  12890. <![CDATA[Seek to the given offset.
  12891. @param desired offset to seek to]]>
  12892. </doc>
  12893. </method>
  12894. <method name="getPos" return="long"
  12895. abstract="false" native="false" synchronized="false"
  12896. static="false" final="false" visibility="public"
  12897. deprecated="not deprecated">
  12898. <exception name="IOException" type="java.io.IOException"/>
  12899. <doc>
  12900. <![CDATA[Get the current position in the input stream.
  12901. @return current position in the input stream]]>
  12902. </doc>
  12903. </method>
  12904. <method name="read" return="int"
  12905. abstract="false" native="false" synchronized="false"
  12906. static="false" final="false" visibility="public"
  12907. deprecated="not deprecated">
  12908. <param name="position" type="long"/>
  12909. <param name="buffer" type="byte[]"/>
  12910. <param name="offset" type="int"/>
  12911. <param name="length" type="int"/>
  12912. <exception name="IOException" type="java.io.IOException"/>
  12913. <doc>
  12914. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  12915. @param position position in the input stream to seek
  12916. @param buffer buffer into which data is read
  12917. @param offset offset into the buffer in which data is written
  12918. @param length maximum number of bytes to read
  12919. @return total number of bytes read into the buffer, or <code>-1</code>
  12920. if there is no more data because the end of the stream has been
  12921. reached]]>
  12922. </doc>
  12923. </method>
  12924. <method name="readFully"
  12925. abstract="false" native="false" synchronized="false"
  12926. static="false" final="false" visibility="public"
  12927. deprecated="not deprecated">
  12928. <param name="position" type="long"/>
  12929. <param name="buffer" type="byte[]"/>
  12930. <param name="offset" type="int"/>
  12931. <param name="length" type="int"/>
  12932. <exception name="IOException" type="java.io.IOException"/>
  12933. <doc>
  12934. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  12935. Continues to read until <code>length</code> bytes have been read.
  12936. @param position position in the input stream to seek
  12937. @param buffer buffer into which data is read
  12938. @param offset offset into the buffer in which data is written
  12939. @param length the number of bytes to read
  12940. @throws IOException IO problems
  12941. @throws EOFException If the end of stream is reached while reading.
  12942. If an exception is thrown an undetermined number
  12943. of bytes in the buffer may have been written.]]>
  12944. </doc>
  12945. </method>
  12946. <method name="readFully"
  12947. abstract="false" native="false" synchronized="false"
  12948. static="false" final="false" visibility="public"
  12949. deprecated="not deprecated">
  12950. <param name="position" type="long"/>
  12951. <param name="buffer" type="byte[]"/>
  12952. <exception name="IOException" type="java.io.IOException"/>
  12953. <doc>
  12954. <![CDATA[See {@link #readFully(long, byte[], int, int)}.]]>
  12955. </doc>
  12956. </method>
  12957. <method name="seekToNewSource" return="boolean"
  12958. abstract="false" native="false" synchronized="false"
  12959. static="false" final="false" visibility="public"
  12960. deprecated="not deprecated">
  12961. <param name="targetPos" type="long"/>
  12962. <exception name="IOException" type="java.io.IOException"/>
  12963. <doc>
  12964. <![CDATA[Seek to the given position on an alternate copy of the data.
  12965. @param targetPos position to seek to
  12966. @return true if a new source is found, false otherwise]]>
  12967. </doc>
  12968. </method>
  12969. <method name="read" return="int"
  12970. abstract="false" native="false" synchronized="false"
  12971. static="false" final="false" visibility="public"
  12972. deprecated="not deprecated">
  12973. <param name="buf" type="java.nio.ByteBuffer"/>
  12974. <exception name="IOException" type="java.io.IOException"/>
  12975. </method>
  12976. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  12977. abstract="false" native="false" synchronized="false"
  12978. static="false" final="false" visibility="public"
  12979. deprecated="not deprecated">
  12980. <exception name="IOException" type="java.io.IOException"/>
  12981. </method>
  12982. <method name="setReadahead"
  12983. abstract="false" native="false" synchronized="false"
  12984. static="false" final="false" visibility="public"
  12985. deprecated="not deprecated">
  12986. <param name="readahead" type="java.lang.Long"/>
  12987. <exception name="IOException" type="java.io.IOException"/>
  12988. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12989. </method>
  12990. <method name="setDropBehind"
  12991. abstract="false" native="false" synchronized="false"
  12992. static="false" final="false" visibility="public"
  12993. deprecated="not deprecated">
  12994. <param name="dropBehind" type="java.lang.Boolean"/>
  12995. <exception name="IOException" type="java.io.IOException"/>
  12996. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12997. </method>
  12998. <method name="read" return="java.nio.ByteBuffer"
  12999. abstract="false" native="false" synchronized="false"
  13000. static="false" final="false" visibility="public"
  13001. deprecated="not deprecated">
  13002. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  13003. <param name="maxLength" type="int"/>
  13004. <param name="opts" type="java.util.EnumSet"/>
  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="true" visibility="public"
  13011. deprecated="not deprecated">
  13012. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  13013. <param name="maxLength" type="int"/>
  13014. <exception name="IOException" type="java.io.IOException"/>
  13015. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13016. </method>
  13017. <method name="releaseBuffer"
  13018. abstract="false" native="false" synchronized="false"
  13019. static="false" final="false" visibility="public"
  13020. deprecated="not deprecated">
  13021. <param name="buffer" type="java.nio.ByteBuffer"/>
  13022. </method>
  13023. <method name="unbuffer"
  13024. abstract="false" native="false" synchronized="false"
  13025. static="false" final="false" visibility="public"
  13026. deprecated="not deprecated">
  13027. </method>
  13028. <method name="hasCapability" return="boolean"
  13029. abstract="false" native="false" synchronized="false"
  13030. static="false" final="false" visibility="public"
  13031. deprecated="not deprecated">
  13032. <param name="capability" type="java.lang.String"/>
  13033. </method>
  13034. <method name="toString" return="java.lang.String"
  13035. abstract="false" native="false" synchronized="false"
  13036. static="false" final="false" visibility="public"
  13037. deprecated="not deprecated">
  13038. <doc>
  13039. <![CDATA[String value. Includes the string value of the inner stream
  13040. @return the stream]]>
  13041. </doc>
  13042. </method>
  13043. <doc>
  13044. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  13045. and buffers input through a {@link java.io.BufferedInputStream}.]]>
  13046. </doc>
  13047. </class>
  13048. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  13049. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  13050. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  13051. abstract="false"
  13052. static="false" final="false" visibility="public"
  13053. deprecated="not deprecated">
  13054. <implements name="org.apache.hadoop.fs.Syncable"/>
  13055. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  13056. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  13057. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  13058. static="false" final="false" visibility="public"
  13059. deprecated="not deprecated">
  13060. </constructor>
  13061. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  13062. static="false" final="false" visibility="public"
  13063. deprecated="not deprecated">
  13064. </constructor>
  13065. <method name="getPos" return="long"
  13066. abstract="false" native="false" synchronized="false"
  13067. static="false" final="false" visibility="public"
  13068. deprecated="not deprecated">
  13069. <doc>
  13070. <![CDATA[Get the current position in the output stream.
  13071. @return the current position in the output stream]]>
  13072. </doc>
  13073. </method>
  13074. <method name="close"
  13075. abstract="false" native="false" synchronized="false"
  13076. static="false" final="false" visibility="public"
  13077. deprecated="not deprecated">
  13078. <exception name="IOException" type="java.io.IOException"/>
  13079. <doc>
  13080. <![CDATA[Close the underlying output stream.]]>
  13081. </doc>
  13082. </method>
  13083. <method name="toString" return="java.lang.String"
  13084. abstract="false" native="false" synchronized="false"
  13085. static="false" final="false" visibility="public"
  13086. deprecated="not deprecated">
  13087. </method>
  13088. <method name="hasCapability" return="boolean"
  13089. abstract="false" native="false" synchronized="false"
  13090. static="false" final="false" visibility="public"
  13091. deprecated="not deprecated">
  13092. <param name="capability" type="java.lang.String"/>
  13093. </method>
  13094. <method name="hflush"
  13095. abstract="false" native="false" synchronized="false"
  13096. static="false" final="false" visibility="public"
  13097. deprecated="not deprecated">
  13098. <exception name="IOException" type="java.io.IOException"/>
  13099. </method>
  13100. <method name="hsync"
  13101. abstract="false" native="false" synchronized="false"
  13102. static="false" final="false" visibility="public"
  13103. deprecated="not deprecated">
  13104. <exception name="IOException" type="java.io.IOException"/>
  13105. </method>
  13106. <method name="setDropBehind"
  13107. abstract="false" native="false" synchronized="false"
  13108. static="false" final="false" visibility="public"
  13109. deprecated="not deprecated">
  13110. <param name="dropBehind" type="java.lang.Boolean"/>
  13111. <exception name="IOException" type="java.io.IOException"/>
  13112. </method>
  13113. <doc>
  13114. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream}.]]>
  13115. </doc>
  13116. </class>
  13117. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  13118. <!-- start class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  13119. <class name="FSDataOutputStreamBuilder" extends="java.lang.Object"
  13120. abstract="true"
  13121. static="false" final="false" visibility="public"
  13122. deprecated="not deprecated">
  13123. <constructor name="FSDataOutputStreamBuilder" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path"
  13124. static="false" final="false" visibility="protected"
  13125. deprecated="not deprecated">
  13126. <doc>
  13127. <![CDATA[Constructor.]]>
  13128. </doc>
  13129. </constructor>
  13130. <method name="getThisBuilder" return="B"
  13131. abstract="true" native="false" synchronized="false"
  13132. static="false" final="false" visibility="protected"
  13133. deprecated="not deprecated">
  13134. <doc>
  13135. <![CDATA[Return the concrete implementation of the builder instance.]]>
  13136. </doc>
  13137. </method>
  13138. <method name="getFS" return="org.apache.hadoop.fs.FileSystem"
  13139. abstract="false" native="false" synchronized="false"
  13140. static="false" final="false" visibility="protected"
  13141. deprecated="not deprecated">
  13142. </method>
  13143. <method name="getPath" return="org.apache.hadoop.fs.Path"
  13144. abstract="false" native="false" synchronized="false"
  13145. static="false" final="false" visibility="protected"
  13146. deprecated="not deprecated">
  13147. </method>
  13148. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  13149. abstract="false" native="false" synchronized="false"
  13150. static="false" final="false" visibility="protected"
  13151. deprecated="not deprecated">
  13152. </method>
  13153. <method name="permission" return="B"
  13154. abstract="false" native="false" synchronized="false"
  13155. static="false" final="false" visibility="public"
  13156. deprecated="not deprecated">
  13157. <param name="perm" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13158. <doc>
  13159. <![CDATA[Set permission for the file.]]>
  13160. </doc>
  13161. </method>
  13162. <method name="getBufferSize" return="int"
  13163. abstract="false" native="false" synchronized="false"
  13164. static="false" final="false" visibility="protected"
  13165. deprecated="not deprecated">
  13166. </method>
  13167. <method name="bufferSize" return="B"
  13168. abstract="false" native="false" synchronized="false"
  13169. static="false" final="false" visibility="public"
  13170. deprecated="not deprecated">
  13171. <param name="bufSize" type="int"/>
  13172. <doc>
  13173. <![CDATA[Set the size of the buffer to be used.]]>
  13174. </doc>
  13175. </method>
  13176. <method name="getReplication" return="short"
  13177. abstract="false" native="false" synchronized="false"
  13178. static="false" final="false" visibility="protected"
  13179. deprecated="not deprecated">
  13180. </method>
  13181. <method name="replication" return="B"
  13182. abstract="false" native="false" synchronized="false"
  13183. static="false" final="false" visibility="public"
  13184. deprecated="not deprecated">
  13185. <param name="replica" type="short"/>
  13186. <doc>
  13187. <![CDATA[Set replication factor.]]>
  13188. </doc>
  13189. </method>
  13190. <method name="getBlockSize" return="long"
  13191. abstract="false" native="false" synchronized="false"
  13192. static="false" final="false" visibility="protected"
  13193. deprecated="not deprecated">
  13194. </method>
  13195. <method name="blockSize" return="B"
  13196. abstract="false" native="false" synchronized="false"
  13197. static="false" final="false" visibility="public"
  13198. deprecated="not deprecated">
  13199. <param name="blkSize" type="long"/>
  13200. <doc>
  13201. <![CDATA[Set block size.]]>
  13202. </doc>
  13203. </method>
  13204. <method name="isRecursive" return="boolean"
  13205. abstract="false" native="false" synchronized="false"
  13206. static="false" final="false" visibility="protected"
  13207. deprecated="not deprecated">
  13208. <doc>
  13209. <![CDATA[Return true to create the parent directories if they do not exist.]]>
  13210. </doc>
  13211. </method>
  13212. <method name="recursive" return="B"
  13213. abstract="false" native="false" synchronized="false"
  13214. static="false" final="false" visibility="public"
  13215. deprecated="not deprecated">
  13216. <doc>
  13217. <![CDATA[Create the parent directory if they do not exist.]]>
  13218. </doc>
  13219. </method>
  13220. <method name="getProgress" return="org.apache.hadoop.util.Progressable"
  13221. abstract="false" native="false" synchronized="false"
  13222. static="false" final="false" visibility="protected"
  13223. deprecated="not deprecated">
  13224. </method>
  13225. <method name="progress" return="B"
  13226. abstract="false" native="false" synchronized="false"
  13227. static="false" final="false" visibility="public"
  13228. deprecated="not deprecated">
  13229. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  13230. <doc>
  13231. <![CDATA[Set the facility of reporting progress.]]>
  13232. </doc>
  13233. </method>
  13234. <method name="getFlags" return="java.util.EnumSet"
  13235. abstract="false" native="false" synchronized="false"
  13236. static="false" final="false" visibility="protected"
  13237. deprecated="not deprecated">
  13238. </method>
  13239. <method name="create" return="B"
  13240. abstract="false" native="false" synchronized="false"
  13241. static="false" final="false" visibility="public"
  13242. deprecated="not deprecated">
  13243. <doc>
  13244. <![CDATA[Create an FSDataOutputStream at the specified path.]]>
  13245. </doc>
  13246. </method>
  13247. <method name="overwrite" return="B"
  13248. abstract="false" native="false" synchronized="false"
  13249. static="false" final="false" visibility="public"
  13250. deprecated="not deprecated">
  13251. <param name="overwrite" type="boolean"/>
  13252. <doc>
  13253. <![CDATA[Set to true to overwrite the existing file.
  13254. Set it to false, an exception will be thrown when calling {@link #build()}
  13255. if the file exists.]]>
  13256. </doc>
  13257. </method>
  13258. <method name="append" return="B"
  13259. abstract="false" native="false" synchronized="false"
  13260. static="false" final="false" visibility="public"
  13261. deprecated="not deprecated">
  13262. <doc>
  13263. <![CDATA[Append to an existing file (optional operation).]]>
  13264. </doc>
  13265. </method>
  13266. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  13267. abstract="false" native="false" synchronized="false"
  13268. static="false" final="false" visibility="protected"
  13269. deprecated="not deprecated">
  13270. </method>
  13271. <method name="checksumOpt" return="B"
  13272. abstract="false" native="false" synchronized="false"
  13273. static="false" final="false" visibility="public"
  13274. deprecated="not deprecated">
  13275. <param name="chksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  13276. <doc>
  13277. <![CDATA[Set checksum opt.]]>
  13278. </doc>
  13279. </method>
  13280. <method name="opt" return="B"
  13281. abstract="false" native="false" synchronized="false"
  13282. static="false" final="false" visibility="public"
  13283. deprecated="not deprecated">
  13284. <param name="key" type="java.lang.String"/>
  13285. <param name="value" type="java.lang.String"/>
  13286. <doc>
  13287. <![CDATA[Set optional Builder parameter.]]>
  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="boolean"/>
  13296. <doc>
  13297. <![CDATA[Set optional boolean parameter for the Builder.
  13298. @see #opt(String, String)]]>
  13299. </doc>
  13300. </method>
  13301. <method name="opt" return="B"
  13302. abstract="false" native="false" synchronized="false"
  13303. static="false" final="false" visibility="public"
  13304. deprecated="not deprecated">
  13305. <param name="key" type="java.lang.String"/>
  13306. <param name="value" type="int"/>
  13307. <doc>
  13308. <![CDATA[Set optional int parameter for the Builder.
  13309. @see #opt(String, String)]]>
  13310. </doc>
  13311. </method>
  13312. <method name="opt" return="B"
  13313. abstract="false" native="false" synchronized="false"
  13314. static="false" final="false" visibility="public"
  13315. deprecated="not deprecated">
  13316. <param name="key" type="java.lang.String"/>
  13317. <param name="value" type="float"/>
  13318. <doc>
  13319. <![CDATA[Set optional float parameter for the Builder.
  13320. @see #opt(String, String)]]>
  13321. </doc>
  13322. </method>
  13323. <method name="opt" return="B"
  13324. abstract="false" native="false" synchronized="false"
  13325. static="false" final="false" visibility="public"
  13326. deprecated="not deprecated">
  13327. <param name="key" type="java.lang.String"/>
  13328. <param name="value" type="double"/>
  13329. <doc>
  13330. <![CDATA[Set optional double parameter for the Builder.
  13331. @see #opt(String, String)]]>
  13332. </doc>
  13333. </method>
  13334. <method name="opt" return="B"
  13335. abstract="false" native="false" synchronized="false"
  13336. static="false" final="false" visibility="public"
  13337. deprecated="not deprecated">
  13338. <param name="key" type="java.lang.String"/>
  13339. <param name="values" type="java.lang.String[]"/>
  13340. <doc>
  13341. <![CDATA[Set an array of string values as optional parameter for the Builder.
  13342. @see #opt(String, String)]]>
  13343. </doc>
  13344. </method>
  13345. <method name="must" return="B"
  13346. abstract="false" native="false" synchronized="false"
  13347. static="false" final="false" visibility="public"
  13348. deprecated="not deprecated">
  13349. <param name="key" type="java.lang.String"/>
  13350. <param name="value" type="java.lang.String"/>
  13351. <doc>
  13352. <![CDATA[Set mandatory option to the Builder.
  13353. If the option is not supported or unavailable on the {@link FileSystem},
  13354. the client should expect {@link #build()} throws IllegalArgumentException.]]>
  13355. </doc>
  13356. </method>
  13357. <method name="must" return="B"
  13358. abstract="false" native="false" synchronized="false"
  13359. static="false" final="false" visibility="public"
  13360. deprecated="not deprecated">
  13361. <param name="key" type="java.lang.String"/>
  13362. <param name="value" type="boolean"/>
  13363. <doc>
  13364. <![CDATA[Set mandatory boolean option.
  13365. @see #must(String, String)]]>
  13366. </doc>
  13367. </method>
  13368. <method name="must" return="B"
  13369. abstract="false" native="false" synchronized="false"
  13370. static="false" final="false" visibility="public"
  13371. deprecated="not deprecated">
  13372. <param name="key" type="java.lang.String"/>
  13373. <param name="value" type="int"/>
  13374. <doc>
  13375. <![CDATA[Set mandatory int option.
  13376. @see #must(String, String)]]>
  13377. </doc>
  13378. </method>
  13379. <method name="must" return="B"
  13380. abstract="false" native="false" synchronized="false"
  13381. static="false" final="false" visibility="public"
  13382. deprecated="not deprecated">
  13383. <param name="key" type="java.lang.String"/>
  13384. <param name="value" type="float"/>
  13385. <doc>
  13386. <![CDATA[Set mandatory float option.
  13387. @see #must(String, String)]]>
  13388. </doc>
  13389. </method>
  13390. <method name="must" return="B"
  13391. abstract="false" native="false" synchronized="false"
  13392. static="false" final="false" visibility="public"
  13393. deprecated="not deprecated">
  13394. <param name="key" type="java.lang.String"/>
  13395. <param name="value" type="double"/>
  13396. <doc>
  13397. <![CDATA[Set mandatory double option.
  13398. @see #must(String, String)]]>
  13399. </doc>
  13400. </method>
  13401. <method name="must" return="B"
  13402. abstract="false" native="false" synchronized="false"
  13403. static="false" final="false" visibility="public"
  13404. deprecated="not deprecated">
  13405. <param name="key" type="java.lang.String"/>
  13406. <param name="values" type="java.lang.String[]"/>
  13407. <doc>
  13408. <![CDATA[Set a string array as mandatory option.
  13409. @see #must(String, String)]]>
  13410. </doc>
  13411. </method>
  13412. <method name="getOptions" return="org.apache.hadoop.conf.Configuration"
  13413. abstract="false" native="false" synchronized="false"
  13414. static="false" final="false" visibility="protected"
  13415. deprecated="not deprecated">
  13416. </method>
  13417. <method name="getMandatoryKeys" return="java.util.Set"
  13418. abstract="false" native="false" synchronized="false"
  13419. static="false" final="false" visibility="protected"
  13420. deprecated="not deprecated">
  13421. <doc>
  13422. <![CDATA[Get all the keys that are set as mandatory keys.]]>
  13423. </doc>
  13424. </method>
  13425. <method name="build" return="S"
  13426. abstract="true" native="false" synchronized="false"
  13427. static="false" final="false" visibility="public"
  13428. deprecated="not deprecated">
  13429. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  13430. <exception name="IOException" type="java.io.IOException"/>
  13431. <doc>
  13432. <![CDATA[Create the FSDataOutputStream to write on the file system.
  13433. @throws IllegalArgumentException if the parameters are not valid.
  13434. @throws IOException on errors when file system creates or appends the file.]]>
  13435. </doc>
  13436. </method>
  13437. <doc>
  13438. <![CDATA[Builder for {@link FSDataOutputStream} and its subclasses.
  13439. It is used to create {@link FSDataOutputStream} when creating a new file or
  13440. appending an existing file on {@link FileSystem}.
  13441. By default, it does not create parent directory that do not exist.
  13442. {@link FileSystem#createNonRecursive(Path, boolean, int, short, long,
  13443. Progressable)}.
  13444. To create missing parent directory, use {@link #recursive()}.
  13445. To be more generic, {@link #opt(String, int)} and {@link #must(String, int)}
  13446. variants provide implementation-agnostic way to customize the builder.
  13447. Each FS-specific builder implementation can interpret the FS-specific
  13448. options accordingly, for example:
  13449. <code>
  13450. // Don't
  13451. if (fs instanceof FooFileSystem) {
  13452. FooFileSystem fs = (FooFileSystem) fs;
  13453. OutputStream out = dfs.createFile(path)
  13454. .optionA()
  13455. .optionB("value")
  13456. .cache()
  13457. .build()
  13458. } else if (fs instanceof BarFileSystem) {
  13459. ...
  13460. }
  13461. // Do
  13462. OutputStream out = fs.createFile(path)
  13463. .permission(perm)
  13464. .bufferSize(bufSize)
  13465. .opt("foofs:option.a", true)
  13466. .opt("foofs:option.b", "value")
  13467. .opt("barfs:cache", true)
  13468. .must("foofs:cache", true)
  13469. .must("barfs:cache-size", 256 * 1024 * 1024)
  13470. .build();
  13471. </code>
  13472. If the option is not related to the file system, the option will be ignored.
  13473. If the option is must, but not supported by the file system, a
  13474. {@link IllegalArgumentException} will be thrown.]]>
  13475. </doc>
  13476. </class>
  13477. <!-- end class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  13478. <!-- start class org.apache.hadoop.fs.FSError -->
  13479. <class name="FSError" extends="java.lang.Error"
  13480. abstract="false"
  13481. static="false" final="false" visibility="public"
  13482. deprecated="not deprecated">
  13483. <doc>
  13484. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  13485. in the native filesystem.]]>
  13486. </doc>
  13487. </class>
  13488. <!-- end class org.apache.hadoop.fs.FSError -->
  13489. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  13490. <class name="FSInputStream" extends="java.io.InputStream"
  13491. abstract="true"
  13492. static="false" final="false" visibility="public"
  13493. deprecated="not deprecated">
  13494. <implements name="org.apache.hadoop.fs.Seekable"/>
  13495. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  13496. <constructor name="FSInputStream"
  13497. static="false" final="false" visibility="public"
  13498. deprecated="not deprecated">
  13499. </constructor>
  13500. <method name="seek"
  13501. abstract="true" native="false" synchronized="false"
  13502. static="false" final="false" visibility="public"
  13503. deprecated="not deprecated">
  13504. <param name="pos" type="long"/>
  13505. <exception name="IOException" type="java.io.IOException"/>
  13506. <doc>
  13507. <![CDATA[Seek to the given offset from the start of the file.
  13508. The next read() will be from that location. Can't
  13509. seek past the end of the file.]]>
  13510. </doc>
  13511. </method>
  13512. <method name="getPos" return="long"
  13513. abstract="true" native="false" synchronized="false"
  13514. static="false" final="false" visibility="public"
  13515. deprecated="not deprecated">
  13516. <exception name="IOException" type="java.io.IOException"/>
  13517. <doc>
  13518. <![CDATA[Return the current offset from the start of the file]]>
  13519. </doc>
  13520. </method>
  13521. <method name="seekToNewSource" return="boolean"
  13522. abstract="true" native="false" synchronized="false"
  13523. static="false" final="false" visibility="public"
  13524. deprecated="not deprecated">
  13525. <param name="targetPos" type="long"/>
  13526. <exception name="IOException" type="java.io.IOException"/>
  13527. <doc>
  13528. <![CDATA[Seeks a different copy of the data. Returns true if
  13529. found a new source, false otherwise.]]>
  13530. </doc>
  13531. </method>
  13532. <method name="read" return="int"
  13533. abstract="false" native="false" synchronized="false"
  13534. static="false" final="false" visibility="public"
  13535. deprecated="not deprecated">
  13536. <param name="position" type="long"/>
  13537. <param name="buffer" type="byte[]"/>
  13538. <param name="offset" type="int"/>
  13539. <param name="length" type="int"/>
  13540. <exception name="IOException" type="java.io.IOException"/>
  13541. </method>
  13542. <method name="validatePositionedReadArgs"
  13543. abstract="false" native="false" synchronized="false"
  13544. static="false" final="false" visibility="protected"
  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="EOFException" type="java.io.EOFException"/>
  13551. <doc>
  13552. <![CDATA[Validation code, available for use in subclasses.
  13553. @param position position: if negative an EOF exception is raised
  13554. @param buffer destination buffer
  13555. @param offset offset within the buffer
  13556. @param length length of bytes to read
  13557. @throws EOFException if the position is negative
  13558. @throws IndexOutOfBoundsException if there isn't space for the amount of
  13559. data requested.
  13560. @throws IllegalArgumentException other arguments are invalid.]]>
  13561. </doc>
  13562. </method>
  13563. <method name="readFully"
  13564. abstract="false" native="false" synchronized="false"
  13565. static="false" final="false" visibility="public"
  13566. deprecated="not deprecated">
  13567. <param name="position" type="long"/>
  13568. <param name="buffer" type="byte[]"/>
  13569. <param name="offset" type="int"/>
  13570. <param name="length" type="int"/>
  13571. <exception name="IOException" type="java.io.IOException"/>
  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. <exception name="IOException" type="java.io.IOException"/>
  13580. </method>
  13581. <doc>
  13582. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  13583. of RAF-style seek ability.]]>
  13584. </doc>
  13585. </class>
  13586. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  13587. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  13588. <class name="FsServerDefaults" extends="java.lang.Object"
  13589. abstract="false"
  13590. static="false" final="false" visibility="public"
  13591. deprecated="not deprecated">
  13592. <implements name="org.apache.hadoop.io.Writable"/>
  13593. <constructor name="FsServerDefaults"
  13594. static="false" final="false" visibility="public"
  13595. deprecated="not deprecated">
  13596. </constructor>
  13597. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type"
  13598. static="false" final="false" visibility="public"
  13599. deprecated="not deprecated">
  13600. </constructor>
  13601. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String"
  13602. static="false" final="false" visibility="public"
  13603. deprecated="not deprecated">
  13604. </constructor>
  13605. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String, byte"
  13606. static="false" final="false" visibility="public"
  13607. deprecated="not deprecated">
  13608. </constructor>
  13609. <method name="getBlockSize" return="long"
  13610. abstract="false" native="false" synchronized="false"
  13611. static="false" final="false" visibility="public"
  13612. deprecated="not deprecated">
  13613. </method>
  13614. <method name="getBytesPerChecksum" return="int"
  13615. abstract="false" native="false" synchronized="false"
  13616. static="false" final="false" visibility="public"
  13617. deprecated="not deprecated">
  13618. </method>
  13619. <method name="getWritePacketSize" return="int"
  13620. abstract="false" native="false" synchronized="false"
  13621. static="false" final="false" visibility="public"
  13622. deprecated="not deprecated">
  13623. </method>
  13624. <method name="getReplication" return="short"
  13625. abstract="false" native="false" synchronized="false"
  13626. static="false" final="false" visibility="public"
  13627. deprecated="not deprecated">
  13628. </method>
  13629. <method name="getFileBufferSize" 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="getEncryptDataTransfer" return="boolean"
  13635. abstract="false" native="false" synchronized="false"
  13636. static="false" final="false" visibility="public"
  13637. deprecated="not deprecated">
  13638. </method>
  13639. <method name="getTrashInterval" return="long"
  13640. abstract="false" native="false" synchronized="false"
  13641. static="false" final="false" visibility="public"
  13642. deprecated="not deprecated">
  13643. </method>
  13644. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  13645. abstract="false" native="false" synchronized="false"
  13646. static="false" final="false" visibility="public"
  13647. deprecated="not deprecated">
  13648. </method>
  13649. <method name="getKeyProviderUri" return="java.lang.String"
  13650. abstract="false" native="false" synchronized="false"
  13651. static="false" final="false" visibility="public"
  13652. deprecated="not deprecated">
  13653. </method>
  13654. <method name="getDefaultStoragePolicyId" return="byte"
  13655. abstract="false" native="false" synchronized="false"
  13656. static="false" final="false" visibility="public"
  13657. deprecated="not deprecated">
  13658. </method>
  13659. <doc>
  13660. <![CDATA[Provides server default configuration values to clients.]]>
  13661. </doc>
  13662. </class>
  13663. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  13664. <!-- start class org.apache.hadoop.fs.FsStatus -->
  13665. <class name="FsStatus" extends="java.lang.Object"
  13666. abstract="false"
  13667. static="false" final="false" visibility="public"
  13668. deprecated="not deprecated">
  13669. <implements name="org.apache.hadoop.io.Writable"/>
  13670. <constructor name="FsStatus" type="long, long, long"
  13671. static="false" final="false" visibility="public"
  13672. deprecated="not deprecated">
  13673. <doc>
  13674. <![CDATA[Construct a FsStatus object, using the specified statistics]]>
  13675. </doc>
  13676. </constructor>
  13677. <method name="getCapacity" return="long"
  13678. abstract="false" native="false" synchronized="false"
  13679. static="false" final="false" visibility="public"
  13680. deprecated="not deprecated">
  13681. <doc>
  13682. <![CDATA[Return the capacity in bytes of the file system]]>
  13683. </doc>
  13684. </method>
  13685. <method name="getUsed" return="long"
  13686. abstract="false" native="false" synchronized="false"
  13687. static="false" final="false" visibility="public"
  13688. deprecated="not deprecated">
  13689. <doc>
  13690. <![CDATA[Return the number of bytes used on the file system]]>
  13691. </doc>
  13692. </method>
  13693. <method name="getRemaining" return="long"
  13694. abstract="false" native="false" synchronized="false"
  13695. static="false" final="false" visibility="public"
  13696. deprecated="not deprecated">
  13697. <doc>
  13698. <![CDATA[Return the number of remaining bytes on the file system]]>
  13699. </doc>
  13700. </method>
  13701. <method name="write"
  13702. abstract="false" native="false" synchronized="false"
  13703. static="false" final="false" visibility="public"
  13704. deprecated="not deprecated">
  13705. <param name="out" type="java.io.DataOutput"/>
  13706. <exception name="IOException" type="java.io.IOException"/>
  13707. </method>
  13708. <method name="readFields"
  13709. abstract="false" native="false" synchronized="false"
  13710. static="false" final="false" visibility="public"
  13711. deprecated="not deprecated">
  13712. <param name="in" type="java.io.DataInput"/>
  13713. <exception name="IOException" type="java.io.IOException"/>
  13714. </method>
  13715. <doc>
  13716. <![CDATA[This class is used to represent the capacity, free and used space on a
  13717. {@link FileSystem}.]]>
  13718. </doc>
  13719. </class>
  13720. <!-- end class org.apache.hadoop.fs.FsStatus -->
  13721. <!-- start class org.apache.hadoop.fs.GlobalStorageStatistics -->
  13722. <class name="GlobalStorageStatistics" extends="java.lang.Enum"
  13723. abstract="false"
  13724. static="false" final="true" visibility="public"
  13725. deprecated="not deprecated">
  13726. <method name="values" return="org.apache.hadoop.fs.GlobalStorageStatistics[]"
  13727. abstract="false" native="false" synchronized="false"
  13728. static="true" final="false" visibility="public"
  13729. deprecated="not deprecated">
  13730. </method>
  13731. <method name="valueOf" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  13732. abstract="false" native="false" synchronized="false"
  13733. static="true" final="false" visibility="public"
  13734. deprecated="not deprecated">
  13735. <param name="name" type="java.lang.String"/>
  13736. </method>
  13737. <method name="get" return="org.apache.hadoop.fs.StorageStatistics"
  13738. abstract="false" native="false" synchronized="true"
  13739. static="false" final="false" visibility="public"
  13740. deprecated="not deprecated">
  13741. <param name="name" type="java.lang.String"/>
  13742. <doc>
  13743. <![CDATA[Get the StorageStatistics object with the given name.
  13744. @param name The storage statistics object name.
  13745. @return The StorageStatistics object with the given name, or
  13746. null if there is none.]]>
  13747. </doc>
  13748. </method>
  13749. <method name="put" return="org.apache.hadoop.fs.StorageStatistics"
  13750. abstract="false" native="false" synchronized="true"
  13751. static="false" final="false" visibility="public"
  13752. deprecated="not deprecated">
  13753. <param name="name" type="java.lang.String"/>
  13754. <param name="provider" type="org.apache.hadoop.fs.GlobalStorageStatistics.StorageStatisticsProvider"/>
  13755. <doc>
  13756. <![CDATA[Create or return the StorageStatistics object with the given name.
  13757. @param name The storage statistics object name.
  13758. @param provider An object which can create a new StorageStatistics
  13759. object if needed.
  13760. @return The StorageStatistics object with the given name.
  13761. @throws RuntimeException If the StorageStatisticsProvider provides a null
  13762. object or a new StorageStatistics object with the
  13763. wrong name.]]>
  13764. </doc>
  13765. </method>
  13766. <method name="reset"
  13767. abstract="false" native="false" synchronized="true"
  13768. static="false" final="false" visibility="public"
  13769. deprecated="not deprecated">
  13770. <doc>
  13771. <![CDATA[Reset all global storage statistics.]]>
  13772. </doc>
  13773. </method>
  13774. <method name="iterator" return="java.util.Iterator"
  13775. abstract="false" native="false" synchronized="true"
  13776. static="false" final="false" visibility="public"
  13777. deprecated="not deprecated">
  13778. <doc>
  13779. <![CDATA[Get an iterator that we can use to iterate throw all the global storage
  13780. statistics objects.]]>
  13781. </doc>
  13782. </method>
  13783. <doc>
  13784. <![CDATA[Stores global storage statistics objects.]]>
  13785. </doc>
  13786. </class>
  13787. <!-- end class org.apache.hadoop.fs.GlobalStorageStatistics -->
  13788. <!-- start class org.apache.hadoop.fs.GlobFilter -->
  13789. <class name="GlobFilter" extends="java.lang.Object"
  13790. abstract="false"
  13791. static="false" final="false" visibility="public"
  13792. deprecated="not deprecated">
  13793. <implements name="org.apache.hadoop.fs.PathFilter"/>
  13794. <constructor name="GlobFilter" type="java.lang.String"
  13795. static="false" final="false" visibility="public"
  13796. deprecated="not deprecated">
  13797. <exception name="IOException" type="java.io.IOException"/>
  13798. <doc>
  13799. <![CDATA[Creates a glob filter with the specified file pattern.
  13800. @param filePattern the file pattern.
  13801. @throws IOException thrown if the file pattern is incorrect.]]>
  13802. </doc>
  13803. </constructor>
  13804. <constructor name="GlobFilter" type="java.lang.String, org.apache.hadoop.fs.PathFilter"
  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 and an user filter.
  13810. @param filePattern the file pattern.
  13811. @param filter user filter in addition to the glob pattern.
  13812. @throws IOException thrown if the file pattern is incorrect.]]>
  13813. </doc>
  13814. </constructor>
  13815. <method name="hasPattern" return="boolean"
  13816. abstract="false" native="false" synchronized="false"
  13817. static="false" final="false" visibility="public"
  13818. deprecated="not deprecated">
  13819. </method>
  13820. <method name="accept" return="boolean"
  13821. abstract="false" native="false" synchronized="false"
  13822. static="false" final="false" visibility="public"
  13823. deprecated="not deprecated">
  13824. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13825. </method>
  13826. <doc>
  13827. <![CDATA[A filter for POSIX glob pattern with brace expansions.]]>
  13828. </doc>
  13829. </class>
  13830. <!-- end class org.apache.hadoop.fs.GlobFilter -->
  13831. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  13832. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  13833. abstract="false"
  13834. static="false" final="false" visibility="public"
  13835. deprecated="not deprecated">
  13836. <constructor name="InvalidPathException" type="java.lang.String"
  13837. static="false" final="false" visibility="public"
  13838. deprecated="not deprecated">
  13839. <doc>
  13840. <![CDATA[Constructs exception with the specified detail message.
  13841. @param path invalid path.]]>
  13842. </doc>
  13843. </constructor>
  13844. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  13845. static="false" final="false" visibility="public"
  13846. deprecated="not deprecated">
  13847. <doc>
  13848. <![CDATA[Constructs exception with the specified detail message.
  13849. @param path invalid path.
  13850. @param reason Reason <code>path</code> is invalid]]>
  13851. </doc>
  13852. </constructor>
  13853. <doc>
  13854. <![CDATA[Path string is invalid either because it has invalid characters or due to
  13855. other file system specific reasons.]]>
  13856. </doc>
  13857. </class>
  13858. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  13859. <!-- start class org.apache.hadoop.fs.InvalidPathHandleException -->
  13860. <class name="InvalidPathHandleException" extends="java.io.IOException"
  13861. abstract="false"
  13862. static="false" final="false" visibility="public"
  13863. deprecated="not deprecated">
  13864. <constructor name="InvalidPathHandleException" type="java.lang.String"
  13865. static="false" final="false" visibility="public"
  13866. deprecated="not deprecated">
  13867. </constructor>
  13868. <constructor name="InvalidPathHandleException" type="java.lang.String, java.lang.Throwable"
  13869. static="false" final="false" visibility="public"
  13870. deprecated="not deprecated">
  13871. </constructor>
  13872. <doc>
  13873. <![CDATA[Thrown when the constraints enoded in a {@link PathHandle} do not hold.
  13874. For example, if a handle were created with the default
  13875. {@link Options.HandleOpt#path()} constraints, a call to
  13876. {@link FileSystem#open(PathHandle)} would succeed if the file were
  13877. modified, but if a different file was at that location then it would throw
  13878. this exception.]]>
  13879. </doc>
  13880. </class>
  13881. <!-- end class org.apache.hadoop.fs.InvalidPathHandleException -->
  13882. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  13883. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  13884. abstract="false"
  13885. static="false" final="false" visibility="public"
  13886. deprecated="not deprecated">
  13887. <constructor name="LocalFileSystem"
  13888. static="false" final="false" visibility="public"
  13889. deprecated="not deprecated">
  13890. </constructor>
  13891. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  13892. static="false" final="false" visibility="public"
  13893. deprecated="not deprecated">
  13894. </constructor>
  13895. <method name="initialize"
  13896. abstract="false" native="false" synchronized="false"
  13897. static="false" final="false" visibility="public"
  13898. deprecated="not deprecated">
  13899. <param name="name" type="java.net.URI"/>
  13900. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13901. <exception name="IOException" type="java.io.IOException"/>
  13902. </method>
  13903. <method name="getScheme" return="java.lang.String"
  13904. abstract="false" native="false" synchronized="false"
  13905. static="false" final="false" visibility="public"
  13906. deprecated="not deprecated">
  13907. <doc>
  13908. <![CDATA[Return the protocol scheme for the FileSystem.
  13909. <p/>
  13910. @return <code>file</code>]]>
  13911. </doc>
  13912. </method>
  13913. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  13914. abstract="false" native="false" synchronized="false"
  13915. static="false" final="false" visibility="public"
  13916. deprecated="not deprecated">
  13917. </method>
  13918. <method name="pathToFile" return="java.io.File"
  13919. abstract="false" native="false" synchronized="false"
  13920. static="false" final="false" visibility="public"
  13921. deprecated="not deprecated">
  13922. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13923. <doc>
  13924. <![CDATA[Convert a path to a File.]]>
  13925. </doc>
  13926. </method>
  13927. <method name="copyFromLocalFile"
  13928. abstract="false" native="false" synchronized="false"
  13929. static="false" final="false" visibility="public"
  13930. deprecated="not deprecated">
  13931. <param name="delSrc" type="boolean"/>
  13932. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13933. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13934. <exception name="IOException" type="java.io.IOException"/>
  13935. </method>
  13936. <method name="copyToLocalFile"
  13937. abstract="false" native="false" synchronized="false"
  13938. static="false" final="false" visibility="public"
  13939. deprecated="not deprecated">
  13940. <param name="delSrc" type="boolean"/>
  13941. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13942. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13943. <exception name="IOException" type="java.io.IOException"/>
  13944. </method>
  13945. <method name="reportChecksumFailure" return="boolean"
  13946. abstract="false" native="false" synchronized="false"
  13947. static="false" final="false" visibility="public"
  13948. deprecated="not deprecated">
  13949. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13950. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  13951. <param name="inPos" type="long"/>
  13952. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  13953. <param name="sumsPos" type="long"/>
  13954. <doc>
  13955. <![CDATA[Moves files to a bad file directory on the same device, so that their
  13956. storage will not be reused.]]>
  13957. </doc>
  13958. </method>
  13959. <method name="supportsSymlinks" return="boolean"
  13960. abstract="false" native="false" synchronized="false"
  13961. static="false" final="false" visibility="public"
  13962. deprecated="not deprecated">
  13963. </method>
  13964. <method name="createSymlink"
  13965. abstract="false" native="false" synchronized="false"
  13966. static="false" final="false" visibility="public"
  13967. deprecated="not deprecated">
  13968. <param name="target" type="org.apache.hadoop.fs.Path"/>
  13969. <param name="link" type="org.apache.hadoop.fs.Path"/>
  13970. <param name="createParent" type="boolean"/>
  13971. <exception name="IOException" type="java.io.IOException"/>
  13972. </method>
  13973. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  13974. abstract="false" native="false" synchronized="false"
  13975. static="false" final="false" visibility="public"
  13976. deprecated="not deprecated">
  13977. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13978. <exception name="IOException" type="java.io.IOException"/>
  13979. </method>
  13980. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  13981. abstract="false" native="false" synchronized="false"
  13982. static="false" final="false" visibility="public"
  13983. deprecated="not deprecated">
  13984. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13985. <exception name="IOException" type="java.io.IOException"/>
  13986. </method>
  13987. <doc>
  13988. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  13989. </doc>
  13990. </class>
  13991. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  13992. <!-- start class org.apache.hadoop.fs.LocatedFileStatus -->
  13993. <class name="LocatedFileStatus" extends="org.apache.hadoop.fs.FileStatus"
  13994. abstract="false"
  13995. static="false" final="false" visibility="public"
  13996. deprecated="not deprecated">
  13997. <constructor name="LocatedFileStatus"
  13998. static="false" final="false" visibility="public"
  13999. deprecated="not deprecated">
  14000. </constructor>
  14001. <constructor name="LocatedFileStatus" type="org.apache.hadoop.fs.FileStatus, org.apache.hadoop.fs.BlockLocation[]"
  14002. static="false" final="false" visibility="public"
  14003. deprecated="not deprecated">
  14004. <doc>
  14005. <![CDATA[Constructor
  14006. @param stat a file status
  14007. @param locations a file's block locations]]>
  14008. </doc>
  14009. </constructor>
  14010. <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[]"
  14011. static="false" final="false" visibility="public"
  14012. deprecated="not deprecated">
  14013. <doc>
  14014. <![CDATA[Constructor
  14015. @param length a file's length
  14016. @param isdir if the path is a directory
  14017. @param block_replication the file's replication factor
  14018. @param blocksize a file's block size
  14019. @param modification_time a file's modification time
  14020. @param access_time a file's access time
  14021. @param permission a file's permission
  14022. @param owner a file's owner
  14023. @param group a file's group
  14024. @param symlink symlink if the path is a symbolic link
  14025. @param path the path's qualified name
  14026. @param locations a file's block locations]]>
  14027. </doc>
  14028. </constructor>
  14029. <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[]"
  14030. static="false" final="false" visibility="public"
  14031. deprecated="not deprecated">
  14032. <doc>
  14033. <![CDATA[Constructor.
  14034. @param length a file's length
  14035. @param isdir if the path is a directory
  14036. @param block_replication the file's replication factor
  14037. @param blocksize a file's block size
  14038. @param modification_time a file's modification time
  14039. @param access_time a file's access time
  14040. @param permission a file's permission
  14041. @param owner a file's owner
  14042. @param group a file's group
  14043. @param symlink symlink if the path is a symbolic link
  14044. @param path the path's qualified name
  14045. @param hasAcl entity has associated ACLs
  14046. @param isEncrypted entity is encrypted
  14047. @param isErasureCoded entity is erasure coded
  14048. @param locations a file's block locations]]>
  14049. </doc>
  14050. </constructor>
  14051. <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[]"
  14052. static="false" final="false" visibility="public"
  14053. deprecated="not deprecated">
  14054. <doc>
  14055. <![CDATA[Constructor.
  14056. @param length a file's length
  14057. @param isdir if the path is a directory
  14058. @param block_replication the file's replication factor
  14059. @param blocksize a file's block size
  14060. @param modification_time a file's modification time
  14061. @param access_time a file's access time
  14062. @param permission a file's permission
  14063. @param owner a file's owner
  14064. @param group a file's group
  14065. @param symlink symlink if the path is a symbolic link
  14066. @param path the path's qualified name
  14067. @param attr Attribute flags (See {@link FileStatus.AttrFlags}).
  14068. @param locations a file's block locations]]>
  14069. </doc>
  14070. </constructor>
  14071. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  14072. abstract="false" native="false" synchronized="false"
  14073. static="false" final="false" visibility="public"
  14074. deprecated="not deprecated">
  14075. <doc>
  14076. <![CDATA[Get the file's block locations
  14077. In HDFS, the returned BlockLocation will have different formats for
  14078. replicated and erasure coded file.
  14079. Please refer to
  14080. {@link FileSystem#getFileBlockLocations(FileStatus, long, long)}
  14081. for more details.
  14082. @return the file's block locations]]>
  14083. </doc>
  14084. </method>
  14085. <method name="setBlockLocations"
  14086. abstract="false" native="false" synchronized="false"
  14087. static="false" final="false" visibility="protected"
  14088. deprecated="not deprecated">
  14089. <param name="locations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  14090. <doc>
  14091. <![CDATA[Hook for subclasses to lazily set block locations. The {@link #locations}
  14092. field should be null before this is called.
  14093. @param locations Block locations for this instance.]]>
  14094. </doc>
  14095. </method>
  14096. <method name="compareTo" return="int"
  14097. abstract="false" native="false" synchronized="false"
  14098. static="false" final="false" visibility="public"
  14099. deprecated="not deprecated">
  14100. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  14101. <doc>
  14102. <![CDATA[Compare this FileStatus to another FileStatus
  14103. @param o the FileStatus to be compared.
  14104. @return a negative integer, zero, or a positive integer as this object
  14105. is less than, equal to, or greater than the specified object.]]>
  14106. </doc>
  14107. </method>
  14108. <method name="equals" return="boolean"
  14109. abstract="false" native="false" synchronized="false"
  14110. static="false" final="false" visibility="public"
  14111. deprecated="not deprecated">
  14112. <param name="o" type="java.lang.Object"/>
  14113. <doc>
  14114. <![CDATA[Compare if this object is equal to another object
  14115. @param o the object to be compared.
  14116. @return true if two file status has the same path name; false if not.]]>
  14117. </doc>
  14118. </method>
  14119. <method name="hashCode" return="int"
  14120. abstract="false" native="false" synchronized="false"
  14121. static="false" final="false" visibility="public"
  14122. deprecated="not deprecated">
  14123. <doc>
  14124. <![CDATA[Returns a hash code value for the object, which is defined as
  14125. the hash code of the path name.
  14126. @return a hash code value for the path name.]]>
  14127. </doc>
  14128. </method>
  14129. <doc>
  14130. <![CDATA[This class defines a FileStatus that includes a file's block locations.]]>
  14131. </doc>
  14132. </class>
  14133. <!-- end class org.apache.hadoop.fs.LocatedFileStatus -->
  14134. <!-- start class org.apache.hadoop.fs.Options -->
  14135. <class name="Options" extends="java.lang.Object"
  14136. abstract="false"
  14137. static="false" final="true" visibility="public"
  14138. deprecated="not deprecated">
  14139. <constructor name="Options"
  14140. static="false" final="false" visibility="public"
  14141. deprecated="not deprecated">
  14142. </constructor>
  14143. <doc>
  14144. <![CDATA[This class contains options related to file system operations.]]>
  14145. </doc>
  14146. </class>
  14147. <!-- end class org.apache.hadoop.fs.Options -->
  14148. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  14149. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  14150. abstract="false"
  14151. static="false" final="false" visibility="public"
  14152. deprecated="not deprecated">
  14153. <constructor name="ParentNotDirectoryException"
  14154. static="false" final="false" visibility="public"
  14155. deprecated="not deprecated">
  14156. </constructor>
  14157. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  14158. static="false" final="false" visibility="public"
  14159. deprecated="not deprecated">
  14160. </constructor>
  14161. <doc>
  14162. <![CDATA[Indicates that the parent of specified Path is not a directory
  14163. as expected.]]>
  14164. </doc>
  14165. </class>
  14166. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  14167. <!-- start interface org.apache.hadoop.fs.PartHandle -->
  14168. <interface name="PartHandle" abstract="true"
  14169. static="false" final="false" visibility="public"
  14170. deprecated="not deprecated">
  14171. <implements name="java.io.Serializable"/>
  14172. <method name="toByteArray" return="byte[]"
  14173. abstract="false" native="false" synchronized="false"
  14174. static="false" final="false" visibility="public"
  14175. deprecated="not deprecated">
  14176. <doc>
  14177. <![CDATA[@return Serialized from in bytes.]]>
  14178. </doc>
  14179. </method>
  14180. <method name="bytes" return="java.nio.ByteBuffer"
  14181. abstract="true" native="false" synchronized="false"
  14182. static="false" final="false" visibility="public"
  14183. deprecated="not deprecated">
  14184. </method>
  14185. <method name="equals" return="boolean"
  14186. abstract="true" native="false" synchronized="false"
  14187. static="false" final="false" visibility="public"
  14188. deprecated="not deprecated">
  14189. <param name="other" type="java.lang.Object"/>
  14190. </method>
  14191. <doc>
  14192. <![CDATA[Opaque, serializable reference to a part id for multipart uploads.]]>
  14193. </doc>
  14194. </interface>
  14195. <!-- end interface org.apache.hadoop.fs.PartHandle -->
  14196. <!-- start class org.apache.hadoop.fs.Path -->
  14197. <class name="Path" extends="java.lang.Object"
  14198. abstract="false"
  14199. static="false" final="false" visibility="public"
  14200. deprecated="not deprecated">
  14201. <implements name="java.lang.Comparable"/>
  14202. <implements name="java.io.Serializable"/>
  14203. <implements name="java.io.ObjectInputValidation"/>
  14204. <constructor name="Path" type="java.lang.String, java.lang.String"
  14205. static="false" final="false" visibility="public"
  14206. deprecated="not deprecated">
  14207. <doc>
  14208. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  14209. @param parent the parent path
  14210. @param child the child path]]>
  14211. </doc>
  14212. </constructor>
  14213. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  14214. static="false" final="false" visibility="public"
  14215. deprecated="not deprecated">
  14216. <doc>
  14217. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  14218. @param parent the parent path
  14219. @param child the child path]]>
  14220. </doc>
  14221. </constructor>
  14222. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  14223. static="false" final="false" visibility="public"
  14224. deprecated="not deprecated">
  14225. <doc>
  14226. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  14227. @param parent the parent path
  14228. @param child the child path]]>
  14229. </doc>
  14230. </constructor>
  14231. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  14232. static="false" final="false" visibility="public"
  14233. deprecated="not deprecated">
  14234. <doc>
  14235. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  14236. @param parent the parent path
  14237. @param child the child path]]>
  14238. </doc>
  14239. </constructor>
  14240. <constructor name="Path" type="java.lang.String"
  14241. static="false" final="false" visibility="public"
  14242. deprecated="not deprecated">
  14243. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14244. <doc>
  14245. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  14246. unescaped elements and some additional normalization.
  14247. @param pathString the path string]]>
  14248. </doc>
  14249. </constructor>
  14250. <constructor name="Path" type="java.net.URI"
  14251. static="false" final="false" visibility="public"
  14252. deprecated="not deprecated">
  14253. <doc>
  14254. <![CDATA[Construct a path from a URI
  14255. @param aUri the source URI]]>
  14256. </doc>
  14257. </constructor>
  14258. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  14259. static="false" final="false" visibility="public"
  14260. deprecated="not deprecated">
  14261. <doc>
  14262. <![CDATA[Construct a Path from components.
  14263. @param scheme the scheme
  14264. @param authority the authority
  14265. @param path the path]]>
  14266. </doc>
  14267. </constructor>
  14268. <method name="getPathWithoutSchemeAndAuthority" return="org.apache.hadoop.fs.Path"
  14269. abstract="false" native="false" synchronized="false"
  14270. static="true" final="false" visibility="public"
  14271. deprecated="not deprecated">
  14272. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14273. <doc>
  14274. <![CDATA[Return a version of the given Path without the scheme information.
  14275. @param path the source Path
  14276. @return a copy of this Path without the scheme information]]>
  14277. </doc>
  14278. </method>
  14279. <method name="mergePaths" return="org.apache.hadoop.fs.Path"
  14280. abstract="false" native="false" synchronized="false"
  14281. static="true" final="false" visibility="public"
  14282. deprecated="not deprecated">
  14283. <param name="path1" type="org.apache.hadoop.fs.Path"/>
  14284. <param name="path2" type="org.apache.hadoop.fs.Path"/>
  14285. <doc>
  14286. <![CDATA[Merge 2 paths such that the second path is appended relative to the first.
  14287. The returned path has the scheme and authority of the first path. On
  14288. Windows, the drive specification in the second path is discarded.
  14289. @param path1 the first path
  14290. @param path2 the second path, to be appended relative to path1
  14291. @return the merged path]]>
  14292. </doc>
  14293. </method>
  14294. <method name="isWindowsAbsolutePath" return="boolean"
  14295. abstract="false" native="false" synchronized="false"
  14296. static="true" final="false" visibility="public"
  14297. deprecated="not deprecated">
  14298. <param name="pathString" type="java.lang.String"/>
  14299. <param name="slashed" type="boolean"/>
  14300. <doc>
  14301. <![CDATA[Determine whether a given path string represents an absolute path on
  14302. Windows. e.g. "C:/a/b" is an absolute path. "C:a/b" is not.
  14303. @param pathString the path string to evaluate
  14304. @param slashed true if the given path is prefixed with "/"
  14305. @return true if the supplied path looks like an absolute path with a Windows
  14306. drive-specifier]]>
  14307. </doc>
  14308. </method>
  14309. <method name="toUri" return="java.net.URI"
  14310. abstract="false" native="false" synchronized="false"
  14311. static="false" final="false" visibility="public"
  14312. deprecated="not deprecated">
  14313. <doc>
  14314. <![CDATA[Convert this Path to a URI.
  14315. @return this Path as a URI]]>
  14316. </doc>
  14317. </method>
  14318. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  14319. abstract="false" native="false" synchronized="false"
  14320. static="false" final="false" visibility="public"
  14321. deprecated="not deprecated">
  14322. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14323. <exception name="IOException" type="java.io.IOException"/>
  14324. <doc>
  14325. <![CDATA[Return the FileSystem that owns this Path.
  14326. @param conf the configuration to use when resolving the FileSystem
  14327. @return the FileSystem that owns this Path
  14328. @throws java.io.IOException thrown if there's an issue resolving the
  14329. FileSystem]]>
  14330. </doc>
  14331. </method>
  14332. <method name="isAbsoluteAndSchemeAuthorityNull" return="boolean"
  14333. abstract="false" native="false" synchronized="false"
  14334. static="false" final="false" visibility="public"
  14335. deprecated="not deprecated">
  14336. <doc>
  14337. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  14338. absolute <strong>and</strong> the scheme is null, <b>and</b> the authority
  14339. is null.
  14340. @return whether the path is absolute and the URI has no scheme nor
  14341. authority parts]]>
  14342. </doc>
  14343. </method>
  14344. <method name="isUriPathAbsolute" return="boolean"
  14345. abstract="false" native="false" synchronized="false"
  14346. static="false" final="false" visibility="public"
  14347. deprecated="not deprecated">
  14348. <doc>
  14349. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  14350. absolute.
  14351. @return whether this URI's path is absolute]]>
  14352. </doc>
  14353. </method>
  14354. <method name="isAbsolute" 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. This method is a wrapper for {@link #isUriPathAbsolute()}.
  14361. @return whether this URI's path is absolute]]>
  14362. </doc>
  14363. </method>
  14364. <method name="isRoot" 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 and only if this path represents the root of a file system.
  14370. @return true if and only if this path represents the root of a file system]]>
  14371. </doc>
  14372. </method>
  14373. <method name="getName" return="java.lang.String"
  14374. abstract="false" native="false" synchronized="false"
  14375. static="false" final="false" visibility="public"
  14376. deprecated="not deprecated">
  14377. <doc>
  14378. <![CDATA[Returns the final component of this path.
  14379. @return the final component of this path]]>
  14380. </doc>
  14381. </method>
  14382. <method name="getParent" return="org.apache.hadoop.fs.Path"
  14383. abstract="false" native="false" synchronized="false"
  14384. static="false" final="false" visibility="public"
  14385. deprecated="not deprecated">
  14386. <doc>
  14387. <![CDATA[Returns the parent of a path or null if at root.
  14388. @return the parent of a path or null if at root]]>
  14389. </doc>
  14390. </method>
  14391. <method name="suffix" return="org.apache.hadoop.fs.Path"
  14392. abstract="false" native="false" synchronized="false"
  14393. static="false" final="false" visibility="public"
  14394. deprecated="not deprecated">
  14395. <param name="suffix" type="java.lang.String"/>
  14396. <doc>
  14397. <![CDATA[Adds a suffix to the final name in the path.
  14398. @param suffix the suffix to add
  14399. @return a new path with the suffix added]]>
  14400. </doc>
  14401. </method>
  14402. <method name="toString" return="java.lang.String"
  14403. abstract="false" native="false" synchronized="false"
  14404. static="false" final="false" visibility="public"
  14405. deprecated="not deprecated">
  14406. </method>
  14407. <method name="equals" return="boolean"
  14408. abstract="false" native="false" synchronized="false"
  14409. static="false" final="false" visibility="public"
  14410. deprecated="not deprecated">
  14411. <param name="o" type="java.lang.Object"/>
  14412. </method>
  14413. <method name="hashCode" return="int"
  14414. abstract="false" native="false" synchronized="false"
  14415. static="false" final="false" visibility="public"
  14416. deprecated="not deprecated">
  14417. </method>
  14418. <method name="compareTo" return="int"
  14419. abstract="false" native="false" synchronized="false"
  14420. static="false" final="false" visibility="public"
  14421. deprecated="not deprecated">
  14422. <param name="o" type="org.apache.hadoop.fs.Path"/>
  14423. </method>
  14424. <method name="depth" return="int"
  14425. abstract="false" native="false" synchronized="false"
  14426. static="false" final="false" visibility="public"
  14427. deprecated="not deprecated">
  14428. <doc>
  14429. <![CDATA[Returns the number of elements in this path.
  14430. @return the number of elements in this path]]>
  14431. </doc>
  14432. </method>
  14433. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  14434. abstract="false" native="false" synchronized="false"
  14435. static="false" final="false" visibility="public"
  14436. deprecated="use {@link #makeQualified(URI, Path)}">
  14437. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14438. <doc>
  14439. <![CDATA[Returns a qualified path object for the {@link FileSystem}'s working
  14440. directory.
  14441. @param fs the target FileSystem
  14442. @return a qualified path object for the FileSystem's working directory
  14443. @deprecated use {@link #makeQualified(URI, Path)}]]>
  14444. </doc>
  14445. </method>
  14446. <method name="validateObject"
  14447. abstract="false" native="false" synchronized="false"
  14448. static="false" final="false" visibility="public"
  14449. deprecated="not deprecated">
  14450. <exception name="InvalidObjectException" type="java.io.InvalidObjectException"/>
  14451. <doc>
  14452. <![CDATA[Validate the contents of a deserialized Path, so as
  14453. to defend against malicious object streams.
  14454. @throws InvalidObjectException if there's no URI]]>
  14455. </doc>
  14456. </method>
  14457. <field name="SEPARATOR" type="java.lang.String"
  14458. transient="false" volatile="false"
  14459. static="true" final="true" visibility="public"
  14460. deprecated="not deprecated">
  14461. <doc>
  14462. <![CDATA[The directory separator, a slash.]]>
  14463. </doc>
  14464. </field>
  14465. <field name="SEPARATOR_CHAR" type="char"
  14466. transient="false" volatile="false"
  14467. static="true" final="true" visibility="public"
  14468. deprecated="not deprecated">
  14469. <doc>
  14470. <![CDATA[The directory separator, a slash, as a character.]]>
  14471. </doc>
  14472. </field>
  14473. <field name="CUR_DIR" type="java.lang.String"
  14474. transient="false" volatile="false"
  14475. static="true" final="true" visibility="public"
  14476. deprecated="not deprecated">
  14477. <doc>
  14478. <![CDATA[The current directory, ".".]]>
  14479. </doc>
  14480. </field>
  14481. <field name="WINDOWS" type="boolean"
  14482. transient="false" volatile="false"
  14483. static="true" final="true" visibility="public"
  14484. deprecated="not deprecated">
  14485. <doc>
  14486. <![CDATA[Whether the current host is a Windows machine.]]>
  14487. </doc>
  14488. </field>
  14489. <doc>
  14490. <![CDATA[Names a file or directory in a {@link FileSystem}.
  14491. Path strings use slash as the directory separator.]]>
  14492. </doc>
  14493. </class>
  14494. <!-- end class org.apache.hadoop.fs.Path -->
  14495. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  14496. <interface name="PathFilter" abstract="true"
  14497. static="false" final="false" visibility="public"
  14498. deprecated="not deprecated">
  14499. <method name="accept" return="boolean"
  14500. abstract="true" native="false" synchronized="false"
  14501. static="false" final="false" visibility="public"
  14502. deprecated="not deprecated">
  14503. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14504. <doc>
  14505. <![CDATA[Tests whether or not the specified abstract pathname should be
  14506. included in a pathname list.
  14507. @param path The abstract pathname to be tested
  14508. @return <code>true</code> if and only if <code>pathname</code>
  14509. should be included]]>
  14510. </doc>
  14511. </method>
  14512. </interface>
  14513. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  14514. <!-- start interface org.apache.hadoop.fs.PathHandle -->
  14515. <interface name="PathHandle" abstract="true"
  14516. static="false" final="false" visibility="public"
  14517. deprecated="not deprecated">
  14518. <implements name="java.io.Serializable"/>
  14519. <method name="toByteArray" return="byte[]"
  14520. abstract="false" native="false" synchronized="false"
  14521. static="false" final="false" visibility="public"
  14522. deprecated="not deprecated">
  14523. <doc>
  14524. <![CDATA[@return Serialized form in bytes.]]>
  14525. </doc>
  14526. </method>
  14527. <method name="bytes" return="java.nio.ByteBuffer"
  14528. abstract="true" native="false" synchronized="false"
  14529. static="false" final="false" visibility="public"
  14530. deprecated="not deprecated">
  14531. <doc>
  14532. <![CDATA[Get the bytes of this path handle.
  14533. @return the bytes to get to the process completing the upload.]]>
  14534. </doc>
  14535. </method>
  14536. <method name="equals" return="boolean"
  14537. abstract="true" native="false" synchronized="false"
  14538. static="false" final="false" visibility="public"
  14539. deprecated="not deprecated">
  14540. <param name="other" type="java.lang.Object"/>
  14541. </method>
  14542. <doc>
  14543. <![CDATA[Opaque, serializable reference to an entity in the FileSystem. May contain
  14544. metadata sufficient to resolve or verify subsequent accesses independent of
  14545. other modifications to the FileSystem.]]>
  14546. </doc>
  14547. </interface>
  14548. <!-- end interface org.apache.hadoop.fs.PathHandle -->
  14549. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  14550. <interface name="PositionedReadable" abstract="true"
  14551. static="false" final="false" visibility="public"
  14552. deprecated="not deprecated">
  14553. <method name="read" return="int"
  14554. abstract="true" native="false" synchronized="false"
  14555. static="false" final="false" visibility="public"
  14556. deprecated="not deprecated">
  14557. <param name="position" type="long"/>
  14558. <param name="buffer" type="byte[]"/>
  14559. <param name="offset" type="int"/>
  14560. <param name="length" type="int"/>
  14561. <exception name="IOException" type="java.io.IOException"/>
  14562. <doc>
  14563. <![CDATA[Read up to the specified number of bytes, from a given
  14564. position within a file, and return the number of bytes read. This does not
  14565. change the current offset of a file, and is thread-safe.
  14566. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  14567. @param position position within file
  14568. @param buffer destination buffer
  14569. @param offset offset in the buffer
  14570. @param length number of bytes to read
  14571. @return actual number of bytes read; -1 means "none"
  14572. @throws IOException IO problems.]]>
  14573. </doc>
  14574. </method>
  14575. <method name="readFully"
  14576. abstract="true" native="false" synchronized="false"
  14577. static="false" final="false" visibility="public"
  14578. deprecated="not deprecated">
  14579. <param name="position" type="long"/>
  14580. <param name="buffer" type="byte[]"/>
  14581. <param name="offset" type="int"/>
  14582. <param name="length" type="int"/>
  14583. <exception name="IOException" type="java.io.IOException"/>
  14584. <doc>
  14585. <![CDATA[Read the specified number of bytes, from a given
  14586. position within a file. This does not
  14587. change the current offset of a file, and is thread-safe.
  14588. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  14589. @param position position within file
  14590. @param buffer destination buffer
  14591. @param offset offset in the buffer
  14592. @param length number of bytes to read
  14593. @throws IOException IO problems.
  14594. @throws EOFException the end of the data was reached before
  14595. the read operation completed]]>
  14596. </doc>
  14597. </method>
  14598. <method name="readFully"
  14599. abstract="true" native="false" synchronized="false"
  14600. static="false" final="false" visibility="public"
  14601. deprecated="not deprecated">
  14602. <param name="position" type="long"/>
  14603. <param name="buffer" type="byte[]"/>
  14604. <exception name="IOException" type="java.io.IOException"/>
  14605. <doc>
  14606. <![CDATA[Read number of bytes equal to the length of the buffer, from a given
  14607. position within a file. This does not
  14608. change the current offset of a file, and is thread-safe.
  14609. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  14610. @param position position within file
  14611. @param buffer destination buffer
  14612. @throws IOException IO problems.
  14613. @throws EOFException the end of the data was reached before
  14614. the read operation completed]]>
  14615. </doc>
  14616. </method>
  14617. <doc>
  14618. <![CDATA[Stream that permits positional reading.
  14619. Implementations are required to implement thread-safe operations; this may
  14620. be supported by concurrent access to the data, or by using a synchronization
  14621. mechanism to serialize access.
  14622. Not all implementations meet this requirement. Those that do not cannot
  14623. be used as a backing store for some applications, such as Apache HBase.
  14624. Independent of whether or not they are thread safe, some implementations
  14625. may make the intermediate state of the system, specifically the position
  14626. obtained in {@code Seekable.getPos()} visible.]]>
  14627. </doc>
  14628. </interface>
  14629. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  14630. <!-- start class org.apache.hadoop.fs.QuotaUsage -->
  14631. <class name="QuotaUsage" extends="java.lang.Object"
  14632. abstract="false"
  14633. static="false" final="false" visibility="public"
  14634. deprecated="not deprecated">
  14635. <constructor name="QuotaUsage"
  14636. static="false" final="false" visibility="protected"
  14637. deprecated="not deprecated">
  14638. </constructor>
  14639. <constructor name="QuotaUsage" type="org.apache.hadoop.fs.QuotaUsage.Builder"
  14640. static="false" final="false" visibility="protected"
  14641. deprecated="not deprecated">
  14642. <doc>
  14643. <![CDATA[Build the instance based on the builder.]]>
  14644. </doc>
  14645. </constructor>
  14646. <method name="setQuota"
  14647. abstract="false" native="false" synchronized="false"
  14648. static="false" final="false" visibility="protected"
  14649. deprecated="not deprecated">
  14650. <param name="quota" type="long"/>
  14651. </method>
  14652. <method name="setSpaceConsumed"
  14653. abstract="false" native="false" synchronized="false"
  14654. static="false" final="false" visibility="protected"
  14655. deprecated="not deprecated">
  14656. <param name="spaceConsumed" type="long"/>
  14657. </method>
  14658. <method name="setSpaceQuota"
  14659. abstract="false" native="false" synchronized="false"
  14660. static="false" final="false" visibility="protected"
  14661. deprecated="not deprecated">
  14662. <param name="spaceQuota" type="long"/>
  14663. </method>
  14664. <method name="getFileAndDirectoryCount" return="long"
  14665. abstract="false" native="false" synchronized="false"
  14666. static="false" final="false" visibility="public"
  14667. deprecated="not deprecated">
  14668. <doc>
  14669. <![CDATA[Return the directory count.]]>
  14670. </doc>
  14671. </method>
  14672. <method name="getQuota" return="long"
  14673. abstract="false" native="false" synchronized="false"
  14674. static="false" final="false" visibility="public"
  14675. deprecated="not deprecated">
  14676. <doc>
  14677. <![CDATA[Return the directory quota.]]>
  14678. </doc>
  14679. </method>
  14680. <method name="getSpaceConsumed" return="long"
  14681. abstract="false" native="false" synchronized="false"
  14682. static="false" final="false" visibility="public"
  14683. deprecated="not deprecated">
  14684. <doc>
  14685. <![CDATA[Return (disk) space consumed.]]>
  14686. </doc>
  14687. </method>
  14688. <method name="getSpaceQuota" return="long"
  14689. abstract="false" native="false" synchronized="false"
  14690. static="false" final="false" visibility="public"
  14691. deprecated="not deprecated">
  14692. <doc>
  14693. <![CDATA[Return (disk) space quota.]]>
  14694. </doc>
  14695. </method>
  14696. <method name="getTypeQuota" return="long"
  14697. abstract="false" native="false" synchronized="false"
  14698. static="false" final="false" visibility="public"
  14699. deprecated="not deprecated">
  14700. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  14701. <doc>
  14702. <![CDATA[Return storage type quota.]]>
  14703. </doc>
  14704. </method>
  14705. <method name="getTypeConsumed" return="long"
  14706. abstract="false" native="false" synchronized="false"
  14707. static="false" final="false" visibility="public"
  14708. deprecated="not deprecated">
  14709. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  14710. <doc>
  14711. <![CDATA[Return storage type consumed.]]>
  14712. </doc>
  14713. </method>
  14714. <method name="isTypeQuotaSet" return="boolean"
  14715. abstract="false" native="false" synchronized="false"
  14716. static="false" final="false" visibility="public"
  14717. deprecated="not deprecated">
  14718. <doc>
  14719. <![CDATA[Return true if any storage type quota has been set.]]>
  14720. </doc>
  14721. </method>
  14722. <method name="isTypeConsumedAvailable" return="boolean"
  14723. abstract="false" native="false" synchronized="false"
  14724. static="false" final="false" visibility="public"
  14725. deprecated="not deprecated">
  14726. <doc>
  14727. <![CDATA[Return true if any storage type consumption information is available.]]>
  14728. </doc>
  14729. </method>
  14730. <method name="equals" return="boolean"
  14731. abstract="false" native="false" synchronized="false"
  14732. static="false" final="false" visibility="public"
  14733. deprecated="not deprecated">
  14734. <param name="to" type="java.lang.Object"/>
  14735. </method>
  14736. <method name="hashCode" return="int"
  14737. abstract="false" native="false" synchronized="false"
  14738. static="false" final="false" visibility="public"
  14739. deprecated="not deprecated">
  14740. </method>
  14741. <method name="getHeader" return="java.lang.String"
  14742. abstract="false" native="false" synchronized="false"
  14743. static="true" final="false" visibility="public"
  14744. deprecated="not deprecated">
  14745. <doc>
  14746. <![CDATA[Return the header of the output.
  14747. @return the header of the output]]>
  14748. </doc>
  14749. </method>
  14750. <method name="toString" return="java.lang.String"
  14751. abstract="false" native="false" synchronized="false"
  14752. static="false" final="false" visibility="public"
  14753. deprecated="not deprecated">
  14754. </method>
  14755. <method name="toString" return="java.lang.String"
  14756. abstract="false" native="false" synchronized="false"
  14757. static="false" final="false" visibility="public"
  14758. deprecated="not deprecated">
  14759. <param name="hOption" type="boolean"/>
  14760. </method>
  14761. <method name="toString" return="java.lang.String"
  14762. abstract="false" native="false" synchronized="false"
  14763. static="false" final="false" visibility="public"
  14764. deprecated="not deprecated">
  14765. <param name="hOption" type="boolean"/>
  14766. <param name="tOption" type="boolean"/>
  14767. <param name="types" type="java.util.List"/>
  14768. <doc>
  14769. <![CDATA[Return the string representation of the object in the output format.
  14770. if hOption is false file sizes are returned in bytes
  14771. if hOption is true file sizes are returned in human readable
  14772. @param hOption a flag indicating if human readable output if to be used
  14773. @return the string representation of the object]]>
  14774. </doc>
  14775. </method>
  14776. <method name="getQuotaUsage" return="java.lang.String"
  14777. abstract="false" native="false" synchronized="false"
  14778. static="false" final="false" visibility="protected"
  14779. deprecated="not deprecated">
  14780. <param name="hOption" type="boolean"/>
  14781. </method>
  14782. <method name="getTypesQuotaUsage" return="java.lang.String"
  14783. abstract="false" native="false" synchronized="false"
  14784. static="false" final="false" visibility="protected"
  14785. deprecated="not deprecated">
  14786. <param name="hOption" type="boolean"/>
  14787. <param name="types" type="java.util.List"/>
  14788. </method>
  14789. <method name="getStorageTypeHeader" return="java.lang.String"
  14790. abstract="false" native="false" synchronized="false"
  14791. static="true" final="false" visibility="public"
  14792. deprecated="not deprecated">
  14793. <param name="storageTypes" type="java.util.List"/>
  14794. <doc>
  14795. <![CDATA[return the header of with the StorageTypes.
  14796. @param storageTypes
  14797. @return storage header string]]>
  14798. </doc>
  14799. </method>
  14800. <field name="QUOTA_STRING_FORMAT" type="java.lang.String"
  14801. transient="false" volatile="false"
  14802. static="true" final="true" visibility="protected"
  14803. deprecated="not deprecated">
  14804. <doc>
  14805. <![CDATA[Output format:
  14806. <----12----> <----15----> <----15----> <----15----> <-------18------->
  14807. QUOTA REMAINING_QUATA SPACE_QUOTA SPACE_QUOTA_REM FILE_NAME]]>
  14808. </doc>
  14809. </field>
  14810. <field name="SPACE_QUOTA_STRING_FORMAT" type="java.lang.String"
  14811. transient="false" volatile="false"
  14812. static="true" final="true" visibility="protected"
  14813. deprecated="not deprecated">
  14814. </field>
  14815. <field name="QUOTA_HEADER_FIELDS" type="java.lang.String[]"
  14816. transient="false" volatile="false"
  14817. static="true" final="true" visibility="protected"
  14818. deprecated="not deprecated">
  14819. </field>
  14820. <field name="QUOTA_HEADER" type="java.lang.String"
  14821. transient="false" volatile="false"
  14822. static="true" final="true" visibility="protected"
  14823. deprecated="not deprecated">
  14824. </field>
  14825. <doc>
  14826. <![CDATA[Store the quota usage of a directory.]]>
  14827. </doc>
  14828. </class>
  14829. <!-- end class org.apache.hadoop.fs.QuotaUsage -->
  14830. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  14831. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  14832. abstract="false"
  14833. static="false" final="false" visibility="public"
  14834. deprecated="not deprecated">
  14835. <constructor name="RawLocalFileSystem"
  14836. static="false" final="false" visibility="public"
  14837. deprecated="not deprecated">
  14838. </constructor>
  14839. <method name="useStatIfAvailable"
  14840. abstract="false" native="false" synchronized="false"
  14841. static="true" final="false" visibility="public"
  14842. deprecated="not deprecated">
  14843. </method>
  14844. <method name="pathToFile" return="java.io.File"
  14845. abstract="false" native="false" synchronized="false"
  14846. static="false" final="false" visibility="public"
  14847. deprecated="not deprecated">
  14848. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14849. <doc>
  14850. <![CDATA[Convert a path to a File.]]>
  14851. </doc>
  14852. </method>
  14853. <method name="getUri" return="java.net.URI"
  14854. abstract="false" native="false" synchronized="false"
  14855. static="false" final="false" visibility="public"
  14856. deprecated="not deprecated">
  14857. </method>
  14858. <method name="initialize"
  14859. abstract="false" native="false" synchronized="false"
  14860. static="false" final="false" visibility="public"
  14861. deprecated="not deprecated">
  14862. <param name="uri" type="java.net.URI"/>
  14863. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14864. <exception name="IOException" type="java.io.IOException"/>
  14865. </method>
  14866. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  14867. abstract="false" native="false" synchronized="false"
  14868. static="false" final="false" visibility="public"
  14869. deprecated="not deprecated">
  14870. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14871. <param name="bufferSize" type="int"/>
  14872. <exception name="IOException" type="java.io.IOException"/>
  14873. </method>
  14874. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  14875. abstract="false" native="false" synchronized="false"
  14876. static="false" final="false" visibility="public"
  14877. deprecated="not deprecated">
  14878. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  14879. <param name="bufferSize" type="int"/>
  14880. <exception name="IOException" type="java.io.IOException"/>
  14881. </method>
  14882. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  14883. abstract="false" native="false" synchronized="false"
  14884. static="false" final="false" visibility="public"
  14885. deprecated="not deprecated">
  14886. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14887. <param name="bufferSize" type="int"/>
  14888. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14889. <exception name="IOException" type="java.io.IOException"/>
  14890. </method>
  14891. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  14892. abstract="false" native="false" synchronized="false"
  14893. static="false" final="false" visibility="public"
  14894. deprecated="not deprecated">
  14895. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14896. <param name="overwrite" type="boolean"/>
  14897. <param name="bufferSize" type="int"/>
  14898. <param name="replication" type="short"/>
  14899. <param name="blockSize" type="long"/>
  14900. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14901. <exception name="IOException" type="java.io.IOException"/>
  14902. </method>
  14903. <method name="createOutputStream" return="java.io.OutputStream"
  14904. abstract="false" native="false" synchronized="false"
  14905. static="false" final="false" visibility="protected"
  14906. deprecated="not deprecated">
  14907. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14908. <param name="append" type="boolean"/>
  14909. <exception name="IOException" type="java.io.IOException"/>
  14910. </method>
  14911. <method name="createOutputStreamWithMode" return="java.io.OutputStream"
  14912. abstract="false" native="false" synchronized="false"
  14913. static="false" final="false" visibility="protected"
  14914. deprecated="not deprecated">
  14915. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14916. <param name="append" type="boolean"/>
  14917. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14918. <exception name="IOException" type="java.io.IOException"/>
  14919. </method>
  14920. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  14921. abstract="false" native="false" synchronized="false"
  14922. static="false" final="false" visibility="public"
  14923. deprecated="not deprecated">
  14924. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14925. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14926. <param name="flags" type="java.util.EnumSet"/>
  14927. <param name="bufferSize" type="int"/>
  14928. <param name="replication" type="short"/>
  14929. <param name="blockSize" type="long"/>
  14930. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14931. <exception name="IOException" type="java.io.IOException"/>
  14932. </method>
  14933. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  14934. abstract="false" native="false" synchronized="false"
  14935. static="false" final="false" visibility="public"
  14936. deprecated="not deprecated">
  14937. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14938. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14939. <param name="overwrite" type="boolean"/>
  14940. <param name="bufferSize" type="int"/>
  14941. <param name="replication" type="short"/>
  14942. <param name="blockSize" type="long"/>
  14943. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14944. <exception name="IOException" type="java.io.IOException"/>
  14945. </method>
  14946. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  14947. abstract="false" native="false" synchronized="false"
  14948. static="false" final="false" visibility="public"
  14949. deprecated="not deprecated">
  14950. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14951. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14952. <param name="overwrite" type="boolean"/>
  14953. <param name="bufferSize" type="int"/>
  14954. <param name="replication" type="short"/>
  14955. <param name="blockSize" type="long"/>
  14956. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14957. <exception name="IOException" type="java.io.IOException"/>
  14958. </method>
  14959. <method name="concat"
  14960. abstract="false" native="false" synchronized="false"
  14961. static="false" final="false" visibility="public"
  14962. deprecated="not deprecated">
  14963. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  14964. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  14965. <exception name="IOException" type="java.io.IOException"/>
  14966. </method>
  14967. <method name="rename" return="boolean"
  14968. abstract="false" native="false" synchronized="false"
  14969. static="false" final="false" visibility="public"
  14970. deprecated="not deprecated">
  14971. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14972. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14973. <exception name="IOException" type="java.io.IOException"/>
  14974. </method>
  14975. <method name="handleEmptyDstDirectoryOnWindows" return="boolean"
  14976. abstract="false" native="false" synchronized="false"
  14977. static="false" final="true" visibility="public"
  14978. deprecated="not deprecated">
  14979. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14980. <param name="srcFile" type="java.io.File"/>
  14981. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14982. <param name="dstFile" type="java.io.File"/>
  14983. <exception name="IOException" type="java.io.IOException"/>
  14984. </method>
  14985. <method name="truncate" return="boolean"
  14986. abstract="false" native="false" synchronized="false"
  14987. static="false" final="false" visibility="public"
  14988. deprecated="not deprecated">
  14989. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14990. <param name="newLength" type="long"/>
  14991. <exception name="IOException" type="java.io.IOException"/>
  14992. </method>
  14993. <method name="delete" return="boolean"
  14994. abstract="false" native="false" synchronized="false"
  14995. static="false" final="false" visibility="public"
  14996. deprecated="not deprecated">
  14997. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14998. <param name="recursive" type="boolean"/>
  14999. <exception name="IOException" type="java.io.IOException"/>
  15000. <doc>
  15001. <![CDATA[Delete the given path to a file or directory.
  15002. @param p the path to delete
  15003. @param recursive to delete sub-directories
  15004. @return true if the file or directory and all its contents were deleted
  15005. @throws IOException if p is non-empty and recursive is false]]>
  15006. </doc>
  15007. </method>
  15008. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  15009. abstract="false" native="false" synchronized="false"
  15010. static="false" final="false" visibility="public"
  15011. deprecated="not deprecated">
  15012. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15013. <exception name="IOException" type="java.io.IOException"/>
  15014. <doc>
  15015. <![CDATA[{@inheritDoc}
  15016. (<b>Note</b>: Returned list is not sorted in any given order,
  15017. due to reliance on Java's {@link File#list()} API.)]]>
  15018. </doc>
  15019. </method>
  15020. <method name="mkOneDir" return="boolean"
  15021. abstract="false" native="false" synchronized="false"
  15022. static="false" final="false" visibility="protected"
  15023. deprecated="not deprecated">
  15024. <param name="p2f" type="java.io.File"/>
  15025. <exception name="IOException" type="java.io.IOException"/>
  15026. </method>
  15027. <method name="mkOneDirWithMode" return="boolean"
  15028. abstract="false" native="false" synchronized="false"
  15029. static="false" final="false" visibility="protected"
  15030. deprecated="not deprecated">
  15031. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15032. <param name="p2f" type="java.io.File"/>
  15033. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15034. <exception name="IOException" type="java.io.IOException"/>
  15035. </method>
  15036. <method name="mkdirs" return="boolean"
  15037. abstract="false" native="false" synchronized="false"
  15038. static="false" final="false" visibility="public"
  15039. deprecated="not deprecated">
  15040. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15041. <exception name="IOException" type="java.io.IOException"/>
  15042. <doc>
  15043. <![CDATA[Creates the specified directory hierarchy. Does not
  15044. treat existence as an error.]]>
  15045. </doc>
  15046. </method>
  15047. <method name="mkdirs" return="boolean"
  15048. abstract="false" native="false" synchronized="false"
  15049. static="false" final="false" visibility="public"
  15050. deprecated="not deprecated">
  15051. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15052. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15053. <exception name="IOException" type="java.io.IOException"/>
  15054. </method>
  15055. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  15056. abstract="false" native="false" synchronized="false"
  15057. static="false" final="false" visibility="public"
  15058. deprecated="not deprecated">
  15059. </method>
  15060. <method name="setWorkingDirectory"
  15061. abstract="false" native="false" synchronized="false"
  15062. static="false" final="false" visibility="public"
  15063. deprecated="not deprecated">
  15064. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  15065. <doc>
  15066. <![CDATA[Set the working directory to the given directory.]]>
  15067. </doc>
  15068. </method>
  15069. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15070. abstract="false" native="false" synchronized="false"
  15071. static="false" final="false" visibility="public"
  15072. deprecated="not deprecated">
  15073. </method>
  15074. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15075. abstract="false" native="false" synchronized="false"
  15076. static="false" final="false" visibility="protected"
  15077. deprecated="not deprecated">
  15078. </method>
  15079. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  15080. abstract="false" native="false" synchronized="false"
  15081. static="false" final="false" visibility="public"
  15082. deprecated="not deprecated">
  15083. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15084. <exception name="IOException" type="java.io.IOException"/>
  15085. </method>
  15086. <method name="moveFromLocalFile"
  15087. abstract="false" native="false" synchronized="false"
  15088. static="false" final="false" visibility="public"
  15089. deprecated="not deprecated">
  15090. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15091. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15092. <exception name="IOException" type="java.io.IOException"/>
  15093. </method>
  15094. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  15095. abstract="false" native="false" synchronized="false"
  15096. static="false" final="false" visibility="public"
  15097. deprecated="not deprecated">
  15098. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  15099. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  15100. <exception name="IOException" type="java.io.IOException"/>
  15101. </method>
  15102. <method name="completeLocalOutput"
  15103. abstract="false" native="false" synchronized="false"
  15104. static="false" final="false" visibility="public"
  15105. deprecated="not deprecated">
  15106. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  15107. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  15108. <exception name="IOException" type="java.io.IOException"/>
  15109. </method>
  15110. <method name="close"
  15111. abstract="false" native="false" synchronized="false"
  15112. static="false" final="false" visibility="public"
  15113. deprecated="not deprecated">
  15114. <exception name="IOException" type="java.io.IOException"/>
  15115. </method>
  15116. <method name="toString" return="java.lang.String"
  15117. abstract="false" native="false" synchronized="false"
  15118. static="false" final="false" visibility="public"
  15119. deprecated="not deprecated">
  15120. </method>
  15121. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  15122. abstract="false" native="false" synchronized="false"
  15123. static="false" final="false" visibility="public"
  15124. deprecated="not deprecated">
  15125. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15126. <exception name="IOException" type="java.io.IOException"/>
  15127. </method>
  15128. <method name="setOwner"
  15129. abstract="false" native="false" synchronized="false"
  15130. static="false" final="false" visibility="public"
  15131. deprecated="not deprecated">
  15132. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15133. <param name="username" type="java.lang.String"/>
  15134. <param name="groupname" type="java.lang.String"/>
  15135. <exception name="IOException" type="java.io.IOException"/>
  15136. <doc>
  15137. <![CDATA[Use the command chown to set owner.]]>
  15138. </doc>
  15139. </method>
  15140. <method name="setPermission"
  15141. abstract="false" native="false" synchronized="false"
  15142. static="false" final="false" visibility="public"
  15143. deprecated="not deprecated">
  15144. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15145. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15146. <exception name="IOException" type="java.io.IOException"/>
  15147. <doc>
  15148. <![CDATA[Use the command chmod to set permission.]]>
  15149. </doc>
  15150. </method>
  15151. <method name="setTimes"
  15152. abstract="false" native="false" synchronized="false"
  15153. static="false" final="false" visibility="public"
  15154. deprecated="not deprecated">
  15155. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15156. <param name="mtime" type="long"/>
  15157. <param name="atime" type="long"/>
  15158. <exception name="IOException" type="java.io.IOException"/>
  15159. <doc>
  15160. <![CDATA[Sets the {@link Path}'s last modified time and last access time to
  15161. the given valid times.
  15162. @param mtime the modification time to set (only if no less than zero).
  15163. @param atime the access time to set (only if no less than zero).
  15164. @throws IOException if setting the times fails.]]>
  15165. </doc>
  15166. </method>
  15167. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  15168. abstract="false" native="false" synchronized="false"
  15169. static="false" final="false" visibility="protected"
  15170. deprecated="not deprecated">
  15171. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  15172. <param name="opts" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  15173. <doc>
  15174. <![CDATA[Hook to implement support for {@link PathHandle} operations.
  15175. @param stat Referent in the target FileSystem
  15176. @param opts Constraints that determine the validity of the
  15177. {@link PathHandle} reference.]]>
  15178. </doc>
  15179. </method>
  15180. <method name="supportsSymlinks" return="boolean"
  15181. abstract="false" native="false" synchronized="false"
  15182. static="false" final="false" visibility="public"
  15183. deprecated="not deprecated">
  15184. </method>
  15185. <method name="createSymlink"
  15186. abstract="false" native="false" synchronized="false"
  15187. static="false" final="false" visibility="public"
  15188. deprecated="not deprecated">
  15189. <param name="target" type="org.apache.hadoop.fs.Path"/>
  15190. <param name="link" type="org.apache.hadoop.fs.Path"/>
  15191. <param name="createParent" type="boolean"/>
  15192. <exception name="IOException" type="java.io.IOException"/>
  15193. </method>
  15194. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  15195. abstract="false" native="false" synchronized="false"
  15196. static="false" final="false" visibility="public"
  15197. deprecated="not deprecated">
  15198. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15199. <exception name="IOException" type="java.io.IOException"/>
  15200. <doc>
  15201. <![CDATA[Return a FileStatus representing the given path. If the path refers
  15202. to a symlink return a FileStatus representing the link rather than
  15203. the object the link refers to.]]>
  15204. </doc>
  15205. </method>
  15206. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  15207. abstract="false" native="false" synchronized="false"
  15208. static="false" final="false" visibility="public"
  15209. deprecated="not deprecated">
  15210. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15211. <exception name="IOException" type="java.io.IOException"/>
  15212. </method>
  15213. <method name="hasPathCapability" return="boolean"
  15214. abstract="false" native="false" synchronized="false"
  15215. static="false" final="false" visibility="public"
  15216. deprecated="not deprecated">
  15217. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15218. <param name="capability" type="java.lang.String"/>
  15219. <exception name="IOException" type="java.io.IOException"/>
  15220. </method>
  15221. <doc>
  15222. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  15223. </doc>
  15224. </class>
  15225. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  15226. <!-- start class org.apache.hadoop.fs.ReadOption -->
  15227. <class name="ReadOption" extends="java.lang.Enum"
  15228. abstract="false"
  15229. static="false" final="true" visibility="public"
  15230. deprecated="not deprecated">
  15231. <method name="values" return="org.apache.hadoop.fs.ReadOption[]"
  15232. abstract="false" native="false" synchronized="false"
  15233. static="true" final="false" visibility="public"
  15234. deprecated="not deprecated">
  15235. </method>
  15236. <method name="valueOf" return="org.apache.hadoop.fs.ReadOption"
  15237. abstract="false" native="false" synchronized="false"
  15238. static="true" final="false" visibility="public"
  15239. deprecated="not deprecated">
  15240. <param name="name" type="java.lang.String"/>
  15241. </method>
  15242. <doc>
  15243. <![CDATA[Options that can be used when reading from a FileSystem.]]>
  15244. </doc>
  15245. </class>
  15246. <!-- end class org.apache.hadoop.fs.ReadOption -->
  15247. <!-- start interface org.apache.hadoop.fs.Seekable -->
  15248. <interface name="Seekable" abstract="true"
  15249. static="false" final="false" visibility="public"
  15250. deprecated="not deprecated">
  15251. <method name="seek"
  15252. abstract="true" native="false" synchronized="false"
  15253. static="false" final="false" visibility="public"
  15254. deprecated="not deprecated">
  15255. <param name="pos" type="long"/>
  15256. <exception name="IOException" type="java.io.IOException"/>
  15257. <doc>
  15258. <![CDATA[Seek to the given offset from the start of the file.
  15259. The next read() will be from that location. Can't
  15260. seek past the end of the file.]]>
  15261. </doc>
  15262. </method>
  15263. <method name="getPos" return="long"
  15264. abstract="true" native="false" synchronized="false"
  15265. static="false" final="false" visibility="public"
  15266. deprecated="not deprecated">
  15267. <exception name="IOException" type="java.io.IOException"/>
  15268. <doc>
  15269. <![CDATA[Return the current offset from the start of the file]]>
  15270. </doc>
  15271. </method>
  15272. <doc>
  15273. <![CDATA[Stream that permits seeking.]]>
  15274. </doc>
  15275. </interface>
  15276. <!-- end interface org.apache.hadoop.fs.Seekable -->
  15277. <!-- start class org.apache.hadoop.fs.StorageStatistics -->
  15278. <class name="StorageStatistics" extends="java.lang.Object"
  15279. abstract="true"
  15280. static="false" final="false" visibility="public"
  15281. deprecated="not deprecated">
  15282. <constructor name="StorageStatistics" type="java.lang.String"
  15283. static="false" final="false" visibility="public"
  15284. deprecated="not deprecated">
  15285. </constructor>
  15286. <method name="getName" return="java.lang.String"
  15287. abstract="false" native="false" synchronized="false"
  15288. static="false" final="false" visibility="public"
  15289. deprecated="not deprecated">
  15290. <doc>
  15291. <![CDATA[Get the name of this StorageStatistics object.]]>
  15292. </doc>
  15293. </method>
  15294. <method name="getScheme" return="java.lang.String"
  15295. abstract="false" native="false" synchronized="false"
  15296. static="false" final="false" visibility="public"
  15297. deprecated="not deprecated">
  15298. <doc>
  15299. <![CDATA[@return the associated file system scheme if this is scheme specific,
  15300. else return null.]]>
  15301. </doc>
  15302. </method>
  15303. <method name="getLongStatistics" return="java.util.Iterator"
  15304. abstract="true" native="false" synchronized="false"
  15305. static="false" final="false" visibility="public"
  15306. deprecated="not deprecated">
  15307. <doc>
  15308. <![CDATA[Get an iterator over all the currently tracked long statistics.
  15309. The values returned will depend on the type of FileSystem or FileContext
  15310. object. The values do not necessarily reflect a snapshot in time.]]>
  15311. </doc>
  15312. </method>
  15313. <method name="getLong" return="java.lang.Long"
  15314. abstract="true" native="false" synchronized="false"
  15315. static="false" final="false" visibility="public"
  15316. deprecated="not deprecated">
  15317. <param name="key" type="java.lang.String"/>
  15318. <doc>
  15319. <![CDATA[Get the value of a statistic.
  15320. @return null if the statistic is not being tracked or is not a
  15321. long statistic. The value of the statistic, otherwise.]]>
  15322. </doc>
  15323. </method>
  15324. <method name="isTracked" return="boolean"
  15325. abstract="true" native="false" synchronized="false"
  15326. static="false" final="false" visibility="public"
  15327. deprecated="not deprecated">
  15328. <param name="key" type="java.lang.String"/>
  15329. <doc>
  15330. <![CDATA[Return true if a statistic is being tracked.
  15331. @return True only if the statistic is being tracked.]]>
  15332. </doc>
  15333. </method>
  15334. <method name="reset"
  15335. abstract="true" native="false" synchronized="false"
  15336. static="false" final="false" visibility="public"
  15337. deprecated="not deprecated">
  15338. <doc>
  15339. <![CDATA[Reset all the statistic data.]]>
  15340. </doc>
  15341. </method>
  15342. <doc>
  15343. <![CDATA[StorageStatistics contains statistics data for a FileSystem or FileContext
  15344. instance.]]>
  15345. </doc>
  15346. </class>
  15347. <!-- end class org.apache.hadoop.fs.StorageStatistics -->
  15348. <!-- start class org.apache.hadoop.fs.StorageType -->
  15349. <class name="StorageType" extends="java.lang.Enum"
  15350. abstract="false"
  15351. static="false" final="true" visibility="public"
  15352. deprecated="not deprecated">
  15353. <method name="values" return="org.apache.hadoop.fs.StorageType[]"
  15354. abstract="false" native="false" synchronized="false"
  15355. static="true" final="false" visibility="public"
  15356. deprecated="not deprecated">
  15357. </method>
  15358. <method name="valueOf" return="org.apache.hadoop.fs.StorageType"
  15359. abstract="false" native="false" synchronized="false"
  15360. static="true" final="false" visibility="public"
  15361. deprecated="not deprecated">
  15362. <param name="name" type="java.lang.String"/>
  15363. </method>
  15364. <method name="isTransient" return="boolean"
  15365. abstract="false" native="false" synchronized="false"
  15366. static="false" final="false" visibility="public"
  15367. deprecated="not deprecated">
  15368. </method>
  15369. <method name="supportTypeQuota" return="boolean"
  15370. abstract="false" native="false" synchronized="false"
  15371. static="false" final="false" visibility="public"
  15372. deprecated="not deprecated">
  15373. </method>
  15374. <method name="isMovable" 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="asList" return="java.util.List"
  15380. abstract="false" native="false" synchronized="false"
  15381. static="true" final="false" visibility="public"
  15382. deprecated="not deprecated">
  15383. </method>
  15384. <method name="getMovableTypes" return="java.util.List"
  15385. abstract="false" native="false" synchronized="false"
  15386. static="true" final="false" visibility="public"
  15387. deprecated="not deprecated">
  15388. </method>
  15389. <method name="getTypesSupportingQuota" 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="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  15395. abstract="false" native="false" synchronized="false"
  15396. static="true" final="false" visibility="public"
  15397. deprecated="not deprecated">
  15398. <param name="i" type="int"/>
  15399. </method>
  15400. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  15401. abstract="false" native="false" synchronized="false"
  15402. static="true" final="false" visibility="public"
  15403. deprecated="not deprecated">
  15404. <param name="s" type="java.lang.String"/>
  15405. </method>
  15406. <field name="DEFAULT" type="org.apache.hadoop.fs.StorageType"
  15407. transient="false" volatile="false"
  15408. static="true" final="true" visibility="public"
  15409. deprecated="not deprecated">
  15410. </field>
  15411. <field name="EMPTY_ARRAY" type="org.apache.hadoop.fs.StorageType[]"
  15412. transient="false" volatile="false"
  15413. static="true" final="true" visibility="public"
  15414. deprecated="not deprecated">
  15415. </field>
  15416. <doc>
  15417. <![CDATA[Defines the types of supported storage media. The default storage
  15418. medium is assumed to be DISK.]]>
  15419. </doc>
  15420. </class>
  15421. <!-- end class org.apache.hadoop.fs.StorageType -->
  15422. <!-- start interface org.apache.hadoop.fs.StreamCapabilities -->
  15423. <interface name="StreamCapabilities" abstract="true"
  15424. static="false" final="false" visibility="public"
  15425. deprecated="not deprecated">
  15426. <method name="hasCapability" return="boolean"
  15427. abstract="true" native="false" synchronized="false"
  15428. static="false" final="false" visibility="public"
  15429. deprecated="not deprecated">
  15430. <param name="capability" type="java.lang.String"/>
  15431. <doc>
  15432. <![CDATA[Query the stream for a specific capability.
  15433. @param capability string to query the stream support for.
  15434. @return True if the stream supports capability.]]>
  15435. </doc>
  15436. </method>
  15437. <field name="HFLUSH" type="java.lang.String"
  15438. transient="false" volatile="false"
  15439. static="true" final="true" visibility="public"
  15440. deprecated="not deprecated">
  15441. <doc>
  15442. <![CDATA[Stream hflush capability implemented by {@link Syncable#hflush()}.]]>
  15443. </doc>
  15444. </field>
  15445. <field name="HSYNC" type="java.lang.String"
  15446. transient="false" volatile="false"
  15447. static="true" final="true" visibility="public"
  15448. deprecated="not deprecated">
  15449. <doc>
  15450. <![CDATA[Stream hsync capability implemented by {@link Syncable#hsync()}.]]>
  15451. </doc>
  15452. </field>
  15453. <field name="READAHEAD" type="java.lang.String"
  15454. transient="false" volatile="false"
  15455. static="true" final="true" visibility="public"
  15456. deprecated="not deprecated">
  15457. <doc>
  15458. <![CDATA[Stream setReadahead capability implemented by
  15459. {@link CanSetReadahead#setReadahead(Long)}.]]>
  15460. </doc>
  15461. </field>
  15462. <field name="DROPBEHIND" type="java.lang.String"
  15463. transient="false" volatile="false"
  15464. static="true" final="true" visibility="public"
  15465. deprecated="not deprecated">
  15466. <doc>
  15467. <![CDATA[Stream setDropBehind capability implemented by
  15468. {@link CanSetDropBehind#setDropBehind(Boolean)}.]]>
  15469. </doc>
  15470. </field>
  15471. <field name="UNBUFFER" type="java.lang.String"
  15472. transient="false" volatile="false"
  15473. static="true" final="true" visibility="public"
  15474. deprecated="not deprecated">
  15475. <doc>
  15476. <![CDATA[Stream unbuffer capability implemented by {@link CanUnbuffer#unbuffer()}.]]>
  15477. </doc>
  15478. </field>
  15479. <doc>
  15480. <![CDATA[Interface to query streams for supported capabilities.
  15481. Capability strings must be in lower case.
  15482. Constant strings are chosen over enums in order to allow other file systems
  15483. to define their own capabilities.]]>
  15484. </doc>
  15485. </interface>
  15486. <!-- end interface org.apache.hadoop.fs.StreamCapabilities -->
  15487. <!-- start class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  15488. <class name="StreamCapabilitiesPolicy" extends="java.lang.Object"
  15489. abstract="false"
  15490. static="false" final="false" visibility="public"
  15491. deprecated="not deprecated">
  15492. <constructor name="StreamCapabilitiesPolicy"
  15493. static="false" final="false" visibility="public"
  15494. deprecated="not deprecated">
  15495. </constructor>
  15496. <method name="unbuffer"
  15497. abstract="false" native="false" synchronized="false"
  15498. static="true" final="false" visibility="public"
  15499. deprecated="not deprecated">
  15500. <param name="in" type="java.io.InputStream"/>
  15501. <doc>
  15502. <![CDATA[Implement the policy for {@link CanUnbuffer#unbuffer()}.
  15503. @param in the input stream]]>
  15504. </doc>
  15505. </method>
  15506. <field name="CAN_UNBUFFER_NOT_IMPLEMENTED_MESSAGE" type="java.lang.String"
  15507. transient="false" volatile="false"
  15508. static="true" final="true" visibility="public"
  15509. deprecated="not deprecated">
  15510. </field>
  15511. <doc>
  15512. <![CDATA[Static methods to implement policies for {@link StreamCapabilities}.]]>
  15513. </doc>
  15514. </class>
  15515. <!-- end class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  15516. <!-- start interface org.apache.hadoop.fs.Syncable -->
  15517. <interface name="Syncable" abstract="true"
  15518. static="false" final="false" visibility="public"
  15519. deprecated="not deprecated">
  15520. <method name="hflush"
  15521. abstract="true" native="false" synchronized="false"
  15522. static="false" final="false" visibility="public"
  15523. deprecated="not deprecated">
  15524. <exception name="IOException" type="java.io.IOException"/>
  15525. <doc>
  15526. <![CDATA[Flush out the data in client's user buffer. After the return of
  15527. this call, new readers will see the data.
  15528. @throws IOException if any error occurs]]>
  15529. </doc>
  15530. </method>
  15531. <method name="hsync"
  15532. abstract="true" native="false" synchronized="false"
  15533. static="false" final="false" visibility="public"
  15534. deprecated="not deprecated">
  15535. <exception name="IOException" type="java.io.IOException"/>
  15536. <doc>
  15537. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  15538. all the way to the disk device (but the disk may have it in its cache).
  15539. @throws IOException if error occurs]]>
  15540. </doc>
  15541. </method>
  15542. <doc>
  15543. <![CDATA[This interface for flush/sync operation.]]>
  15544. </doc>
  15545. </interface>
  15546. <!-- end interface org.apache.hadoop.fs.Syncable -->
  15547. <!-- start class org.apache.hadoop.fs.Trash -->
  15548. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  15549. abstract="false"
  15550. static="false" final="false" visibility="public"
  15551. deprecated="not deprecated">
  15552. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  15553. static="false" final="false" visibility="public"
  15554. deprecated="not deprecated">
  15555. <exception name="IOException" type="java.io.IOException"/>
  15556. <doc>
  15557. <![CDATA[Construct a trash can accessor.
  15558. @param conf a Configuration]]>
  15559. </doc>
  15560. </constructor>
  15561. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  15562. static="false" final="false" visibility="public"
  15563. deprecated="not deprecated">
  15564. <exception name="IOException" type="java.io.IOException"/>
  15565. <doc>
  15566. <![CDATA[Construct a trash can accessor for the FileSystem provided.
  15567. @param fs the FileSystem
  15568. @param conf a Configuration]]>
  15569. </doc>
  15570. </constructor>
  15571. <method name="moveToAppropriateTrash" return="boolean"
  15572. abstract="false" native="false" synchronized="false"
  15573. static="true" final="false" visibility="public"
  15574. deprecated="not deprecated">
  15575. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15576. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15577. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15578. <exception name="IOException" type="java.io.IOException"/>
  15579. <doc>
  15580. <![CDATA[In case of the symlinks or mount points, one has to move the appropriate
  15581. trashbin in the actual volume of the path p being deleted.
  15582. Hence we get the file system of the fully-qualified resolved-path and
  15583. then move the path p to the trashbin in that volume,
  15584. @param fs - the filesystem of path p
  15585. @param p - the path being deleted - to be moved to trasg
  15586. @param conf - configuration
  15587. @return false if the item is already in the trash or trash is disabled
  15588. @throws IOException on error]]>
  15589. </doc>
  15590. </method>
  15591. <method name="isEnabled" return="boolean"
  15592. abstract="false" native="false" synchronized="false"
  15593. static="false" final="false" visibility="public"
  15594. deprecated="not deprecated">
  15595. <doc>
  15596. <![CDATA[Returns whether the trash is enabled for this filesystem]]>
  15597. </doc>
  15598. </method>
  15599. <method name="moveToTrash" return="boolean"
  15600. abstract="false" native="false" synchronized="false"
  15601. static="false" final="false" visibility="public"
  15602. deprecated="not deprecated">
  15603. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15604. <exception name="IOException" type="java.io.IOException"/>
  15605. <doc>
  15606. <![CDATA[Move a file or directory to the current trash directory.
  15607. @return false if the item is already in the trash or trash is disabled]]>
  15608. </doc>
  15609. </method>
  15610. <method name="checkpoint"
  15611. abstract="false" native="false" synchronized="false"
  15612. static="false" final="false" visibility="public"
  15613. deprecated="not deprecated">
  15614. <exception name="IOException" type="java.io.IOException"/>
  15615. <doc>
  15616. <![CDATA[Create a trash checkpoint.]]>
  15617. </doc>
  15618. </method>
  15619. <method name="expunge"
  15620. abstract="false" native="false" synchronized="false"
  15621. static="false" final="false" visibility="public"
  15622. deprecated="not deprecated">
  15623. <exception name="IOException" type="java.io.IOException"/>
  15624. <doc>
  15625. <![CDATA[Delete old checkpoint(s).]]>
  15626. </doc>
  15627. </method>
  15628. <method name="expungeImmediately"
  15629. abstract="false" native="false" synchronized="false"
  15630. static="false" final="false" visibility="public"
  15631. deprecated="not deprecated">
  15632. <exception name="IOException" type="java.io.IOException"/>
  15633. <doc>
  15634. <![CDATA[Delete all trash immediately.]]>
  15635. </doc>
  15636. </method>
  15637. <method name="getEmptier" return="java.lang.Runnable"
  15638. abstract="false" native="false" synchronized="false"
  15639. static="false" final="false" visibility="public"
  15640. deprecated="not deprecated">
  15641. <exception name="IOException" type="java.io.IOException"/>
  15642. <doc>
  15643. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  15644. users, intended to be run by the superuser.]]>
  15645. </doc>
  15646. </method>
  15647. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  15648. abstract="false" native="false" synchronized="false"
  15649. static="false" final="false" visibility="public"
  15650. deprecated="not deprecated">
  15651. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15652. <exception name="IOException" type="java.io.IOException"/>
  15653. </method>
  15654. <doc>
  15655. <![CDATA[Provides a trash facility which supports pluggable Trash policies.
  15656. See the implementation of the configured TrashPolicy for more
  15657. details.]]>
  15658. </doc>
  15659. </class>
  15660. <!-- end class org.apache.hadoop.fs.Trash -->
  15661. <!-- start class org.apache.hadoop.fs.TrashPolicy -->
  15662. <class name="TrashPolicy" extends="org.apache.hadoop.conf.Configured"
  15663. abstract="true"
  15664. static="false" final="false" visibility="public"
  15665. deprecated="not deprecated">
  15666. <constructor name="TrashPolicy"
  15667. static="false" final="false" visibility="public"
  15668. deprecated="not deprecated">
  15669. </constructor>
  15670. <method name="initialize"
  15671. abstract="true" native="false" synchronized="false"
  15672. static="false" final="false" visibility="public"
  15673. deprecated="Use {@link #initialize(Configuration, FileSystem)} instead.">
  15674. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15675. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15676. <param name="home" type="org.apache.hadoop.fs.Path"/>
  15677. <doc>
  15678. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  15679. implementations.
  15680. @param conf the configuration to be used
  15681. @param fs the filesystem to be used
  15682. @param home the home directory
  15683. @deprecated Use {@link #initialize(Configuration, FileSystem)} instead.]]>
  15684. </doc>
  15685. </method>
  15686. <method name="initialize"
  15687. abstract="false" native="false" synchronized="false"
  15688. static="false" final="false" visibility="public"
  15689. deprecated="not deprecated">
  15690. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15691. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15692. <doc>
  15693. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  15694. implementations. Different from initialize(conf, fs, home), this one does
  15695. not assume trash always under /user/$USER due to HDFS encryption zone.
  15696. @param conf the configuration to be used
  15697. @param fs the filesystem to be used]]>
  15698. </doc>
  15699. </method>
  15700. <method name="isEnabled" return="boolean"
  15701. abstract="true" native="false" synchronized="false"
  15702. static="false" final="false" visibility="public"
  15703. deprecated="not deprecated">
  15704. <doc>
  15705. <![CDATA[Returns whether the Trash Policy is enabled for this filesystem.]]>
  15706. </doc>
  15707. </method>
  15708. <method name="moveToTrash" return="boolean"
  15709. abstract="true" native="false" synchronized="false"
  15710. static="false" final="false" visibility="public"
  15711. deprecated="not deprecated">
  15712. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15713. <exception name="IOException" type="java.io.IOException"/>
  15714. <doc>
  15715. <![CDATA[Move a file or directory to the current trash directory.
  15716. @return false if the item is already in the trash or trash is disabled]]>
  15717. </doc>
  15718. </method>
  15719. <method name="createCheckpoint"
  15720. abstract="true" native="false" synchronized="false"
  15721. static="false" final="false" visibility="public"
  15722. deprecated="not deprecated">
  15723. <exception name="IOException" type="java.io.IOException"/>
  15724. <doc>
  15725. <![CDATA[Create a trash checkpoint.]]>
  15726. </doc>
  15727. </method>
  15728. <method name="deleteCheckpoint"
  15729. abstract="true" native="false" synchronized="false"
  15730. static="false" final="false" visibility="public"
  15731. deprecated="not deprecated">
  15732. <exception name="IOException" type="java.io.IOException"/>
  15733. <doc>
  15734. <![CDATA[Delete old trash checkpoint(s).]]>
  15735. </doc>
  15736. </method>
  15737. <method name="deleteCheckpointsImmediately"
  15738. abstract="true" native="false" synchronized="false"
  15739. static="false" final="false" visibility="public"
  15740. deprecated="not deprecated">
  15741. <exception name="IOException" type="java.io.IOException"/>
  15742. <doc>
  15743. <![CDATA[Delete all checkpoints immediately, ie empty trash.]]>
  15744. </doc>
  15745. </method>
  15746. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  15747. abstract="true" native="false" synchronized="false"
  15748. static="false" final="false" visibility="public"
  15749. deprecated="not deprecated">
  15750. <doc>
  15751. <![CDATA[Get the current working directory of the Trash Policy
  15752. This API does not work with files deleted from encryption zone when HDFS
  15753. data encryption at rest feature is enabled as rename file between
  15754. encryption zones or encryption zone and non-encryption zone is not allowed.
  15755. The caller is recommend to use the new API
  15756. TrashPolicy#getCurrentTrashDir(Path path).
  15757. It returns the trash location correctly for the path specified no matter
  15758. the path is in encryption zone or not.]]>
  15759. </doc>
  15760. </method>
  15761. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  15762. abstract="false" native="false" synchronized="false"
  15763. static="false" final="false" visibility="public"
  15764. deprecated="not deprecated">
  15765. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15766. <exception name="IOException" type="java.io.IOException"/>
  15767. <doc>
  15768. <![CDATA[Get the current trash directory for path specified based on the Trash
  15769. Policy
  15770. @param path path to be deleted
  15771. @return current trash directory for the path to be deleted
  15772. @throws IOException]]>
  15773. </doc>
  15774. </method>
  15775. <method name="getEmptier" return="java.lang.Runnable"
  15776. abstract="true" native="false" synchronized="false"
  15777. static="false" final="false" visibility="public"
  15778. deprecated="not deprecated">
  15779. <exception name="IOException" type="java.io.IOException"/>
  15780. <doc>
  15781. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  15782. users, intended to be run by the superuser.]]>
  15783. </doc>
  15784. </method>
  15785. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  15786. abstract="false" native="false" synchronized="false"
  15787. static="true" final="false" visibility="public"
  15788. deprecated="Use {@link #getInstance(Configuration, FileSystem)} instead.">
  15789. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15790. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15791. <param name="home" type="org.apache.hadoop.fs.Path"/>
  15792. <doc>
  15793. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  15794. of the configuration parameter fs.trash.classname.
  15795. @param conf the configuration to be used
  15796. @param fs the file system to be used
  15797. @param home the home directory
  15798. @return an instance of TrashPolicy
  15799. @deprecated Use {@link #getInstance(Configuration, FileSystem)} instead.]]>
  15800. </doc>
  15801. </method>
  15802. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  15803. abstract="false" native="false" synchronized="false"
  15804. static="true" final="false" visibility="public"
  15805. deprecated="not deprecated">
  15806. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15807. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15808. <doc>
  15809. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  15810. of the configuration parameter fs.trash.classname.
  15811. @param conf the configuration to be used
  15812. @param fs the file system to be used
  15813. @return an instance of TrashPolicy]]>
  15814. </doc>
  15815. </method>
  15816. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  15817. transient="false" volatile="false"
  15818. static="false" final="false" visibility="protected"
  15819. deprecated="not deprecated">
  15820. </field>
  15821. <field name="trash" type="org.apache.hadoop.fs.Path"
  15822. transient="false" volatile="false"
  15823. static="false" final="false" visibility="protected"
  15824. deprecated="not deprecated">
  15825. </field>
  15826. <field name="deletionInterval" type="long"
  15827. transient="false" volatile="false"
  15828. static="false" final="false" visibility="protected"
  15829. deprecated="not deprecated">
  15830. </field>
  15831. <doc>
  15832. <![CDATA[This interface is used for implementing different Trash policies.
  15833. Provides factory method to create instances of the configured Trash policy.]]>
  15834. </doc>
  15835. </class>
  15836. <!-- end class org.apache.hadoop.fs.TrashPolicy -->
  15837. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  15838. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  15839. abstract="false"
  15840. static="false" final="false" visibility="public"
  15841. deprecated="not deprecated">
  15842. <constructor name="UnsupportedFileSystemException" type="java.lang.String"
  15843. static="false" final="false" visibility="public"
  15844. deprecated="not deprecated">
  15845. <doc>
  15846. <![CDATA[Constructs exception with the specified detail message.
  15847. @param message exception message.]]>
  15848. </doc>
  15849. </constructor>
  15850. <doc>
  15851. <![CDATA[File system for a given file system name/scheme is not supported]]>
  15852. </doc>
  15853. </class>
  15854. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  15855. <!-- start class org.apache.hadoop.fs.UnsupportedMultipartUploaderException -->
  15856. <class name="UnsupportedMultipartUploaderException" extends="java.io.IOException"
  15857. abstract="false"
  15858. static="false" final="false" visibility="public"
  15859. deprecated="not deprecated">
  15860. <constructor name="UnsupportedMultipartUploaderException" type="java.lang.String"
  15861. static="false" final="false" visibility="public"
  15862. deprecated="not deprecated">
  15863. <doc>
  15864. <![CDATA[Constructs exception with the specified detail message.
  15865. @param message exception message.]]>
  15866. </doc>
  15867. </constructor>
  15868. <doc>
  15869. <![CDATA[MultipartUploader for a given file system name/scheme is not supported.]]>
  15870. </doc>
  15871. </class>
  15872. <!-- end class org.apache.hadoop.fs.UnsupportedMultipartUploaderException -->
  15873. <!-- start interface org.apache.hadoop.fs.UploadHandle -->
  15874. <interface name="UploadHandle" abstract="true"
  15875. static="false" final="false" visibility="public"
  15876. deprecated="not deprecated">
  15877. <implements name="java.io.Serializable"/>
  15878. <method name="toByteArray" return="byte[]"
  15879. abstract="false" native="false" synchronized="false"
  15880. static="false" final="false" visibility="public"
  15881. deprecated="not deprecated">
  15882. <doc>
  15883. <![CDATA[@return Serialized from in bytes.]]>
  15884. </doc>
  15885. </method>
  15886. <method name="bytes" return="java.nio.ByteBuffer"
  15887. abstract="true" native="false" synchronized="false"
  15888. static="false" final="false" visibility="public"
  15889. deprecated="not deprecated">
  15890. </method>
  15891. <method name="equals" return="boolean"
  15892. abstract="true" native="false" synchronized="false"
  15893. static="false" final="false" visibility="public"
  15894. deprecated="not deprecated">
  15895. <param name="other" type="java.lang.Object"/>
  15896. </method>
  15897. <doc>
  15898. <![CDATA[Opaque, serializable reference to an uploadId for multipart uploads.]]>
  15899. </doc>
  15900. </interface>
  15901. <!-- end interface org.apache.hadoop.fs.UploadHandle -->
  15902. <!-- start class org.apache.hadoop.fs.XAttrCodec -->
  15903. <class name="XAttrCodec" extends="java.lang.Enum"
  15904. abstract="false"
  15905. static="false" final="true" visibility="public"
  15906. deprecated="not deprecated">
  15907. <method name="values" return="org.apache.hadoop.fs.XAttrCodec[]"
  15908. abstract="false" native="false" synchronized="false"
  15909. static="true" final="false" visibility="public"
  15910. deprecated="not deprecated">
  15911. </method>
  15912. <method name="valueOf" return="org.apache.hadoop.fs.XAttrCodec"
  15913. abstract="false" native="false" synchronized="false"
  15914. static="true" final="false" visibility="public"
  15915. deprecated="not deprecated">
  15916. <param name="name" type="java.lang.String"/>
  15917. </method>
  15918. <method name="decodeValue" return="byte[]"
  15919. abstract="false" native="false" synchronized="false"
  15920. static="true" final="false" visibility="public"
  15921. deprecated="not deprecated">
  15922. <param name="value" type="java.lang.String"/>
  15923. <exception name="IOException" type="java.io.IOException"/>
  15924. <doc>
  15925. <![CDATA[Decode string representation of a value and check whether it's
  15926. encoded. If the given string begins with 0x or 0X, it expresses
  15927. a hexadecimal number. If the given string begins with 0s or 0S,
  15928. base64 encoding is expected. If the given string is enclosed in
  15929. double quotes, the inner string is treated as text. Otherwise
  15930. the given string is treated as text.
  15931. @param value string representation of the value.
  15932. @return byte[] the value
  15933. @throws IOException]]>
  15934. </doc>
  15935. </method>
  15936. <method name="encodeValue" return="java.lang.String"
  15937. abstract="false" native="false" synchronized="false"
  15938. static="true" final="false" visibility="public"
  15939. deprecated="not deprecated">
  15940. <param name="value" type="byte[]"/>
  15941. <param name="encoding" type="org.apache.hadoop.fs.XAttrCodec"/>
  15942. <exception name="IOException" type="java.io.IOException"/>
  15943. <doc>
  15944. <![CDATA[Encode byte[] value to string representation with encoding.
  15945. Values encoded as text strings are enclosed in double quotes (\"),
  15946. while strings encoded as hexadecimal and base64 are prefixed with
  15947. 0x and 0s, respectively.
  15948. @param value byte[] value
  15949. @param encoding
  15950. @return String string representation of value
  15951. @throws IOException]]>
  15952. </doc>
  15953. </method>
  15954. <doc>
  15955. <![CDATA[The value of <code>XAttr</code> is byte[], this class is to
  15956. covert byte[] to some kind of string representation or convert back.
  15957. String representation is convenient for display and input. For example
  15958. display in screen as shell response and json response, input as http
  15959. or shell parameter.]]>
  15960. </doc>
  15961. </class>
  15962. <!-- end class org.apache.hadoop.fs.XAttrCodec -->
  15963. <!-- start class org.apache.hadoop.fs.XAttrSetFlag -->
  15964. <class name="XAttrSetFlag" extends="java.lang.Enum"
  15965. abstract="false"
  15966. static="false" final="true" visibility="public"
  15967. deprecated="not deprecated">
  15968. <method name="values" return="org.apache.hadoop.fs.XAttrSetFlag[]"
  15969. abstract="false" native="false" synchronized="false"
  15970. static="true" final="false" visibility="public"
  15971. deprecated="not deprecated">
  15972. </method>
  15973. <method name="valueOf" return="org.apache.hadoop.fs.XAttrSetFlag"
  15974. abstract="false" native="false" synchronized="false"
  15975. static="true" final="false" visibility="public"
  15976. deprecated="not deprecated">
  15977. <param name="name" type="java.lang.String"/>
  15978. </method>
  15979. <method name="validate"
  15980. abstract="false" native="false" synchronized="false"
  15981. static="true" final="false" visibility="public"
  15982. deprecated="not deprecated">
  15983. <param name="xAttrName" type="java.lang.String"/>
  15984. <param name="xAttrExists" type="boolean"/>
  15985. <param name="flag" type="java.util.EnumSet"/>
  15986. <exception name="IOException" type="java.io.IOException"/>
  15987. </method>
  15988. </class>
  15989. <!-- end class org.apache.hadoop.fs.XAttrSetFlag -->
  15990. <doc>
  15991. <![CDATA[An abstract file system API.]]>
  15992. </doc>
  15993. </package>
  15994. <package name="org.apache.hadoop.fs.crypto">
  15995. </package>
  15996. <package name="org.apache.hadoop.fs.ftp">
  15997. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  15998. <class name="FTPException" extends="java.lang.RuntimeException"
  15999. abstract="false"
  16000. static="false" final="false" visibility="public"
  16001. deprecated="not deprecated">
  16002. <constructor name="FTPException" type="java.lang.String"
  16003. static="false" final="false" visibility="public"
  16004. deprecated="not deprecated">
  16005. </constructor>
  16006. <constructor name="FTPException" type="java.lang.Throwable"
  16007. static="false" final="false" visibility="public"
  16008. deprecated="not deprecated">
  16009. </constructor>
  16010. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  16011. static="false" final="false" visibility="public"
  16012. deprecated="not deprecated">
  16013. </constructor>
  16014. <doc>
  16015. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  16016. </doc>
  16017. </class>
  16018. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  16019. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  16020. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  16021. abstract="false"
  16022. static="false" final="false" visibility="public"
  16023. deprecated="not deprecated">
  16024. <constructor name="FTPFileSystem"
  16025. static="false" final="false" visibility="public"
  16026. deprecated="not deprecated">
  16027. </constructor>
  16028. <method name="getScheme" return="java.lang.String"
  16029. abstract="false" native="false" synchronized="false"
  16030. static="false" final="false" visibility="public"
  16031. deprecated="not deprecated">
  16032. <doc>
  16033. <![CDATA[Return the protocol scheme for the FileSystem.
  16034. <p/>
  16035. @return <code>ftp</code>]]>
  16036. </doc>
  16037. </method>
  16038. <method name="getDefaultPort" return="int"
  16039. abstract="false" native="false" synchronized="false"
  16040. static="false" final="false" visibility="protected"
  16041. deprecated="not deprecated">
  16042. <doc>
  16043. <![CDATA[Get the default port for this FTPFileSystem.
  16044. @return the default port]]>
  16045. </doc>
  16046. </method>
  16047. <method name="initialize"
  16048. abstract="false" native="false" synchronized="false"
  16049. static="false" final="false" visibility="public"
  16050. deprecated="not deprecated">
  16051. <param name="uri" type="java.net.URI"/>
  16052. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16053. <exception name="IOException" type="java.io.IOException"/>
  16054. </method>
  16055. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  16056. abstract="false" native="false" synchronized="false"
  16057. static="false" final="false" visibility="public"
  16058. deprecated="not deprecated">
  16059. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16060. <param name="bufferSize" type="int"/>
  16061. <exception name="IOException" type="java.io.IOException"/>
  16062. </method>
  16063. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  16064. abstract="false" native="false" synchronized="false"
  16065. static="false" final="false" visibility="public"
  16066. deprecated="not deprecated">
  16067. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16068. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16069. <param name="overwrite" type="boolean"/>
  16070. <param name="bufferSize" type="int"/>
  16071. <param name="replication" type="short"/>
  16072. <param name="blockSize" type="long"/>
  16073. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16074. <exception name="IOException" type="java.io.IOException"/>
  16075. <doc>
  16076. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  16077. this class or else the invocation will block.]]>
  16078. </doc>
  16079. </method>
  16080. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  16081. abstract="false" native="false" synchronized="false"
  16082. static="false" final="false" visibility="public"
  16083. deprecated="not deprecated">
  16084. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16085. <param name="bufferSize" type="int"/>
  16086. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16087. <exception name="IOException" type="java.io.IOException"/>
  16088. <doc>
  16089. <![CDATA[This optional operation is not yet supported.]]>
  16090. </doc>
  16091. </method>
  16092. <method name="delete" return="boolean"
  16093. abstract="false" native="false" synchronized="false"
  16094. static="false" final="false" visibility="public"
  16095. deprecated="not deprecated">
  16096. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16097. <param name="recursive" type="boolean"/>
  16098. <exception name="IOException" type="java.io.IOException"/>
  16099. </method>
  16100. <method name="getUri" return="java.net.URI"
  16101. abstract="false" native="false" synchronized="false"
  16102. static="false" final="false" visibility="public"
  16103. deprecated="not deprecated">
  16104. </method>
  16105. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  16106. abstract="false" native="false" synchronized="false"
  16107. static="false" final="false" visibility="public"
  16108. deprecated="not deprecated">
  16109. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16110. <exception name="IOException" type="java.io.IOException"/>
  16111. </method>
  16112. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  16113. abstract="false" native="false" synchronized="false"
  16114. static="false" final="false" visibility="public"
  16115. deprecated="not deprecated">
  16116. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16117. <exception name="IOException" type="java.io.IOException"/>
  16118. </method>
  16119. <method name="mkdirs" return="boolean"
  16120. abstract="false" native="false" synchronized="false"
  16121. static="false" final="false" visibility="public"
  16122. deprecated="not deprecated">
  16123. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16124. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16125. <exception name="IOException" type="java.io.IOException"/>
  16126. </method>
  16127. <method name="rename" return="boolean"
  16128. abstract="false" native="false" synchronized="false"
  16129. static="false" final="false" visibility="public"
  16130. deprecated="not deprecated">
  16131. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16132. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16133. <exception name="IOException" type="java.io.IOException"/>
  16134. </method>
  16135. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  16136. abstract="false" native="false" synchronized="false"
  16137. static="false" final="false" visibility="public"
  16138. deprecated="not deprecated">
  16139. </method>
  16140. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  16141. abstract="false" native="false" synchronized="false"
  16142. static="false" final="false" visibility="public"
  16143. deprecated="not deprecated">
  16144. </method>
  16145. <method name="setWorkingDirectory"
  16146. abstract="false" native="false" synchronized="false"
  16147. static="false" final="false" visibility="public"
  16148. deprecated="not deprecated">
  16149. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  16150. </method>
  16151. <field name="LOG" type="org.slf4j.Logger"
  16152. transient="false" volatile="false"
  16153. static="true" final="true" visibility="public"
  16154. deprecated="not deprecated">
  16155. </field>
  16156. <field name="DEFAULT_BUFFER_SIZE" type="int"
  16157. transient="false" volatile="false"
  16158. static="true" final="true" visibility="public"
  16159. deprecated="not deprecated">
  16160. </field>
  16161. <field name="DEFAULT_BLOCK_SIZE" type="int"
  16162. transient="false" volatile="false"
  16163. static="true" final="true" visibility="public"
  16164. deprecated="not deprecated">
  16165. </field>
  16166. <field name="FS_FTP_USER_PREFIX" type="java.lang.String"
  16167. transient="false" volatile="false"
  16168. static="true" final="true" visibility="public"
  16169. deprecated="not deprecated">
  16170. </field>
  16171. <field name="FS_FTP_HOST" type="java.lang.String"
  16172. transient="false" volatile="false"
  16173. static="true" final="true" visibility="public"
  16174. deprecated="not deprecated">
  16175. </field>
  16176. <field name="FS_FTP_HOST_PORT" 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_PASSWORD_PREFIX" 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_DATA_CONNECTION_MODE" 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_TRANSFER_MODE" 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="E_SAME_DIRECTORY_ONLY" type="java.lang.String"
  16197. transient="false" volatile="false"
  16198. static="true" final="true" visibility="public"
  16199. deprecated="not deprecated">
  16200. </field>
  16201. <doc>
  16202. <![CDATA[<p>
  16203. A {@link FileSystem} backed by an FTP client provided by <a
  16204. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  16205. </p>]]>
  16206. </doc>
  16207. </class>
  16208. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  16209. </package>
  16210. <package name="org.apache.hadoop.fs.http">
  16211. </package>
  16212. <package name="org.apache.hadoop.fs.protocolPB">
  16213. </package>
  16214. <package name="org.apache.hadoop.fs.sftp">
  16215. </package>
  16216. <package name="org.apache.hadoop.fs.shell.find">
  16217. </package>
  16218. <package name="org.apache.hadoop.ha">
  16219. <!-- start class org.apache.hadoop.ha.BadFencingConfigurationException -->
  16220. <class name="BadFencingConfigurationException" extends="java.io.IOException"
  16221. abstract="false"
  16222. static="false" final="false" visibility="public"
  16223. deprecated="not deprecated">
  16224. <constructor name="BadFencingConfigurationException" type="java.lang.String"
  16225. static="false" final="false" visibility="public"
  16226. deprecated="not deprecated">
  16227. </constructor>
  16228. <constructor name="BadFencingConfigurationException" type="java.lang.String, java.lang.Throwable"
  16229. static="false" final="false" visibility="public"
  16230. deprecated="not deprecated">
  16231. </constructor>
  16232. <doc>
  16233. <![CDATA[Indicates that the operator has specified an invalid configuration
  16234. for fencing methods.]]>
  16235. </doc>
  16236. </class>
  16237. <!-- end class org.apache.hadoop.ha.BadFencingConfigurationException -->
  16238. <!-- start class org.apache.hadoop.ha.FailoverFailedException -->
  16239. <class name="FailoverFailedException" extends="java.lang.Exception"
  16240. abstract="false"
  16241. static="false" final="false" visibility="public"
  16242. deprecated="not deprecated">
  16243. <constructor name="FailoverFailedException" type="java.lang.String"
  16244. static="false" final="false" visibility="public"
  16245. deprecated="not deprecated">
  16246. </constructor>
  16247. <constructor name="FailoverFailedException" type="java.lang.String, java.lang.Throwable"
  16248. static="false" final="false" visibility="public"
  16249. deprecated="not deprecated">
  16250. </constructor>
  16251. <doc>
  16252. <![CDATA[Exception thrown to indicate service failover has failed.]]>
  16253. </doc>
  16254. </class>
  16255. <!-- end class org.apache.hadoop.ha.FailoverFailedException -->
  16256. <!-- start interface org.apache.hadoop.ha.FenceMethod -->
  16257. <interface name="FenceMethod" abstract="true"
  16258. static="false" final="false" visibility="public"
  16259. deprecated="not deprecated">
  16260. <method name="checkArgs"
  16261. abstract="true" native="false" synchronized="false"
  16262. static="false" final="false" visibility="public"
  16263. deprecated="not deprecated">
  16264. <param name="args" type="java.lang.String"/>
  16265. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  16266. <doc>
  16267. <![CDATA[Verify that the given fencing method's arguments are valid.
  16268. @param args the arguments provided in the configuration. This may
  16269. be null if the operator did not configure any arguments.
  16270. @throws BadFencingConfigurationException if the arguments are invalid]]>
  16271. </doc>
  16272. </method>
  16273. <method name="tryFence" return="boolean"
  16274. abstract="true" native="false" synchronized="false"
  16275. static="false" final="false" visibility="public"
  16276. deprecated="not deprecated">
  16277. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  16278. <param name="args" type="java.lang.String"/>
  16279. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  16280. <doc>
  16281. <![CDATA[Attempt to fence the target node.
  16282. @param target the target of the service to fence
  16283. @param args the configured arguments, which were checked at startup by
  16284. {@link #checkArgs(String)}
  16285. @return true if fencing was successful, false if unsuccessful or
  16286. indeterminate
  16287. @throws BadFencingConfigurationException if the configuration was
  16288. determined to be invalid only at runtime]]>
  16289. </doc>
  16290. </method>
  16291. <doc>
  16292. <![CDATA[A fencing method is a method by which one node can forcibly prevent
  16293. another node from making continued progress. This might be implemented
  16294. by killing a process on the other node, by denying the other node's
  16295. access to shared storage, or by accessing a PDU to cut the other node's
  16296. power.
  16297. <p>
  16298. Since these methods are often vendor- or device-specific, operators
  16299. may implement this interface in order to achieve fencing.
  16300. <p>
  16301. Fencing is configured by the operator as an ordered list of methods to
  16302. attempt. Each method will be tried in turn, and the next in the list
  16303. will only be attempted if the previous one fails. See {@link NodeFencer}
  16304. for more information.
  16305. <p>
  16306. If an implementation also implements {@link Configurable} then its
  16307. <code>setConf</code> method will be called upon instantiation.]]>
  16308. </doc>
  16309. </interface>
  16310. <!-- end interface org.apache.hadoop.ha.FenceMethod -->
  16311. <!-- start interface org.apache.hadoop.ha.HAServiceProtocol -->
  16312. <interface name="HAServiceProtocol" abstract="true"
  16313. static="false" final="false" visibility="public"
  16314. deprecated="not deprecated">
  16315. <method name="monitorHealth"
  16316. abstract="true" native="false" synchronized="false"
  16317. static="false" final="false" visibility="public"
  16318. deprecated="not deprecated">
  16319. <exception name="HealthCheckFailedException" type="org.apache.hadoop.ha.HealthCheckFailedException"/>
  16320. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16321. <exception name="IOException" type="java.io.IOException"/>
  16322. <doc>
  16323. <![CDATA[Monitor the health of service. This periodically called by the HA
  16324. frameworks to monitor the health of the service.
  16325. Service is expected to perform checks to ensure it is functional.
  16326. If the service is not healthy due to failure or partial failure,
  16327. it is expected to throw {@link HealthCheckFailedException}.
  16328. The definition of service not healthy is left to the service.
  16329. Note that when health check of an Active service fails,
  16330. failover to standby may be done.
  16331. @throws HealthCheckFailedException
  16332. if the health check of a service fails.
  16333. @throws AccessControlException
  16334. if access is denied.
  16335. @throws IOException
  16336. if other errors happen]]>
  16337. </doc>
  16338. </method>
  16339. <method name="transitionToActive"
  16340. abstract="true" native="false" synchronized="false"
  16341. static="false" final="false" visibility="public"
  16342. deprecated="not deprecated">
  16343. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16344. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  16345. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16346. <exception name="IOException" type="java.io.IOException"/>
  16347. <doc>
  16348. <![CDATA[Request service to transition to active state. No operation, if the
  16349. service is already in active state.
  16350. @throws ServiceFailedException
  16351. if transition from standby to active fails.
  16352. @throws AccessControlException
  16353. if access is denied.
  16354. @throws IOException
  16355. if other errors happen]]>
  16356. </doc>
  16357. </method>
  16358. <method name="transitionToStandby"
  16359. abstract="true" native="false" synchronized="false"
  16360. static="false" final="false" visibility="public"
  16361. deprecated="not deprecated">
  16362. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16363. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  16364. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16365. <exception name="IOException" type="java.io.IOException"/>
  16366. <doc>
  16367. <![CDATA[Request service to transition to standby state. No operation, if the
  16368. service is already in standby state.
  16369. @throws ServiceFailedException
  16370. if transition from active to standby fails.
  16371. @throws AccessControlException
  16372. if access is denied.
  16373. @throws IOException
  16374. if other errors happen]]>
  16375. </doc>
  16376. </method>
  16377. <method name="transitionToObserver"
  16378. abstract="true" native="false" synchronized="false"
  16379. static="false" final="false" visibility="public"
  16380. deprecated="not deprecated">
  16381. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16382. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  16383. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16384. <exception name="IOException" type="java.io.IOException"/>
  16385. <doc>
  16386. <![CDATA[Request service to transition to observer state. No operation, if the
  16387. service is already in observer state.
  16388. @throws ServiceFailedException
  16389. if transition from standby to observer fails.
  16390. @throws AccessControlException
  16391. if access is denied.
  16392. @throws IOException
  16393. if other errors happen]]>
  16394. </doc>
  16395. </method>
  16396. <method name="getServiceStatus" return="org.apache.hadoop.ha.HAServiceStatus"
  16397. abstract="true" native="false" synchronized="false"
  16398. static="false" final="false" visibility="public"
  16399. deprecated="not deprecated">
  16400. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16401. <exception name="IOException" type="java.io.IOException"/>
  16402. <doc>
  16403. <![CDATA[Return the current status of the service. The status indicates
  16404. the current <em>state</em> (e.g ACTIVE/STANDBY) as well as
  16405. some additional information.
  16406. @throws AccessControlException
  16407. if access is denied.
  16408. @throws IOException
  16409. if other errors happen
  16410. @see HAServiceStatus]]>
  16411. </doc>
  16412. </method>
  16413. <field name="versionID" type="long"
  16414. transient="false" volatile="false"
  16415. static="true" final="true" visibility="public"
  16416. deprecated="not deprecated">
  16417. <doc>
  16418. <![CDATA[Initial version of the protocol]]>
  16419. </doc>
  16420. </field>
  16421. <doc>
  16422. <![CDATA[Protocol interface that provides High Availability related primitives to
  16423. monitor and fail-over the service.
  16424. This interface could be used by HA frameworks to manage the service.]]>
  16425. </doc>
  16426. </interface>
  16427. <!-- end interface org.apache.hadoop.ha.HAServiceProtocol -->
  16428. <!-- start class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  16429. <class name="HAServiceProtocolHelper" extends="java.lang.Object"
  16430. abstract="false"
  16431. static="false" final="false" visibility="public"
  16432. deprecated="not deprecated">
  16433. <constructor name="HAServiceProtocolHelper"
  16434. static="false" final="false" visibility="public"
  16435. deprecated="not deprecated">
  16436. </constructor>
  16437. <method name="monitorHealth"
  16438. abstract="false" native="false" synchronized="false"
  16439. static="true" final="false" visibility="public"
  16440. deprecated="not deprecated">
  16441. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  16442. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16443. <exception name="IOException" type="java.io.IOException"/>
  16444. </method>
  16445. <method name="transitionToActive"
  16446. abstract="false" native="false" synchronized="false"
  16447. static="true" final="false" visibility="public"
  16448. deprecated="not deprecated">
  16449. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  16450. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16451. <exception name="IOException" type="java.io.IOException"/>
  16452. </method>
  16453. <method name="transitionToStandby"
  16454. abstract="false" native="false" synchronized="false"
  16455. static="true" final="false" visibility="public"
  16456. deprecated="not deprecated">
  16457. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  16458. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16459. <exception name="IOException" type="java.io.IOException"/>
  16460. </method>
  16461. <method name="transitionToObserver"
  16462. abstract="false" native="false" synchronized="false"
  16463. static="true" final="false" visibility="public"
  16464. deprecated="not deprecated">
  16465. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  16466. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16467. <exception name="IOException" type="java.io.IOException"/>
  16468. </method>
  16469. <doc>
  16470. <![CDATA[Helper for making {@link HAServiceProtocol} RPC calls. This helper
  16471. unwraps the {@link RemoteException} to specific exceptions.]]>
  16472. </doc>
  16473. </class>
  16474. <!-- end class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  16475. <!-- start class org.apache.hadoop.ha.HAServiceTarget -->
  16476. <class name="HAServiceTarget" extends="java.lang.Object"
  16477. abstract="true"
  16478. static="false" final="false" visibility="public"
  16479. deprecated="not deprecated">
  16480. <constructor name="HAServiceTarget"
  16481. static="false" final="false" visibility="public"
  16482. deprecated="not deprecated">
  16483. </constructor>
  16484. <method name="getAddress" return="java.net.InetSocketAddress"
  16485. abstract="true" native="false" synchronized="false"
  16486. static="false" final="false" visibility="public"
  16487. deprecated="not deprecated">
  16488. <doc>
  16489. <![CDATA[@return the IPC address of the target node.]]>
  16490. </doc>
  16491. </method>
  16492. <method name="getHealthMonitorAddress" return="java.net.InetSocketAddress"
  16493. abstract="false" native="false" synchronized="false"
  16494. static="false" final="false" visibility="public"
  16495. deprecated="not deprecated">
  16496. <doc>
  16497. <![CDATA[Returns an optional separate RPC server address for health checks at the
  16498. target node. If defined, then this address is used by the health monitor
  16499. for the {@link HAServiceProtocol#monitorHealth()} and
  16500. {@link HAServiceProtocol#getServiceStatus()} calls. This can be useful for
  16501. separating out these calls onto separate RPC handlers to protect against
  16502. resource exhaustion in the main RPC handler pool. If null (which is the
  16503. default implementation), then all RPC calls go to the address defined by
  16504. {@link #getAddress()}.
  16505. @return IPC address of the lifeline RPC server on the target node, or null
  16506. if no lifeline RPC server is used]]>
  16507. </doc>
  16508. </method>
  16509. <method name="getZKFCAddress" return="java.net.InetSocketAddress"
  16510. abstract="true" native="false" synchronized="false"
  16511. static="false" final="false" visibility="public"
  16512. deprecated="not deprecated">
  16513. <doc>
  16514. <![CDATA[@return the IPC address of the ZKFC on the target node]]>
  16515. </doc>
  16516. </method>
  16517. <method name="getFencer" return="org.apache.hadoop.ha.NodeFencer"
  16518. abstract="true" native="false" synchronized="false"
  16519. static="false" final="false" visibility="public"
  16520. deprecated="not deprecated">
  16521. <doc>
  16522. <![CDATA[@return a Fencer implementation configured for this target node]]>
  16523. </doc>
  16524. </method>
  16525. <method name="checkFencingConfigured"
  16526. abstract="true" native="false" synchronized="false"
  16527. static="false" final="false" visibility="public"
  16528. deprecated="not deprecated">
  16529. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  16530. <doc>
  16531. <![CDATA[@throws BadFencingConfigurationException if the fencing configuration
  16532. appears to be invalid. This is divorced from the above
  16533. {@link #getFencer()} method so that the configuration can be checked
  16534. during the pre-flight phase of failover.]]>
  16535. </doc>
  16536. </method>
  16537. <method name="getProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  16538. abstract="false" native="false" synchronized="false"
  16539. static="false" final="false" visibility="public"
  16540. deprecated="not deprecated">
  16541. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16542. <param name="timeoutMs" type="int"/>
  16543. <exception name="IOException" type="java.io.IOException"/>
  16544. <doc>
  16545. <![CDATA[@return a proxy to connect to the target HA Service.]]>
  16546. </doc>
  16547. </method>
  16548. <method name="setTransitionTargetHAStatus"
  16549. abstract="false" native="false" synchronized="false"
  16550. static="false" final="false" visibility="public"
  16551. deprecated="not deprecated">
  16552. <param name="status" type="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState"/>
  16553. </method>
  16554. <method name="getTransitionTargetHAStatus" return="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState"
  16555. abstract="false" native="false" synchronized="false"
  16556. static="false" final="false" visibility="public"
  16557. deprecated="not deprecated">
  16558. </method>
  16559. <method name="getHealthMonitorProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  16560. abstract="false" native="false" synchronized="false"
  16561. static="false" final="false" visibility="public"
  16562. deprecated="not deprecated">
  16563. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16564. <param name="timeoutMs" type="int"/>
  16565. <exception name="IOException" type="java.io.IOException"/>
  16566. <doc>
  16567. <![CDATA[Returns a proxy to connect to the target HA service for health monitoring.
  16568. If {@link #getHealthMonitorAddress()} is implemented to return a non-null
  16569. address, then this proxy will connect to that address. Otherwise, the
  16570. returned proxy defaults to using {@link #getAddress()}, which means this
  16571. method's behavior is identical to {@link #getProxy(Configuration, int)}.
  16572. @param conf Configuration
  16573. @param timeoutMs timeout in milliseconds
  16574. @return a proxy to connect to the target HA service for health monitoring
  16575. @throws IOException if there is an error]]>
  16576. </doc>
  16577. </method>
  16578. <method name="getZKFCProxy" return="org.apache.hadoop.ha.ZKFCProtocol"
  16579. abstract="false" native="false" synchronized="false"
  16580. static="false" final="false" visibility="public"
  16581. deprecated="not deprecated">
  16582. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16583. <param name="timeoutMs" type="int"/>
  16584. <exception name="IOException" type="java.io.IOException"/>
  16585. <doc>
  16586. <![CDATA[@return a proxy to the ZKFC which is associated with this HA service.]]>
  16587. </doc>
  16588. </method>
  16589. <method name="getFencingParameters" return="java.util.Map"
  16590. abstract="false" native="false" synchronized="false"
  16591. static="false" final="true" visibility="public"
  16592. deprecated="not deprecated">
  16593. </method>
  16594. <method name="addFencingParameters"
  16595. abstract="false" native="false" synchronized="false"
  16596. static="false" final="false" visibility="protected"
  16597. deprecated="not deprecated">
  16598. <param name="ret" type="java.util.Map"/>
  16599. <doc>
  16600. <![CDATA[Hook to allow subclasses to add any parameters they would like to
  16601. expose to fencing implementations/scripts. Fencing methods are free
  16602. to use this map as they see fit -- notably, the shell script
  16603. implementation takes each entry, prepends 'target_', substitutes
  16604. '_' for '.', and adds it to the environment of the script.
  16605. Subclass implementations should be sure to delegate to the superclass
  16606. implementation as well as adding their own keys.
  16607. @param ret map which can be mutated to pass parameters to the fencer]]>
  16608. </doc>
  16609. </method>
  16610. <method name="isAutoFailoverEnabled" return="boolean"
  16611. abstract="false" native="false" synchronized="false"
  16612. static="false" final="false" visibility="public"
  16613. deprecated="not deprecated">
  16614. <doc>
  16615. <![CDATA[@return true if auto failover should be considered enabled]]>
  16616. </doc>
  16617. </method>
  16618. <method name="supportObserver" return="boolean"
  16619. abstract="false" native="false" synchronized="false"
  16620. static="false" final="false" visibility="public"
  16621. deprecated="not deprecated">
  16622. <doc>
  16623. <![CDATA[@return true if this target supports the Observer state, false otherwise.]]>
  16624. </doc>
  16625. </method>
  16626. <doc>
  16627. <![CDATA[Represents a target of the client side HA administration commands.]]>
  16628. </doc>
  16629. </class>
  16630. <!-- end class org.apache.hadoop.ha.HAServiceTarget -->
  16631. <!-- start class org.apache.hadoop.ha.HealthCheckFailedException -->
  16632. <class name="HealthCheckFailedException" extends="java.io.IOException"
  16633. abstract="false"
  16634. static="false" final="false" visibility="public"
  16635. deprecated="not deprecated">
  16636. <constructor name="HealthCheckFailedException" type="java.lang.String"
  16637. static="false" final="false" visibility="public"
  16638. deprecated="not deprecated">
  16639. </constructor>
  16640. <constructor name="HealthCheckFailedException" type="java.lang.String, java.lang.Throwable"
  16641. static="false" final="false" visibility="public"
  16642. deprecated="not deprecated">
  16643. </constructor>
  16644. <doc>
  16645. <![CDATA[Exception thrown to indicate that health check of a service failed.]]>
  16646. </doc>
  16647. </class>
  16648. <!-- end class org.apache.hadoop.ha.HealthCheckFailedException -->
  16649. <!-- start class org.apache.hadoop.ha.ServiceFailedException -->
  16650. <class name="ServiceFailedException" extends="java.io.IOException"
  16651. abstract="false"
  16652. static="false" final="false" visibility="public"
  16653. deprecated="not deprecated">
  16654. <constructor name="ServiceFailedException" type="java.lang.String"
  16655. static="false" final="false" visibility="public"
  16656. deprecated="not deprecated">
  16657. </constructor>
  16658. <constructor name="ServiceFailedException" type="java.lang.String, java.lang.Throwable"
  16659. static="false" final="false" visibility="public"
  16660. deprecated="not deprecated">
  16661. </constructor>
  16662. <doc>
  16663. <![CDATA[Exception thrown to indicate that an operation performed
  16664. to modify the state of a service or application failed.]]>
  16665. </doc>
  16666. </class>
  16667. <!-- end class org.apache.hadoop.ha.ServiceFailedException -->
  16668. </package>
  16669. <package name="org.apache.hadoop.ha.protocolPB">
  16670. <!-- start interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  16671. <interface name="HAServiceProtocolPB" abstract="true"
  16672. static="false" final="false" visibility="public"
  16673. deprecated="not deprecated">
  16674. <implements name="org.apache.hadoop.ha.proto.HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface"/>
  16675. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  16676. </interface>
  16677. <!-- end interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  16678. <!-- start interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  16679. <interface name="ZKFCProtocolPB" abstract="true"
  16680. static="false" final="false" visibility="public"
  16681. deprecated="not deprecated">
  16682. <implements name="org.apache.hadoop.ha.proto.ZKFCProtocolProtos.ZKFCProtocolService.BlockingInterface"/>
  16683. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  16684. </interface>
  16685. <!-- end interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  16686. </package>
  16687. <package name="org.apache.hadoop.http.lib">
  16688. <doc>
  16689. <![CDATA[This package provides user-selectable (via configuration) classes that add
  16690. functionality to the web UI. They are configured as a list of classes in the
  16691. configuration parameter <b>hadoop.http.filter.initializers</b>.
  16692. <ul>
  16693. <li> <b>StaticUserWebFilter</b> - An authorization plugin that makes all
  16694. users a static configured user.
  16695. </ul>]]>
  16696. </doc>
  16697. </package>
  16698. <package name="org.apache.hadoop.io">
  16699. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  16700. <class name="AbstractMapWritable" extends="java.lang.Object"
  16701. abstract="true"
  16702. static="false" final="false" visibility="public"
  16703. deprecated="not deprecated">
  16704. <implements name="org.apache.hadoop.io.Writable"/>
  16705. <implements name="org.apache.hadoop.conf.Configurable"/>
  16706. <constructor name="AbstractMapWritable"
  16707. static="false" final="false" visibility="protected"
  16708. deprecated="not deprecated">
  16709. <doc>
  16710. <![CDATA[constructor.]]>
  16711. </doc>
  16712. </constructor>
  16713. <method name="addToMap"
  16714. abstract="false" native="false" synchronized="true"
  16715. static="false" final="false" visibility="protected"
  16716. deprecated="not deprecated">
  16717. <param name="clazz" type="java.lang.Class"/>
  16718. <doc>
  16719. <![CDATA[Add a Class to the maps if it is not already present.]]>
  16720. </doc>
  16721. </method>
  16722. <method name="getClass" return="java.lang.Class"
  16723. abstract="false" native="false" synchronized="false"
  16724. static="false" final="false" visibility="protected"
  16725. deprecated="not deprecated">
  16726. <param name="id" type="byte"/>
  16727. <doc>
  16728. <![CDATA[@return the Class class for the specified id]]>
  16729. </doc>
  16730. </method>
  16731. <method name="getId" return="byte"
  16732. abstract="false" native="false" synchronized="false"
  16733. static="false" final="false" visibility="protected"
  16734. deprecated="not deprecated">
  16735. <param name="clazz" type="java.lang.Class"/>
  16736. <doc>
  16737. <![CDATA[@return the id for the specified Class]]>
  16738. </doc>
  16739. </method>
  16740. <method name="copy"
  16741. abstract="false" native="false" synchronized="true"
  16742. static="false" final="false" visibility="protected"
  16743. deprecated="not deprecated">
  16744. <param name="other" type="org.apache.hadoop.io.Writable"/>
  16745. <doc>
  16746. <![CDATA[Used by child copy constructors.]]>
  16747. </doc>
  16748. </method>
  16749. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  16750. abstract="false" native="false" synchronized="false"
  16751. static="false" final="false" visibility="public"
  16752. deprecated="not deprecated">
  16753. <doc>
  16754. <![CDATA[@return the conf]]>
  16755. </doc>
  16756. </method>
  16757. <method name="setConf"
  16758. abstract="false" native="false" synchronized="false"
  16759. static="false" final="false" visibility="public"
  16760. deprecated="not deprecated">
  16761. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16762. <doc>
  16763. <![CDATA[@param conf the conf to set]]>
  16764. </doc>
  16765. </method>
  16766. <method name="write"
  16767. abstract="false" native="false" synchronized="false"
  16768. static="false" final="false" visibility="public"
  16769. deprecated="not deprecated">
  16770. <param name="out" type="java.io.DataOutput"/>
  16771. <exception name="IOException" type="java.io.IOException"/>
  16772. </method>
  16773. <method name="readFields"
  16774. abstract="false" native="false" synchronized="false"
  16775. static="false" final="false" visibility="public"
  16776. deprecated="not deprecated">
  16777. <param name="in" type="java.io.DataInput"/>
  16778. <exception name="IOException" type="java.io.IOException"/>
  16779. </method>
  16780. <doc>
  16781. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  16782. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  16783. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  16784. maps travel with the class instead of being static.
  16785. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  16786. in any specific map instance.]]>
  16787. </doc>
  16788. </class>
  16789. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  16790. <!-- start class org.apache.hadoop.io.ArrayFile -->
  16791. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  16792. abstract="false"
  16793. static="false" final="false" visibility="public"
  16794. deprecated="not deprecated">
  16795. <constructor name="ArrayFile"
  16796. static="false" final="false" visibility="protected"
  16797. deprecated="not deprecated">
  16798. </constructor>
  16799. <doc>
  16800. <![CDATA[A dense file-based mapping from integers to values.]]>
  16801. </doc>
  16802. </class>
  16803. <!-- end class org.apache.hadoop.io.ArrayFile -->
  16804. <!-- start class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  16805. <class name="ArrayPrimitiveWritable" extends="java.lang.Object"
  16806. abstract="false"
  16807. static="false" final="false" visibility="public"
  16808. deprecated="not deprecated">
  16809. <implements name="org.apache.hadoop.io.Writable"/>
  16810. <constructor name="ArrayPrimitiveWritable"
  16811. static="false" final="false" visibility="public"
  16812. deprecated="not deprecated">
  16813. <doc>
  16814. <![CDATA[Construct an empty instance, for use during Writable read]]>
  16815. </doc>
  16816. </constructor>
  16817. <constructor name="ArrayPrimitiveWritable" type="java.lang.Class"
  16818. static="false" final="false" visibility="public"
  16819. deprecated="not deprecated">
  16820. <doc>
  16821. <![CDATA[Construct an instance of known type but no value yet
  16822. for use with type-specific wrapper classes]]>
  16823. </doc>
  16824. </constructor>
  16825. <constructor name="ArrayPrimitiveWritable" type="java.lang.Object"
  16826. static="false" final="false" visibility="public"
  16827. deprecated="not deprecated">
  16828. <doc>
  16829. <![CDATA[Wrap an existing array of primitives
  16830. @param value - array of primitives]]>
  16831. </doc>
  16832. </constructor>
  16833. <method name="get" return="java.lang.Object"
  16834. abstract="false" native="false" synchronized="false"
  16835. static="false" final="false" visibility="public"
  16836. deprecated="not deprecated">
  16837. <doc>
  16838. <![CDATA[Get the original array.
  16839. Client must cast it back to type componentType[]
  16840. (or may use type-specific wrapper classes).
  16841. @return - original array as Object]]>
  16842. </doc>
  16843. </method>
  16844. <method name="getComponentType" return="java.lang.Class"
  16845. abstract="false" native="false" synchronized="false"
  16846. static="false" final="false" visibility="public"
  16847. deprecated="not deprecated">
  16848. </method>
  16849. <method name="getDeclaredComponentType" return="java.lang.Class"
  16850. abstract="false" native="false" synchronized="false"
  16851. static="false" final="false" visibility="public"
  16852. deprecated="not deprecated">
  16853. </method>
  16854. <method name="isDeclaredComponentType" return="boolean"
  16855. abstract="false" native="false" synchronized="false"
  16856. static="false" final="false" visibility="public"
  16857. deprecated="not deprecated">
  16858. <param name="componentType" type="java.lang.Class"/>
  16859. </method>
  16860. <method name="set"
  16861. abstract="false" native="false" synchronized="false"
  16862. static="false" final="false" visibility="public"
  16863. deprecated="not deprecated">
  16864. <param name="value" type="java.lang.Object"/>
  16865. </method>
  16866. <method name="write"
  16867. abstract="false" native="false" synchronized="false"
  16868. static="false" final="false" visibility="public"
  16869. deprecated="not deprecated">
  16870. <param name="out" type="java.io.DataOutput"/>
  16871. <exception name="IOException" type="java.io.IOException"/>
  16872. </method>
  16873. <method name="readFields"
  16874. abstract="false" native="false" synchronized="false"
  16875. static="false" final="false" visibility="public"
  16876. deprecated="not deprecated">
  16877. <param name="in" type="java.io.DataInput"/>
  16878. <exception name="IOException" type="java.io.IOException"/>
  16879. </method>
  16880. <doc>
  16881. <![CDATA[This is a wrapper class. It wraps a Writable implementation around
  16882. an array of primitives (e.g., int[], long[], etc.), with optimized
  16883. wire format, and without creating new objects per element.
  16884. This is a wrapper class only; it does not make a copy of the
  16885. underlying array.]]>
  16886. </doc>
  16887. </class>
  16888. <!-- end class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  16889. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  16890. <class name="ArrayWritable" extends="java.lang.Object"
  16891. abstract="false"
  16892. static="false" final="false" visibility="public"
  16893. deprecated="not deprecated">
  16894. <implements name="org.apache.hadoop.io.Writable"/>
  16895. <constructor name="ArrayWritable" type="java.lang.Class"
  16896. static="false" final="false" visibility="public"
  16897. deprecated="not deprecated">
  16898. </constructor>
  16899. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  16900. static="false" final="false" visibility="public"
  16901. deprecated="not deprecated">
  16902. </constructor>
  16903. <constructor name="ArrayWritable" type="java.lang.String[]"
  16904. static="false" final="false" visibility="public"
  16905. deprecated="not deprecated">
  16906. </constructor>
  16907. <method name="getValueClass" return="java.lang.Class"
  16908. abstract="false" native="false" synchronized="false"
  16909. static="false" final="false" visibility="public"
  16910. deprecated="not deprecated">
  16911. </method>
  16912. <method name="toStrings" return="java.lang.String[]"
  16913. abstract="false" native="false" synchronized="false"
  16914. static="false" final="false" visibility="public"
  16915. deprecated="not deprecated">
  16916. </method>
  16917. <method name="toArray" return="java.lang.Object"
  16918. abstract="false" native="false" synchronized="false"
  16919. static="false" final="false" visibility="public"
  16920. deprecated="not deprecated">
  16921. </method>
  16922. <method name="set"
  16923. abstract="false" native="false" synchronized="false"
  16924. static="false" final="false" visibility="public"
  16925. deprecated="not deprecated">
  16926. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  16927. </method>
  16928. <method name="get" return="org.apache.hadoop.io.Writable[]"
  16929. abstract="false" native="false" synchronized="false"
  16930. static="false" final="false" visibility="public"
  16931. deprecated="not deprecated">
  16932. </method>
  16933. <method name="readFields"
  16934. abstract="false" native="false" synchronized="false"
  16935. static="false" final="false" visibility="public"
  16936. deprecated="not deprecated">
  16937. <param name="in" type="java.io.DataInput"/>
  16938. <exception name="IOException" type="java.io.IOException"/>
  16939. </method>
  16940. <method name="write"
  16941. abstract="false" native="false" synchronized="false"
  16942. static="false" final="false" visibility="public"
  16943. deprecated="not deprecated">
  16944. <param name="out" type="java.io.DataOutput"/>
  16945. <exception name="IOException" type="java.io.IOException"/>
  16946. </method>
  16947. <doc>
  16948. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  16949. writable must all be instances of the same class. If this writable will be
  16950. the input for a Reducer, you will need to create a subclass that sets the
  16951. value to be of the proper type.
  16952. For example:
  16953. <code>
  16954. public class IntArrayWritable extends ArrayWritable {
  16955. public IntArrayWritable() {
  16956. super(IntWritable.class);
  16957. }
  16958. }
  16959. </code>]]>
  16960. </doc>
  16961. </class>
  16962. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  16963. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  16964. <class name="BinaryComparable" extends="java.lang.Object"
  16965. abstract="true"
  16966. static="false" final="false" visibility="public"
  16967. deprecated="not deprecated">
  16968. <implements name="java.lang.Comparable"/>
  16969. <constructor name="BinaryComparable"
  16970. static="false" final="false" visibility="public"
  16971. deprecated="not deprecated">
  16972. </constructor>
  16973. <method name="getLength" return="int"
  16974. abstract="true" native="false" synchronized="false"
  16975. static="false" final="false" visibility="public"
  16976. deprecated="not deprecated">
  16977. <doc>
  16978. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  16979. </doc>
  16980. </method>
  16981. <method name="getBytes" return="byte[]"
  16982. abstract="true" native="false" synchronized="false"
  16983. static="false" final="false" visibility="public"
  16984. deprecated="not deprecated">
  16985. <doc>
  16986. <![CDATA[Return representative byte array for this instance.]]>
  16987. </doc>
  16988. </method>
  16989. <method name="compareTo" return="int"
  16990. abstract="false" native="false" synchronized="false"
  16991. static="false" final="false" visibility="public"
  16992. deprecated="not deprecated">
  16993. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  16994. <doc>
  16995. <![CDATA[Compare bytes from {#getBytes()}.
  16996. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  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="byte[]"/>
  17004. <param name="off" type="int"/>
  17005. <param name="len" type="int"/>
  17006. <doc>
  17007. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  17008. </doc>
  17009. </method>
  17010. <method name="equals" return="boolean"
  17011. abstract="false" native="false" synchronized="false"
  17012. static="false" final="false" visibility="public"
  17013. deprecated="not deprecated">
  17014. <param name="other" type="java.lang.Object"/>
  17015. <doc>
  17016. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  17017. </doc>
  17018. </method>
  17019. <method name="hashCode" return="int"
  17020. abstract="false" native="false" synchronized="false"
  17021. static="false" final="false" visibility="public"
  17022. deprecated="not deprecated">
  17023. <doc>
  17024. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  17025. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  17026. </doc>
  17027. </method>
  17028. <doc>
  17029. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  17030. types supporting ordering/permutation by a representative set of bytes.]]>
  17031. </doc>
  17032. </class>
  17033. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  17034. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  17035. <class name="BloomMapFile" extends="java.lang.Object"
  17036. abstract="false"
  17037. static="false" final="false" visibility="public"
  17038. deprecated="not deprecated">
  17039. <constructor name="BloomMapFile"
  17040. static="false" final="false" visibility="public"
  17041. deprecated="not deprecated">
  17042. </constructor>
  17043. <method name="delete"
  17044. abstract="false" native="false" synchronized="false"
  17045. static="true" final="false" visibility="public"
  17046. deprecated="not deprecated">
  17047. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17048. <param name="name" type="java.lang.String"/>
  17049. <exception name="IOException" type="java.io.IOException"/>
  17050. </method>
  17051. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  17052. transient="false" volatile="false"
  17053. static="true" final="true" visibility="public"
  17054. deprecated="not deprecated">
  17055. </field>
  17056. <field name="HASH_COUNT" type="int"
  17057. transient="false" volatile="false"
  17058. static="true" final="true" visibility="public"
  17059. deprecated="not deprecated">
  17060. </field>
  17061. <doc>
  17062. <![CDATA[This class extends {@link MapFile} and provides very much the same
  17063. functionality. However, it uses dynamic Bloom filters to provide
  17064. quick membership test for keys, and it offers a fast version of
  17065. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  17066. case of sparsely populated MapFile-s.]]>
  17067. </doc>
  17068. </class>
  17069. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  17070. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  17071. <class name="BooleanWritable" extends="java.lang.Object"
  17072. abstract="false"
  17073. static="false" final="false" visibility="public"
  17074. deprecated="not deprecated">
  17075. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17076. <constructor name="BooleanWritable"
  17077. static="false" final="false" visibility="public"
  17078. deprecated="not deprecated">
  17079. </constructor>
  17080. <constructor name="BooleanWritable" type="boolean"
  17081. static="false" final="false" visibility="public"
  17082. deprecated="not deprecated">
  17083. </constructor>
  17084. <method name="set"
  17085. abstract="false" native="false" synchronized="false"
  17086. static="false" final="false" visibility="public"
  17087. deprecated="not deprecated">
  17088. <param name="value" type="boolean"/>
  17089. <doc>
  17090. <![CDATA[Set the value of the BooleanWritable]]>
  17091. </doc>
  17092. </method>
  17093. <method name="get" return="boolean"
  17094. abstract="false" native="false" synchronized="false"
  17095. static="false" final="false" visibility="public"
  17096. deprecated="not deprecated">
  17097. <doc>
  17098. <![CDATA[Returns the value of the BooleanWritable]]>
  17099. </doc>
  17100. </method>
  17101. <method name="readFields"
  17102. abstract="false" native="false" synchronized="false"
  17103. static="false" final="false" visibility="public"
  17104. deprecated="not deprecated">
  17105. <param name="in" type="java.io.DataInput"/>
  17106. <exception name="IOException" type="java.io.IOException"/>
  17107. </method>
  17108. <method name="write"
  17109. abstract="false" native="false" synchronized="false"
  17110. static="false" final="false" visibility="public"
  17111. deprecated="not deprecated">
  17112. <param name="out" type="java.io.DataOutput"/>
  17113. <exception name="IOException" type="java.io.IOException"/>
  17114. </method>
  17115. <method name="equals" return="boolean"
  17116. abstract="false" native="false" synchronized="false"
  17117. static="false" final="false" visibility="public"
  17118. deprecated="not deprecated">
  17119. <param name="o" type="java.lang.Object"/>
  17120. </method>
  17121. <method name="hashCode" return="int"
  17122. abstract="false" native="false" synchronized="false"
  17123. static="false" final="false" visibility="public"
  17124. deprecated="not deprecated">
  17125. </method>
  17126. <method name="compareTo" return="int"
  17127. abstract="false" native="false" synchronized="false"
  17128. static="false" final="false" visibility="public"
  17129. deprecated="not deprecated">
  17130. <param name="o" type="org.apache.hadoop.io.BooleanWritable"/>
  17131. </method>
  17132. <method name="toString" return="java.lang.String"
  17133. abstract="false" native="false" synchronized="false"
  17134. static="false" final="false" visibility="public"
  17135. deprecated="not deprecated">
  17136. </method>
  17137. <doc>
  17138. <![CDATA[A WritableComparable for booleans.]]>
  17139. </doc>
  17140. </class>
  17141. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  17142. <!-- start interface org.apache.hadoop.io.ByteBufferPool -->
  17143. <interface name="ByteBufferPool" abstract="true"
  17144. static="false" final="false" visibility="public"
  17145. deprecated="not deprecated">
  17146. <method name="getBuffer" return="java.nio.ByteBuffer"
  17147. abstract="true" native="false" synchronized="false"
  17148. static="false" final="false" visibility="public"
  17149. deprecated="not deprecated">
  17150. <param name="direct" type="boolean"/>
  17151. <param name="length" type="int"/>
  17152. <doc>
  17153. <![CDATA[Get a new direct ByteBuffer. The pool can provide this from
  17154. removing a buffer from its internal cache, or by allocating a
  17155. new buffer.
  17156. @param direct Whether the buffer should be direct.
  17157. @param length The minimum length the buffer will have.
  17158. @return A new ByteBuffer. This ByteBuffer must be direct.
  17159. Its capacity can be less than what was requested, but
  17160. must be at least 1 byte.]]>
  17161. </doc>
  17162. </method>
  17163. <method name="putBuffer"
  17164. abstract="true" native="false" synchronized="false"
  17165. static="false" final="false" visibility="public"
  17166. deprecated="not deprecated">
  17167. <param name="buffer" type="java.nio.ByteBuffer"/>
  17168. <doc>
  17169. <![CDATA[Release a buffer back to the pool.
  17170. The pool may choose to put this buffer into its cache.
  17171. @param buffer a direct bytebuffer]]>
  17172. </doc>
  17173. </method>
  17174. </interface>
  17175. <!-- end interface org.apache.hadoop.io.ByteBufferPool -->
  17176. <!-- start class org.apache.hadoop.io.BytesWritable -->
  17177. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  17178. abstract="false"
  17179. static="false" final="false" visibility="public"
  17180. deprecated="not deprecated">
  17181. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17182. <constructor name="BytesWritable"
  17183. static="false" final="false" visibility="public"
  17184. deprecated="not deprecated">
  17185. <doc>
  17186. <![CDATA[Create a zero-size sequence.]]>
  17187. </doc>
  17188. </constructor>
  17189. <constructor name="BytesWritable" type="byte[]"
  17190. static="false" final="false" visibility="public"
  17191. deprecated="not deprecated">
  17192. <doc>
  17193. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  17194. @param bytes This array becomes the backing storage for the object.]]>
  17195. </doc>
  17196. </constructor>
  17197. <constructor name="BytesWritable" type="byte[], int"
  17198. static="false" final="false" visibility="public"
  17199. deprecated="not deprecated">
  17200. <doc>
  17201. <![CDATA[Create a BytesWritable using the byte array as the initial value
  17202. and length as the length. Use this constructor if the array is larger
  17203. than the value it represents.
  17204. @param bytes This array becomes the backing storage for the object.
  17205. @param length The number of bytes to use from array.]]>
  17206. </doc>
  17207. </constructor>
  17208. <method name="copyBytes" return="byte[]"
  17209. abstract="false" native="false" synchronized="false"
  17210. static="false" final="false" visibility="public"
  17211. deprecated="not deprecated">
  17212. <doc>
  17213. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  17214. See {@link #getBytes()} for faster access to the underlying array.]]>
  17215. </doc>
  17216. </method>
  17217. <method name="getBytes" return="byte[]"
  17218. abstract="false" native="false" synchronized="false"
  17219. static="false" final="false" visibility="public"
  17220. deprecated="not deprecated">
  17221. <doc>
  17222. <![CDATA[Get the data backing the BytesWritable. Please use {@link #copyBytes()}
  17223. if you need the returned array to be precisely the length of the data.
  17224. @return The data is only valid between 0 and getLength() - 1.]]>
  17225. </doc>
  17226. </method>
  17227. <method name="get" return="byte[]"
  17228. abstract="false" native="false" synchronized="false"
  17229. static="false" final="false" visibility="public"
  17230. deprecated="Use {@link #getBytes()} instead.">
  17231. <doc>
  17232. <![CDATA[Get the data from the BytesWritable.
  17233. @deprecated Use {@link #getBytes()} instead.]]>
  17234. </doc>
  17235. </method>
  17236. <method name="getLength" return="int"
  17237. abstract="false" native="false" synchronized="false"
  17238. static="false" final="false" visibility="public"
  17239. deprecated="not deprecated">
  17240. <doc>
  17241. <![CDATA[Get the current size of the buffer.]]>
  17242. </doc>
  17243. </method>
  17244. <method name="getSize" return="int"
  17245. abstract="false" native="false" synchronized="false"
  17246. static="false" final="false" visibility="public"
  17247. deprecated="Use {@link #getLength()} instead.">
  17248. <doc>
  17249. <![CDATA[Get the current size of the buffer.
  17250. @deprecated Use {@link #getLength()} instead.]]>
  17251. </doc>
  17252. </method>
  17253. <method name="setSize"
  17254. abstract="false" native="false" synchronized="false"
  17255. static="false" final="false" visibility="public"
  17256. deprecated="not deprecated">
  17257. <param name="size" type="int"/>
  17258. <doc>
  17259. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  17260. and any new values are undefined. The capacity is changed if it is
  17261. necessary.
  17262. @param size The new number of bytes]]>
  17263. </doc>
  17264. </method>
  17265. <method name="getCapacity" return="int"
  17266. abstract="false" native="false" synchronized="false"
  17267. static="false" final="false" visibility="public"
  17268. deprecated="not deprecated">
  17269. <doc>
  17270. <![CDATA[Get the capacity, which is the maximum size that could handled without
  17271. resizing the backing storage.
  17272. @return The number of bytes]]>
  17273. </doc>
  17274. </method>
  17275. <method name="setCapacity"
  17276. abstract="false" native="false" synchronized="false"
  17277. static="false" final="false" visibility="public"
  17278. deprecated="not deprecated">
  17279. <param name="new_cap" type="int"/>
  17280. <doc>
  17281. <![CDATA[Change the capacity of the backing storage.
  17282. The data is preserved.
  17283. @param new_cap The new capacity in bytes.]]>
  17284. </doc>
  17285. </method>
  17286. <method name="set"
  17287. abstract="false" native="false" synchronized="false"
  17288. static="false" final="false" visibility="public"
  17289. deprecated="not deprecated">
  17290. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  17291. <doc>
  17292. <![CDATA[Set the BytesWritable to the contents of the given newData.
  17293. @param newData the value to set this BytesWritable to.]]>
  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="byte[]"/>
  17301. <param name="offset" type="int"/>
  17302. <param name="length" type="int"/>
  17303. <doc>
  17304. <![CDATA[Set the value to a copy of the given byte range
  17305. @param newData the new values to copy in
  17306. @param offset the offset in newData to start at
  17307. @param length the number of bytes to copy]]>
  17308. </doc>
  17309. </method>
  17310. <method name="readFields"
  17311. abstract="false" native="false" synchronized="false"
  17312. static="false" final="false" visibility="public"
  17313. deprecated="not deprecated">
  17314. <param name="in" type="java.io.DataInput"/>
  17315. <exception name="IOException" type="java.io.IOException"/>
  17316. </method>
  17317. <method name="write"
  17318. abstract="false" native="false" synchronized="false"
  17319. static="false" final="false" visibility="public"
  17320. deprecated="not deprecated">
  17321. <param name="out" type="java.io.DataOutput"/>
  17322. <exception name="IOException" type="java.io.IOException"/>
  17323. </method>
  17324. <method name="hashCode" return="int"
  17325. abstract="false" native="false" synchronized="false"
  17326. static="false" final="false" visibility="public"
  17327. deprecated="not deprecated">
  17328. </method>
  17329. <method name="equals" return="boolean"
  17330. abstract="false" native="false" synchronized="false"
  17331. static="false" final="false" visibility="public"
  17332. deprecated="not deprecated">
  17333. <param name="right_obj" type="java.lang.Object"/>
  17334. <doc>
  17335. <![CDATA[Are the two byte sequences equal?]]>
  17336. </doc>
  17337. </method>
  17338. <method name="toString" return="java.lang.String"
  17339. abstract="false" native="false" synchronized="false"
  17340. static="false" final="false" visibility="public"
  17341. deprecated="not deprecated">
  17342. <doc>
  17343. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  17344. </doc>
  17345. </method>
  17346. <doc>
  17347. <![CDATA[A byte sequence that is usable as a key or value.
  17348. It is resizable and distinguishes between the size of the sequence and
  17349. the current capacity. The hash function is the front of the md5 of the
  17350. buffer. The sort order is the same as memcmp.]]>
  17351. </doc>
  17352. </class>
  17353. <!-- end class org.apache.hadoop.io.BytesWritable -->
  17354. <!-- start class org.apache.hadoop.io.ByteWritable -->
  17355. <class name="ByteWritable" extends="java.lang.Object"
  17356. abstract="false"
  17357. static="false" final="false" visibility="public"
  17358. deprecated="not deprecated">
  17359. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17360. <constructor name="ByteWritable"
  17361. static="false" final="false" visibility="public"
  17362. deprecated="not deprecated">
  17363. </constructor>
  17364. <constructor name="ByteWritable" type="byte"
  17365. static="false" final="false" visibility="public"
  17366. deprecated="not deprecated">
  17367. </constructor>
  17368. <method name="set"
  17369. abstract="false" native="false" synchronized="false"
  17370. static="false" final="false" visibility="public"
  17371. deprecated="not deprecated">
  17372. <param name="value" type="byte"/>
  17373. <doc>
  17374. <![CDATA[Set the value of this ByteWritable.]]>
  17375. </doc>
  17376. </method>
  17377. <method name="get" return="byte"
  17378. abstract="false" native="false" synchronized="false"
  17379. static="false" final="false" visibility="public"
  17380. deprecated="not deprecated">
  17381. <doc>
  17382. <![CDATA[Return the value of this ByteWritable.]]>
  17383. </doc>
  17384. </method>
  17385. <method name="readFields"
  17386. abstract="false" native="false" synchronized="false"
  17387. static="false" final="false" visibility="public"
  17388. deprecated="not deprecated">
  17389. <param name="in" type="java.io.DataInput"/>
  17390. <exception name="IOException" type="java.io.IOException"/>
  17391. </method>
  17392. <method name="write"
  17393. abstract="false" native="false" synchronized="false"
  17394. static="false" final="false" visibility="public"
  17395. deprecated="not deprecated">
  17396. <param name="out" type="java.io.DataOutput"/>
  17397. <exception name="IOException" type="java.io.IOException"/>
  17398. </method>
  17399. <method name="equals" return="boolean"
  17400. abstract="false" native="false" synchronized="false"
  17401. static="false" final="false" visibility="public"
  17402. deprecated="not deprecated">
  17403. <param name="o" type="java.lang.Object"/>
  17404. <doc>
  17405. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  17406. </doc>
  17407. </method>
  17408. <method name="hashCode" return="int"
  17409. abstract="false" native="false" synchronized="false"
  17410. static="false" final="false" visibility="public"
  17411. deprecated="not deprecated">
  17412. </method>
  17413. <method name="compareTo" return="int"
  17414. abstract="false" native="false" synchronized="false"
  17415. static="false" final="false" visibility="public"
  17416. deprecated="not deprecated">
  17417. <param name="o" type="org.apache.hadoop.io.ByteWritable"/>
  17418. <doc>
  17419. <![CDATA[Compares two ByteWritables.]]>
  17420. </doc>
  17421. </method>
  17422. <method name="toString" return="java.lang.String"
  17423. abstract="false" native="false" synchronized="false"
  17424. static="false" final="false" visibility="public"
  17425. deprecated="not deprecated">
  17426. </method>
  17427. <doc>
  17428. <![CDATA[A WritableComparable for a single byte.]]>
  17429. </doc>
  17430. </class>
  17431. <!-- end class org.apache.hadoop.io.ByteWritable -->
  17432. <!-- start interface org.apache.hadoop.io.Closeable -->
  17433. <interface name="Closeable" abstract="true"
  17434. static="false" final="false" visibility="public"
  17435. deprecated="use java.io.Closeable">
  17436. <implements name="java.io.Closeable"/>
  17437. <doc>
  17438. <![CDATA[@deprecated use java.io.Closeable]]>
  17439. </doc>
  17440. </interface>
  17441. <!-- end interface org.apache.hadoop.io.Closeable -->
  17442. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  17443. <class name="CompressedWritable" extends="java.lang.Object"
  17444. abstract="true"
  17445. static="false" final="false" visibility="public"
  17446. deprecated="not deprecated">
  17447. <implements name="org.apache.hadoop.io.Writable"/>
  17448. <constructor name="CompressedWritable"
  17449. static="false" final="false" visibility="public"
  17450. deprecated="not deprecated">
  17451. </constructor>
  17452. <method name="readFields"
  17453. abstract="false" native="false" synchronized="false"
  17454. static="false" final="true" visibility="public"
  17455. deprecated="not deprecated">
  17456. <param name="in" type="java.io.DataInput"/>
  17457. <exception name="IOException" type="java.io.IOException"/>
  17458. </method>
  17459. <method name="ensureInflated"
  17460. abstract="false" native="false" synchronized="false"
  17461. static="false" final="false" visibility="protected"
  17462. deprecated="not deprecated">
  17463. <doc>
  17464. <![CDATA[Must be called by all methods which access fields to ensure that the data
  17465. has been uncompressed.]]>
  17466. </doc>
  17467. </method>
  17468. <method name="readFieldsCompressed"
  17469. abstract="true" native="false" synchronized="false"
  17470. static="false" final="false" visibility="protected"
  17471. deprecated="not deprecated">
  17472. <param name="in" type="java.io.DataInput"/>
  17473. <exception name="IOException" type="java.io.IOException"/>
  17474. <doc>
  17475. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  17476. </doc>
  17477. </method>
  17478. <method name="write"
  17479. abstract="false" native="false" synchronized="false"
  17480. static="false" final="true" visibility="public"
  17481. deprecated="not deprecated">
  17482. <param name="out" type="java.io.DataOutput"/>
  17483. <exception name="IOException" type="java.io.IOException"/>
  17484. </method>
  17485. <method name="writeCompressed"
  17486. abstract="true" native="false" synchronized="false"
  17487. static="false" final="false" visibility="protected"
  17488. deprecated="not deprecated">
  17489. <param name="out" type="java.io.DataOutput"/>
  17490. <exception name="IOException" type="java.io.IOException"/>
  17491. <doc>
  17492. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  17493. </doc>
  17494. </method>
  17495. <doc>
  17496. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  17497. inflate on field access. This is useful for large objects whose fields are
  17498. not be altered during a map or reduce operation: leaving the field data
  17499. compressed makes copying the instance from one file to another much
  17500. faster.]]>
  17501. </doc>
  17502. </class>
  17503. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  17504. <!-- start class org.apache.hadoop.io.DataOutputOutputStream -->
  17505. <class name="DataOutputOutputStream" extends="java.io.OutputStream"
  17506. abstract="false"
  17507. static="false" final="false" visibility="public"
  17508. deprecated="not deprecated">
  17509. <method name="constructOutputStream" return="java.io.OutputStream"
  17510. abstract="false" native="false" synchronized="false"
  17511. static="true" final="false" visibility="public"
  17512. deprecated="not deprecated">
  17513. <param name="out" type="java.io.DataOutput"/>
  17514. <doc>
  17515. <![CDATA[Construct an OutputStream from the given DataOutput. If 'out'
  17516. is already an OutputStream, simply returns it. Otherwise, wraps
  17517. it in an OutputStream.
  17518. @param out the DataOutput to wrap
  17519. @return an OutputStream instance that outputs to 'out']]>
  17520. </doc>
  17521. </method>
  17522. <method name="write"
  17523. abstract="false" native="false" synchronized="false"
  17524. static="false" final="false" visibility="public"
  17525. deprecated="not deprecated">
  17526. <param name="b" type="int"/>
  17527. <exception name="IOException" type="java.io.IOException"/>
  17528. </method>
  17529. <method name="write"
  17530. abstract="false" native="false" synchronized="false"
  17531. static="false" final="false" visibility="public"
  17532. deprecated="not deprecated">
  17533. <param name="b" type="byte[]"/>
  17534. <param name="off" type="int"/>
  17535. <param name="len" type="int"/>
  17536. <exception name="IOException" type="java.io.IOException"/>
  17537. </method>
  17538. <method name="write"
  17539. abstract="false" native="false" synchronized="false"
  17540. static="false" final="false" visibility="public"
  17541. deprecated="not deprecated">
  17542. <param name="b" type="byte[]"/>
  17543. <exception name="IOException" type="java.io.IOException"/>
  17544. </method>
  17545. <doc>
  17546. <![CDATA[OutputStream implementation that wraps a DataOutput.]]>
  17547. </doc>
  17548. </class>
  17549. <!-- end class org.apache.hadoop.io.DataOutputOutputStream -->
  17550. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  17551. <class name="DefaultStringifier" extends="java.lang.Object"
  17552. abstract="false"
  17553. static="false" final="false" visibility="public"
  17554. deprecated="not deprecated">
  17555. <implements name="org.apache.hadoop.io.Stringifier"/>
  17556. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  17557. static="false" final="false" visibility="public"
  17558. deprecated="not deprecated">
  17559. </constructor>
  17560. <method name="fromString" return="T"
  17561. abstract="false" native="false" synchronized="false"
  17562. static="false" final="false" visibility="public"
  17563. deprecated="not deprecated">
  17564. <param name="str" type="java.lang.String"/>
  17565. <exception name="IOException" type="java.io.IOException"/>
  17566. </method>
  17567. <method name="toString" return="java.lang.String"
  17568. abstract="false" native="false" synchronized="false"
  17569. static="false" final="false" visibility="public"
  17570. deprecated="not deprecated">
  17571. <param name="obj" type="T"/>
  17572. <exception name="IOException" type="java.io.IOException"/>
  17573. </method>
  17574. <method name="close"
  17575. abstract="false" native="false" synchronized="false"
  17576. static="false" final="false" visibility="public"
  17577. deprecated="not deprecated">
  17578. <exception name="IOException" type="java.io.IOException"/>
  17579. </method>
  17580. <method name="store"
  17581. abstract="false" native="false" synchronized="false"
  17582. static="true" final="false" visibility="public"
  17583. deprecated="not deprecated">
  17584. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17585. <param name="item" type="K"/>
  17586. <param name="keyName" type="java.lang.String"/>
  17587. <exception name="IOException" type="java.io.IOException"/>
  17588. <doc>
  17589. <![CDATA[Stores the item in the configuration with the given keyName.
  17590. @param <K> the class of the item
  17591. @param conf the configuration to store
  17592. @param item the object to be stored
  17593. @param keyName the name of the key to use
  17594. @throws IOException : forwards Exceptions from the underlying
  17595. {@link Serialization} classes.]]>
  17596. </doc>
  17597. </method>
  17598. <method name="load" return="K"
  17599. abstract="false" native="false" synchronized="false"
  17600. static="true" final="false" visibility="public"
  17601. deprecated="not deprecated">
  17602. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17603. <param name="keyName" type="java.lang.String"/>
  17604. <param name="itemClass" type="java.lang.Class"/>
  17605. <exception name="IOException" type="java.io.IOException"/>
  17606. <doc>
  17607. <![CDATA[Restores the object from the configuration.
  17608. @param <K> the class of the item
  17609. @param conf the configuration to use
  17610. @param keyName the name of the key to use
  17611. @param itemClass the class of the item
  17612. @return restored object
  17613. @throws IOException : forwards Exceptions from the underlying
  17614. {@link Serialization} classes.]]>
  17615. </doc>
  17616. </method>
  17617. <method name="storeArray"
  17618. abstract="false" native="false" synchronized="false"
  17619. static="true" final="false" visibility="public"
  17620. deprecated="not deprecated">
  17621. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17622. <param name="items" type="K[]"/>
  17623. <param name="keyName" type="java.lang.String"/>
  17624. <exception name="IOException" type="java.io.IOException"/>
  17625. <doc>
  17626. <![CDATA[Stores the array of items in the configuration with the given keyName.
  17627. @param <K> the class of the item
  17628. @param conf the configuration to use
  17629. @param items the objects to be stored
  17630. @param keyName the name of the key to use
  17631. @throws IndexOutOfBoundsException if the items array is empty
  17632. @throws IOException : forwards Exceptions from the underlying
  17633. {@link Serialization} classes.]]>
  17634. </doc>
  17635. </method>
  17636. <method name="loadArray" return="K[]"
  17637. abstract="false" native="false" synchronized="false"
  17638. static="true" final="false" visibility="public"
  17639. deprecated="not deprecated">
  17640. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17641. <param name="keyName" type="java.lang.String"/>
  17642. <param name="itemClass" type="java.lang.Class"/>
  17643. <exception name="IOException" type="java.io.IOException"/>
  17644. <doc>
  17645. <![CDATA[Restores the array of objects from the configuration.
  17646. @param <K> the class of the item
  17647. @param conf the configuration to use
  17648. @param keyName the name of the key to use
  17649. @param itemClass the class of the item
  17650. @return restored object
  17651. @throws IOException : forwards Exceptions from the underlying
  17652. {@link Serialization} classes.]]>
  17653. </doc>
  17654. </method>
  17655. <doc>
  17656. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  17657. interface which stringifies the objects using base64 encoding of the
  17658. serialized version of the objects. The {@link Serializer} and
  17659. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  17660. <br>
  17661. DefaultStringifier offers convenience methods to store/load objects to/from
  17662. the configuration.
  17663. @param <T> the class of the objects to stringify]]>
  17664. </doc>
  17665. </class>
  17666. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  17667. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  17668. <class name="DoubleWritable" extends="java.lang.Object"
  17669. abstract="false"
  17670. static="false" final="false" visibility="public"
  17671. deprecated="not deprecated">
  17672. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17673. <constructor name="DoubleWritable"
  17674. static="false" final="false" visibility="public"
  17675. deprecated="not deprecated">
  17676. </constructor>
  17677. <constructor name="DoubleWritable" type="double"
  17678. static="false" final="false" visibility="public"
  17679. deprecated="not deprecated">
  17680. </constructor>
  17681. <method name="readFields"
  17682. abstract="false" native="false" synchronized="false"
  17683. static="false" final="false" visibility="public"
  17684. deprecated="not deprecated">
  17685. <param name="in" type="java.io.DataInput"/>
  17686. <exception name="IOException" type="java.io.IOException"/>
  17687. </method>
  17688. <method name="write"
  17689. abstract="false" native="false" synchronized="false"
  17690. static="false" final="false" visibility="public"
  17691. deprecated="not deprecated">
  17692. <param name="out" type="java.io.DataOutput"/>
  17693. <exception name="IOException" type="java.io.IOException"/>
  17694. </method>
  17695. <method name="set"
  17696. abstract="false" native="false" synchronized="false"
  17697. static="false" final="false" visibility="public"
  17698. deprecated="not deprecated">
  17699. <param name="value" type="double"/>
  17700. </method>
  17701. <method name="get" return="double"
  17702. abstract="false" native="false" synchronized="false"
  17703. static="false" final="false" visibility="public"
  17704. deprecated="not deprecated">
  17705. </method>
  17706. <method name="equals" return="boolean"
  17707. abstract="false" native="false" synchronized="false"
  17708. static="false" final="false" visibility="public"
  17709. deprecated="not deprecated">
  17710. <param name="o" type="java.lang.Object"/>
  17711. <doc>
  17712. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  17713. </doc>
  17714. </method>
  17715. <method name="hashCode" return="int"
  17716. abstract="false" native="false" synchronized="false"
  17717. static="false" final="false" visibility="public"
  17718. deprecated="not deprecated">
  17719. </method>
  17720. <method name="compareTo" return="int"
  17721. abstract="false" native="false" synchronized="false"
  17722. static="false" final="false" visibility="public"
  17723. deprecated="not deprecated">
  17724. <param name="o" type="org.apache.hadoop.io.DoubleWritable"/>
  17725. </method>
  17726. <method name="toString" return="java.lang.String"
  17727. abstract="false" native="false" synchronized="false"
  17728. static="false" final="false" visibility="public"
  17729. deprecated="not deprecated">
  17730. </method>
  17731. <doc>
  17732. <![CDATA[Writable for Double values.]]>
  17733. </doc>
  17734. </class>
  17735. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  17736. <!-- start class org.apache.hadoop.io.ElasticByteBufferPool -->
  17737. <class name="ElasticByteBufferPool" extends="java.lang.Object"
  17738. abstract="false"
  17739. static="false" final="true" visibility="public"
  17740. deprecated="not deprecated">
  17741. <implements name="org.apache.hadoop.io.ByteBufferPool"/>
  17742. <constructor name="ElasticByteBufferPool"
  17743. static="false" final="false" visibility="public"
  17744. deprecated="not deprecated">
  17745. </constructor>
  17746. <method name="getBuffer" return="java.nio.ByteBuffer"
  17747. abstract="false" native="false" synchronized="true"
  17748. static="false" final="false" visibility="public"
  17749. deprecated="not deprecated">
  17750. <param name="direct" type="boolean"/>
  17751. <param name="length" type="int"/>
  17752. </method>
  17753. <method name="putBuffer"
  17754. abstract="false" native="false" synchronized="true"
  17755. static="false" final="false" visibility="public"
  17756. deprecated="not deprecated">
  17757. <param name="buffer" type="java.nio.ByteBuffer"/>
  17758. </method>
  17759. <doc>
  17760. <![CDATA[This is a simple ByteBufferPool which just creates ByteBuffers as needed.
  17761. It also caches ByteBuffers after they're released. It will always return
  17762. the smallest cached buffer with at least the capacity you request.
  17763. We don't try to do anything clever here like try to limit the maximum cache
  17764. size.]]>
  17765. </doc>
  17766. </class>
  17767. <!-- end class org.apache.hadoop.io.ElasticByteBufferPool -->
  17768. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  17769. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  17770. abstract="false"
  17771. static="false" final="false" visibility="public"
  17772. deprecated="not deprecated">
  17773. <implements name="org.apache.hadoop.io.Writable"/>
  17774. <implements name="org.apache.hadoop.conf.Configurable"/>
  17775. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  17776. static="false" final="false" visibility="public"
  17777. deprecated="not deprecated">
  17778. <doc>
  17779. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  17780. its size is zero, the <tt>elementType</tt> argument must not be null. If
  17781. the argument <tt>value</tt>'s size is bigger than zero, the argument
  17782. <tt>elementType</tt> is not be used.
  17783. @param value
  17784. @param elementType]]>
  17785. </doc>
  17786. </constructor>
  17787. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  17788. static="false" final="false" visibility="public"
  17789. deprecated="not deprecated">
  17790. <doc>
  17791. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  17792. or empty.
  17793. @param value]]>
  17794. </doc>
  17795. </constructor>
  17796. <method name="iterator" return="java.util.Iterator"
  17797. abstract="false" native="false" synchronized="false"
  17798. static="false" final="false" visibility="public"
  17799. deprecated="not deprecated">
  17800. </method>
  17801. <method name="size" return="int"
  17802. abstract="false" native="false" synchronized="false"
  17803. static="false" final="false" visibility="public"
  17804. deprecated="not deprecated">
  17805. </method>
  17806. <method name="add" return="boolean"
  17807. abstract="false" native="false" synchronized="false"
  17808. static="false" final="false" visibility="public"
  17809. deprecated="not deprecated">
  17810. <param name="e" type="E"/>
  17811. </method>
  17812. <method name="set"
  17813. abstract="false" native="false" synchronized="false"
  17814. static="false" final="false" visibility="public"
  17815. deprecated="not deprecated">
  17816. <param name="value" type="java.util.EnumSet"/>
  17817. <param name="elementType" type="java.lang.Class"/>
  17818. <doc>
  17819. <![CDATA[reset the EnumSetWritable with specified
  17820. <tt>value</value> and <tt>elementType</tt>. If the <tt>value</tt> argument
  17821. is null or its size is zero, the <tt>elementType</tt> argument must not be
  17822. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  17823. argument <tt>elementType</tt> is not be used.
  17824. @param value
  17825. @param elementType]]>
  17826. </doc>
  17827. </method>
  17828. <method name="get" return="java.util.EnumSet"
  17829. abstract="false" native="false" synchronized="false"
  17830. static="false" final="false" visibility="public"
  17831. deprecated="not deprecated">
  17832. <doc>
  17833. <![CDATA[Return the value of this EnumSetWritable.]]>
  17834. </doc>
  17835. </method>
  17836. <method name="readFields"
  17837. abstract="false" native="false" synchronized="false"
  17838. static="false" final="false" visibility="public"
  17839. deprecated="not deprecated">
  17840. <param name="in" type="java.io.DataInput"/>
  17841. <exception name="IOException" type="java.io.IOException"/>
  17842. </method>
  17843. <method name="write"
  17844. abstract="false" native="false" synchronized="false"
  17845. static="false" final="false" visibility="public"
  17846. deprecated="not deprecated">
  17847. <param name="out" type="java.io.DataOutput"/>
  17848. <exception name="IOException" type="java.io.IOException"/>
  17849. </method>
  17850. <method name="equals" return="boolean"
  17851. abstract="false" native="false" synchronized="false"
  17852. static="false" final="false" visibility="public"
  17853. deprecated="not deprecated">
  17854. <param name="o" type="java.lang.Object"/>
  17855. <doc>
  17856. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  17857. or both are null.]]>
  17858. </doc>
  17859. </method>
  17860. <method name="getElementType" return="java.lang.Class"
  17861. abstract="false" native="false" synchronized="false"
  17862. static="false" final="false" visibility="public"
  17863. deprecated="not deprecated">
  17864. <doc>
  17865. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  17866. may return null.
  17867. @return the element class]]>
  17868. </doc>
  17869. </method>
  17870. <method name="hashCode" return="int"
  17871. abstract="false" native="false" synchronized="false"
  17872. static="false" final="false" visibility="public"
  17873. deprecated="not deprecated">
  17874. </method>
  17875. <method name="toString" return="java.lang.String"
  17876. abstract="false" native="false" synchronized="false"
  17877. static="false" final="false" visibility="public"
  17878. deprecated="not deprecated">
  17879. </method>
  17880. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17881. abstract="false" native="false" synchronized="false"
  17882. static="false" final="false" visibility="public"
  17883. deprecated="not deprecated">
  17884. </method>
  17885. <method name="setConf"
  17886. abstract="false" native="false" synchronized="false"
  17887. static="false" final="false" visibility="public"
  17888. deprecated="not deprecated">
  17889. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17890. </method>
  17891. <doc>
  17892. <![CDATA[A Writable wrapper for EnumSet.]]>
  17893. </doc>
  17894. </class>
  17895. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  17896. <!-- start class org.apache.hadoop.io.FloatWritable -->
  17897. <class name="FloatWritable" extends="java.lang.Object"
  17898. abstract="false"
  17899. static="false" final="false" visibility="public"
  17900. deprecated="not deprecated">
  17901. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17902. <constructor name="FloatWritable"
  17903. static="false" final="false" visibility="public"
  17904. deprecated="not deprecated">
  17905. </constructor>
  17906. <constructor name="FloatWritable" type="float"
  17907. static="false" final="false" visibility="public"
  17908. deprecated="not deprecated">
  17909. </constructor>
  17910. <method name="set"
  17911. abstract="false" native="false" synchronized="false"
  17912. static="false" final="false" visibility="public"
  17913. deprecated="not deprecated">
  17914. <param name="value" type="float"/>
  17915. <doc>
  17916. <![CDATA[Set the value of this FloatWritable.]]>
  17917. </doc>
  17918. </method>
  17919. <method name="get" return="float"
  17920. abstract="false" native="false" synchronized="false"
  17921. static="false" final="false" visibility="public"
  17922. deprecated="not deprecated">
  17923. <doc>
  17924. <![CDATA[Return the value of this FloatWritable.]]>
  17925. </doc>
  17926. </method>
  17927. <method name="readFields"
  17928. abstract="false" native="false" synchronized="false"
  17929. static="false" final="false" visibility="public"
  17930. deprecated="not deprecated">
  17931. <param name="in" type="java.io.DataInput"/>
  17932. <exception name="IOException" type="java.io.IOException"/>
  17933. </method>
  17934. <method name="write"
  17935. abstract="false" native="false" synchronized="false"
  17936. static="false" final="false" visibility="public"
  17937. deprecated="not deprecated">
  17938. <param name="out" type="java.io.DataOutput"/>
  17939. <exception name="IOException" type="java.io.IOException"/>
  17940. </method>
  17941. <method name="equals" return="boolean"
  17942. abstract="false" native="false" synchronized="false"
  17943. static="false" final="false" visibility="public"
  17944. deprecated="not deprecated">
  17945. <param name="o" type="java.lang.Object"/>
  17946. <doc>
  17947. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  17948. </doc>
  17949. </method>
  17950. <method name="hashCode" return="int"
  17951. abstract="false" native="false" synchronized="false"
  17952. static="false" final="false" visibility="public"
  17953. deprecated="not deprecated">
  17954. </method>
  17955. <method name="compareTo" return="int"
  17956. abstract="false" native="false" synchronized="false"
  17957. static="false" final="false" visibility="public"
  17958. deprecated="not deprecated">
  17959. <param name="o" type="org.apache.hadoop.io.FloatWritable"/>
  17960. <doc>
  17961. <![CDATA[Compares two FloatWritables.]]>
  17962. </doc>
  17963. </method>
  17964. <method name="toString" return="java.lang.String"
  17965. abstract="false" native="false" synchronized="false"
  17966. static="false" final="false" visibility="public"
  17967. deprecated="not deprecated">
  17968. </method>
  17969. <doc>
  17970. <![CDATA[A WritableComparable for floats.]]>
  17971. </doc>
  17972. </class>
  17973. <!-- end class org.apache.hadoop.io.FloatWritable -->
  17974. <!-- start class org.apache.hadoop.io.GenericWritable -->
  17975. <class name="GenericWritable" extends="java.lang.Object"
  17976. abstract="true"
  17977. static="false" final="false" visibility="public"
  17978. deprecated="not deprecated">
  17979. <implements name="org.apache.hadoop.io.Writable"/>
  17980. <implements name="org.apache.hadoop.conf.Configurable"/>
  17981. <constructor name="GenericWritable"
  17982. static="false" final="false" visibility="public"
  17983. deprecated="not deprecated">
  17984. </constructor>
  17985. <method name="set"
  17986. abstract="false" native="false" synchronized="false"
  17987. static="false" final="false" visibility="public"
  17988. deprecated="not deprecated">
  17989. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  17990. <doc>
  17991. <![CDATA[Set the instance that is wrapped.
  17992. @param obj]]>
  17993. </doc>
  17994. </method>
  17995. <method name="get" return="org.apache.hadoop.io.Writable"
  17996. abstract="false" native="false" synchronized="false"
  17997. static="false" final="false" visibility="public"
  17998. deprecated="not deprecated">
  17999. <doc>
  18000. <![CDATA[Return the wrapped instance.]]>
  18001. </doc>
  18002. </method>
  18003. <method name="toString" return="java.lang.String"
  18004. abstract="false" native="false" synchronized="false"
  18005. static="false" final="false" visibility="public"
  18006. deprecated="not deprecated">
  18007. </method>
  18008. <method name="readFields"
  18009. abstract="false" native="false" synchronized="false"
  18010. static="false" final="false" visibility="public"
  18011. deprecated="not deprecated">
  18012. <param name="in" type="java.io.DataInput"/>
  18013. <exception name="IOException" type="java.io.IOException"/>
  18014. </method>
  18015. <method name="write"
  18016. abstract="false" native="false" synchronized="false"
  18017. static="false" final="false" visibility="public"
  18018. deprecated="not deprecated">
  18019. <param name="out" type="java.io.DataOutput"/>
  18020. <exception name="IOException" type="java.io.IOException"/>
  18021. </method>
  18022. <method name="getTypes" return="java.lang.Class[]"
  18023. abstract="true" native="false" synchronized="false"
  18024. static="false" final="false" visibility="protected"
  18025. deprecated="not deprecated">
  18026. <doc>
  18027. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  18028. to return a constant array of classes.]]>
  18029. </doc>
  18030. </method>
  18031. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18032. abstract="false" native="false" synchronized="false"
  18033. static="false" final="false" visibility="public"
  18034. deprecated="not deprecated">
  18035. </method>
  18036. <method name="setConf"
  18037. abstract="false" native="false" synchronized="false"
  18038. static="false" final="false" visibility="public"
  18039. deprecated="not deprecated">
  18040. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18041. </method>
  18042. <doc>
  18043. <![CDATA[A wrapper for Writable instances.
  18044. <p>
  18045. When two sequence files, which have same Key type but different Value
  18046. types, are mapped out to reduce, multiple Value types is not allowed.
  18047. In this case, this class can help you wrap instances with different types.
  18048. </p>
  18049. <p>
  18050. Compared with <code>ObjectWritable</code>, this class is much more effective,
  18051. because <code>ObjectWritable</code> will append the class declaration as a String
  18052. into the output file in every Key-Value pair.
  18053. </p>
  18054. <p>
  18055. Generic Writable implements {@link Configurable} interface, so that it will be
  18056. configured by the framework. The configuration is passed to the wrapped objects
  18057. implementing {@link Configurable} interface <i>before deserialization</i>.
  18058. </p>
  18059. how to use it: <br>
  18060. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  18061. 2. Implements the abstract method <code>getTypes()</code>, defines
  18062. the classes which will be wrapped in GenericObject in application.
  18063. Attention: this classes defined in <code>getTypes()</code> method, must
  18064. implement <code>Writable</code> interface.
  18065. <br><br>
  18066. The code looks like this:
  18067. <blockquote><pre>
  18068. public class GenericObject extends GenericWritable {
  18069. private static Class[] CLASSES = {
  18070. ClassType1.class,
  18071. ClassType2.class,
  18072. ClassType3.class,
  18073. };
  18074. protected Class[] getTypes() {
  18075. return CLASSES;
  18076. }
  18077. }
  18078. </pre></blockquote>
  18079. @since Nov 8, 2006]]>
  18080. </doc>
  18081. </class>
  18082. <!-- end class org.apache.hadoop.io.GenericWritable -->
  18083. <!-- start class org.apache.hadoop.io.IntWritable -->
  18084. <class name="IntWritable" extends="java.lang.Object"
  18085. abstract="false"
  18086. static="false" final="false" visibility="public"
  18087. deprecated="not deprecated">
  18088. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18089. <constructor name="IntWritable"
  18090. static="false" final="false" visibility="public"
  18091. deprecated="not deprecated">
  18092. </constructor>
  18093. <constructor name="IntWritable" type="int"
  18094. static="false" final="false" visibility="public"
  18095. deprecated="not deprecated">
  18096. </constructor>
  18097. <method name="set"
  18098. abstract="false" native="false" synchronized="false"
  18099. static="false" final="false" visibility="public"
  18100. deprecated="not deprecated">
  18101. <param name="value" type="int"/>
  18102. <doc>
  18103. <![CDATA[Set the value of this IntWritable.]]>
  18104. </doc>
  18105. </method>
  18106. <method name="get" return="int"
  18107. abstract="false" native="false" synchronized="false"
  18108. static="false" final="false" visibility="public"
  18109. deprecated="not deprecated">
  18110. <doc>
  18111. <![CDATA[Return the value of this IntWritable.]]>
  18112. </doc>
  18113. </method>
  18114. <method name="readFields"
  18115. abstract="false" native="false" synchronized="false"
  18116. static="false" final="false" visibility="public"
  18117. deprecated="not deprecated">
  18118. <param name="in" type="java.io.DataInput"/>
  18119. <exception name="IOException" type="java.io.IOException"/>
  18120. </method>
  18121. <method name="write"
  18122. abstract="false" native="false" synchronized="false"
  18123. static="false" final="false" visibility="public"
  18124. deprecated="not deprecated">
  18125. <param name="out" type="java.io.DataOutput"/>
  18126. <exception name="IOException" type="java.io.IOException"/>
  18127. </method>
  18128. <method name="equals" return="boolean"
  18129. abstract="false" native="false" synchronized="false"
  18130. static="false" final="false" visibility="public"
  18131. deprecated="not deprecated">
  18132. <param name="o" type="java.lang.Object"/>
  18133. <doc>
  18134. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  18135. </doc>
  18136. </method>
  18137. <method name="hashCode" return="int"
  18138. abstract="false" native="false" synchronized="false"
  18139. static="false" final="false" visibility="public"
  18140. deprecated="not deprecated">
  18141. </method>
  18142. <method name="compareTo" return="int"
  18143. abstract="false" native="false" synchronized="false"
  18144. static="false" final="false" visibility="public"
  18145. deprecated="not deprecated">
  18146. <param name="o" type="org.apache.hadoop.io.IntWritable"/>
  18147. <doc>
  18148. <![CDATA[Compares two IntWritables.]]>
  18149. </doc>
  18150. </method>
  18151. <method name="toString" return="java.lang.String"
  18152. abstract="false" native="false" synchronized="false"
  18153. static="false" final="false" visibility="public"
  18154. deprecated="not deprecated">
  18155. </method>
  18156. <doc>
  18157. <![CDATA[A WritableComparable for ints.]]>
  18158. </doc>
  18159. </class>
  18160. <!-- end class org.apache.hadoop.io.IntWritable -->
  18161. <!-- start class org.apache.hadoop.io.IOUtils -->
  18162. <class name="IOUtils" extends="java.lang.Object"
  18163. abstract="false"
  18164. static="false" final="false" visibility="public"
  18165. deprecated="not deprecated">
  18166. <constructor name="IOUtils"
  18167. static="false" final="false" visibility="public"
  18168. deprecated="not deprecated">
  18169. </constructor>
  18170. <method name="copyBytes"
  18171. abstract="false" native="false" synchronized="false"
  18172. static="true" final="false" visibility="public"
  18173. deprecated="not deprecated">
  18174. <param name="in" type="java.io.InputStream"/>
  18175. <param name="out" type="java.io.OutputStream"/>
  18176. <param name="buffSize" type="int"/>
  18177. <param name="close" type="boolean"/>
  18178. <exception name="IOException" type="java.io.IOException"/>
  18179. <doc>
  18180. <![CDATA[Copies from one stream to another.
  18181. @param in InputStrem to read from
  18182. @param out OutputStream to write to
  18183. @param buffSize the size of the buffer
  18184. @param close whether or not close the InputStream and
  18185. OutputStream at the end. The streams are closed in the finally clause.]]>
  18186. </doc>
  18187. </method>
  18188. <method name="copyBytes"
  18189. abstract="false" native="false" synchronized="false"
  18190. static="true" final="false" visibility="public"
  18191. deprecated="not deprecated">
  18192. <param name="in" type="java.io.InputStream"/>
  18193. <param name="out" type="java.io.OutputStream"/>
  18194. <param name="buffSize" type="int"/>
  18195. <exception name="IOException" type="java.io.IOException"/>
  18196. <doc>
  18197. <![CDATA[Copies from one stream to another.
  18198. @param in InputStrem to read from
  18199. @param out OutputStream to write to
  18200. @param buffSize the size of the buffer]]>
  18201. </doc>
  18202. </method>
  18203. <method name="copyBytes"
  18204. abstract="false" native="false" synchronized="false"
  18205. static="true" final="false" visibility="public"
  18206. deprecated="not deprecated">
  18207. <param name="in" type="java.io.InputStream"/>
  18208. <param name="out" type="java.io.OutputStream"/>
  18209. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18210. <exception name="IOException" type="java.io.IOException"/>
  18211. <doc>
  18212. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  18213. at the end</strong>.
  18214. @param in InputStrem to read from
  18215. @param out OutputStream to write to
  18216. @param conf the Configuration object]]>
  18217. </doc>
  18218. </method>
  18219. <method name="copyBytes"
  18220. abstract="false" native="false" synchronized="false"
  18221. static="true" final="false" visibility="public"
  18222. deprecated="not deprecated">
  18223. <param name="in" type="java.io.InputStream"/>
  18224. <param name="out" type="java.io.OutputStream"/>
  18225. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18226. <param name="close" type="boolean"/>
  18227. <exception name="IOException" type="java.io.IOException"/>
  18228. <doc>
  18229. <![CDATA[Copies from one stream to another.
  18230. @param in InputStream to read from
  18231. @param out OutputStream to write to
  18232. @param conf the Configuration object
  18233. @param close whether or not close the InputStream and
  18234. OutputStream at the end. The streams are closed in the finally clause.]]>
  18235. </doc>
  18236. </method>
  18237. <method name="copyBytes"
  18238. abstract="false" native="false" synchronized="false"
  18239. static="true" final="false" visibility="public"
  18240. deprecated="not deprecated">
  18241. <param name="in" type="java.io.InputStream"/>
  18242. <param name="out" type="java.io.OutputStream"/>
  18243. <param name="count" type="long"/>
  18244. <param name="close" type="boolean"/>
  18245. <exception name="IOException" type="java.io.IOException"/>
  18246. <doc>
  18247. <![CDATA[Copies count bytes from one stream to another.
  18248. @param in InputStream to read from
  18249. @param out OutputStream to write to
  18250. @param count number of bytes to copy
  18251. @param close whether to close the streams
  18252. @throws IOException if bytes can not be read or written]]>
  18253. </doc>
  18254. </method>
  18255. <method name="wrappedReadForCompressedData" return="int"
  18256. abstract="false" native="false" synchronized="false"
  18257. static="true" final="false" visibility="public"
  18258. deprecated="not deprecated">
  18259. <param name="is" type="java.io.InputStream"/>
  18260. <param name="buf" type="byte[]"/>
  18261. <param name="off" type="int"/>
  18262. <param name="len" type="int"/>
  18263. <exception name="IOException" type="java.io.IOException"/>
  18264. <doc>
  18265. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  18266. thrown by the underlying stream (either IO or decompression-related), and
  18267. re-throws as an IOException.
  18268. @param is - InputStream to be read from
  18269. @param buf - buffer the data is read into
  18270. @param off - offset within buf
  18271. @param len - amount of data to be read
  18272. @return number of bytes read]]>
  18273. </doc>
  18274. </method>
  18275. <method name="readFully"
  18276. abstract="false" native="false" synchronized="false"
  18277. static="true" final="false" visibility="public"
  18278. deprecated="not deprecated">
  18279. <param name="in" type="java.io.InputStream"/>
  18280. <param name="buf" type="byte[]"/>
  18281. <param name="off" type="int"/>
  18282. <param name="len" type="int"/>
  18283. <exception name="IOException" type="java.io.IOException"/>
  18284. <doc>
  18285. <![CDATA[Reads len bytes in a loop.
  18286. @param in InputStream to read from
  18287. @param buf The buffer to fill
  18288. @param off offset from the buffer
  18289. @param len the length of bytes to read
  18290. @throws IOException if it could not read requested number of bytes
  18291. for any reason (including EOF)]]>
  18292. </doc>
  18293. </method>
  18294. <method name="skipFully"
  18295. abstract="false" native="false" synchronized="false"
  18296. static="true" final="false" visibility="public"
  18297. deprecated="not deprecated">
  18298. <param name="in" type="java.io.InputStream"/>
  18299. <param name="len" type="long"/>
  18300. <exception name="IOException" type="java.io.IOException"/>
  18301. <doc>
  18302. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  18303. @param in The InputStream to skip bytes from
  18304. @param len number of bytes to skip.
  18305. @throws IOException if it could not skip requested number of bytes
  18306. for any reason (including EOF)]]>
  18307. </doc>
  18308. </method>
  18309. <method name="cleanup"
  18310. abstract="false" native="false" synchronized="false"
  18311. static="true" final="false" visibility="public"
  18312. deprecated="use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  18313. instead">
  18314. <param name="log" type="org.apache.commons.logging.Log"/>
  18315. <param name="closeables" type="java.io.Closeable[]"/>
  18316. <doc>
  18317. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  18318. null pointers. Must only be used for cleanup in exception handlers.
  18319. @param log the log to record problems to at debug level. Can be null.
  18320. @param closeables the objects to close
  18321. @deprecated use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  18322. instead]]>
  18323. </doc>
  18324. </method>
  18325. <method name="cleanupWithLogger"
  18326. abstract="false" native="false" synchronized="false"
  18327. static="true" final="false" visibility="public"
  18328. deprecated="not deprecated">
  18329. <param name="logger" type="org.slf4j.Logger"/>
  18330. <param name="closeables" type="java.io.Closeable[]"/>
  18331. <doc>
  18332. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  18333. null pointers. Must only be used for cleanup in exception handlers.
  18334. @param logger the log to record problems to at debug level. Can be null.
  18335. @param closeables the objects to close]]>
  18336. </doc>
  18337. </method>
  18338. <method name="closeStream"
  18339. abstract="false" native="false" synchronized="false"
  18340. static="true" final="false" visibility="public"
  18341. deprecated="not deprecated">
  18342. <param name="stream" type="java.io.Closeable"/>
  18343. <doc>
  18344. <![CDATA[Closes the stream ignoring {@link Throwable}.
  18345. Must only be called in cleaning up from exception handlers.
  18346. @param stream the Stream to close]]>
  18347. </doc>
  18348. </method>
  18349. <method name="closeStreams"
  18350. abstract="false" native="false" synchronized="false"
  18351. static="true" final="false" visibility="public"
  18352. deprecated="not deprecated">
  18353. <param name="streams" type="java.io.Closeable[]"/>
  18354. <doc>
  18355. <![CDATA[Closes the streams ignoring {@link Throwable}.
  18356. Must only be called in cleaning up from exception handlers.
  18357. @param streams the Streams to close]]>
  18358. </doc>
  18359. </method>
  18360. <method name="closeSocket"
  18361. abstract="false" native="false" synchronized="false"
  18362. static="true" final="false" visibility="public"
  18363. deprecated="not deprecated">
  18364. <param name="sock" type="java.net.Socket"/>
  18365. <doc>
  18366. <![CDATA[Closes the socket ignoring {@link IOException}
  18367. @param sock the Socket to close]]>
  18368. </doc>
  18369. </method>
  18370. <method name="writeFully"
  18371. abstract="false" native="false" synchronized="false"
  18372. static="true" final="false" visibility="public"
  18373. deprecated="not deprecated">
  18374. <param name="bc" type="java.nio.channels.WritableByteChannel"/>
  18375. <param name="buf" type="java.nio.ByteBuffer"/>
  18376. <exception name="IOException" type="java.io.IOException"/>
  18377. <doc>
  18378. <![CDATA[Write a ByteBuffer to a WritableByteChannel, handling short writes.
  18379. @param bc The WritableByteChannel to write to
  18380. @param buf The input buffer
  18381. @throws IOException On I/O error]]>
  18382. </doc>
  18383. </method>
  18384. <method name="writeFully"
  18385. abstract="false" native="false" synchronized="false"
  18386. static="true" final="false" visibility="public"
  18387. deprecated="not deprecated">
  18388. <param name="fc" type="java.nio.channels.FileChannel"/>
  18389. <param name="buf" type="java.nio.ByteBuffer"/>
  18390. <param name="offset" type="long"/>
  18391. <exception name="IOException" type="java.io.IOException"/>
  18392. <doc>
  18393. <![CDATA[Write a ByteBuffer to a FileChannel at a given offset,
  18394. handling short writes.
  18395. @param fc The FileChannel to write to
  18396. @param buf The input buffer
  18397. @param offset The offset in the file to start writing at
  18398. @throws IOException On I/O error]]>
  18399. </doc>
  18400. </method>
  18401. <method name="listDirectory" return="java.util.List"
  18402. abstract="false" native="false" synchronized="false"
  18403. static="true" final="false" visibility="public"
  18404. deprecated="not deprecated">
  18405. <param name="dir" type="java.io.File"/>
  18406. <param name="filter" type="java.io.FilenameFilter"/>
  18407. <exception name="IOException" type="java.io.IOException"/>
  18408. <doc>
  18409. <![CDATA[Return the complete list of files in a directory as strings.<p/>
  18410. This is better than File#listDir because it does not ignore IOExceptions.
  18411. @param dir The directory to list.
  18412. @param filter If non-null, the filter to use when listing
  18413. this directory.
  18414. @return The list of files in the directory.
  18415. @throws IOException On I/O error]]>
  18416. </doc>
  18417. </method>
  18418. <method name="fsync"
  18419. abstract="false" native="false" synchronized="false"
  18420. static="true" final="false" visibility="public"
  18421. deprecated="not deprecated">
  18422. <param name="fileToSync" type="java.io.File"/>
  18423. <exception name="IOException" type="java.io.IOException"/>
  18424. <doc>
  18425. <![CDATA[Ensure that any writes to the given file is written to the storage device
  18426. that contains it. This method opens channel on given File and closes it
  18427. once the sync is done.<br>
  18428. Borrowed from Uwe Schindler in LUCENE-5588
  18429. @param fileToSync the file to fsync]]>
  18430. </doc>
  18431. </method>
  18432. <method name="fsync"
  18433. abstract="false" native="false" synchronized="false"
  18434. static="true" final="false" visibility="public"
  18435. deprecated="not deprecated">
  18436. <param name="channel" type="java.nio.channels.FileChannel"/>
  18437. <param name="isDir" type="boolean"/>
  18438. <exception name="IOException" type="java.io.IOException"/>
  18439. <doc>
  18440. <![CDATA[Ensure that any writes to the given file is written to the storage device
  18441. that contains it. This method opens channel on given File and closes it
  18442. once the sync is done.
  18443. Borrowed from Uwe Schindler in LUCENE-5588
  18444. @param channel Channel to sync
  18445. @param isDir if true, the given file is a directory (Channel should be
  18446. opened for read and ignore IOExceptions, because not all file
  18447. systems and operating systems allow to fsync on a directory)
  18448. @throws IOException]]>
  18449. </doc>
  18450. </method>
  18451. <method name="wrapException" return="java.io.IOException"
  18452. abstract="false" native="false" synchronized="false"
  18453. static="true" final="false" visibility="public"
  18454. deprecated="not deprecated">
  18455. <param name="path" type="java.lang.String"/>
  18456. <param name="methodName" type="java.lang.String"/>
  18457. <param name="exception" type="java.io.IOException"/>
  18458. <doc>
  18459. <![CDATA[Takes an IOException, file/directory path, and method name and returns an
  18460. IOException with the input exception as the cause and also include the
  18461. file,method details. The new exception provides the stack trace of the
  18462. place where the exception is thrown and some extra diagnostics
  18463. information.
  18464. Return instance of same exception if exception class has a public string
  18465. constructor; Otherwise return an PathIOException.
  18466. InterruptedIOException and PathIOException are returned unwrapped.
  18467. @param path file/directory path
  18468. @param methodName method name
  18469. @param exception the caught exception.
  18470. @return an exception to throw]]>
  18471. </doc>
  18472. </method>
  18473. <method name="readFullyToByteArray" return="byte[]"
  18474. abstract="false" native="false" synchronized="false"
  18475. static="true" final="false" visibility="public"
  18476. deprecated="not deprecated">
  18477. <param name="in" type="java.io.DataInput"/>
  18478. <exception name="IOException" type="java.io.IOException"/>
  18479. <doc>
  18480. <![CDATA[Reads a DataInput until EOF and returns a byte array. Make sure not to
  18481. pass in an infinite DataInput or this will never return.
  18482. @param in A DataInput
  18483. @return a byte array containing the data from the DataInput
  18484. @throws IOException on I/O error, other than EOF]]>
  18485. </doc>
  18486. </method>
  18487. <field name="LOG" type="org.slf4j.Logger"
  18488. transient="false" volatile="false"
  18489. static="true" final="true" visibility="public"
  18490. deprecated="not deprecated">
  18491. </field>
  18492. <doc>
  18493. <![CDATA[An utility class for I/O related functionality.]]>
  18494. </doc>
  18495. </class>
  18496. <!-- end class org.apache.hadoop.io.IOUtils -->
  18497. <!-- start class org.apache.hadoop.io.LongWritable -->
  18498. <class name="LongWritable" extends="java.lang.Object"
  18499. abstract="false"
  18500. static="false" final="false" visibility="public"
  18501. deprecated="not deprecated">
  18502. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18503. <constructor name="LongWritable"
  18504. static="false" final="false" visibility="public"
  18505. deprecated="not deprecated">
  18506. </constructor>
  18507. <constructor name="LongWritable" type="long"
  18508. static="false" final="false" visibility="public"
  18509. deprecated="not deprecated">
  18510. </constructor>
  18511. <method name="set"
  18512. abstract="false" native="false" synchronized="false"
  18513. static="false" final="false" visibility="public"
  18514. deprecated="not deprecated">
  18515. <param name="value" type="long"/>
  18516. <doc>
  18517. <![CDATA[Set the value of this LongWritable.]]>
  18518. </doc>
  18519. </method>
  18520. <method name="get" return="long"
  18521. abstract="false" native="false" synchronized="false"
  18522. static="false" final="false" visibility="public"
  18523. deprecated="not deprecated">
  18524. <doc>
  18525. <![CDATA[Return the value of this LongWritable.]]>
  18526. </doc>
  18527. </method>
  18528. <method name="readFields"
  18529. abstract="false" native="false" synchronized="false"
  18530. static="false" final="false" visibility="public"
  18531. deprecated="not deprecated">
  18532. <param name="in" type="java.io.DataInput"/>
  18533. <exception name="IOException" type="java.io.IOException"/>
  18534. </method>
  18535. <method name="write"
  18536. abstract="false" native="false" synchronized="false"
  18537. static="false" final="false" visibility="public"
  18538. deprecated="not deprecated">
  18539. <param name="out" type="java.io.DataOutput"/>
  18540. <exception name="IOException" type="java.io.IOException"/>
  18541. </method>
  18542. <method name="equals" return="boolean"
  18543. abstract="false" native="false" synchronized="false"
  18544. static="false" final="false" visibility="public"
  18545. deprecated="not deprecated">
  18546. <param name="o" type="java.lang.Object"/>
  18547. <doc>
  18548. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  18549. </doc>
  18550. </method>
  18551. <method name="hashCode" return="int"
  18552. abstract="false" native="false" synchronized="false"
  18553. static="false" final="false" visibility="public"
  18554. deprecated="not deprecated">
  18555. </method>
  18556. <method name="compareTo" return="int"
  18557. abstract="false" native="false" synchronized="false"
  18558. static="false" final="false" visibility="public"
  18559. deprecated="not deprecated">
  18560. <param name="o" type="org.apache.hadoop.io.LongWritable"/>
  18561. <doc>
  18562. <![CDATA[Compares two LongWritables.]]>
  18563. </doc>
  18564. </method>
  18565. <method name="toString" return="java.lang.String"
  18566. abstract="false" native="false" synchronized="false"
  18567. static="false" final="false" visibility="public"
  18568. deprecated="not deprecated">
  18569. </method>
  18570. <doc>
  18571. <![CDATA[A WritableComparable for longs.]]>
  18572. </doc>
  18573. </class>
  18574. <!-- end class org.apache.hadoop.io.LongWritable -->
  18575. <!-- start class org.apache.hadoop.io.MapFile -->
  18576. <class name="MapFile" extends="java.lang.Object"
  18577. abstract="false"
  18578. static="false" final="false" visibility="public"
  18579. deprecated="not deprecated">
  18580. <constructor name="MapFile"
  18581. static="false" final="false" visibility="protected"
  18582. deprecated="not deprecated">
  18583. </constructor>
  18584. <method name="rename"
  18585. abstract="false" native="false" synchronized="false"
  18586. static="true" final="false" visibility="public"
  18587. deprecated="not deprecated">
  18588. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18589. <param name="oldName" type="java.lang.String"/>
  18590. <param name="newName" type="java.lang.String"/>
  18591. <exception name="IOException" type="java.io.IOException"/>
  18592. <doc>
  18593. <![CDATA[Renames an existing map directory.]]>
  18594. </doc>
  18595. </method>
  18596. <method name="delete"
  18597. abstract="false" native="false" synchronized="false"
  18598. static="true" final="false" visibility="public"
  18599. deprecated="not deprecated">
  18600. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18601. <param name="name" type="java.lang.String"/>
  18602. <exception name="IOException" type="java.io.IOException"/>
  18603. <doc>
  18604. <![CDATA[Deletes the named map file.]]>
  18605. </doc>
  18606. </method>
  18607. <method name="fix" return="long"
  18608. abstract="false" native="false" synchronized="false"
  18609. static="true" final="false" visibility="public"
  18610. deprecated="not deprecated">
  18611. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18612. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  18613. <param name="keyClass" type="java.lang.Class"/>
  18614. <param name="valueClass" type="java.lang.Class"/>
  18615. <param name="dryrun" type="boolean"/>
  18616. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18617. <exception name="Exception" type="java.lang.Exception"/>
  18618. <doc>
  18619. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  18620. @param fs filesystem
  18621. @param dir directory containing the MapFile data and index
  18622. @param keyClass key class (has to be a subclass of Writable)
  18623. @param valueClass value class (has to be a subclass of Writable)
  18624. @param dryrun do not perform any changes, just report what needs to be done
  18625. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  18626. @throws Exception]]>
  18627. </doc>
  18628. </method>
  18629. <method name="main"
  18630. abstract="false" native="false" synchronized="false"
  18631. static="true" final="false" visibility="public"
  18632. deprecated="not deprecated">
  18633. <param name="args" type="java.lang.String[]"/>
  18634. <exception name="Exception" type="java.lang.Exception"/>
  18635. </method>
  18636. <field name="INDEX_FILE_NAME" type="java.lang.String"
  18637. transient="false" volatile="false"
  18638. static="true" final="true" visibility="public"
  18639. deprecated="not deprecated">
  18640. <doc>
  18641. <![CDATA[The name of the index file.]]>
  18642. </doc>
  18643. </field>
  18644. <field name="DATA_FILE_NAME" type="java.lang.String"
  18645. transient="false" volatile="false"
  18646. static="true" final="true" visibility="public"
  18647. deprecated="not deprecated">
  18648. <doc>
  18649. <![CDATA[The name of the data file.]]>
  18650. </doc>
  18651. </field>
  18652. <doc>
  18653. <![CDATA[A file-based map from keys to values.
  18654. <p>A map is a directory containing two files, the <code>data</code> file,
  18655. containing all keys and values in the map, and a smaller <code>index</code>
  18656. file, containing a fraction of the keys. The fraction is determined by
  18657. {@link Writer#getIndexInterval()}.
  18658. <p>The index file is read entirely into memory. Thus key implementations
  18659. should try to keep themselves small.
  18660. <p>Map files are created by adding entries in-order. To maintain a large
  18661. database, perform updates by copying the previous version of a database and
  18662. merging in a sorted change list, to create a new version of the database in
  18663. a new file. Sorting large change lists can be done with {@link
  18664. SequenceFile.Sorter}.]]>
  18665. </doc>
  18666. </class>
  18667. <!-- end class org.apache.hadoop.io.MapFile -->
  18668. <!-- start class org.apache.hadoop.io.MapWritable -->
  18669. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  18670. abstract="false"
  18671. static="false" final="false" visibility="public"
  18672. deprecated="not deprecated">
  18673. <implements name="java.util.Map"/>
  18674. <constructor name="MapWritable"
  18675. static="false" final="false" visibility="public"
  18676. deprecated="not deprecated">
  18677. <doc>
  18678. <![CDATA[Default constructor.]]>
  18679. </doc>
  18680. </constructor>
  18681. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  18682. static="false" final="false" visibility="public"
  18683. deprecated="not deprecated">
  18684. <doc>
  18685. <![CDATA[Copy constructor.
  18686. @param other the map to copy from]]>
  18687. </doc>
  18688. </constructor>
  18689. <method name="clear"
  18690. abstract="false" native="false" synchronized="false"
  18691. static="false" final="false" visibility="public"
  18692. deprecated="not deprecated">
  18693. </method>
  18694. <method name="containsKey" return="boolean"
  18695. abstract="false" native="false" synchronized="false"
  18696. static="false" final="false" visibility="public"
  18697. deprecated="not deprecated">
  18698. <param name="key" type="java.lang.Object"/>
  18699. </method>
  18700. <method name="containsValue" return="boolean"
  18701. abstract="false" native="false" synchronized="false"
  18702. static="false" final="false" visibility="public"
  18703. deprecated="not deprecated">
  18704. <param name="value" type="java.lang.Object"/>
  18705. </method>
  18706. <method name="entrySet" return="java.util.Set"
  18707. abstract="false" native="false" synchronized="false"
  18708. static="false" final="false" visibility="public"
  18709. deprecated="not deprecated">
  18710. </method>
  18711. <method name="equals" return="boolean"
  18712. abstract="false" native="false" synchronized="false"
  18713. static="false" final="false" visibility="public"
  18714. deprecated="not deprecated">
  18715. <param name="obj" type="java.lang.Object"/>
  18716. </method>
  18717. <method name="get" return="org.apache.hadoop.io.Writable"
  18718. abstract="false" native="false" synchronized="false"
  18719. static="false" final="false" visibility="public"
  18720. deprecated="not deprecated">
  18721. <param name="key" type="java.lang.Object"/>
  18722. </method>
  18723. <method name="hashCode" return="int"
  18724. abstract="false" native="false" synchronized="false"
  18725. static="false" final="false" visibility="public"
  18726. deprecated="not deprecated">
  18727. </method>
  18728. <method name="isEmpty" return="boolean"
  18729. abstract="false" native="false" synchronized="false"
  18730. static="false" final="false" visibility="public"
  18731. deprecated="not deprecated">
  18732. </method>
  18733. <method name="keySet" return="java.util.Set"
  18734. abstract="false" native="false" synchronized="false"
  18735. static="false" final="false" visibility="public"
  18736. deprecated="not deprecated">
  18737. </method>
  18738. <method name="put" return="org.apache.hadoop.io.Writable"
  18739. abstract="false" native="false" synchronized="false"
  18740. static="false" final="false" visibility="public"
  18741. deprecated="not deprecated">
  18742. <param name="key" type="org.apache.hadoop.io.Writable"/>
  18743. <param name="value" type="org.apache.hadoop.io.Writable"/>
  18744. </method>
  18745. <method name="putAll"
  18746. abstract="false" native="false" synchronized="false"
  18747. static="false" final="false" visibility="public"
  18748. deprecated="not deprecated">
  18749. <param name="t" type="java.util.Map"/>
  18750. </method>
  18751. <method name="remove" return="org.apache.hadoop.io.Writable"
  18752. abstract="false" native="false" synchronized="false"
  18753. static="false" final="false" visibility="public"
  18754. deprecated="not deprecated">
  18755. <param name="key" type="java.lang.Object"/>
  18756. </method>
  18757. <method name="size" return="int"
  18758. abstract="false" native="false" synchronized="false"
  18759. static="false" final="false" visibility="public"
  18760. deprecated="not deprecated">
  18761. </method>
  18762. <method name="values" return="java.util.Collection"
  18763. abstract="false" native="false" synchronized="false"
  18764. static="false" final="false" visibility="public"
  18765. deprecated="not deprecated">
  18766. </method>
  18767. <method name="write"
  18768. abstract="false" native="false" synchronized="false"
  18769. static="false" final="false" visibility="public"
  18770. deprecated="not deprecated">
  18771. <param name="out" type="java.io.DataOutput"/>
  18772. <exception name="IOException" type="java.io.IOException"/>
  18773. </method>
  18774. <method name="readFields"
  18775. abstract="false" native="false" synchronized="false"
  18776. static="false" final="false" visibility="public"
  18777. deprecated="not deprecated">
  18778. <param name="in" type="java.io.DataInput"/>
  18779. <exception name="IOException" type="java.io.IOException"/>
  18780. </method>
  18781. <method name="toString" return="java.lang.String"
  18782. abstract="false" native="false" synchronized="false"
  18783. static="false" final="false" visibility="public"
  18784. deprecated="not deprecated">
  18785. </method>
  18786. <doc>
  18787. <![CDATA[A Writable Map.]]>
  18788. </doc>
  18789. </class>
  18790. <!-- end class org.apache.hadoop.io.MapWritable -->
  18791. <!-- start class org.apache.hadoop.io.MD5Hash -->
  18792. <class name="MD5Hash" extends="java.lang.Object"
  18793. abstract="false"
  18794. static="false" final="false" visibility="public"
  18795. deprecated="not deprecated">
  18796. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18797. <constructor name="MD5Hash"
  18798. static="false" final="false" visibility="public"
  18799. deprecated="not deprecated">
  18800. <doc>
  18801. <![CDATA[Constructs an MD5Hash.]]>
  18802. </doc>
  18803. </constructor>
  18804. <constructor name="MD5Hash" type="java.lang.String"
  18805. static="false" final="false" visibility="public"
  18806. deprecated="not deprecated">
  18807. <doc>
  18808. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  18809. </doc>
  18810. </constructor>
  18811. <constructor name="MD5Hash" type="byte[]"
  18812. static="false" final="false" visibility="public"
  18813. deprecated="not deprecated">
  18814. <doc>
  18815. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  18816. </doc>
  18817. </constructor>
  18818. <method name="readFields"
  18819. abstract="false" native="false" synchronized="false"
  18820. static="false" final="false" visibility="public"
  18821. deprecated="not deprecated">
  18822. <param name="in" type="java.io.DataInput"/>
  18823. <exception name="IOException" type="java.io.IOException"/>
  18824. </method>
  18825. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  18826. abstract="false" native="false" synchronized="false"
  18827. static="true" final="false" visibility="public"
  18828. deprecated="not deprecated">
  18829. <param name="in" type="java.io.DataInput"/>
  18830. <exception name="IOException" type="java.io.IOException"/>
  18831. <doc>
  18832. <![CDATA[Constructs, reads and returns an instance.]]>
  18833. </doc>
  18834. </method>
  18835. <method name="write"
  18836. abstract="false" native="false" synchronized="false"
  18837. static="false" final="false" visibility="public"
  18838. deprecated="not deprecated">
  18839. <param name="out" type="java.io.DataOutput"/>
  18840. <exception name="IOException" type="java.io.IOException"/>
  18841. </method>
  18842. <method name="set"
  18843. abstract="false" native="false" synchronized="false"
  18844. static="false" final="false" visibility="public"
  18845. deprecated="not deprecated">
  18846. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  18847. <doc>
  18848. <![CDATA[Copy the contents of another instance into this instance.]]>
  18849. </doc>
  18850. </method>
  18851. <method name="getDigest" return="byte[]"
  18852. abstract="false" native="false" synchronized="false"
  18853. static="false" final="false" visibility="public"
  18854. deprecated="not deprecated">
  18855. <doc>
  18856. <![CDATA[Returns the digest bytes.]]>
  18857. </doc>
  18858. </method>
  18859. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18860. abstract="false" native="false" synchronized="false"
  18861. static="true" final="false" visibility="public"
  18862. deprecated="not deprecated">
  18863. <param name="data" type="byte[]"/>
  18864. <doc>
  18865. <![CDATA[Construct a hash value for a byte array.]]>
  18866. </doc>
  18867. </method>
  18868. <method name="getDigester" return="java.security.MessageDigest"
  18869. abstract="false" native="false" synchronized="false"
  18870. static="true" final="false" visibility="public"
  18871. deprecated="not deprecated">
  18872. <doc>
  18873. <![CDATA[Create a thread local MD5 digester]]>
  18874. </doc>
  18875. </method>
  18876. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18877. abstract="false" native="false" synchronized="false"
  18878. static="true" final="false" visibility="public"
  18879. deprecated="not deprecated">
  18880. <param name="in" type="java.io.InputStream"/>
  18881. <exception name="IOException" type="java.io.IOException"/>
  18882. <doc>
  18883. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  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="data" type="byte[]"/>
  18891. <param name="start" type="int"/>
  18892. <param name="len" type="int"/>
  18893. <doc>
  18894. <![CDATA[Construct a hash value for a byte array.]]>
  18895. </doc>
  18896. </method>
  18897. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18898. abstract="false" native="false" synchronized="false"
  18899. static="true" final="false" visibility="public"
  18900. deprecated="not deprecated">
  18901. <param name="dataArr" type="byte[][]"/>
  18902. <param name="start" type="int"/>
  18903. <param name="len" type="int"/>
  18904. <doc>
  18905. <![CDATA[Construct a hash value for an array of byte array.]]>
  18906. </doc>
  18907. </method>
  18908. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18909. abstract="false" native="false" synchronized="false"
  18910. static="true" final="false" visibility="public"
  18911. deprecated="not deprecated">
  18912. <param name="string" type="java.lang.String"/>
  18913. <doc>
  18914. <![CDATA[Construct a hash value for a String.]]>
  18915. </doc>
  18916. </method>
  18917. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18918. abstract="false" native="false" synchronized="false"
  18919. static="true" final="false" visibility="public"
  18920. deprecated="not deprecated">
  18921. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  18922. <doc>
  18923. <![CDATA[Construct a hash value for a String.]]>
  18924. </doc>
  18925. </method>
  18926. <method name="halfDigest" return="long"
  18927. abstract="false" native="false" synchronized="false"
  18928. static="false" final="false" visibility="public"
  18929. deprecated="not deprecated">
  18930. <doc>
  18931. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  18932. </doc>
  18933. </method>
  18934. <method name="quarterDigest" return="int"
  18935. abstract="false" native="false" synchronized="false"
  18936. static="false" final="false" visibility="public"
  18937. deprecated="not deprecated">
  18938. <doc>
  18939. <![CDATA[Return a 32-bit digest of the MD5.
  18940. @return the first 4 bytes of the md5]]>
  18941. </doc>
  18942. </method>
  18943. <method name="equals" return="boolean"
  18944. abstract="false" native="false" synchronized="false"
  18945. static="false" final="false" visibility="public"
  18946. deprecated="not deprecated">
  18947. <param name="o" type="java.lang.Object"/>
  18948. <doc>
  18949. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  18950. same values.]]>
  18951. </doc>
  18952. </method>
  18953. <method name="hashCode" return="int"
  18954. abstract="false" native="false" synchronized="false"
  18955. static="false" final="false" visibility="public"
  18956. deprecated="not deprecated">
  18957. <doc>
  18958. <![CDATA[Returns a hash code value for this object.
  18959. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  18960. </doc>
  18961. </method>
  18962. <method name="compareTo" return="int"
  18963. abstract="false" native="false" synchronized="false"
  18964. static="false" final="false" visibility="public"
  18965. deprecated="not deprecated">
  18966. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  18967. <doc>
  18968. <![CDATA[Compares this object with the specified object for order.]]>
  18969. </doc>
  18970. </method>
  18971. <method name="toString" return="java.lang.String"
  18972. abstract="false" native="false" synchronized="false"
  18973. static="false" final="false" visibility="public"
  18974. deprecated="not deprecated">
  18975. <doc>
  18976. <![CDATA[Returns a string representation of this object.]]>
  18977. </doc>
  18978. </method>
  18979. <method name="setDigest"
  18980. abstract="false" native="false" synchronized="false"
  18981. static="false" final="false" visibility="public"
  18982. deprecated="not deprecated">
  18983. <param name="hex" type="java.lang.String"/>
  18984. <doc>
  18985. <![CDATA[Sets the digest value from a hex string.]]>
  18986. </doc>
  18987. </method>
  18988. <field name="MD5_LEN" type="int"
  18989. transient="false" volatile="false"
  18990. static="true" final="true" visibility="public"
  18991. deprecated="not deprecated">
  18992. </field>
  18993. <doc>
  18994. <![CDATA[A Writable for MD5 hash values.]]>
  18995. </doc>
  18996. </class>
  18997. <!-- end class org.apache.hadoop.io.MD5Hash -->
  18998. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  18999. <class name="MultipleIOException" extends="java.io.IOException"
  19000. abstract="false"
  19001. static="false" final="false" visibility="public"
  19002. deprecated="not deprecated">
  19003. <method name="getExceptions" return="java.util.List"
  19004. abstract="false" native="false" synchronized="false"
  19005. static="false" final="false" visibility="public"
  19006. deprecated="not deprecated">
  19007. <doc>
  19008. <![CDATA[@return the underlying exceptions]]>
  19009. </doc>
  19010. </method>
  19011. <method name="createIOException" return="java.io.IOException"
  19012. abstract="false" native="false" synchronized="false"
  19013. static="true" final="false" visibility="public"
  19014. deprecated="not deprecated">
  19015. <param name="exceptions" type="java.util.List"/>
  19016. <doc>
  19017. <![CDATA[A convenient method to create an {@link IOException}.]]>
  19018. </doc>
  19019. </method>
  19020. <doc>
  19021. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  19022. </doc>
  19023. </class>
  19024. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  19025. <!-- start class org.apache.hadoop.io.NullWritable -->
  19026. <class name="NullWritable" extends="java.lang.Object"
  19027. abstract="false"
  19028. static="false" final="false" visibility="public"
  19029. deprecated="not deprecated">
  19030. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19031. <method name="get" return="org.apache.hadoop.io.NullWritable"
  19032. abstract="false" native="false" synchronized="false"
  19033. static="true" final="false" visibility="public"
  19034. deprecated="not deprecated">
  19035. <doc>
  19036. <![CDATA[Returns the single instance of this class.]]>
  19037. </doc>
  19038. </method>
  19039. <method name="toString" return="java.lang.String"
  19040. abstract="false" native="false" synchronized="false"
  19041. static="false" final="false" visibility="public"
  19042. deprecated="not deprecated">
  19043. </method>
  19044. <method name="hashCode" return="int"
  19045. abstract="false" native="false" synchronized="false"
  19046. static="false" final="false" visibility="public"
  19047. deprecated="not deprecated">
  19048. </method>
  19049. <method name="compareTo" return="int"
  19050. abstract="false" native="false" synchronized="false"
  19051. static="false" final="false" visibility="public"
  19052. deprecated="not deprecated">
  19053. <param name="other" type="org.apache.hadoop.io.NullWritable"/>
  19054. </method>
  19055. <method name="equals" return="boolean"
  19056. abstract="false" native="false" synchronized="false"
  19057. static="false" final="false" visibility="public"
  19058. deprecated="not deprecated">
  19059. <param name="other" type="java.lang.Object"/>
  19060. </method>
  19061. <method name="readFields"
  19062. abstract="false" native="false" synchronized="false"
  19063. static="false" final="false" visibility="public"
  19064. deprecated="not deprecated">
  19065. <param name="in" type="java.io.DataInput"/>
  19066. <exception name="IOException" type="java.io.IOException"/>
  19067. </method>
  19068. <method name="write"
  19069. abstract="false" native="false" synchronized="false"
  19070. static="false" final="false" visibility="public"
  19071. deprecated="not deprecated">
  19072. <param name="out" type="java.io.DataOutput"/>
  19073. <exception name="IOException" type="java.io.IOException"/>
  19074. </method>
  19075. <doc>
  19076. <![CDATA[Singleton Writable with no data.]]>
  19077. </doc>
  19078. </class>
  19079. <!-- end class org.apache.hadoop.io.NullWritable -->
  19080. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  19081. <class name="ObjectWritable" extends="java.lang.Object"
  19082. abstract="false"
  19083. static="false" final="false" visibility="public"
  19084. deprecated="not deprecated">
  19085. <implements name="org.apache.hadoop.io.Writable"/>
  19086. <implements name="org.apache.hadoop.conf.Configurable"/>
  19087. <constructor name="ObjectWritable"
  19088. static="false" final="false" visibility="public"
  19089. deprecated="not deprecated">
  19090. </constructor>
  19091. <constructor name="ObjectWritable" type="java.lang.Object"
  19092. static="false" final="false" visibility="public"
  19093. deprecated="not deprecated">
  19094. </constructor>
  19095. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  19096. static="false" final="false" visibility="public"
  19097. deprecated="not deprecated">
  19098. </constructor>
  19099. <method name="get" return="java.lang.Object"
  19100. abstract="false" native="false" synchronized="false"
  19101. static="false" final="false" visibility="public"
  19102. deprecated="not deprecated">
  19103. <doc>
  19104. <![CDATA[Return the instance, or null if none.]]>
  19105. </doc>
  19106. </method>
  19107. <method name="getDeclaredClass" return="java.lang.Class"
  19108. abstract="false" native="false" synchronized="false"
  19109. static="false" final="false" visibility="public"
  19110. deprecated="not deprecated">
  19111. <doc>
  19112. <![CDATA[Return the class this is meant to be.]]>
  19113. </doc>
  19114. </method>
  19115. <method name="set"
  19116. abstract="false" native="false" synchronized="false"
  19117. static="false" final="false" visibility="public"
  19118. deprecated="not deprecated">
  19119. <param name="instance" type="java.lang.Object"/>
  19120. <doc>
  19121. <![CDATA[Reset the instance.]]>
  19122. </doc>
  19123. </method>
  19124. <method name="toString" return="java.lang.String"
  19125. abstract="false" native="false" synchronized="false"
  19126. static="false" final="false" visibility="public"
  19127. deprecated="not deprecated">
  19128. </method>
  19129. <method name="readFields"
  19130. abstract="false" native="false" synchronized="false"
  19131. static="false" final="false" visibility="public"
  19132. deprecated="not deprecated">
  19133. <param name="in" type="java.io.DataInput"/>
  19134. <exception name="IOException" type="java.io.IOException"/>
  19135. </method>
  19136. <method name="write"
  19137. abstract="false" native="false" synchronized="false"
  19138. static="false" final="false" visibility="public"
  19139. deprecated="not deprecated">
  19140. <param name="out" type="java.io.DataOutput"/>
  19141. <exception name="IOException" type="java.io.IOException"/>
  19142. </method>
  19143. <method name="writeObject"
  19144. abstract="false" native="false" synchronized="false"
  19145. static="true" final="false" visibility="public"
  19146. deprecated="not deprecated">
  19147. <param name="out" type="java.io.DataOutput"/>
  19148. <param name="instance" type="java.lang.Object"/>
  19149. <param name="declaredClass" type="java.lang.Class"/>
  19150. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19151. <exception name="IOException" type="java.io.IOException"/>
  19152. <doc>
  19153. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  19154. the preceding.]]>
  19155. </doc>
  19156. </method>
  19157. <method name="writeObject"
  19158. abstract="false" native="false" synchronized="false"
  19159. static="true" final="false" visibility="public"
  19160. deprecated="not deprecated">
  19161. <param name="out" type="java.io.DataOutput"/>
  19162. <param name="instance" type="java.lang.Object"/>
  19163. <param name="declaredClass" type="java.lang.Class"/>
  19164. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19165. <param name="allowCompactArrays" type="boolean"/>
  19166. <exception name="IOException" type="java.io.IOException"/>
  19167. <doc>
  19168. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  19169. the preceding.
  19170. @param allowCompactArrays - set true for RPC and internal or intra-cluster
  19171. usages. Set false for inter-cluster, File, and other persisted output
  19172. usages, to preserve the ability to interchange files with other clusters
  19173. that may not be running the same version of software. Sometime in ~2013
  19174. we can consider removing this parameter and always using the compact format.]]>
  19175. </doc>
  19176. </method>
  19177. <method name="readObject" return="java.lang.Object"
  19178. abstract="false" native="false" synchronized="false"
  19179. static="true" final="false" visibility="public"
  19180. deprecated="not deprecated">
  19181. <param name="in" type="java.io.DataInput"/>
  19182. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19183. <exception name="IOException" type="java.io.IOException"/>
  19184. <doc>
  19185. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  19186. the preceding.]]>
  19187. </doc>
  19188. </method>
  19189. <method name="readObject" return="java.lang.Object"
  19190. abstract="false" native="false" synchronized="false"
  19191. static="true" final="false" visibility="public"
  19192. deprecated="not deprecated">
  19193. <param name="in" type="java.io.DataInput"/>
  19194. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  19195. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19196. <exception name="IOException" type="java.io.IOException"/>
  19197. <doc>
  19198. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  19199. the preceding.]]>
  19200. </doc>
  19201. </method>
  19202. <method name="loadClass" return="java.lang.Class"
  19203. abstract="false" native="false" synchronized="false"
  19204. static="true" final="false" visibility="public"
  19205. deprecated="not deprecated">
  19206. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19207. <param name="className" type="java.lang.String"/>
  19208. <doc>
  19209. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  19210. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  19211. try load it directly.]]>
  19212. </doc>
  19213. </method>
  19214. <method name="setConf"
  19215. abstract="false" native="false" synchronized="false"
  19216. static="false" final="false" visibility="public"
  19217. deprecated="not deprecated">
  19218. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19219. </method>
  19220. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  19221. abstract="false" native="false" synchronized="false"
  19222. static="false" final="false" visibility="public"
  19223. deprecated="not deprecated">
  19224. </method>
  19225. <doc>
  19226. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  19227. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  19228. </doc>
  19229. </class>
  19230. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  19231. <!-- start interface org.apache.hadoop.io.RawComparator -->
  19232. <interface name="RawComparator" abstract="true"
  19233. static="false" final="false" visibility="public"
  19234. deprecated="not deprecated">
  19235. <implements name="java.util.Comparator"/>
  19236. <method name="compare" return="int"
  19237. abstract="true" native="false" synchronized="false"
  19238. static="false" final="false" visibility="public"
  19239. deprecated="not deprecated">
  19240. <param name="b1" type="byte[]"/>
  19241. <param name="s1" type="int"/>
  19242. <param name="l1" type="int"/>
  19243. <param name="b2" type="byte[]"/>
  19244. <param name="s2" type="int"/>
  19245. <param name="l2" type="int"/>
  19246. <doc>
  19247. <![CDATA[Compare two objects in binary.
  19248. b1[s1:l1] is the first object, and b2[s2:l2] is the second object.
  19249. @param b1 The first byte array.
  19250. @param s1 The position index in b1. The object under comparison's starting index.
  19251. @param l1 The length of the object in b1.
  19252. @param b2 The second byte array.
  19253. @param s2 The position index in b2. The object under comparison's starting index.
  19254. @param l2 The length of the object under comparison in b2.
  19255. @return An integer result of the comparison.]]>
  19256. </doc>
  19257. </method>
  19258. <doc>
  19259. <![CDATA[<p>
  19260. A {@link Comparator} that operates directly on byte representations of
  19261. objects.
  19262. </p>
  19263. @param <T>
  19264. @see DeserializerComparator]]>
  19265. </doc>
  19266. </interface>
  19267. <!-- end interface org.apache.hadoop.io.RawComparator -->
  19268. <!-- start class org.apache.hadoop.io.SequenceFile -->
  19269. <class name="SequenceFile" extends="java.lang.Object"
  19270. abstract="false"
  19271. static="false" final="false" visibility="public"
  19272. deprecated="not deprecated">
  19273. <method name="getDefaultCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  19274. abstract="false" native="false" synchronized="false"
  19275. static="true" final="false" visibility="public"
  19276. deprecated="not deprecated">
  19277. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  19278. <doc>
  19279. <![CDATA[Get the compression type for the reduce outputs
  19280. @param job the job config to look in
  19281. @return the kind of compression to use]]>
  19282. </doc>
  19283. </method>
  19284. <method name="setDefaultCompressionType"
  19285. abstract="false" native="false" synchronized="false"
  19286. static="true" final="false" visibility="public"
  19287. deprecated="not deprecated">
  19288. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  19289. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19290. <doc>
  19291. <![CDATA[Set the default compression type for sequence files.
  19292. @param job the configuration to modify
  19293. @param val the new compression type (none, block, record)]]>
  19294. </doc>
  19295. </method>
  19296. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19297. abstract="false" native="false" synchronized="false"
  19298. static="true" final="false" visibility="public"
  19299. deprecated="not deprecated">
  19300. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19301. <param name="opts" type="org.apache.hadoop.io.SequenceFile.Writer.Option[]"/>
  19302. <exception name="IOException" type="java.io.IOException"/>
  19303. <doc>
  19304. <![CDATA[Create a new Writer with the given options.
  19305. @param conf the configuration to use
  19306. @param opts the options to create the file with
  19307. @return a new Writer
  19308. @throws IOException]]>
  19309. </doc>
  19310. </method>
  19311. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19312. abstract="false" native="false" synchronized="false"
  19313. static="true" final="false" visibility="public"
  19314. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19315. instead.">
  19316. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19317. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19318. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19319. <param name="keyClass" type="java.lang.Class"/>
  19320. <param name="valClass" type="java.lang.Class"/>
  19321. <exception name="IOException" type="java.io.IOException"/>
  19322. <doc>
  19323. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19324. @param fs The configured filesystem.
  19325. @param conf The configuration.
  19326. @param name The name of the file.
  19327. @param keyClass The 'key' type.
  19328. @param valClass The 'value' type.
  19329. @return Returns the handle to the constructed SequenceFile Writer.
  19330. @throws IOException
  19331. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19332. instead.]]>
  19333. </doc>
  19334. </method>
  19335. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19336. abstract="false" native="false" synchronized="false"
  19337. static="true" final="false" visibility="public"
  19338. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19339. instead.">
  19340. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19341. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19342. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19343. <param name="keyClass" type="java.lang.Class"/>
  19344. <param name="valClass" type="java.lang.Class"/>
  19345. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19346. <exception name="IOException" type="java.io.IOException"/>
  19347. <doc>
  19348. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19349. @param fs The configured filesystem.
  19350. @param conf The configuration.
  19351. @param name The name of the file.
  19352. @param keyClass The 'key' type.
  19353. @param valClass The 'value' type.
  19354. @param compressionType The compression type.
  19355. @return Returns the handle to the constructed SequenceFile Writer.
  19356. @throws IOException
  19357. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19358. instead.]]>
  19359. </doc>
  19360. </method>
  19361. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19362. abstract="false" native="false" synchronized="false"
  19363. static="true" final="false" visibility="public"
  19364. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19365. instead.">
  19366. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19367. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19368. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19369. <param name="keyClass" type="java.lang.Class"/>
  19370. <param name="valClass" type="java.lang.Class"/>
  19371. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19372. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  19373. <exception name="IOException" type="java.io.IOException"/>
  19374. <doc>
  19375. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19376. @param fs The configured filesystem.
  19377. @param conf The configuration.
  19378. @param name The name of the file.
  19379. @param keyClass The 'key' type.
  19380. @param valClass The 'value' type.
  19381. @param compressionType The compression type.
  19382. @param progress The Progressable object to track progress.
  19383. @return Returns the handle to the constructed SequenceFile Writer.
  19384. @throws IOException
  19385. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19386. instead.]]>
  19387. </doc>
  19388. </method>
  19389. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19390. abstract="false" native="false" synchronized="false"
  19391. static="true" final="false" visibility="public"
  19392. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19393. instead.">
  19394. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19395. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19396. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19397. <param name="keyClass" type="java.lang.Class"/>
  19398. <param name="valClass" type="java.lang.Class"/>
  19399. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19400. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19401. <exception name="IOException" type="java.io.IOException"/>
  19402. <doc>
  19403. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19404. @param fs The configured filesystem.
  19405. @param conf The configuration.
  19406. @param name The name of the file.
  19407. @param keyClass The 'key' type.
  19408. @param valClass The 'value' type.
  19409. @param compressionType The compression type.
  19410. @param codec The compression codec.
  19411. @return Returns the handle to the constructed SequenceFile Writer.
  19412. @throws IOException
  19413. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19414. instead.]]>
  19415. </doc>
  19416. </method>
  19417. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19418. abstract="false" native="false" synchronized="false"
  19419. static="true" final="false" visibility="public"
  19420. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19421. instead.">
  19422. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19423. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19424. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19425. <param name="keyClass" type="java.lang.Class"/>
  19426. <param name="valClass" type="java.lang.Class"/>
  19427. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19428. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19429. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  19430. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  19431. <exception name="IOException" type="java.io.IOException"/>
  19432. <doc>
  19433. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19434. @param fs The configured filesystem.
  19435. @param conf The configuration.
  19436. @param name The name of the file.
  19437. @param keyClass The 'key' type.
  19438. @param valClass The 'value' type.
  19439. @param compressionType The compression type.
  19440. @param codec The compression codec.
  19441. @param progress The Progressable object to track progress.
  19442. @param metadata The metadata of the file.
  19443. @return Returns the handle to the constructed SequenceFile Writer.
  19444. @throws IOException
  19445. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19446. instead.]]>
  19447. </doc>
  19448. </method>
  19449. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19450. abstract="false" native="false" synchronized="false"
  19451. static="true" final="false" visibility="public"
  19452. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19453. instead.">
  19454. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19455. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19456. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19457. <param name="keyClass" type="java.lang.Class"/>
  19458. <param name="valClass" type="java.lang.Class"/>
  19459. <param name="bufferSize" type="int"/>
  19460. <param name="replication" type="short"/>
  19461. <param name="blockSize" type="long"/>
  19462. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19463. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19464. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  19465. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  19466. <exception name="IOException" type="java.io.IOException"/>
  19467. <doc>
  19468. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19469. @param fs The configured filesystem.
  19470. @param conf The configuration.
  19471. @param name The name of the file.
  19472. @param keyClass The 'key' type.
  19473. @param valClass The 'value' type.
  19474. @param bufferSize buffer size for the underlaying outputstream.
  19475. @param replication replication factor for the file.
  19476. @param blockSize block size for the file.
  19477. @param compressionType The compression type.
  19478. @param codec The compression codec.
  19479. @param progress The Progressable object to track progress.
  19480. @param metadata The metadata of the file.
  19481. @return Returns the handle to the constructed SequenceFile Writer.
  19482. @throws IOException
  19483. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19484. instead.]]>
  19485. </doc>
  19486. </method>
  19487. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19488. abstract="false" native="false" synchronized="false"
  19489. static="true" final="false" visibility="public"
  19490. deprecated="not deprecated">
  19491. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19492. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19493. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19494. <param name="keyClass" type="java.lang.Class"/>
  19495. <param name="valClass" type="java.lang.Class"/>
  19496. <param name="bufferSize" type="int"/>
  19497. <param name="replication" type="short"/>
  19498. <param name="blockSize" type="long"/>
  19499. <param name="createParent" type="boolean"/>
  19500. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19501. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19502. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  19503. <exception name="IOException" type="java.io.IOException"/>
  19504. <doc>
  19505. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19506. @param fs The configured filesystem.
  19507. @param conf The configuration.
  19508. @param name The name of the file.
  19509. @param keyClass The 'key' type.
  19510. @param valClass The 'value' type.
  19511. @param bufferSize buffer size for the underlaying outputstream.
  19512. @param replication replication factor for the file.
  19513. @param blockSize block size for the file.
  19514. @param createParent create parent directory if non-existent
  19515. @param compressionType The compression type.
  19516. @param codec The compression codec.
  19517. @param metadata The metadata of the file.
  19518. @return Returns the handle to the constructed SequenceFile Writer.
  19519. @throws IOException]]>
  19520. </doc>
  19521. </method>
  19522. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19523. abstract="false" native="false" synchronized="false"
  19524. static="true" final="false" visibility="public"
  19525. deprecated="not deprecated">
  19526. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  19527. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19528. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19529. <param name="keyClass" type="java.lang.Class"/>
  19530. <param name="valClass" type="java.lang.Class"/>
  19531. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19532. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19533. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  19534. <param name="createFlag" type="java.util.EnumSet"/>
  19535. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  19536. <exception name="IOException" type="java.io.IOException"/>
  19537. <doc>
  19538. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19539. @param fc The context for the specified file.
  19540. @param conf The configuration.
  19541. @param name The name of the file.
  19542. @param keyClass The 'key' type.
  19543. @param valClass The 'value' type.
  19544. @param compressionType The compression type.
  19545. @param codec The compression codec.
  19546. @param metadata The metadata of the file.
  19547. @param createFlag gives the semantics of create: overwrite, append etc.
  19548. @param opts file creation options; see {@link CreateOpts}.
  19549. @return Returns the handle to the constructed SequenceFile Writer.
  19550. @throws IOException]]>
  19551. </doc>
  19552. </method>
  19553. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19554. abstract="false" native="false" synchronized="false"
  19555. static="true" final="false" visibility="public"
  19556. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19557. instead.">
  19558. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19559. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19560. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19561. <param name="keyClass" type="java.lang.Class"/>
  19562. <param name="valClass" type="java.lang.Class"/>
  19563. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19564. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19565. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  19566. <exception name="IOException" type="java.io.IOException"/>
  19567. <doc>
  19568. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19569. @param fs The configured filesystem.
  19570. @param conf The configuration.
  19571. @param name The name of the file.
  19572. @param keyClass The 'key' type.
  19573. @param valClass The 'value' type.
  19574. @param compressionType The compression type.
  19575. @param codec The compression codec.
  19576. @param progress The Progressable object to track progress.
  19577. @return Returns the handle to the constructed SequenceFile Writer.
  19578. @throws IOException
  19579. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19580. instead.]]>
  19581. </doc>
  19582. </method>
  19583. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19584. abstract="false" native="false" synchronized="false"
  19585. static="true" final="false" visibility="public"
  19586. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19587. instead.">
  19588. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19589. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  19590. <param name="keyClass" type="java.lang.Class"/>
  19591. <param name="valClass" type="java.lang.Class"/>
  19592. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19593. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19594. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  19595. <exception name="IOException" type="java.io.IOException"/>
  19596. <doc>
  19597. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  19598. @param conf The configuration.
  19599. @param out The stream on top which the writer is to be constructed.
  19600. @param keyClass The 'key' type.
  19601. @param valClass The 'value' type.
  19602. @param compressionType The compression type.
  19603. @param codec The compression codec.
  19604. @param metadata The metadata of the file.
  19605. @return Returns the handle to the constructed SequenceFile Writer.
  19606. @throws IOException
  19607. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19608. instead.]]>
  19609. </doc>
  19610. </method>
  19611. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19612. abstract="false" native="false" synchronized="false"
  19613. static="true" final="false" visibility="public"
  19614. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19615. instead.">
  19616. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19617. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  19618. <param name="keyClass" type="java.lang.Class"/>
  19619. <param name="valClass" type="java.lang.Class"/>
  19620. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19621. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19622. <exception name="IOException" type="java.io.IOException"/>
  19623. <doc>
  19624. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  19625. @param conf The configuration.
  19626. @param out The stream on top which the writer is to be constructed.
  19627. @param keyClass The 'key' type.
  19628. @param valClass The 'value' type.
  19629. @param compressionType The compression type.
  19630. @param codec The compression codec.
  19631. @return Returns the handle to the constructed SequenceFile Writer.
  19632. @throws IOException
  19633. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19634. instead.]]>
  19635. </doc>
  19636. </method>
  19637. <field name="SYNC_INTERVAL" type="int"
  19638. transient="false" volatile="false"
  19639. static="true" final="true" visibility="public"
  19640. deprecated="not deprecated">
  19641. <doc>
  19642. <![CDATA[The number of bytes between sync points. 100 KB, default.
  19643. Computed as 5 KB * 20 = 100 KB]]>
  19644. </doc>
  19645. </field>
  19646. <doc>
  19647. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  19648. pairs.
  19649. <p><code>SequenceFile</code> provides {@link SequenceFile.Writer},
  19650. {@link SequenceFile.Reader} and {@link Sorter} classes for writing,
  19651. reading and sorting respectively.</p>
  19652. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  19653. {@link CompressionType} used to compress key/value pairs:
  19654. <ol>
  19655. <li>
  19656. <code>Writer</code> : Uncompressed records.
  19657. </li>
  19658. <li>
  19659. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  19660. values.
  19661. </li>
  19662. <li>
  19663. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  19664. values are collected in 'blocks'
  19665. separately and compressed. The size of
  19666. the 'block' is configurable.
  19667. </ol>
  19668. <p>The actual compression algorithm used to compress key and/or values can be
  19669. specified by using the appropriate {@link CompressionCodec}.</p>
  19670. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  19671. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  19672. <p>The {@link SequenceFile.Reader} acts as the bridge and can read any of the
  19673. above <code>SequenceFile</code> formats.</p>
  19674. <h4 id="Formats">SequenceFile Formats</h4>
  19675. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  19676. depending on the <code>CompressionType</code> specified. All of them share a
  19677. <a href="#Header">common header</a> described below.
  19678. <h5 id="Header">SequenceFile Header</h5>
  19679. <ul>
  19680. <li>
  19681. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  19682. version number (e.g. SEQ4 or SEQ6)
  19683. </li>
  19684. <li>
  19685. keyClassName -key class
  19686. </li>
  19687. <li>
  19688. valueClassName - value class
  19689. </li>
  19690. <li>
  19691. compression - A boolean which specifies if compression is turned on for
  19692. keys/values in this file.
  19693. </li>
  19694. <li>
  19695. blockCompression - A boolean which specifies if block-compression is
  19696. turned on for keys/values in this file.
  19697. </li>
  19698. <li>
  19699. compression codec - <code>CompressionCodec</code> class which is used for
  19700. compression of keys and/or values (if compression is
  19701. enabled).
  19702. </li>
  19703. <li>
  19704. metadata - {@link Metadata} for this file.
  19705. </li>
  19706. <li>
  19707. sync - A sync marker to denote end of the header.
  19708. </li>
  19709. </ul>
  19710. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  19711. <ul>
  19712. <li>
  19713. <a href="#Header">Header</a>
  19714. </li>
  19715. <li>
  19716. Record
  19717. <ul>
  19718. <li>Record length</li>
  19719. <li>Key length</li>
  19720. <li>Key</li>
  19721. <li>Value</li>
  19722. </ul>
  19723. </li>
  19724. <li>
  19725. A sync-marker every few <code>100</code> kilobytes or so.
  19726. </li>
  19727. </ul>
  19728. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  19729. <ul>
  19730. <li>
  19731. <a href="#Header">Header</a>
  19732. </li>
  19733. <li>
  19734. Record
  19735. <ul>
  19736. <li>Record length</li>
  19737. <li>Key length</li>
  19738. <li>Key</li>
  19739. <li><i>Compressed</i> Value</li>
  19740. </ul>
  19741. </li>
  19742. <li>
  19743. A sync-marker every few <code>100</code> kilobytes or so.
  19744. </li>
  19745. </ul>
  19746. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  19747. <ul>
  19748. <li>
  19749. <a href="#Header">Header</a>
  19750. </li>
  19751. <li>
  19752. Record <i>Block</i>
  19753. <ul>
  19754. <li>Uncompressed number of records in the block</li>
  19755. <li>Compressed key-lengths block-size</li>
  19756. <li>Compressed key-lengths block</li>
  19757. <li>Compressed keys block-size</li>
  19758. <li>Compressed keys block</li>
  19759. <li>Compressed value-lengths block-size</li>
  19760. <li>Compressed value-lengths block</li>
  19761. <li>Compressed values block-size</li>
  19762. <li>Compressed values block</li>
  19763. </ul>
  19764. </li>
  19765. <li>
  19766. A sync-marker every block.
  19767. </li>
  19768. </ul>
  19769. <p>The compressed blocks of key lengths and value lengths consist of the
  19770. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  19771. format.</p>
  19772. @see CompressionCodec]]>
  19773. </doc>
  19774. </class>
  19775. <!-- end class org.apache.hadoop.io.SequenceFile -->
  19776. <!-- start class org.apache.hadoop.io.SetFile -->
  19777. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  19778. abstract="false"
  19779. static="false" final="false" visibility="public"
  19780. deprecated="not deprecated">
  19781. <constructor name="SetFile"
  19782. static="false" final="false" visibility="protected"
  19783. deprecated="not deprecated">
  19784. </constructor>
  19785. <doc>
  19786. <![CDATA[A file-based set of keys.]]>
  19787. </doc>
  19788. </class>
  19789. <!-- end class org.apache.hadoop.io.SetFile -->
  19790. <!-- start class org.apache.hadoop.io.ShortWritable -->
  19791. <class name="ShortWritable" extends="java.lang.Object"
  19792. abstract="false"
  19793. static="false" final="false" visibility="public"
  19794. deprecated="not deprecated">
  19795. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19796. <constructor name="ShortWritable"
  19797. static="false" final="false" visibility="public"
  19798. deprecated="not deprecated">
  19799. </constructor>
  19800. <constructor name="ShortWritable" type="short"
  19801. static="false" final="false" visibility="public"
  19802. deprecated="not deprecated">
  19803. </constructor>
  19804. <method name="set"
  19805. abstract="false" native="false" synchronized="false"
  19806. static="false" final="false" visibility="public"
  19807. deprecated="not deprecated">
  19808. <param name="value" type="short"/>
  19809. <doc>
  19810. <![CDATA[Set the value of this ShortWritable.]]>
  19811. </doc>
  19812. </method>
  19813. <method name="get" return="short"
  19814. abstract="false" native="false" synchronized="false"
  19815. static="false" final="false" visibility="public"
  19816. deprecated="not deprecated">
  19817. <doc>
  19818. <![CDATA[Return the value of this ShortWritable.]]>
  19819. </doc>
  19820. </method>
  19821. <method name="readFields"
  19822. abstract="false" native="false" synchronized="false"
  19823. static="false" final="false" visibility="public"
  19824. deprecated="not deprecated">
  19825. <param name="in" type="java.io.DataInput"/>
  19826. <exception name="IOException" type="java.io.IOException"/>
  19827. <doc>
  19828. <![CDATA[read the short value]]>
  19829. </doc>
  19830. </method>
  19831. <method name="write"
  19832. abstract="false" native="false" synchronized="false"
  19833. static="false" final="false" visibility="public"
  19834. deprecated="not deprecated">
  19835. <param name="out" type="java.io.DataOutput"/>
  19836. <exception name="IOException" type="java.io.IOException"/>
  19837. <doc>
  19838. <![CDATA[write short value]]>
  19839. </doc>
  19840. </method>
  19841. <method name="equals" return="boolean"
  19842. abstract="false" native="false" synchronized="false"
  19843. static="false" final="false" visibility="public"
  19844. deprecated="not deprecated">
  19845. <param name="o" type="java.lang.Object"/>
  19846. <doc>
  19847. <![CDATA[Returns true iff <code>o</code> is a ShortWritable with the same value.]]>
  19848. </doc>
  19849. </method>
  19850. <method name="hashCode" return="int"
  19851. abstract="false" native="false" synchronized="false"
  19852. static="false" final="false" visibility="public"
  19853. deprecated="not deprecated">
  19854. <doc>
  19855. <![CDATA[hash code]]>
  19856. </doc>
  19857. </method>
  19858. <method name="compareTo" return="int"
  19859. abstract="false" native="false" synchronized="false"
  19860. static="false" final="false" visibility="public"
  19861. deprecated="not deprecated">
  19862. <param name="o" type="org.apache.hadoop.io.ShortWritable"/>
  19863. <doc>
  19864. <![CDATA[Compares two ShortWritable.]]>
  19865. </doc>
  19866. </method>
  19867. <method name="toString" return="java.lang.String"
  19868. abstract="false" native="false" synchronized="false"
  19869. static="false" final="false" visibility="public"
  19870. deprecated="not deprecated">
  19871. <doc>
  19872. <![CDATA[Short values in string format]]>
  19873. </doc>
  19874. </method>
  19875. <doc>
  19876. <![CDATA[A WritableComparable for shorts.]]>
  19877. </doc>
  19878. </class>
  19879. <!-- end class org.apache.hadoop.io.ShortWritable -->
  19880. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  19881. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  19882. abstract="false"
  19883. static="false" final="false" visibility="public"
  19884. deprecated="not deprecated">
  19885. <implements name="java.util.SortedMap"/>
  19886. <constructor name="SortedMapWritable"
  19887. static="false" final="false" visibility="public"
  19888. deprecated="not deprecated">
  19889. <doc>
  19890. <![CDATA[default constructor.]]>
  19891. </doc>
  19892. </constructor>
  19893. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  19894. static="false" final="false" visibility="public"
  19895. deprecated="not deprecated">
  19896. <doc>
  19897. <![CDATA[Copy constructor.
  19898. @param other the map to copy from]]>
  19899. </doc>
  19900. </constructor>
  19901. <method name="comparator" return="java.util.Comparator"
  19902. abstract="false" native="false" synchronized="false"
  19903. static="false" final="false" visibility="public"
  19904. deprecated="not deprecated">
  19905. </method>
  19906. <method name="firstKey" return="K"
  19907. abstract="false" native="false" synchronized="false"
  19908. static="false" final="false" visibility="public"
  19909. deprecated="not deprecated">
  19910. </method>
  19911. <method name="headMap" return="java.util.SortedMap"
  19912. abstract="false" native="false" synchronized="false"
  19913. static="false" final="false" visibility="public"
  19914. deprecated="not deprecated">
  19915. <param name="toKey" type="K"/>
  19916. </method>
  19917. <method name="lastKey" return="K"
  19918. abstract="false" native="false" synchronized="false"
  19919. static="false" final="false" visibility="public"
  19920. deprecated="not deprecated">
  19921. </method>
  19922. <method name="subMap" return="java.util.SortedMap"
  19923. abstract="false" native="false" synchronized="false"
  19924. static="false" final="false" visibility="public"
  19925. deprecated="not deprecated">
  19926. <param name="fromKey" type="K"/>
  19927. <param name="toKey" type="K"/>
  19928. </method>
  19929. <method name="tailMap" return="java.util.SortedMap"
  19930. abstract="false" native="false" synchronized="false"
  19931. static="false" final="false" visibility="public"
  19932. deprecated="not deprecated">
  19933. <param name="fromKey" type="K"/>
  19934. </method>
  19935. <method name="clear"
  19936. abstract="false" native="false" synchronized="false"
  19937. static="false" final="false" visibility="public"
  19938. deprecated="not deprecated">
  19939. </method>
  19940. <method name="containsKey" return="boolean"
  19941. abstract="false" native="false" synchronized="false"
  19942. static="false" final="false" visibility="public"
  19943. deprecated="not deprecated">
  19944. <param name="key" type="java.lang.Object"/>
  19945. </method>
  19946. <method name="containsValue" return="boolean"
  19947. abstract="false" native="false" synchronized="false"
  19948. static="false" final="false" visibility="public"
  19949. deprecated="not deprecated">
  19950. <param name="value" type="java.lang.Object"/>
  19951. </method>
  19952. <method name="entrySet" return="java.util.Set"
  19953. abstract="false" native="false" synchronized="false"
  19954. static="false" final="false" visibility="public"
  19955. deprecated="not deprecated">
  19956. </method>
  19957. <method name="get" return="org.apache.hadoop.io.Writable"
  19958. abstract="false" native="false" synchronized="false"
  19959. static="false" final="false" visibility="public"
  19960. deprecated="not deprecated">
  19961. <param name="key" type="java.lang.Object"/>
  19962. </method>
  19963. <method name="isEmpty" return="boolean"
  19964. abstract="false" native="false" synchronized="false"
  19965. static="false" final="false" visibility="public"
  19966. deprecated="not deprecated">
  19967. </method>
  19968. <method name="keySet" return="java.util.Set"
  19969. abstract="false" native="false" synchronized="false"
  19970. static="false" final="false" visibility="public"
  19971. deprecated="not deprecated">
  19972. </method>
  19973. <method name="put" return="org.apache.hadoop.io.Writable"
  19974. abstract="false" native="false" synchronized="false"
  19975. static="false" final="false" visibility="public"
  19976. deprecated="not deprecated">
  19977. <param name="key" type="K"/>
  19978. <param name="value" type="org.apache.hadoop.io.Writable"/>
  19979. </method>
  19980. <method name="putAll"
  19981. abstract="false" native="false" synchronized="false"
  19982. static="false" final="false" visibility="public"
  19983. deprecated="not deprecated">
  19984. <param name="t" type="java.util.Map"/>
  19985. </method>
  19986. <method name="remove" return="org.apache.hadoop.io.Writable"
  19987. abstract="false" native="false" synchronized="false"
  19988. static="false" final="false" visibility="public"
  19989. deprecated="not deprecated">
  19990. <param name="key" type="java.lang.Object"/>
  19991. </method>
  19992. <method name="size" return="int"
  19993. abstract="false" native="false" synchronized="false"
  19994. static="false" final="false" visibility="public"
  19995. deprecated="not deprecated">
  19996. </method>
  19997. <method name="values" return="java.util.Collection"
  19998. abstract="false" native="false" synchronized="false"
  19999. static="false" final="false" visibility="public"
  20000. deprecated="not deprecated">
  20001. </method>
  20002. <method name="readFields"
  20003. abstract="false" native="false" synchronized="false"
  20004. static="false" final="false" visibility="public"
  20005. deprecated="not deprecated">
  20006. <param name="in" type="java.io.DataInput"/>
  20007. <exception name="IOException" type="java.io.IOException"/>
  20008. </method>
  20009. <method name="write"
  20010. abstract="false" native="false" synchronized="false"
  20011. static="false" final="false" visibility="public"
  20012. deprecated="not deprecated">
  20013. <param name="out" type="java.io.DataOutput"/>
  20014. <exception name="IOException" type="java.io.IOException"/>
  20015. </method>
  20016. <method name="equals" return="boolean"
  20017. abstract="false" native="false" synchronized="false"
  20018. static="false" final="false" visibility="public"
  20019. deprecated="not deprecated">
  20020. <param name="obj" type="java.lang.Object"/>
  20021. </method>
  20022. <method name="hashCode" return="int"
  20023. abstract="false" native="false" synchronized="false"
  20024. static="false" final="false" visibility="public"
  20025. deprecated="not deprecated">
  20026. </method>
  20027. <doc>
  20028. <![CDATA[A Writable SortedMap.]]>
  20029. </doc>
  20030. </class>
  20031. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  20032. <!-- start interface org.apache.hadoop.io.Stringifier -->
  20033. <interface name="Stringifier" abstract="true"
  20034. static="false" final="false" visibility="public"
  20035. deprecated="not deprecated">
  20036. <implements name="java.io.Closeable"/>
  20037. <method name="toString" return="java.lang.String"
  20038. abstract="true" native="false" synchronized="false"
  20039. static="false" final="false" visibility="public"
  20040. deprecated="not deprecated">
  20041. <param name="obj" type="T"/>
  20042. <exception name="IOException" type="java.io.IOException"/>
  20043. <doc>
  20044. <![CDATA[Converts the object to a string representation
  20045. @param obj the object to convert
  20046. @return the string representation of the object
  20047. @throws IOException if the object cannot be converted]]>
  20048. </doc>
  20049. </method>
  20050. <method name="fromString" return="T"
  20051. abstract="true" native="false" synchronized="false"
  20052. static="false" final="false" visibility="public"
  20053. deprecated="not deprecated">
  20054. <param name="str" type="java.lang.String"/>
  20055. <exception name="IOException" type="java.io.IOException"/>
  20056. <doc>
  20057. <![CDATA[Restores the object from its string representation.
  20058. @param str the string representation of the object
  20059. @return restored object
  20060. @throws IOException if the object cannot be restored]]>
  20061. </doc>
  20062. </method>
  20063. <method name="close"
  20064. abstract="true" native="false" synchronized="false"
  20065. static="false" final="false" visibility="public"
  20066. deprecated="not deprecated">
  20067. <exception name="IOException" type="java.io.IOException"/>
  20068. <doc>
  20069. <![CDATA[Closes this object.
  20070. @throws IOException if an I/O error occurs]]>
  20071. </doc>
  20072. </method>
  20073. <doc>
  20074. <![CDATA[Stringifier interface offers two methods to convert an object
  20075. to a string representation and restore the object given its
  20076. string representation.
  20077. @param <T> the class of the objects to stringify]]>
  20078. </doc>
  20079. </interface>
  20080. <!-- end interface org.apache.hadoop.io.Stringifier -->
  20081. <!-- start class org.apache.hadoop.io.Text -->
  20082. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  20083. abstract="false"
  20084. static="false" final="false" visibility="public"
  20085. deprecated="not deprecated">
  20086. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20087. <constructor name="Text"
  20088. static="false" final="false" visibility="public"
  20089. deprecated="not deprecated">
  20090. </constructor>
  20091. <constructor name="Text" type="java.lang.String"
  20092. static="false" final="false" visibility="public"
  20093. deprecated="not deprecated">
  20094. <doc>
  20095. <![CDATA[Construct from a string.]]>
  20096. </doc>
  20097. </constructor>
  20098. <constructor name="Text" type="org.apache.hadoop.io.Text"
  20099. static="false" final="false" visibility="public"
  20100. deprecated="not deprecated">
  20101. <doc>
  20102. <![CDATA[Construct from another text.]]>
  20103. </doc>
  20104. </constructor>
  20105. <constructor name="Text" type="byte[]"
  20106. static="false" final="false" visibility="public"
  20107. deprecated="not deprecated">
  20108. <doc>
  20109. <![CDATA[Construct from a byte array.]]>
  20110. </doc>
  20111. </constructor>
  20112. <method name="copyBytes" return="byte[]"
  20113. abstract="false" native="false" synchronized="false"
  20114. static="false" final="false" visibility="public"
  20115. deprecated="not deprecated">
  20116. <doc>
  20117. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  20118. See {@link #getBytes()} for faster access to the underlying array.]]>
  20119. </doc>
  20120. </method>
  20121. <method name="getBytes" return="byte[]"
  20122. abstract="false" native="false" synchronized="false"
  20123. static="false" final="false" visibility="public"
  20124. deprecated="not deprecated">
  20125. <doc>
  20126. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  20127. valid. Please use {@link #copyBytes()} if you
  20128. need the returned array to be precisely the length of the data.]]>
  20129. </doc>
  20130. </method>
  20131. <method name="getLength" return="int"
  20132. abstract="false" native="false" synchronized="false"
  20133. static="false" final="false" visibility="public"
  20134. deprecated="not deprecated">
  20135. <doc>
  20136. <![CDATA[Returns the number of bytes in the byte array]]>
  20137. </doc>
  20138. </method>
  20139. <method name="charAt" return="int"
  20140. abstract="false" native="false" synchronized="false"
  20141. static="false" final="false" visibility="public"
  20142. deprecated="not deprecated">
  20143. <param name="position" type="int"/>
  20144. <doc>
  20145. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  20146. for the character at <code>position</code>. Note that this
  20147. method avoids using the converter or doing String instantiation
  20148. @return the Unicode scalar value at position or -1
  20149. if the position is invalid or points to a
  20150. trailing byte]]>
  20151. </doc>
  20152. </method>
  20153. <method name="find" return="int"
  20154. abstract="false" native="false" synchronized="false"
  20155. static="false" final="false" visibility="public"
  20156. deprecated="not deprecated">
  20157. <param name="what" type="java.lang.String"/>
  20158. </method>
  20159. <method name="find" return="int"
  20160. abstract="false" native="false" synchronized="false"
  20161. static="false" final="false" visibility="public"
  20162. deprecated="not deprecated">
  20163. <param name="what" type="java.lang.String"/>
  20164. <param name="start" type="int"/>
  20165. <doc>
  20166. <![CDATA[Finds any occurrence of <code>what</code> in the backing
  20167. buffer, starting as position <code>start</code>. The starting
  20168. position is measured in bytes and the return value is in
  20169. terms of byte position in the buffer. The backing buffer is
  20170. not converted to a string for this operation.
  20171. @return byte position of the first occurrence of the search
  20172. string in the UTF-8 buffer or -1 if not found]]>
  20173. </doc>
  20174. </method>
  20175. <method name="set"
  20176. abstract="false" native="false" synchronized="false"
  20177. static="false" final="false" visibility="public"
  20178. deprecated="not deprecated">
  20179. <param name="string" type="java.lang.String"/>
  20180. <doc>
  20181. <![CDATA[Set to contain the contents of a string.]]>
  20182. </doc>
  20183. </method>
  20184. <method name="set"
  20185. abstract="false" native="false" synchronized="false"
  20186. static="false" final="false" visibility="public"
  20187. deprecated="not deprecated">
  20188. <param name="utf8" type="byte[]"/>
  20189. <doc>
  20190. <![CDATA[Set to a utf8 byte array]]>
  20191. </doc>
  20192. </method>
  20193. <method name="set"
  20194. abstract="false" native="false" synchronized="false"
  20195. static="false" final="false" visibility="public"
  20196. deprecated="not deprecated">
  20197. <param name="other" type="org.apache.hadoop.io.Text"/>
  20198. <doc>
  20199. <![CDATA[copy a text.]]>
  20200. </doc>
  20201. </method>
  20202. <method name="set"
  20203. abstract="false" native="false" synchronized="false"
  20204. static="false" final="false" visibility="public"
  20205. deprecated="not deprecated">
  20206. <param name="utf8" type="byte[]"/>
  20207. <param name="start" type="int"/>
  20208. <param name="len" type="int"/>
  20209. <doc>
  20210. <![CDATA[Set the Text to range of bytes
  20211. @param utf8 the data to copy from
  20212. @param start the first position of the new string
  20213. @param len the number of bytes of the new string]]>
  20214. </doc>
  20215. </method>
  20216. <method name="append"
  20217. abstract="false" native="false" synchronized="false"
  20218. static="false" final="false" visibility="public"
  20219. deprecated="not deprecated">
  20220. <param name="utf8" type="byte[]"/>
  20221. <param name="start" type="int"/>
  20222. <param name="len" type="int"/>
  20223. <doc>
  20224. <![CDATA[Append a range of bytes to the end of the given text
  20225. @param utf8 the data to copy from
  20226. @param start the first position to append from utf8
  20227. @param len the number of bytes to append]]>
  20228. </doc>
  20229. </method>
  20230. <method name="clear"
  20231. abstract="false" native="false" synchronized="false"
  20232. static="false" final="false" visibility="public"
  20233. deprecated="not deprecated">
  20234. <doc>
  20235. <![CDATA[Clear the string to empty.
  20236. <em>Note</em>: For performance reasons, this call does not clear the
  20237. underlying byte array that is retrievable via {@link #getBytes()}.
  20238. In order to free the byte-array memory, call {@link #set(byte[])}
  20239. with an empty byte array (For example, <code>new byte[0]</code>).]]>
  20240. </doc>
  20241. </method>
  20242. <method name="toString" return="java.lang.String"
  20243. abstract="false" native="false" synchronized="false"
  20244. static="false" final="false" visibility="public"
  20245. deprecated="not deprecated">
  20246. <doc>
  20247. <![CDATA[Convert text back to string
  20248. @see java.lang.Object#toString()]]>
  20249. </doc>
  20250. </method>
  20251. <method name="readFields"
  20252. abstract="false" native="false" synchronized="false"
  20253. static="false" final="false" visibility="public"
  20254. deprecated="not deprecated">
  20255. <param name="in" type="java.io.DataInput"/>
  20256. <exception name="IOException" type="java.io.IOException"/>
  20257. <doc>
  20258. <![CDATA[deserialize]]>
  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. <param name="maxLength" type="int"/>
  20267. <exception name="IOException" type="java.io.IOException"/>
  20268. </method>
  20269. <method name="skip"
  20270. abstract="false" native="false" synchronized="false"
  20271. static="true" final="false" visibility="public"
  20272. deprecated="not deprecated">
  20273. <param name="in" type="java.io.DataInput"/>
  20274. <exception name="IOException" type="java.io.IOException"/>
  20275. <doc>
  20276. <![CDATA[Skips over one Text in the input.]]>
  20277. </doc>
  20278. </method>
  20279. <method name="readWithKnownLength"
  20280. abstract="false" native="false" synchronized="false"
  20281. static="false" final="false" visibility="public"
  20282. deprecated="not deprecated">
  20283. <param name="in" type="java.io.DataInput"/>
  20284. <param name="len" type="int"/>
  20285. <exception name="IOException" type="java.io.IOException"/>
  20286. <doc>
  20287. <![CDATA[Read a Text object whose length is already known.
  20288. This allows creating Text from a stream which uses a different serialization
  20289. format.]]>
  20290. </doc>
  20291. </method>
  20292. <method name="write"
  20293. abstract="false" native="false" synchronized="false"
  20294. static="false" final="false" visibility="public"
  20295. deprecated="not deprecated">
  20296. <param name="out" type="java.io.DataOutput"/>
  20297. <exception name="IOException" type="java.io.IOException"/>
  20298. <doc>
  20299. <![CDATA[serialize
  20300. write this object to out
  20301. length uses zero-compressed encoding
  20302. @see Writable#write(DataOutput)]]>
  20303. </doc>
  20304. </method>
  20305. <method name="write"
  20306. abstract="false" native="false" synchronized="false"
  20307. static="false" final="false" visibility="public"
  20308. deprecated="not deprecated">
  20309. <param name="out" type="java.io.DataOutput"/>
  20310. <param name="maxLength" type="int"/>
  20311. <exception name="IOException" type="java.io.IOException"/>
  20312. </method>
  20313. <method name="equals" return="boolean"
  20314. abstract="false" native="false" synchronized="false"
  20315. static="false" final="false" visibility="public"
  20316. deprecated="not deprecated">
  20317. <param name="o" type="java.lang.Object"/>
  20318. <doc>
  20319. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  20320. </doc>
  20321. </method>
  20322. <method name="hashCode" return="int"
  20323. abstract="false" native="false" synchronized="false"
  20324. static="false" final="false" visibility="public"
  20325. deprecated="not deprecated">
  20326. </method>
  20327. <method name="decode" return="java.lang.String"
  20328. abstract="false" native="false" synchronized="false"
  20329. static="true" final="false" visibility="public"
  20330. deprecated="not deprecated">
  20331. <param name="utf8" type="byte[]"/>
  20332. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20333. <doc>
  20334. <![CDATA[Converts the provided byte array to a String using the
  20335. UTF-8 encoding. If the input is malformed,
  20336. replace by a default value.]]>
  20337. </doc>
  20338. </method>
  20339. <method name="decode" return="java.lang.String"
  20340. abstract="false" native="false" synchronized="false"
  20341. static="true" final="false" visibility="public"
  20342. deprecated="not deprecated">
  20343. <param name="utf8" type="byte[]"/>
  20344. <param name="start" type="int"/>
  20345. <param name="length" type="int"/>
  20346. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20347. </method>
  20348. <method name="decode" return="java.lang.String"
  20349. abstract="false" native="false" synchronized="false"
  20350. static="true" final="false" visibility="public"
  20351. deprecated="not deprecated">
  20352. <param name="utf8" type="byte[]"/>
  20353. <param name="start" type="int"/>
  20354. <param name="length" type="int"/>
  20355. <param name="replace" type="boolean"/>
  20356. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20357. <doc>
  20358. <![CDATA[Converts the provided byte array to a String using the
  20359. UTF-8 encoding. If <code>replace</code> is true, then
  20360. malformed input is replaced with the
  20361. substitution character, which is U+FFFD. Otherwise the
  20362. method throws a MalformedInputException.]]>
  20363. </doc>
  20364. </method>
  20365. <method name="encode" return="java.nio.ByteBuffer"
  20366. abstract="false" native="false" synchronized="false"
  20367. static="true" final="false" visibility="public"
  20368. deprecated="not deprecated">
  20369. <param name="string" type="java.lang.String"/>
  20370. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20371. <doc>
  20372. <![CDATA[Converts the provided String to bytes using the
  20373. UTF-8 encoding. If the input is malformed,
  20374. invalid chars are replaced by a default value.
  20375. @return ByteBuffer: bytes stores at ByteBuffer.array()
  20376. and length is ByteBuffer.limit()]]>
  20377. </doc>
  20378. </method>
  20379. <method name="encode" return="java.nio.ByteBuffer"
  20380. abstract="false" native="false" synchronized="false"
  20381. static="true" final="false" visibility="public"
  20382. deprecated="not deprecated">
  20383. <param name="string" type="java.lang.String"/>
  20384. <param name="replace" type="boolean"/>
  20385. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20386. <doc>
  20387. <![CDATA[Converts the provided String to bytes using the
  20388. UTF-8 encoding. If <code>replace</code> is true, then
  20389. malformed input is replaced with the
  20390. substitution character, which is U+FFFD. Otherwise the
  20391. method throws a MalformedInputException.
  20392. @return ByteBuffer: bytes stores at ByteBuffer.array()
  20393. and length is ByteBuffer.limit()]]>
  20394. </doc>
  20395. </method>
  20396. <method name="readString" return="java.lang.String"
  20397. abstract="false" native="false" synchronized="false"
  20398. static="true" final="false" visibility="public"
  20399. deprecated="not deprecated">
  20400. <param name="in" type="java.io.DataInput"/>
  20401. <exception name="IOException" type="java.io.IOException"/>
  20402. <doc>
  20403. <![CDATA[Read a UTF8 encoded string from in]]>
  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. <param name="maxLength" type="int"/>
  20412. <exception name="IOException" type="java.io.IOException"/>
  20413. <doc>
  20414. <![CDATA[Read a UTF8 encoded string with a maximum size]]>
  20415. </doc>
  20416. </method>
  20417. <method name="writeString" return="int"
  20418. abstract="false" native="false" synchronized="false"
  20419. static="true" final="false" visibility="public"
  20420. deprecated="not deprecated">
  20421. <param name="out" type="java.io.DataOutput"/>
  20422. <param name="s" type="java.lang.String"/>
  20423. <exception name="IOException" type="java.io.IOException"/>
  20424. <doc>
  20425. <![CDATA[Write a UTF8 encoded string to out]]>
  20426. </doc>
  20427. </method>
  20428. <method name="writeString" return="int"
  20429. abstract="false" native="false" synchronized="false"
  20430. static="true" final="false" visibility="public"
  20431. deprecated="not deprecated">
  20432. <param name="out" type="java.io.DataOutput"/>
  20433. <param name="s" type="java.lang.String"/>
  20434. <param name="maxLength" type="int"/>
  20435. <exception name="IOException" type="java.io.IOException"/>
  20436. <doc>
  20437. <![CDATA[Write a UTF8 encoded string with a maximum size to out]]>
  20438. </doc>
  20439. </method>
  20440. <method name="validateUTF8"
  20441. abstract="false" native="false" synchronized="false"
  20442. static="true" final="false" visibility="public"
  20443. deprecated="not deprecated">
  20444. <param name="utf8" type="byte[]"/>
  20445. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  20446. <doc>
  20447. <![CDATA[Check if a byte array contains valid utf-8
  20448. @param utf8 byte array
  20449. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  20450. </doc>
  20451. </method>
  20452. <method name="validateUTF8"
  20453. abstract="false" native="false" synchronized="false"
  20454. static="true" final="false" visibility="public"
  20455. deprecated="not deprecated">
  20456. <param name="utf8" type="byte[]"/>
  20457. <param name="start" type="int"/>
  20458. <param name="len" type="int"/>
  20459. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  20460. <doc>
  20461. <![CDATA[Check to see if a byte array is valid utf-8
  20462. @param utf8 the array of bytes
  20463. @param start the offset of the first byte in the array
  20464. @param len the length of the byte sequence
  20465. @throws MalformedInputException if the byte array contains invalid bytes]]>
  20466. </doc>
  20467. </method>
  20468. <method name="bytesToCodePoint" return="int"
  20469. abstract="false" native="false" synchronized="false"
  20470. static="true" final="false" visibility="public"
  20471. deprecated="not deprecated">
  20472. <param name="bytes" type="java.nio.ByteBuffer"/>
  20473. <doc>
  20474. <![CDATA[Returns the next code point at the current position in
  20475. the buffer. The buffer's position will be incremented.
  20476. Any mark set on this buffer will be changed by this method!]]>
  20477. </doc>
  20478. </method>
  20479. <method name="utf8Length" return="int"
  20480. abstract="false" native="false" synchronized="false"
  20481. static="true" final="false" visibility="public"
  20482. deprecated="not deprecated">
  20483. <param name="string" type="java.lang.String"/>
  20484. <doc>
  20485. <![CDATA[For the given string, returns the number of UTF-8 bytes
  20486. required to encode the string.
  20487. @param string text to encode
  20488. @return number of UTF-8 bytes required to encode]]>
  20489. </doc>
  20490. </method>
  20491. <field name="DEFAULT_MAX_LEN" type="int"
  20492. transient="false" volatile="false"
  20493. static="true" final="true" visibility="public"
  20494. deprecated="not deprecated">
  20495. </field>
  20496. <doc>
  20497. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  20498. to serialize, deserialize, and compare texts at byte level. The type of
  20499. length is integer and is serialized using zero-compressed format. <p>In
  20500. addition, it provides methods for string traversal without converting the
  20501. byte array to a string. <p>Also includes utilities for
  20502. serializing/deserialing a string, coding/decoding a string, checking if a
  20503. byte array contains valid UTF8 code, calculating the length of an encoded
  20504. string.]]>
  20505. </doc>
  20506. </class>
  20507. <!-- end class org.apache.hadoop.io.Text -->
  20508. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  20509. <class name="TwoDArrayWritable" extends="java.lang.Object"
  20510. abstract="false"
  20511. static="false" final="false" visibility="public"
  20512. deprecated="not deprecated">
  20513. <implements name="org.apache.hadoop.io.Writable"/>
  20514. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  20515. static="false" final="false" visibility="public"
  20516. deprecated="not deprecated">
  20517. </constructor>
  20518. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  20519. static="false" final="false" visibility="public"
  20520. deprecated="not deprecated">
  20521. </constructor>
  20522. <method name="toArray" return="java.lang.Object"
  20523. abstract="false" native="false" synchronized="false"
  20524. static="false" final="false" visibility="public"
  20525. deprecated="not deprecated">
  20526. </method>
  20527. <method name="set"
  20528. abstract="false" native="false" synchronized="false"
  20529. static="false" final="false" visibility="public"
  20530. deprecated="not deprecated">
  20531. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  20532. </method>
  20533. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  20534. abstract="false" native="false" synchronized="false"
  20535. static="false" final="false" visibility="public"
  20536. deprecated="not deprecated">
  20537. </method>
  20538. <method name="readFields"
  20539. abstract="false" native="false" synchronized="false"
  20540. static="false" final="false" visibility="public"
  20541. deprecated="not deprecated">
  20542. <param name="in" type="java.io.DataInput"/>
  20543. <exception name="IOException" type="java.io.IOException"/>
  20544. </method>
  20545. <method name="write"
  20546. abstract="false" native="false" synchronized="false"
  20547. static="false" final="false" visibility="public"
  20548. deprecated="not deprecated">
  20549. <param name="out" type="java.io.DataOutput"/>
  20550. <exception name="IOException" type="java.io.IOException"/>
  20551. </method>
  20552. <doc>
  20553. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  20554. </doc>
  20555. </class>
  20556. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  20557. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  20558. <class name="VersionedWritable" extends="java.lang.Object"
  20559. abstract="true"
  20560. static="false" final="false" visibility="public"
  20561. deprecated="not deprecated">
  20562. <implements name="org.apache.hadoop.io.Writable"/>
  20563. <constructor name="VersionedWritable"
  20564. static="false" final="false" visibility="public"
  20565. deprecated="not deprecated">
  20566. </constructor>
  20567. <method name="getVersion" return="byte"
  20568. abstract="true" native="false" synchronized="false"
  20569. static="false" final="false" visibility="public"
  20570. deprecated="not deprecated">
  20571. <doc>
  20572. <![CDATA[Return the version number of the current implementation.]]>
  20573. </doc>
  20574. </method>
  20575. <method name="write"
  20576. abstract="false" native="false" synchronized="false"
  20577. static="false" final="false" visibility="public"
  20578. deprecated="not deprecated">
  20579. <param name="out" type="java.io.DataOutput"/>
  20580. <exception name="IOException" type="java.io.IOException"/>
  20581. </method>
  20582. <method name="readFields"
  20583. abstract="false" native="false" synchronized="false"
  20584. static="false" final="false" visibility="public"
  20585. deprecated="not deprecated">
  20586. <param name="in" type="java.io.DataInput"/>
  20587. <exception name="IOException" type="java.io.IOException"/>
  20588. </method>
  20589. <doc>
  20590. <![CDATA[A base class for Writables that provides version checking.
  20591. <p>This is useful when a class may evolve, so that instances written by the
  20592. old version of the class may still be processed by the new version. To
  20593. handle this situation, {@link #readFields(DataInput)}
  20594. implementations should catch {@link VersionMismatchException}.]]>
  20595. </doc>
  20596. </class>
  20597. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  20598. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  20599. <class name="VersionMismatchException" extends="java.io.IOException"
  20600. abstract="false"
  20601. static="false" final="false" visibility="public"
  20602. deprecated="not deprecated">
  20603. <constructor name="VersionMismatchException" type="byte, byte"
  20604. static="false" final="false" visibility="public"
  20605. deprecated="not deprecated">
  20606. </constructor>
  20607. <method name="toString" return="java.lang.String"
  20608. abstract="false" native="false" synchronized="false"
  20609. static="false" final="false" visibility="public"
  20610. deprecated="not deprecated">
  20611. <doc>
  20612. <![CDATA[Returns a string representation of this object.]]>
  20613. </doc>
  20614. </method>
  20615. <doc>
  20616. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  20617. version of an object being read does not match the current implementation
  20618. version as returned by {@link VersionedWritable#getVersion()}.]]>
  20619. </doc>
  20620. </class>
  20621. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  20622. <!-- start class org.apache.hadoop.io.VIntWritable -->
  20623. <class name="VIntWritable" extends="java.lang.Object"
  20624. abstract="false"
  20625. static="false" final="false" visibility="public"
  20626. deprecated="not deprecated">
  20627. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20628. <constructor name="VIntWritable"
  20629. static="false" final="false" visibility="public"
  20630. deprecated="not deprecated">
  20631. </constructor>
  20632. <constructor name="VIntWritable" type="int"
  20633. static="false" final="false" visibility="public"
  20634. deprecated="not deprecated">
  20635. </constructor>
  20636. <method name="set"
  20637. abstract="false" native="false" synchronized="false"
  20638. static="false" final="false" visibility="public"
  20639. deprecated="not deprecated">
  20640. <param name="value" type="int"/>
  20641. <doc>
  20642. <![CDATA[Set the value of this VIntWritable.]]>
  20643. </doc>
  20644. </method>
  20645. <method name="get" return="int"
  20646. abstract="false" native="false" synchronized="false"
  20647. static="false" final="false" visibility="public"
  20648. deprecated="not deprecated">
  20649. <doc>
  20650. <![CDATA[Return the value of this VIntWritable.]]>
  20651. </doc>
  20652. </method>
  20653. <method name="readFields"
  20654. abstract="false" native="false" synchronized="false"
  20655. static="false" final="false" visibility="public"
  20656. deprecated="not deprecated">
  20657. <param name="in" type="java.io.DataInput"/>
  20658. <exception name="IOException" type="java.io.IOException"/>
  20659. </method>
  20660. <method name="write"
  20661. abstract="false" native="false" synchronized="false"
  20662. static="false" final="false" visibility="public"
  20663. deprecated="not deprecated">
  20664. <param name="out" type="java.io.DataOutput"/>
  20665. <exception name="IOException" type="java.io.IOException"/>
  20666. </method>
  20667. <method name="equals" return="boolean"
  20668. abstract="false" native="false" synchronized="false"
  20669. static="false" final="false" visibility="public"
  20670. deprecated="not deprecated">
  20671. <param name="o" type="java.lang.Object"/>
  20672. <doc>
  20673. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  20674. </doc>
  20675. </method>
  20676. <method name="hashCode" return="int"
  20677. abstract="false" native="false" synchronized="false"
  20678. static="false" final="false" visibility="public"
  20679. deprecated="not deprecated">
  20680. </method>
  20681. <method name="compareTo" return="int"
  20682. abstract="false" native="false" synchronized="false"
  20683. static="false" final="false" visibility="public"
  20684. deprecated="not deprecated">
  20685. <param name="o" type="org.apache.hadoop.io.VIntWritable"/>
  20686. <doc>
  20687. <![CDATA[Compares two VIntWritables.]]>
  20688. </doc>
  20689. </method>
  20690. <method name="toString" return="java.lang.String"
  20691. abstract="false" native="false" synchronized="false"
  20692. static="false" final="false" visibility="public"
  20693. deprecated="not deprecated">
  20694. </method>
  20695. <doc>
  20696. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  20697. Such values take between one and five bytes. Smaller values take fewer bytes.
  20698. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  20699. </doc>
  20700. </class>
  20701. <!-- end class org.apache.hadoop.io.VIntWritable -->
  20702. <!-- start class org.apache.hadoop.io.VLongWritable -->
  20703. <class name="VLongWritable" extends="java.lang.Object"
  20704. abstract="false"
  20705. static="false" final="false" visibility="public"
  20706. deprecated="not deprecated">
  20707. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20708. <constructor name="VLongWritable"
  20709. static="false" final="false" visibility="public"
  20710. deprecated="not deprecated">
  20711. </constructor>
  20712. <constructor name="VLongWritable" type="long"
  20713. static="false" final="false" visibility="public"
  20714. deprecated="not deprecated">
  20715. </constructor>
  20716. <method name="set"
  20717. abstract="false" native="false" synchronized="false"
  20718. static="false" final="false" visibility="public"
  20719. deprecated="not deprecated">
  20720. <param name="value" type="long"/>
  20721. <doc>
  20722. <![CDATA[Set the value of this LongWritable.]]>
  20723. </doc>
  20724. </method>
  20725. <method name="get" return="long"
  20726. abstract="false" native="false" synchronized="false"
  20727. static="false" final="false" visibility="public"
  20728. deprecated="not deprecated">
  20729. <doc>
  20730. <![CDATA[Return the value of this LongWritable.]]>
  20731. </doc>
  20732. </method>
  20733. <method name="readFields"
  20734. abstract="false" native="false" synchronized="false"
  20735. static="false" final="false" visibility="public"
  20736. deprecated="not deprecated">
  20737. <param name="in" type="java.io.DataInput"/>
  20738. <exception name="IOException" type="java.io.IOException"/>
  20739. </method>
  20740. <method name="write"
  20741. abstract="false" native="false" synchronized="false"
  20742. static="false" final="false" visibility="public"
  20743. deprecated="not deprecated">
  20744. <param name="out" type="java.io.DataOutput"/>
  20745. <exception name="IOException" type="java.io.IOException"/>
  20746. </method>
  20747. <method name="equals" return="boolean"
  20748. abstract="false" native="false" synchronized="false"
  20749. static="false" final="false" visibility="public"
  20750. deprecated="not deprecated">
  20751. <param name="o" type="java.lang.Object"/>
  20752. <doc>
  20753. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  20754. </doc>
  20755. </method>
  20756. <method name="hashCode" return="int"
  20757. abstract="false" native="false" synchronized="false"
  20758. static="false" final="false" visibility="public"
  20759. deprecated="not deprecated">
  20760. </method>
  20761. <method name="compareTo" return="int"
  20762. abstract="false" native="false" synchronized="false"
  20763. static="false" final="false" visibility="public"
  20764. deprecated="not deprecated">
  20765. <param name="o" type="org.apache.hadoop.io.VLongWritable"/>
  20766. <doc>
  20767. <![CDATA[Compares two VLongWritables.]]>
  20768. </doc>
  20769. </method>
  20770. <method name="toString" return="java.lang.String"
  20771. abstract="false" native="false" synchronized="false"
  20772. static="false" final="false" visibility="public"
  20773. deprecated="not deprecated">
  20774. </method>
  20775. <doc>
  20776. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  20777. between one and five bytes. Smaller values take fewer bytes.
  20778. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  20779. </doc>
  20780. </class>
  20781. <!-- end class org.apache.hadoop.io.VLongWritable -->
  20782. <!-- start interface org.apache.hadoop.io.Writable -->
  20783. <interface name="Writable" abstract="true"
  20784. static="false" final="false" visibility="public"
  20785. deprecated="not deprecated">
  20786. <method name="write"
  20787. abstract="true" native="false" synchronized="false"
  20788. static="false" final="false" visibility="public"
  20789. deprecated="not deprecated">
  20790. <param name="out" type="java.io.DataOutput"/>
  20791. <exception name="IOException" type="java.io.IOException"/>
  20792. <doc>
  20793. <![CDATA[Serialize the fields of this object to <code>out</code>.
  20794. @param out <code>DataOuput</code> to serialize this object into.
  20795. @throws IOException]]>
  20796. </doc>
  20797. </method>
  20798. <method name="readFields"
  20799. abstract="true" native="false" synchronized="false"
  20800. static="false" final="false" visibility="public"
  20801. deprecated="not deprecated">
  20802. <param name="in" type="java.io.DataInput"/>
  20803. <exception name="IOException" type="java.io.IOException"/>
  20804. <doc>
  20805. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  20806. <p>For efficiency, implementations should attempt to re-use storage in the
  20807. existing object where possible.</p>
  20808. @param in <code>DataInput</code> to deseriablize this object from.
  20809. @throws IOException]]>
  20810. </doc>
  20811. </method>
  20812. <doc>
  20813. <![CDATA[A serializable object which implements a simple, efficient, serialization
  20814. protocol, based on {@link DataInput} and {@link DataOutput}.
  20815. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  20816. framework implements this interface.</p>
  20817. <p>Implementations typically implement a static <code>read(DataInput)</code>
  20818. method which constructs a new instance, calls {@link #readFields(DataInput)}
  20819. and returns the instance.</p>
  20820. <p>Example:</p>
  20821. <p><blockquote><pre>
  20822. public class MyWritable implements Writable {
  20823. // Some data
  20824. private int counter;
  20825. private long timestamp;
  20826. // Default constructor to allow (de)serialization
  20827. MyWritable() { }
  20828. public void write(DataOutput out) throws IOException {
  20829. out.writeInt(counter);
  20830. out.writeLong(timestamp);
  20831. }
  20832. public void readFields(DataInput in) throws IOException {
  20833. counter = in.readInt();
  20834. timestamp = in.readLong();
  20835. }
  20836. public static MyWritable read(DataInput in) throws IOException {
  20837. MyWritable w = new MyWritable();
  20838. w.readFields(in);
  20839. return w;
  20840. }
  20841. }
  20842. </pre></blockquote></p>]]>
  20843. </doc>
  20844. </interface>
  20845. <!-- end interface org.apache.hadoop.io.Writable -->
  20846. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  20847. <interface name="WritableComparable" abstract="true"
  20848. static="false" final="false" visibility="public"
  20849. deprecated="not deprecated">
  20850. <implements name="org.apache.hadoop.io.Writable"/>
  20851. <implements name="java.lang.Comparable"/>
  20852. <doc>
  20853. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  20854. <p><code>WritableComparable</code>s can be compared to each other, typically
  20855. via <code>Comparator</code>s. Any type which is to be used as a
  20856. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  20857. interface.</p>
  20858. <p>Note that <code>hashCode()</code> is frequently used in Hadoop to partition
  20859. keys. It's important that your implementation of hashCode() returns the same
  20860. result across different instances of the JVM. Note also that the default
  20861. <code>hashCode()</code> implementation in <code>Object</code> does <b>not</b>
  20862. satisfy this property.</p>
  20863. <p>Example:</p>
  20864. <p><blockquote><pre>
  20865. public class MyWritableComparable implements WritableComparable<MyWritableComparable> {
  20866. // Some data
  20867. private int counter;
  20868. private long timestamp;
  20869. public void write(DataOutput out) throws IOException {
  20870. out.writeInt(counter);
  20871. out.writeLong(timestamp);
  20872. }
  20873. public void readFields(DataInput in) throws IOException {
  20874. counter = in.readInt();
  20875. timestamp = in.readLong();
  20876. }
  20877. public int compareTo(MyWritableComparable o) {
  20878. int thisValue = this.value;
  20879. int thatValue = o.value;
  20880. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  20881. }
  20882. public int hashCode() {
  20883. final int prime = 31;
  20884. int result = 1;
  20885. result = prime * result + counter;
  20886. result = prime * result + (int) (timestamp ^ (timestamp &gt;&gt;&gt; 32));
  20887. return result
  20888. }
  20889. }
  20890. </pre></blockquote></p>]]>
  20891. </doc>
  20892. </interface>
  20893. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  20894. <!-- start class org.apache.hadoop.io.WritableComparator -->
  20895. <class name="WritableComparator" extends="java.lang.Object"
  20896. abstract="false"
  20897. static="false" final="false" visibility="public"
  20898. deprecated="not deprecated">
  20899. <implements name="org.apache.hadoop.io.RawComparator"/>
  20900. <implements name="org.apache.hadoop.conf.Configurable"/>
  20901. <constructor name="WritableComparator"
  20902. static="false" final="false" visibility="protected"
  20903. deprecated="not deprecated">
  20904. </constructor>
  20905. <constructor name="WritableComparator" type="java.lang.Class"
  20906. static="false" final="false" visibility="protected"
  20907. deprecated="not deprecated">
  20908. <doc>
  20909. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  20910. </doc>
  20911. </constructor>
  20912. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  20913. static="false" final="false" visibility="protected"
  20914. deprecated="not deprecated">
  20915. </constructor>
  20916. <constructor name="WritableComparator" type="java.lang.Class, org.apache.hadoop.conf.Configuration, boolean"
  20917. static="false" final="false" visibility="protected"
  20918. deprecated="not deprecated">
  20919. </constructor>
  20920. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  20921. abstract="false" native="false" synchronized="false"
  20922. static="true" final="false" visibility="public"
  20923. deprecated="not deprecated">
  20924. <param name="c" type="java.lang.Class"/>
  20925. <doc>
  20926. <![CDATA[For backwards compatibility.]]>
  20927. </doc>
  20928. </method>
  20929. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  20930. abstract="false" native="false" synchronized="false"
  20931. static="true" final="false" visibility="public"
  20932. deprecated="not deprecated">
  20933. <param name="c" type="java.lang.Class"/>
  20934. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20935. <doc>
  20936. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  20937. </doc>
  20938. </method>
  20939. <method name="setConf"
  20940. abstract="false" native="false" synchronized="false"
  20941. static="false" final="false" visibility="public"
  20942. deprecated="not deprecated">
  20943. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20944. </method>
  20945. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  20946. abstract="false" native="false" synchronized="false"
  20947. static="false" final="false" visibility="public"
  20948. deprecated="not deprecated">
  20949. </method>
  20950. <method name="define"
  20951. abstract="false" native="false" synchronized="false"
  20952. static="true" final="false" visibility="public"
  20953. deprecated="not deprecated">
  20954. <param name="c" type="java.lang.Class"/>
  20955. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  20956. <doc>
  20957. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  20958. implementation. Comparators registered with this method must be
  20959. thread-safe.]]>
  20960. </doc>
  20961. </method>
  20962. <method name="getKeyClass" return="java.lang.Class"
  20963. abstract="false" native="false" synchronized="false"
  20964. static="false" final="false" visibility="public"
  20965. deprecated="not deprecated">
  20966. <doc>
  20967. <![CDATA[Returns the WritableComparable implementation class.]]>
  20968. </doc>
  20969. </method>
  20970. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  20971. abstract="false" native="false" synchronized="false"
  20972. static="false" final="false" visibility="public"
  20973. deprecated="not deprecated">
  20974. <doc>
  20975. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  20976. </doc>
  20977. </method>
  20978. <method name="compare" return="int"
  20979. abstract="false" native="false" synchronized="false"
  20980. static="false" final="false" visibility="public"
  20981. deprecated="not deprecated">
  20982. <param name="b1" type="byte[]"/>
  20983. <param name="s1" type="int"/>
  20984. <param name="l1" type="int"/>
  20985. <param name="b2" type="byte[]"/>
  20986. <param name="s2" type="int"/>
  20987. <param name="l2" type="int"/>
  20988. <doc>
  20989. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  20990. <p>The default implementation reads the data into two {@link
  20991. WritableComparable}s (using {@link
  20992. Writable#readFields(DataInput)}, then calls {@link
  20993. #compare(WritableComparable,WritableComparable)}.]]>
  20994. </doc>
  20995. </method>
  20996. <method name="compare" return="int"
  20997. abstract="false" native="false" synchronized="false"
  20998. static="false" final="false" visibility="public"
  20999. deprecated="not deprecated">
  21000. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  21001. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  21002. <doc>
  21003. <![CDATA[Compare two WritableComparables.
  21004. <p> The default implementation uses the natural ordering, calling {@link
  21005. Comparable#compareTo(Object)}.]]>
  21006. </doc>
  21007. </method>
  21008. <method name="compare" return="int"
  21009. abstract="false" native="false" synchronized="false"
  21010. static="false" final="false" visibility="public"
  21011. deprecated="not deprecated">
  21012. <param name="a" type="java.lang.Object"/>
  21013. <param name="b" type="java.lang.Object"/>
  21014. </method>
  21015. <method name="compareBytes" return="int"
  21016. abstract="false" native="false" synchronized="false"
  21017. static="true" final="false" visibility="public"
  21018. deprecated="not deprecated">
  21019. <param name="b1" type="byte[]"/>
  21020. <param name="s1" type="int"/>
  21021. <param name="l1" type="int"/>
  21022. <param name="b2" type="byte[]"/>
  21023. <param name="s2" type="int"/>
  21024. <param name="l2" type="int"/>
  21025. <doc>
  21026. <![CDATA[Lexicographic order of binary data.]]>
  21027. </doc>
  21028. </method>
  21029. <method name="hashBytes" return="int"
  21030. abstract="false" native="false" synchronized="false"
  21031. static="true" final="false" visibility="public"
  21032. deprecated="not deprecated">
  21033. <param name="bytes" type="byte[]"/>
  21034. <param name="offset" type="int"/>
  21035. <param name="length" type="int"/>
  21036. <doc>
  21037. <![CDATA[Compute hash for binary data.]]>
  21038. </doc>
  21039. </method>
  21040. <method name="hashBytes" return="int"
  21041. abstract="false" native="false" synchronized="false"
  21042. static="true" final="false" visibility="public"
  21043. deprecated="not deprecated">
  21044. <param name="bytes" type="byte[]"/>
  21045. <param name="length" type="int"/>
  21046. <doc>
  21047. <![CDATA[Compute hash for binary data.]]>
  21048. </doc>
  21049. </method>
  21050. <method name="readUnsignedShort" 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="start" type="int"/>
  21056. <doc>
  21057. <![CDATA[Parse an unsigned short from a byte array.]]>
  21058. </doc>
  21059. </method>
  21060. <method name="readInt" 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 integer from a byte array.]]>
  21068. </doc>
  21069. </method>
  21070. <method name="readFloat" return="float"
  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 a float from a byte array.]]>
  21078. </doc>
  21079. </method>
  21080. <method name="readLong" return="long"
  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 long from a byte array.]]>
  21088. </doc>
  21089. </method>
  21090. <method name="readDouble" return="double"
  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 double from a byte array.]]>
  21098. </doc>
  21099. </method>
  21100. <method name="readVLong" return="long"
  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. <exception name="IOException" type="java.io.IOException"/>
  21107. <doc>
  21108. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  21109. @param bytes byte array with decode long
  21110. @param start starting index
  21111. @throws java.io.IOException
  21112. @return deserialized long]]>
  21113. </doc>
  21114. </method>
  21115. <method name="readVInt" return="int"
  21116. abstract="false" native="false" synchronized="false"
  21117. static="true" final="false" visibility="public"
  21118. deprecated="not deprecated">
  21119. <param name="bytes" type="byte[]"/>
  21120. <param name="start" type="int"/>
  21121. <exception name="IOException" type="java.io.IOException"/>
  21122. <doc>
  21123. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  21124. @param bytes byte array with the encoded integer
  21125. @param start start index
  21126. @throws java.io.IOException
  21127. @return deserialized integer]]>
  21128. </doc>
  21129. </method>
  21130. <doc>
  21131. <![CDATA[A Comparator for {@link WritableComparable}s.
  21132. <p>This base implementation uses the natural ordering. To define alternate
  21133. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  21134. <p>One may optimize compare-intensive operations by overriding
  21135. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  21136. provided to assist in optimized implementations of this method.]]>
  21137. </doc>
  21138. </class>
  21139. <!-- end class org.apache.hadoop.io.WritableComparator -->
  21140. <!-- start class org.apache.hadoop.io.WritableFactories -->
  21141. <class name="WritableFactories" extends="java.lang.Object"
  21142. abstract="false"
  21143. static="false" final="false" visibility="public"
  21144. deprecated="not deprecated">
  21145. <method name="setFactory"
  21146. abstract="false" native="false" synchronized="false"
  21147. static="true" final="false" visibility="public"
  21148. deprecated="not deprecated">
  21149. <param name="c" type="java.lang.Class"/>
  21150. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  21151. <doc>
  21152. <![CDATA[Define a factory for a class.]]>
  21153. </doc>
  21154. </method>
  21155. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  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. <doc>
  21161. <![CDATA[Define a factory for a class.]]>
  21162. </doc>
  21163. </method>
  21164. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  21165. abstract="false" native="false" synchronized="false"
  21166. static="true" final="false" visibility="public"
  21167. deprecated="not deprecated">
  21168. <param name="c" type="java.lang.Class"/>
  21169. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21170. <doc>
  21171. <![CDATA[Create a new instance of a class with a defined factory.]]>
  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. <doc>
  21180. <![CDATA[Create a new instance of a class with a defined factory.]]>
  21181. </doc>
  21182. </method>
  21183. <doc>
  21184. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  21185. ObjectWritable} to be able to construct instances of non-public classes.]]>
  21186. </doc>
  21187. </class>
  21188. <!-- end class org.apache.hadoop.io.WritableFactories -->
  21189. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  21190. <interface name="WritableFactory" abstract="true"
  21191. static="false" final="false" visibility="public"
  21192. deprecated="not deprecated">
  21193. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  21194. abstract="true" native="false" synchronized="false"
  21195. static="false" final="false" visibility="public"
  21196. deprecated="not deprecated">
  21197. <doc>
  21198. <![CDATA[Return a new instance.]]>
  21199. </doc>
  21200. </method>
  21201. <doc>
  21202. <![CDATA[A factory for a class of Writable.
  21203. @see WritableFactories]]>
  21204. </doc>
  21205. </interface>
  21206. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  21207. <!-- start class org.apache.hadoop.io.WritableUtils -->
  21208. <class name="WritableUtils" extends="java.lang.Object"
  21209. abstract="false"
  21210. static="false" final="true" visibility="public"
  21211. deprecated="not deprecated">
  21212. <constructor name="WritableUtils"
  21213. static="false" final="false" visibility="public"
  21214. deprecated="not deprecated">
  21215. </constructor>
  21216. <method name="readCompressedByteArray" return="byte[]"
  21217. abstract="false" native="false" synchronized="false"
  21218. static="true" final="false" visibility="public"
  21219. deprecated="not deprecated">
  21220. <param name="in" type="java.io.DataInput"/>
  21221. <exception name="IOException" type="java.io.IOException"/>
  21222. </method>
  21223. <method name="skipCompressedByteArray"
  21224. abstract="false" native="false" synchronized="false"
  21225. static="true" final="false" visibility="public"
  21226. deprecated="not deprecated">
  21227. <param name="in" type="java.io.DataInput"/>
  21228. <exception name="IOException" type="java.io.IOException"/>
  21229. </method>
  21230. <method name="writeCompressedByteArray" return="int"
  21231. abstract="false" native="false" synchronized="false"
  21232. static="true" final="false" visibility="public"
  21233. deprecated="not deprecated">
  21234. <param name="out" type="java.io.DataOutput"/>
  21235. <param name="bytes" type="byte[]"/>
  21236. <exception name="IOException" type="java.io.IOException"/>
  21237. </method>
  21238. <method name="readCompressedString" return="java.lang.String"
  21239. abstract="false" native="false" synchronized="false"
  21240. static="true" final="false" visibility="public"
  21241. deprecated="not deprecated">
  21242. <param name="in" type="java.io.DataInput"/>
  21243. <exception name="IOException" type="java.io.IOException"/>
  21244. </method>
  21245. <method name="writeCompressedString" return="int"
  21246. abstract="false" native="false" synchronized="false"
  21247. static="true" final="false" visibility="public"
  21248. deprecated="not deprecated">
  21249. <param name="out" type="java.io.DataOutput"/>
  21250. <param name="s" type="java.lang.String"/>
  21251. <exception name="IOException" type="java.io.IOException"/>
  21252. </method>
  21253. <method name="writeString"
  21254. abstract="false" native="false" synchronized="false"
  21255. static="true" final="false" visibility="public"
  21256. deprecated="not deprecated">
  21257. <param name="out" type="java.io.DataOutput"/>
  21258. <param name="s" type="java.lang.String"/>
  21259. <exception name="IOException" type="java.io.IOException"/>
  21260. </method>
  21261. <method name="readString" return="java.lang.String"
  21262. abstract="false" native="false" synchronized="false"
  21263. static="true" final="false" visibility="public"
  21264. deprecated="not deprecated">
  21265. <param name="in" type="java.io.DataInput"/>
  21266. <exception name="IOException" type="java.io.IOException"/>
  21267. </method>
  21268. <method name="writeStringArray"
  21269. abstract="false" native="false" synchronized="false"
  21270. static="true" final="false" visibility="public"
  21271. deprecated="not deprecated">
  21272. <param name="out" type="java.io.DataOutput"/>
  21273. <param name="s" type="java.lang.String[]"/>
  21274. <exception name="IOException" type="java.io.IOException"/>
  21275. </method>
  21276. <method name="writeCompressedStringArray"
  21277. abstract="false" native="false" synchronized="false"
  21278. static="true" final="false" visibility="public"
  21279. deprecated="not deprecated">
  21280. <param name="out" type="java.io.DataOutput"/>
  21281. <param name="s" type="java.lang.String[]"/>
  21282. <exception name="IOException" type="java.io.IOException"/>
  21283. </method>
  21284. <method name="readStringArray" return="java.lang.String[]"
  21285. abstract="false" native="false" synchronized="false"
  21286. static="true" final="false" visibility="public"
  21287. deprecated="not deprecated">
  21288. <param name="in" type="java.io.DataInput"/>
  21289. <exception name="IOException" type="java.io.IOException"/>
  21290. </method>
  21291. <method name="readCompressedStringArray" return="java.lang.String[]"
  21292. abstract="false" native="false" synchronized="false"
  21293. static="true" final="false" visibility="public"
  21294. deprecated="not deprecated">
  21295. <param name="in" type="java.io.DataInput"/>
  21296. <exception name="IOException" type="java.io.IOException"/>
  21297. </method>
  21298. <method name="displayByteArray"
  21299. abstract="false" native="false" synchronized="false"
  21300. static="true" final="false" visibility="public"
  21301. deprecated="not deprecated">
  21302. <param name="record" type="byte[]"/>
  21303. </method>
  21304. <method name="clone" return="T"
  21305. abstract="false" native="false" synchronized="false"
  21306. static="true" final="false" visibility="public"
  21307. deprecated="not deprecated">
  21308. <param name="orig" type="T"/>
  21309. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21310. <doc>
  21311. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  21312. @param orig The object to copy
  21313. @return The copied object]]>
  21314. </doc>
  21315. </method>
  21316. <method name="cloneInto"
  21317. abstract="false" native="false" synchronized="false"
  21318. static="true" final="false" visibility="public"
  21319. deprecated="use ReflectionUtils.cloneInto instead.">
  21320. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  21321. <param name="src" type="org.apache.hadoop.io.Writable"/>
  21322. <exception name="IOException" type="java.io.IOException"/>
  21323. <doc>
  21324. <![CDATA[Make a copy of the writable object using serialization to a buffer
  21325. @param dst the object to copy from
  21326. @param src the object to copy into, which is destroyed
  21327. @throws IOException
  21328. @deprecated use ReflectionUtils.cloneInto instead.]]>
  21329. </doc>
  21330. </method>
  21331. <method name="writeVInt"
  21332. abstract="false" native="false" synchronized="false"
  21333. static="true" final="false" visibility="public"
  21334. deprecated="not deprecated">
  21335. <param name="stream" type="java.io.DataOutput"/>
  21336. <param name="i" type="int"/>
  21337. <exception name="IOException" type="java.io.IOException"/>
  21338. <doc>
  21339. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  21340. For -112 <= i <= 127, only one byte is used with the actual value.
  21341. For other values of i, the first byte value indicates whether the
  21342. integer is positive or negative, and the number of bytes that follow.
  21343. If the first byte value v is between -113 and -116, the following integer
  21344. is positive, with number of bytes that follow are -(v+112).
  21345. If the first byte value v is between -121 and -124, the following integer
  21346. is negative, with number of bytes that follow are -(v+120). Bytes are
  21347. stored in the high-non-zero-byte-first order.
  21348. @param stream Binary output stream
  21349. @param i Integer to be serialized
  21350. @throws java.io.IOException]]>
  21351. </doc>
  21352. </method>
  21353. <method name="writeVLong"
  21354. abstract="false" native="false" synchronized="false"
  21355. static="true" final="false" visibility="public"
  21356. deprecated="not deprecated">
  21357. <param name="stream" type="java.io.DataOutput"/>
  21358. <param name="i" type="long"/>
  21359. <exception name="IOException" type="java.io.IOException"/>
  21360. <doc>
  21361. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  21362. For -112 <= i <= 127, only one byte is used with the actual value.
  21363. For other values of i, the first byte value indicates whether the
  21364. long is positive or negative, and the number of bytes that follow.
  21365. If the first byte value v is between -113 and -120, the following long
  21366. is positive, with number of bytes that follow are -(v+112).
  21367. If the first byte value v is between -121 and -128, the following long
  21368. is negative, with number of bytes that follow are -(v+120). Bytes are
  21369. stored in the high-non-zero-byte-first order.
  21370. @param stream Binary output stream
  21371. @param i Long to be serialized
  21372. @throws java.io.IOException]]>
  21373. </doc>
  21374. </method>
  21375. <method name="readVLong" return="long"
  21376. abstract="false" native="false" synchronized="false"
  21377. static="true" final="false" visibility="public"
  21378. deprecated="not deprecated">
  21379. <param name="stream" type="java.io.DataInput"/>
  21380. <exception name="IOException" type="java.io.IOException"/>
  21381. <doc>
  21382. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  21383. @param stream Binary input stream
  21384. @throws java.io.IOException
  21385. @return deserialized long from stream.]]>
  21386. </doc>
  21387. </method>
  21388. <method name="readVInt" return="int"
  21389. abstract="false" native="false" synchronized="false"
  21390. static="true" final="false" visibility="public"
  21391. deprecated="not deprecated">
  21392. <param name="stream" type="java.io.DataInput"/>
  21393. <exception name="IOException" type="java.io.IOException"/>
  21394. <doc>
  21395. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  21396. @param stream Binary input stream
  21397. @throws java.io.IOException
  21398. @return deserialized integer from stream.]]>
  21399. </doc>
  21400. </method>
  21401. <method name="readVIntInRange" return="int"
  21402. abstract="false" native="false" synchronized="false"
  21403. static="true" final="false" visibility="public"
  21404. deprecated="not deprecated">
  21405. <param name="stream" type="java.io.DataInput"/>
  21406. <param name="lower" type="int"/>
  21407. <param name="upper" type="int"/>
  21408. <exception name="IOException" type="java.io.IOException"/>
  21409. <doc>
  21410. <![CDATA[Reads an integer from the input stream and returns it.
  21411. This function validates that the integer is between [lower, upper],
  21412. inclusive.
  21413. @param stream Binary input stream
  21414. @throws java.io.IOException
  21415. @return deserialized integer from stream]]>
  21416. </doc>
  21417. </method>
  21418. <method name="isNegativeVInt" return="boolean"
  21419. abstract="false" native="false" synchronized="false"
  21420. static="true" final="false" visibility="public"
  21421. deprecated="not deprecated">
  21422. <param name="value" type="byte"/>
  21423. <doc>
  21424. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  21425. @param value the first byte
  21426. @return is the value negative]]>
  21427. </doc>
  21428. </method>
  21429. <method name="decodeVIntSize" return="int"
  21430. abstract="false" native="false" synchronized="false"
  21431. static="true" final="false" visibility="public"
  21432. deprecated="not deprecated">
  21433. <param name="value" type="byte"/>
  21434. <doc>
  21435. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  21436. @param value the first byte of the vint/vlong
  21437. @return the total number of bytes (1 to 9)]]>
  21438. </doc>
  21439. </method>
  21440. <method name="getVIntSize" return="int"
  21441. abstract="false" native="false" synchronized="false"
  21442. static="true" final="false" visibility="public"
  21443. deprecated="not deprecated">
  21444. <param name="i" type="long"/>
  21445. <doc>
  21446. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  21447. @return the encoded length]]>
  21448. </doc>
  21449. </method>
  21450. <method name="readEnum" return="T"
  21451. abstract="false" native="false" synchronized="false"
  21452. static="true" final="false" visibility="public"
  21453. deprecated="not deprecated">
  21454. <param name="in" type="java.io.DataInput"/>
  21455. <param name="enumType" type="java.lang.Class"/>
  21456. <exception name="IOException" type="java.io.IOException"/>
  21457. <doc>
  21458. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  21459. using String values.
  21460. @param <T> Enum type
  21461. @param in DataInput to read from
  21462. @param enumType Class type of Enum
  21463. @return Enum represented by String read from DataInput
  21464. @throws IOException]]>
  21465. </doc>
  21466. </method>
  21467. <method name="writeEnum"
  21468. abstract="false" native="false" synchronized="false"
  21469. static="true" final="false" visibility="public"
  21470. deprecated="not deprecated">
  21471. <param name="out" type="java.io.DataOutput"/>
  21472. <param name="enumVal" type="java.lang.Enum"/>
  21473. <exception name="IOException" type="java.io.IOException"/>
  21474. <doc>
  21475. <![CDATA[writes String value of enum to DataOutput.
  21476. @param out Dataoutput stream
  21477. @param enumVal enum value
  21478. @throws IOException]]>
  21479. </doc>
  21480. </method>
  21481. <method name="skipFully"
  21482. abstract="false" native="false" synchronized="false"
  21483. static="true" final="false" visibility="public"
  21484. deprecated="not deprecated">
  21485. <param name="in" type="java.io.DataInput"/>
  21486. <param name="len" type="int"/>
  21487. <exception name="IOException" type="java.io.IOException"/>
  21488. <doc>
  21489. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  21490. @param in input stream
  21491. @param len number of bytes to skip
  21492. @throws IOException when skipped less number of bytes]]>
  21493. </doc>
  21494. </method>
  21495. <method name="toByteArray" return="byte[]"
  21496. abstract="false" native="false" synchronized="false"
  21497. static="true" final="false" visibility="public"
  21498. deprecated="not deprecated">
  21499. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  21500. <doc>
  21501. <![CDATA[Convert writables to a byte array]]>
  21502. </doc>
  21503. </method>
  21504. <method name="readStringSafely" return="java.lang.String"
  21505. abstract="false" native="false" synchronized="false"
  21506. static="true" final="false" visibility="public"
  21507. deprecated="not deprecated">
  21508. <param name="in" type="java.io.DataInput"/>
  21509. <param name="maxLength" type="int"/>
  21510. <exception name="IOException" type="java.io.IOException"/>
  21511. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  21512. <doc>
  21513. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  21514. followed by the given number of bytes.
  21515. @param in the stream to read from
  21516. @param maxLength the largest acceptable length of the encoded string
  21517. @return the bytes as a string
  21518. @throws IOException if reading from the DataInput fails
  21519. @throws IllegalArgumentException if the encoded byte size for string
  21520. is negative or larger than maxSize. Only the vint is read.]]>
  21521. </doc>
  21522. </method>
  21523. </class>
  21524. <!-- end class org.apache.hadoop.io.WritableUtils -->
  21525. <doc>
  21526. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  21527. to databases, and to files.]]>
  21528. </doc>
  21529. </package>
  21530. <package name="org.apache.hadoop.io.compress">
  21531. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  21532. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  21533. abstract="false"
  21534. static="false" final="false" visibility="public"
  21535. deprecated="not deprecated">
  21536. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  21537. static="false" final="false" visibility="public"
  21538. deprecated="not deprecated">
  21539. <doc>
  21540. <![CDATA[Create a {@link BlockCompressorStream}.
  21541. @param out stream
  21542. @param compressor compressor to be used
  21543. @param bufferSize size of buffer
  21544. @param compressionOverhead maximum 'overhead' of the compression
  21545. algorithm with given bufferSize]]>
  21546. </doc>
  21547. </constructor>
  21548. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  21549. static="false" final="false" visibility="public"
  21550. deprecated="not deprecated">
  21551. <doc>
  21552. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  21553. compressor.
  21554. Use default of 512 as bufferSize and compressionOverhead of
  21555. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  21556. @param out stream
  21557. @param compressor compressor to be used]]>
  21558. </doc>
  21559. </constructor>
  21560. <method name="write"
  21561. abstract="false" native="false" synchronized="false"
  21562. static="false" final="false" visibility="public"
  21563. deprecated="not deprecated">
  21564. <param name="b" type="byte[]"/>
  21565. <param name="off" type="int"/>
  21566. <param name="len" type="int"/>
  21567. <exception name="IOException" type="java.io.IOException"/>
  21568. <doc>
  21569. <![CDATA[Write the data provided to the compression codec, compressing no more
  21570. than the buffer size less the compression overhead as specified during
  21571. construction for each block.
  21572. Each block contains the uncompressed length for the block, followed by
  21573. one or more length-prefixed blocks of compressed data.]]>
  21574. </doc>
  21575. </method>
  21576. <method name="finish"
  21577. abstract="false" native="false" synchronized="false"
  21578. static="false" final="false" visibility="public"
  21579. deprecated="not deprecated">
  21580. <exception name="IOException" type="java.io.IOException"/>
  21581. </method>
  21582. <method name="compress"
  21583. abstract="false" native="false" synchronized="false"
  21584. static="false" final="false" visibility="protected"
  21585. deprecated="not deprecated">
  21586. <exception name="IOException" type="java.io.IOException"/>
  21587. </method>
  21588. <doc>
  21589. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  21590. with 'block-based' based compression algorithms, as opposed to
  21591. 'stream-based' compression algorithms.
  21592. It should be noted that this wrapper does not guarantee that blocks will
  21593. be sized for the compressor. If the
  21594. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  21595. effect meaningful compression, it is responsible for it.]]>
  21596. </doc>
  21597. </class>
  21598. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  21599. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  21600. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  21601. abstract="false"
  21602. static="false" final="false" visibility="public"
  21603. deprecated="not deprecated">
  21604. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  21605. static="false" final="false" visibility="public"
  21606. deprecated="not deprecated">
  21607. <exception name="IOException" type="java.io.IOException"/>
  21608. <doc>
  21609. <![CDATA[Create a {@link BlockDecompressorStream}.
  21610. @param in input stream
  21611. @param decompressor decompressor to use
  21612. @param bufferSize size of buffer
  21613. @throws IOException]]>
  21614. </doc>
  21615. </constructor>
  21616. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  21617. static="false" final="false" visibility="public"
  21618. deprecated="not deprecated">
  21619. <exception name="IOException" type="java.io.IOException"/>
  21620. <doc>
  21621. <![CDATA[Create a {@link BlockDecompressorStream}.
  21622. @param in input stream
  21623. @param decompressor decompressor to use
  21624. @throws IOException]]>
  21625. </doc>
  21626. </constructor>
  21627. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  21628. static="false" final="false" visibility="protected"
  21629. deprecated="not deprecated">
  21630. <exception name="IOException" type="java.io.IOException"/>
  21631. </constructor>
  21632. <method name="decompress" return="int"
  21633. abstract="false" native="false" synchronized="false"
  21634. static="false" final="false" visibility="protected"
  21635. deprecated="not deprecated">
  21636. <param name="b" type="byte[]"/>
  21637. <param name="off" type="int"/>
  21638. <param name="len" type="int"/>
  21639. <exception name="IOException" type="java.io.IOException"/>
  21640. </method>
  21641. <method name="getCompressedData" return="int"
  21642. abstract="false" native="false" synchronized="false"
  21643. static="false" final="false" visibility="protected"
  21644. deprecated="not deprecated">
  21645. <exception name="IOException" type="java.io.IOException"/>
  21646. </method>
  21647. <method name="resetState"
  21648. abstract="false" native="false" synchronized="false"
  21649. static="false" final="false" visibility="public"
  21650. deprecated="not deprecated">
  21651. <exception name="IOException" type="java.io.IOException"/>
  21652. </method>
  21653. <doc>
  21654. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  21655. with 'block-based' based compression algorithms, as opposed to
  21656. 'stream-based' compression algorithms.]]>
  21657. </doc>
  21658. </class>
  21659. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  21660. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  21661. <class name="BZip2Codec" extends="java.lang.Object"
  21662. abstract="false"
  21663. static="false" final="false" visibility="public"
  21664. deprecated="not deprecated">
  21665. <implements name="org.apache.hadoop.conf.Configurable"/>
  21666. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  21667. <constructor name="BZip2Codec"
  21668. static="false" final="false" visibility="public"
  21669. deprecated="not deprecated">
  21670. <doc>
  21671. <![CDATA[Creates a new instance of BZip2Codec.]]>
  21672. </doc>
  21673. </constructor>
  21674. <method name="setConf"
  21675. abstract="false" native="false" synchronized="false"
  21676. static="false" final="false" visibility="public"
  21677. deprecated="not deprecated">
  21678. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21679. <doc>
  21680. <![CDATA[Set the configuration to be used by this object.
  21681. @param conf the configuration object.]]>
  21682. </doc>
  21683. </method>
  21684. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  21685. abstract="false" native="false" synchronized="false"
  21686. static="false" final="false" visibility="public"
  21687. deprecated="not deprecated">
  21688. <doc>
  21689. <![CDATA[Return the configuration used by this object.
  21690. @return the configuration object used by this objec.]]>
  21691. </doc>
  21692. </method>
  21693. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  21694. abstract="false" native="false" synchronized="false"
  21695. static="false" final="false" visibility="public"
  21696. deprecated="not deprecated">
  21697. <param name="out" type="java.io.OutputStream"/>
  21698. <exception name="IOException" type="java.io.IOException"/>
  21699. <doc>
  21700. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  21701. {@link OutputStream}.
  21702. @param out the location for the final output stream
  21703. @return a stream the user can write uncompressed data to, to have it
  21704. compressed
  21705. @throws IOException]]>
  21706. </doc>
  21707. </method>
  21708. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  21709. abstract="false" native="false" synchronized="false"
  21710. static="false" final="false" visibility="public"
  21711. deprecated="not deprecated">
  21712. <param name="out" type="java.io.OutputStream"/>
  21713. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  21714. <exception name="IOException" type="java.io.IOException"/>
  21715. <doc>
  21716. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  21717. {@link OutputStream} with the given {@link Compressor}.
  21718. @param out the location for the final output stream
  21719. @param compressor compressor to use
  21720. @return a stream the user can write uncompressed data to, to have it
  21721. compressed
  21722. @throws IOException]]>
  21723. </doc>
  21724. </method>
  21725. <method name="getCompressorType" return="java.lang.Class"
  21726. abstract="false" native="false" synchronized="false"
  21727. static="false" final="false" visibility="public"
  21728. deprecated="not deprecated">
  21729. <doc>
  21730. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  21731. @return the type of compressor needed by this codec.]]>
  21732. </doc>
  21733. </method>
  21734. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  21735. abstract="false" native="false" synchronized="false"
  21736. static="false" final="false" visibility="public"
  21737. deprecated="not deprecated">
  21738. <doc>
  21739. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  21740. @return a new compressor for use by this codec]]>
  21741. </doc>
  21742. </method>
  21743. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  21744. abstract="false" native="false" synchronized="false"
  21745. static="false" final="false" visibility="public"
  21746. deprecated="not deprecated">
  21747. <param name="in" type="java.io.InputStream"/>
  21748. <exception name="IOException" type="java.io.IOException"/>
  21749. <doc>
  21750. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  21751. input stream and return a stream for uncompressed data.
  21752. @param in the stream to read compressed bytes from
  21753. @return a stream to read uncompressed bytes from
  21754. @throws IOException]]>
  21755. </doc>
  21756. </method>
  21757. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  21758. abstract="false" native="false" synchronized="false"
  21759. static="false" final="false" visibility="public"
  21760. deprecated="not deprecated">
  21761. <param name="in" type="java.io.InputStream"/>
  21762. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  21763. <exception name="IOException" type="java.io.IOException"/>
  21764. <doc>
  21765. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  21766. {@link InputStream} with the given {@link Decompressor}, and return a
  21767. stream for uncompressed data.
  21768. @param in the stream to read compressed bytes from
  21769. @param decompressor decompressor to use
  21770. @return a stream to read uncompressed bytes from
  21771. @throws IOException]]>
  21772. </doc>
  21773. </method>
  21774. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  21775. abstract="false" native="false" synchronized="false"
  21776. static="false" final="false" visibility="public"
  21777. deprecated="not deprecated">
  21778. <param name="seekableIn" type="java.io.InputStream"/>
  21779. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  21780. <param name="start" type="long"/>
  21781. <param name="end" type="long"/>
  21782. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  21783. <exception name="IOException" type="java.io.IOException"/>
  21784. <doc>
  21785. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  21786. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  21787. @param seekableIn The InputStream
  21788. @param start The start offset into the compressed stream
  21789. @param end The end offset into the compressed stream
  21790. @param readMode Controls whether progress is reported continuously or
  21791. only at block boundaries.
  21792. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  21793. </doc>
  21794. </method>
  21795. <method name="getDecompressorType" return="java.lang.Class"
  21796. abstract="false" native="false" synchronized="false"
  21797. static="false" final="false" visibility="public"
  21798. deprecated="not deprecated">
  21799. <doc>
  21800. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  21801. @return the type of decompressor needed by this codec.]]>
  21802. </doc>
  21803. </method>
  21804. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  21805. abstract="false" native="false" synchronized="false"
  21806. static="false" final="false" visibility="public"
  21807. deprecated="not deprecated">
  21808. <doc>
  21809. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  21810. @return a new decompressor for use by this codec]]>
  21811. </doc>
  21812. </method>
  21813. <method name="getDefaultExtension" return="java.lang.String"
  21814. abstract="false" native="false" synchronized="false"
  21815. static="false" final="false" visibility="public"
  21816. deprecated="not deprecated">
  21817. <doc>
  21818. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  21819. @return A String telling the default bzip2 file extension]]>
  21820. </doc>
  21821. </method>
  21822. <doc>
  21823. <![CDATA[This class provides output and input streams for bzip2 compression
  21824. and decompression. It uses the native bzip2 library on the system
  21825. if possible, else it uses a pure-Java implementation of the bzip2
  21826. algorithm. The configuration parameter
  21827. io.compression.codec.bzip2.library can be used to control this
  21828. behavior.
  21829. In the pure-Java mode, the Compressor and Decompressor interfaces
  21830. are not implemented. Therefore, in that mode, those methods of
  21831. CompressionCodec which have a Compressor or Decompressor type
  21832. argument, throw UnsupportedOperationException.
  21833. Currently, support for splittability is available only in the
  21834. pure-Java mode; therefore, if a SplitCompressionInputStream is
  21835. requested, the pure-Java implementation is used, regardless of the
  21836. setting of the configuration parameter mentioned above.]]>
  21837. </doc>
  21838. </class>
  21839. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  21840. <!-- start class org.apache.hadoop.io.compress.CodecConstants -->
  21841. <class name="CodecConstants" extends="java.lang.Object"
  21842. abstract="false"
  21843. static="false" final="true" visibility="public"
  21844. deprecated="not deprecated">
  21845. <field name="DEFAULT_CODEC_EXTENSION" type="java.lang.String"
  21846. transient="false" volatile="false"
  21847. static="true" final="true" visibility="public"
  21848. deprecated="not deprecated">
  21849. <doc>
  21850. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.DefaultCodec}.]]>
  21851. </doc>
  21852. </field>
  21853. <field name="BZIP2_CODEC_EXTENSION" type="java.lang.String"
  21854. transient="false" volatile="false"
  21855. static="true" final="true" visibility="public"
  21856. deprecated="not deprecated">
  21857. <doc>
  21858. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.BZip2Codec}.]]>
  21859. </doc>
  21860. </field>
  21861. <field name="GZIP_CODEC_EXTENSION" type="java.lang.String"
  21862. transient="false" volatile="false"
  21863. static="true" final="true" visibility="public"
  21864. deprecated="not deprecated">
  21865. <doc>
  21866. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.GzipCodec}.]]>
  21867. </doc>
  21868. </field>
  21869. <field name="LZ4_CODEC_EXTENSION" type="java.lang.String"
  21870. transient="false" volatile="false"
  21871. static="true" final="true" visibility="public"
  21872. deprecated="not deprecated">
  21873. <doc>
  21874. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.Lz4Codec}.]]>
  21875. </doc>
  21876. </field>
  21877. <field name="SNAPPY_CODEC_EXTENSION" type="java.lang.String"
  21878. transient="false" volatile="false"
  21879. static="true" final="true" visibility="public"
  21880. deprecated="not deprecated">
  21881. <doc>
  21882. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.SnappyCodec}.]]>
  21883. </doc>
  21884. </field>
  21885. <field name="ZSTANDARD_CODEC_EXTENSION" type="java.lang.String"
  21886. transient="false" volatile="false"
  21887. static="true" final="true" visibility="public"
  21888. deprecated="not deprecated">
  21889. <doc>
  21890. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.ZStandardCodec}.]]>
  21891. </doc>
  21892. </field>
  21893. <doc>
  21894. <![CDATA[Codec related constants.]]>
  21895. </doc>
  21896. </class>
  21897. <!-- end class org.apache.hadoop.io.compress.CodecConstants -->
  21898. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  21899. <class name="CodecPool" extends="java.lang.Object"
  21900. abstract="false"
  21901. static="false" final="false" visibility="public"
  21902. deprecated="not deprecated">
  21903. <constructor name="CodecPool"
  21904. static="false" final="false" visibility="public"
  21905. deprecated="not deprecated">
  21906. </constructor>
  21907. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  21908. abstract="false" native="false" synchronized="false"
  21909. static="true" final="false" visibility="public"
  21910. deprecated="not deprecated">
  21911. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21912. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21913. <doc>
  21914. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  21915. pool or a new one.
  21916. @param codec the <code>CompressionCodec</code> for which to get the
  21917. <code>Compressor</code>
  21918. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  21919. @return <code>Compressor</code> for the given
  21920. <code>CompressionCodec</code> from the pool or a new one]]>
  21921. </doc>
  21922. </method>
  21923. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  21924. abstract="false" native="false" synchronized="false"
  21925. static="true" final="false" visibility="public"
  21926. deprecated="not deprecated">
  21927. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21928. </method>
  21929. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  21930. abstract="false" native="false" synchronized="false"
  21931. static="true" final="false" visibility="public"
  21932. deprecated="not deprecated">
  21933. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21934. <doc>
  21935. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  21936. pool or a new one.
  21937. @param codec the <code>CompressionCodec</code> for which to get the
  21938. <code>Decompressor</code>
  21939. @return <code>Decompressor</code> for the given
  21940. <code>CompressionCodec</code> the pool or a new one]]>
  21941. </doc>
  21942. </method>
  21943. <method name="returnCompressor"
  21944. abstract="false" native="false" synchronized="false"
  21945. static="true" final="false" visibility="public"
  21946. deprecated="not deprecated">
  21947. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  21948. <doc>
  21949. <![CDATA[Return the {@link Compressor} to the pool.
  21950. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  21951. </doc>
  21952. </method>
  21953. <method name="returnDecompressor"
  21954. abstract="false" native="false" synchronized="false"
  21955. static="true" final="false" visibility="public"
  21956. deprecated="not deprecated">
  21957. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  21958. <doc>
  21959. <![CDATA[Return the {@link Decompressor} to the pool.
  21960. @param decompressor the <code>Decompressor</code> to be returned to the
  21961. pool]]>
  21962. </doc>
  21963. </method>
  21964. <method name="getLeasedCompressorsCount" return="int"
  21965. abstract="false" native="false" synchronized="false"
  21966. static="true" final="false" visibility="public"
  21967. deprecated="not deprecated">
  21968. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21969. <doc>
  21970. <![CDATA[Return the number of leased {@link Compressor}s for this
  21971. {@link CompressionCodec}]]>
  21972. </doc>
  21973. </method>
  21974. <method name="getLeasedDecompressorsCount" 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 Decompressor}s for this
  21981. {@link CompressionCodec}]]>
  21982. </doc>
  21983. </method>
  21984. <doc>
  21985. <![CDATA[A global compressor/decompressor pool used to save and reuse
  21986. (possibly native) compression/decompression codecs.]]>
  21987. </doc>
  21988. </class>
  21989. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  21990. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  21991. <interface name="CompressionCodec" abstract="true"
  21992. static="false" final="false" visibility="public"
  21993. deprecated="not deprecated">
  21994. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  21995. abstract="true" native="false" synchronized="false"
  21996. static="false" final="false" visibility="public"
  21997. deprecated="not deprecated">
  21998. <param name="out" type="java.io.OutputStream"/>
  21999. <exception name="IOException" type="java.io.IOException"/>
  22000. <doc>
  22001. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22002. {@link OutputStream}.
  22003. @param out the location for the final output stream
  22004. @return a stream the user can write uncompressed data to have it compressed
  22005. @throws IOException]]>
  22006. </doc>
  22007. </method>
  22008. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22009. abstract="true" native="false" synchronized="false"
  22010. static="false" final="false" visibility="public"
  22011. deprecated="not deprecated">
  22012. <param name="out" type="java.io.OutputStream"/>
  22013. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22014. <exception name="IOException" type="java.io.IOException"/>
  22015. <doc>
  22016. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22017. {@link OutputStream} with the given {@link Compressor}.
  22018. @param out the location for the final output stream
  22019. @param compressor compressor to use
  22020. @return a stream the user can write uncompressed data to have it compressed
  22021. @throws IOException]]>
  22022. </doc>
  22023. </method>
  22024. <method name="getCompressorType" return="java.lang.Class"
  22025. abstract="true" native="false" synchronized="false"
  22026. static="false" final="false" visibility="public"
  22027. deprecated="not deprecated">
  22028. <doc>
  22029. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  22030. @return the type of compressor needed by this codec.]]>
  22031. </doc>
  22032. </method>
  22033. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22034. abstract="true" native="false" synchronized="false"
  22035. static="false" final="false" visibility="public"
  22036. deprecated="not deprecated">
  22037. <doc>
  22038. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  22039. @return a new compressor for use by this codec]]>
  22040. </doc>
  22041. </method>
  22042. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22043. abstract="true" native="false" synchronized="false"
  22044. static="false" final="false" visibility="public"
  22045. deprecated="not deprecated">
  22046. <param name="in" type="java.io.InputStream"/>
  22047. <exception name="IOException" type="java.io.IOException"/>
  22048. <doc>
  22049. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22050. input stream.
  22051. @param in the stream to read compressed bytes from
  22052. @return a stream to read uncompressed bytes from
  22053. @throws IOException]]>
  22054. </doc>
  22055. </method>
  22056. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22057. abstract="true" native="false" synchronized="false"
  22058. static="false" final="false" visibility="public"
  22059. deprecated="not deprecated">
  22060. <param name="in" type="java.io.InputStream"/>
  22061. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22062. <exception name="IOException" type="java.io.IOException"/>
  22063. <doc>
  22064. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22065. {@link InputStream} with the given {@link Decompressor}.
  22066. @param in the stream to read compressed bytes from
  22067. @param decompressor decompressor to use
  22068. @return a stream to read uncompressed bytes from
  22069. @throws IOException]]>
  22070. </doc>
  22071. </method>
  22072. <method name="getDecompressorType" return="java.lang.Class"
  22073. abstract="true" native="false" synchronized="false"
  22074. static="false" final="false" visibility="public"
  22075. deprecated="not deprecated">
  22076. <doc>
  22077. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  22078. @return the type of decompressor needed by this codec.]]>
  22079. </doc>
  22080. </method>
  22081. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22082. abstract="true" native="false" synchronized="false"
  22083. static="false" final="false" visibility="public"
  22084. deprecated="not deprecated">
  22085. <doc>
  22086. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  22087. @return a new decompressor for use by this codec]]>
  22088. </doc>
  22089. </method>
  22090. <method name="getDefaultExtension" return="java.lang.String"
  22091. abstract="true" native="false" synchronized="false"
  22092. static="false" final="false" visibility="public"
  22093. deprecated="not deprecated">
  22094. <doc>
  22095. <![CDATA[Get the default filename extension for this kind of compression.
  22096. @return the extension including the '.']]>
  22097. </doc>
  22098. </method>
  22099. <doc>
  22100. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  22101. </doc>
  22102. </interface>
  22103. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  22104. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  22105. <class name="CompressionCodecFactory" extends="java.lang.Object"
  22106. abstract="false"
  22107. static="false" final="false" visibility="public"
  22108. deprecated="not deprecated">
  22109. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  22110. static="false" final="false" visibility="public"
  22111. deprecated="not deprecated">
  22112. <doc>
  22113. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  22114. and register them. Defaults to gzip and deflate.]]>
  22115. </doc>
  22116. </constructor>
  22117. <method name="toString" return="java.lang.String"
  22118. abstract="false" native="false" synchronized="false"
  22119. static="false" final="false" visibility="public"
  22120. deprecated="not deprecated">
  22121. <doc>
  22122. <![CDATA[Print the extension map out as a string.]]>
  22123. </doc>
  22124. </method>
  22125. <method name="getCodecClasses" return="java.util.List"
  22126. abstract="false" native="false" synchronized="false"
  22127. static="true" final="false" visibility="public"
  22128. deprecated="not deprecated">
  22129. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22130. <doc>
  22131. <![CDATA[Get the list of codecs discovered via a Java ServiceLoader, or
  22132. listed in the configuration. Codecs specified in configuration come
  22133. later in the returned list, and are considered to override those
  22134. from the ServiceLoader.
  22135. @param conf the configuration to look in
  22136. @return a list of the {@link CompressionCodec} classes]]>
  22137. </doc>
  22138. </method>
  22139. <method name="setCodecClasses"
  22140. abstract="false" native="false" synchronized="false"
  22141. static="true" final="false" visibility="public"
  22142. deprecated="not deprecated">
  22143. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22144. <param name="classes" type="java.util.List"/>
  22145. <doc>
  22146. <![CDATA[Sets a list of codec classes in the configuration. In addition to any
  22147. classes specified using this method, {@link CompressionCodec} classes on
  22148. the classpath are discovered using a Java ServiceLoader.
  22149. @param conf the configuration to modify
  22150. @param classes the list of classes to set]]>
  22151. </doc>
  22152. </method>
  22153. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  22154. abstract="false" native="false" synchronized="false"
  22155. static="false" final="false" visibility="public"
  22156. deprecated="not deprecated">
  22157. <param name="file" type="org.apache.hadoop.fs.Path"/>
  22158. <doc>
  22159. <![CDATA[Find the relevant compression codec for the given file based on its
  22160. filename suffix.
  22161. @param file the filename to check
  22162. @return the codec object]]>
  22163. </doc>
  22164. </method>
  22165. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  22166. abstract="false" native="false" synchronized="false"
  22167. static="false" final="false" visibility="public"
  22168. deprecated="not deprecated">
  22169. <param name="classname" type="java.lang.String"/>
  22170. <doc>
  22171. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  22172. @param classname the canonical class name of the codec
  22173. @return the codec object]]>
  22174. </doc>
  22175. </method>
  22176. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  22177. abstract="false" native="false" synchronized="false"
  22178. static="false" final="false" visibility="public"
  22179. deprecated="not deprecated">
  22180. <param name="codecName" type="java.lang.String"/>
  22181. <doc>
  22182. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  22183. or by codec alias.
  22184. <p/>
  22185. Codec aliases are case insensitive.
  22186. <p/>
  22187. The code alias is the short class name (without the package name).
  22188. If the short class name ends with 'Codec', then there are two aliases for
  22189. the codec, the complete short class name and the short class name without
  22190. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  22191. alias are 'gzip' and 'gzipcodec'.
  22192. @param codecName the canonical class name of the codec
  22193. @return the codec object]]>
  22194. </doc>
  22195. </method>
  22196. <method name="getCodecClassByName" return="java.lang.Class"
  22197. abstract="false" native="false" synchronized="false"
  22198. static="false" final="false" visibility="public"
  22199. deprecated="not deprecated">
  22200. <param name="codecName" type="java.lang.String"/>
  22201. <doc>
  22202. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  22203. or by codec alias and returns its implemetation class.
  22204. <p/>
  22205. Codec aliases are case insensitive.
  22206. <p/>
  22207. The code alias is the short class name (without the package name).
  22208. If the short class name ends with 'Codec', then there are two aliases for
  22209. the codec, the complete short class name and the short class name without
  22210. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  22211. alias are 'gzip' and 'gzipcodec'.
  22212. @param codecName the canonical class name of the codec
  22213. @return the codec class]]>
  22214. </doc>
  22215. </method>
  22216. <method name="removeSuffix" return="java.lang.String"
  22217. abstract="false" native="false" synchronized="false"
  22218. static="true" final="false" visibility="public"
  22219. deprecated="not deprecated">
  22220. <param name="filename" type="java.lang.String"/>
  22221. <param name="suffix" type="java.lang.String"/>
  22222. <doc>
  22223. <![CDATA[Removes a suffix from a filename, if it has it.
  22224. @param filename the filename to strip
  22225. @param suffix the suffix to remove
  22226. @return the shortened filename]]>
  22227. </doc>
  22228. </method>
  22229. <method name="main"
  22230. abstract="false" native="false" synchronized="false"
  22231. static="true" final="false" visibility="public"
  22232. deprecated="not deprecated">
  22233. <param name="args" type="java.lang.String[]"/>
  22234. <exception name="Exception" type="java.lang.Exception"/>
  22235. <doc>
  22236. <![CDATA[A little test program.
  22237. @param args]]>
  22238. </doc>
  22239. </method>
  22240. <field name="LOG" type="org.slf4j.Logger"
  22241. transient="false" volatile="false"
  22242. static="true" final="true" visibility="public"
  22243. deprecated="not deprecated">
  22244. </field>
  22245. <doc>
  22246. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  22247. </doc>
  22248. </class>
  22249. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  22250. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  22251. <class name="CompressionInputStream" extends="java.io.InputStream"
  22252. abstract="true"
  22253. static="false" final="false" visibility="public"
  22254. deprecated="not deprecated">
  22255. <implements name="org.apache.hadoop.fs.Seekable"/>
  22256. <constructor name="CompressionInputStream" type="java.io.InputStream"
  22257. static="false" final="false" visibility="protected"
  22258. deprecated="not deprecated">
  22259. <exception name="IOException" type="java.io.IOException"/>
  22260. <doc>
  22261. <![CDATA[Create a compression input stream that reads
  22262. the decompressed bytes from the given stream.
  22263. @param in The input stream to be compressed.
  22264. @throws IOException]]>
  22265. </doc>
  22266. </constructor>
  22267. <method name="close"
  22268. abstract="false" native="false" synchronized="false"
  22269. static="false" final="false" visibility="public"
  22270. deprecated="not deprecated">
  22271. <exception name="IOException" type="java.io.IOException"/>
  22272. </method>
  22273. <method name="read" return="int"
  22274. abstract="true" native="false" synchronized="false"
  22275. static="false" final="false" visibility="public"
  22276. deprecated="not deprecated">
  22277. <param name="b" type="byte[]"/>
  22278. <param name="off" type="int"/>
  22279. <param name="len" type="int"/>
  22280. <exception name="IOException" type="java.io.IOException"/>
  22281. <doc>
  22282. <![CDATA[Read bytes from the stream.
  22283. Made abstract to prevent leakage to underlying stream.]]>
  22284. </doc>
  22285. </method>
  22286. <method name="resetState"
  22287. abstract="true" native="false" synchronized="false"
  22288. static="false" final="false" visibility="public"
  22289. deprecated="not deprecated">
  22290. <exception name="IOException" type="java.io.IOException"/>
  22291. <doc>
  22292. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  22293. as the underlying stream may have been repositioned.]]>
  22294. </doc>
  22295. </method>
  22296. <method name="getPos" return="long"
  22297. abstract="false" 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[This method returns the current position in the stream.
  22303. @return Current position in stream as a long]]>
  22304. </doc>
  22305. </method>
  22306. <method name="seek"
  22307. abstract="false" native="false" synchronized="false"
  22308. static="false" final="false" visibility="public"
  22309. deprecated="not deprecated">
  22310. <param name="pos" type="long"/>
  22311. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  22312. <doc>
  22313. <![CDATA[This method is current not supported.
  22314. @throws UnsupportedOperationException]]>
  22315. </doc>
  22316. </method>
  22317. <method name="seekToNewSource" return="boolean"
  22318. abstract="false" native="false" synchronized="false"
  22319. static="false" final="false" visibility="public"
  22320. deprecated="not deprecated">
  22321. <param name="targetPos" type="long"/>
  22322. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  22323. <doc>
  22324. <![CDATA[This method is current not supported.
  22325. @throws UnsupportedOperationException]]>
  22326. </doc>
  22327. </method>
  22328. <field name="in" type="java.io.InputStream"
  22329. transient="false" volatile="false"
  22330. static="false" final="true" visibility="protected"
  22331. deprecated="not deprecated">
  22332. <doc>
  22333. <![CDATA[The input stream to be compressed.]]>
  22334. </doc>
  22335. </field>
  22336. <field name="maxAvailableData" type="long"
  22337. transient="false" volatile="false"
  22338. static="false" final="false" visibility="protected"
  22339. deprecated="not deprecated">
  22340. </field>
  22341. <doc>
  22342. <![CDATA[A compression input stream.
  22343. <p>Implementations are assumed to be buffered. This permits clients to
  22344. reposition the underlying input stream then call {@link #resetState()},
  22345. without having to also synchronize client buffers.]]>
  22346. </doc>
  22347. </class>
  22348. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  22349. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  22350. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  22351. abstract="true"
  22352. static="false" final="false" visibility="public"
  22353. deprecated="not deprecated">
  22354. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  22355. static="false" final="false" visibility="protected"
  22356. deprecated="not deprecated">
  22357. <doc>
  22358. <![CDATA[Create a compression output stream that writes
  22359. the compressed bytes to the given stream.
  22360. @param out]]>
  22361. </doc>
  22362. </constructor>
  22363. <method name="close"
  22364. abstract="false" native="false" synchronized="false"
  22365. static="false" final="false" visibility="public"
  22366. deprecated="not deprecated">
  22367. <exception name="IOException" type="java.io.IOException"/>
  22368. </method>
  22369. <method name="flush"
  22370. abstract="false" native="false" synchronized="false"
  22371. static="false" final="false" visibility="public"
  22372. deprecated="not deprecated">
  22373. <exception name="IOException" type="java.io.IOException"/>
  22374. </method>
  22375. <method name="write"
  22376. abstract="true" native="false" synchronized="false"
  22377. static="false" final="false" visibility="public"
  22378. deprecated="not deprecated">
  22379. <param name="b" type="byte[]"/>
  22380. <param name="off" type="int"/>
  22381. <param name="len" type="int"/>
  22382. <exception name="IOException" type="java.io.IOException"/>
  22383. <doc>
  22384. <![CDATA[Write compressed bytes to the stream.
  22385. Made abstract to prevent leakage to underlying stream.]]>
  22386. </doc>
  22387. </method>
  22388. <method name="finish"
  22389. abstract="true" native="false" synchronized="false"
  22390. static="false" final="false" visibility="public"
  22391. deprecated="not deprecated">
  22392. <exception name="IOException" type="java.io.IOException"/>
  22393. <doc>
  22394. <![CDATA[Finishes writing compressed data to the output stream
  22395. without closing the underlying stream.]]>
  22396. </doc>
  22397. </method>
  22398. <method name="resetState"
  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[Reset the compression to the initial state.
  22405. Does not reset the underlying stream.]]>
  22406. </doc>
  22407. </method>
  22408. <field name="out" type="java.io.OutputStream"
  22409. transient="false" volatile="false"
  22410. static="false" final="true" visibility="protected"
  22411. deprecated="not deprecated">
  22412. <doc>
  22413. <![CDATA[The output stream to be compressed.]]>
  22414. </doc>
  22415. </field>
  22416. <doc>
  22417. <![CDATA[A compression output stream.]]>
  22418. </doc>
  22419. </class>
  22420. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  22421. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  22422. <interface name="Compressor" abstract="true"
  22423. static="false" final="false" visibility="public"
  22424. deprecated="not deprecated">
  22425. <method name="setInput"
  22426. abstract="true" native="false" synchronized="false"
  22427. static="false" final="false" visibility="public"
  22428. deprecated="not deprecated">
  22429. <param name="b" type="byte[]"/>
  22430. <param name="off" type="int"/>
  22431. <param name="len" type="int"/>
  22432. <doc>
  22433. <![CDATA[Sets input data for compression.
  22434. This should be called whenever #needsInput() returns
  22435. <code>true</code> indicating that more input data is required.
  22436. @param b Input data
  22437. @param off Start offset
  22438. @param len Length]]>
  22439. </doc>
  22440. </method>
  22441. <method name="needsInput" return="boolean"
  22442. abstract="true" native="false" synchronized="false"
  22443. static="false" final="false" visibility="public"
  22444. deprecated="not deprecated">
  22445. <doc>
  22446. <![CDATA[Returns true if the input data buffer is empty and
  22447. #setInput() should be called to provide more input.
  22448. @return <code>true</code> if the input data buffer is empty and
  22449. #setInput() should be called in order to provide more input.]]>
  22450. </doc>
  22451. </method>
  22452. <method name="setDictionary"
  22453. abstract="true" native="false" synchronized="false"
  22454. static="false" final="false" visibility="public"
  22455. deprecated="not deprecated">
  22456. <param name="b" type="byte[]"/>
  22457. <param name="off" type="int"/>
  22458. <param name="len" type="int"/>
  22459. <doc>
  22460. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  22461. is used when the history buffer can be predetermined.
  22462. @param b Dictionary data bytes
  22463. @param off Start offset
  22464. @param len Length]]>
  22465. </doc>
  22466. </method>
  22467. <method name="getBytesRead" return="long"
  22468. abstract="true" native="false" synchronized="false"
  22469. static="false" final="false" visibility="public"
  22470. deprecated="not deprecated">
  22471. <doc>
  22472. <![CDATA[Return number of uncompressed bytes input so far.]]>
  22473. </doc>
  22474. </method>
  22475. <method name="getBytesWritten" return="long"
  22476. abstract="true" native="false" synchronized="false"
  22477. static="false" final="false" visibility="public"
  22478. deprecated="not deprecated">
  22479. <doc>
  22480. <![CDATA[Return number of compressed bytes output so far.]]>
  22481. </doc>
  22482. </method>
  22483. <method name="finish"
  22484. abstract="true" native="false" synchronized="false"
  22485. static="false" final="false" visibility="public"
  22486. deprecated="not deprecated">
  22487. <doc>
  22488. <![CDATA[When called, indicates that compression should end
  22489. with the current contents of the input buffer.]]>
  22490. </doc>
  22491. </method>
  22492. <method name="finished" return="boolean"
  22493. abstract="true" native="false" synchronized="false"
  22494. static="false" final="false" visibility="public"
  22495. deprecated="not deprecated">
  22496. <doc>
  22497. <![CDATA[Returns true if the end of the compressed
  22498. data output stream has been reached.
  22499. @return <code>true</code> if the end of the compressed
  22500. data output stream has been reached.]]>
  22501. </doc>
  22502. </method>
  22503. <method name="compress" return="int"
  22504. abstract="true" native="false" synchronized="false"
  22505. static="false" final="false" visibility="public"
  22506. deprecated="not deprecated">
  22507. <param name="b" type="byte[]"/>
  22508. <param name="off" type="int"/>
  22509. <param name="len" type="int"/>
  22510. <exception name="IOException" type="java.io.IOException"/>
  22511. <doc>
  22512. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  22513. of bytes of compressed data. A return value of 0 indicates that
  22514. needsInput() should be called in order to determine if more input
  22515. data is required.
  22516. @param b Buffer for the compressed data
  22517. @param off Start offset of the data
  22518. @param len Size of the buffer
  22519. @return The actual number of bytes of compressed data.]]>
  22520. </doc>
  22521. </method>
  22522. <method name="reset"
  22523. abstract="true" native="false" synchronized="false"
  22524. static="false" final="false" visibility="public"
  22525. deprecated="not deprecated">
  22526. <doc>
  22527. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  22528. </doc>
  22529. </method>
  22530. <method name="end"
  22531. abstract="true" native="false" synchronized="false"
  22532. static="false" final="false" visibility="public"
  22533. deprecated="not deprecated">
  22534. <doc>
  22535. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  22536. </doc>
  22537. </method>
  22538. <method name="reinit"
  22539. abstract="true" native="false" synchronized="false"
  22540. static="false" final="false" visibility="public"
  22541. deprecated="not deprecated">
  22542. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22543. <doc>
  22544. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  22545. the given Configuration
  22546. @param conf Configuration from which new setting are fetched]]>
  22547. </doc>
  22548. </method>
  22549. <doc>
  22550. <![CDATA[Specification of a stream-based 'compressor' which can be
  22551. plugged into a {@link CompressionOutputStream} to compress data.
  22552. This is modelled after {@link java.util.zip.Deflater}]]>
  22553. </doc>
  22554. </interface>
  22555. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  22556. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  22557. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  22558. abstract="false"
  22559. static="false" final="false" visibility="public"
  22560. deprecated="not deprecated">
  22561. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  22562. static="false" final="false" visibility="public"
  22563. deprecated="not deprecated">
  22564. </constructor>
  22565. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  22566. static="false" final="false" visibility="public"
  22567. deprecated="not deprecated">
  22568. </constructor>
  22569. <constructor name="CompressorStream" type="java.io.OutputStream"
  22570. static="false" final="false" visibility="protected"
  22571. deprecated="not deprecated">
  22572. <doc>
  22573. <![CDATA[Allow derived classes to directly set the underlying stream.
  22574. @param out Underlying output stream.]]>
  22575. </doc>
  22576. </constructor>
  22577. <method name="write"
  22578. abstract="false" native="false" synchronized="false"
  22579. static="false" final="false" visibility="public"
  22580. deprecated="not deprecated">
  22581. <param name="b" type="byte[]"/>
  22582. <param name="off" type="int"/>
  22583. <param name="len" type="int"/>
  22584. <exception name="IOException" type="java.io.IOException"/>
  22585. </method>
  22586. <method name="compress"
  22587. abstract="false" native="false" synchronized="false"
  22588. static="false" final="false" visibility="protected"
  22589. deprecated="not deprecated">
  22590. <exception name="IOException" type="java.io.IOException"/>
  22591. </method>
  22592. <method name="finish"
  22593. abstract="false" native="false" synchronized="false"
  22594. static="false" final="false" visibility="public"
  22595. deprecated="not deprecated">
  22596. <exception name="IOException" type="java.io.IOException"/>
  22597. </method>
  22598. <method name="resetState"
  22599. abstract="false" native="false" synchronized="false"
  22600. static="false" final="false" visibility="public"
  22601. deprecated="not deprecated">
  22602. <exception name="IOException" type="java.io.IOException"/>
  22603. </method>
  22604. <method name="close"
  22605. abstract="false" native="false" synchronized="false"
  22606. static="false" final="false" visibility="public"
  22607. deprecated="not deprecated">
  22608. <exception name="IOException" type="java.io.IOException"/>
  22609. </method>
  22610. <method name="write"
  22611. abstract="false" native="false" synchronized="false"
  22612. static="false" final="false" visibility="public"
  22613. deprecated="not deprecated">
  22614. <param name="b" type="int"/>
  22615. <exception name="IOException" type="java.io.IOException"/>
  22616. </method>
  22617. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  22618. transient="false" volatile="false"
  22619. static="false" final="false" visibility="protected"
  22620. deprecated="not deprecated">
  22621. </field>
  22622. <field name="buffer" type="byte[]"
  22623. transient="false" volatile="false"
  22624. static="false" final="false" visibility="protected"
  22625. deprecated="not deprecated">
  22626. </field>
  22627. <field name="closed" type="boolean"
  22628. transient="false" volatile="false"
  22629. static="false" final="false" visibility="protected"
  22630. deprecated="not deprecated">
  22631. </field>
  22632. </class>
  22633. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  22634. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  22635. <interface name="Decompressor" abstract="true"
  22636. static="false" final="false" visibility="public"
  22637. deprecated="not deprecated">
  22638. <method name="setInput"
  22639. abstract="true" native="false" synchronized="false"
  22640. static="false" final="false" visibility="public"
  22641. deprecated="not deprecated">
  22642. <param name="b" type="byte[]"/>
  22643. <param name="off" type="int"/>
  22644. <param name="len" type="int"/>
  22645. <doc>
  22646. <![CDATA[Sets input data for decompression.
  22647. This should be called if and only if {@link #needsInput()} returns
  22648. <code>true</code> indicating that more input data is required.
  22649. (Both native and non-native versions of various Decompressors require
  22650. that the data passed in via <code>b[]</code> remain unmodified until
  22651. the caller is explicitly notified--via {@link #needsInput()}--that the
  22652. buffer may be safely modified. With this requirement, an extra
  22653. buffer-copy can be avoided.)
  22654. @param b Input data
  22655. @param off Start offset
  22656. @param len Length]]>
  22657. </doc>
  22658. </method>
  22659. <method name="needsInput" return="boolean"
  22660. abstract="true" native="false" synchronized="false"
  22661. static="false" final="false" visibility="public"
  22662. deprecated="not deprecated">
  22663. <doc>
  22664. <![CDATA[Returns <code>true</code> if the input data buffer is empty and
  22665. {@link #setInput(byte[], int, int)} should be called to
  22666. provide more input.
  22667. @return <code>true</code> if the input data buffer is empty and
  22668. {@link #setInput(byte[], int, int)} should be called in
  22669. order to provide more input.]]>
  22670. </doc>
  22671. </method>
  22672. <method name="setDictionary"
  22673. abstract="true" native="false" synchronized="false"
  22674. static="false" final="false" visibility="public"
  22675. deprecated="not deprecated">
  22676. <param name="b" type="byte[]"/>
  22677. <param name="off" type="int"/>
  22678. <param name="len" type="int"/>
  22679. <doc>
  22680. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  22681. is used when the history buffer can be predetermined.
  22682. @param b Dictionary data bytes
  22683. @param off Start offset
  22684. @param len Length]]>
  22685. </doc>
  22686. </method>
  22687. <method name="needsDictionary" return="boolean"
  22688. abstract="true" native="false" synchronized="false"
  22689. static="false" final="false" visibility="public"
  22690. deprecated="not deprecated">
  22691. <doc>
  22692. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  22693. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  22694. </doc>
  22695. </method>
  22696. <method name="finished" return="boolean"
  22697. abstract="true" native="false" synchronized="false"
  22698. static="false" final="false" visibility="public"
  22699. deprecated="not deprecated">
  22700. <doc>
  22701. <![CDATA[Returns <code>true</code> if the end of the decompressed
  22702. data output stream has been reached. Indicates a concatenated data stream
  22703. when finished() returns <code>true</code> and {@link #getRemaining()}
  22704. returns a positive value. finished() will be reset with the
  22705. {@link #reset()} method.
  22706. @return <code>true</code> if the end of the decompressed
  22707. data output stream has been reached.]]>
  22708. </doc>
  22709. </method>
  22710. <method name="decompress" return="int"
  22711. abstract="true" native="false" synchronized="false"
  22712. static="false" final="false" visibility="public"
  22713. deprecated="not deprecated">
  22714. <param name="b" type="byte[]"/>
  22715. <param name="off" type="int"/>
  22716. <param name="len" type="int"/>
  22717. <exception name="IOException" type="java.io.IOException"/>
  22718. <doc>
  22719. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  22720. of bytes of uncompressed data. A return value of 0 indicates that
  22721. {@link #needsInput()} should be called in order to determine if more
  22722. input data is required.
  22723. @param b Buffer for the compressed data
  22724. @param off Start offset of the data
  22725. @param len Size of the buffer
  22726. @return The actual number of bytes of uncompressed data.
  22727. @throws IOException]]>
  22728. </doc>
  22729. </method>
  22730. <method name="getRemaining" return="int"
  22731. abstract="true" native="false" synchronized="false"
  22732. static="false" final="false" visibility="public"
  22733. deprecated="not deprecated">
  22734. <doc>
  22735. <![CDATA[Returns the number of bytes remaining in the compressed data buffer.
  22736. Indicates a concatenated data stream if {@link #finished()} returns
  22737. <code>true</code> and getRemaining() returns a positive value. If
  22738. {@link #finished()} returns <code>true</code> and getRemaining() returns
  22739. a zero value, indicates that the end of data stream has been reached and
  22740. is not a concatenated data stream.
  22741. @return The number of bytes remaining in the compressed data buffer.]]>
  22742. </doc>
  22743. </method>
  22744. <method name="reset"
  22745. abstract="true" native="false" synchronized="false"
  22746. static="false" final="false" visibility="public"
  22747. deprecated="not deprecated">
  22748. <doc>
  22749. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  22750. input data can be processed. If {@link #finished()}} returns
  22751. <code>true</code> and {@link #getRemaining()} returns a positive value,
  22752. reset() is called before processing of the next data stream in the
  22753. concatenated data stream. {@link #finished()} will be reset and will
  22754. return <code>false</code> when reset() is called.]]>
  22755. </doc>
  22756. </method>
  22757. <method name="end"
  22758. abstract="true" native="false" synchronized="false"
  22759. static="false" final="false" visibility="public"
  22760. deprecated="not deprecated">
  22761. <doc>
  22762. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  22763. </doc>
  22764. </method>
  22765. <doc>
  22766. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  22767. plugged into a {@link CompressionInputStream} to compress data.
  22768. This is modelled after {@link java.util.zip.Inflater}]]>
  22769. </doc>
  22770. </interface>
  22771. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  22772. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  22773. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  22774. abstract="false"
  22775. static="false" final="false" visibility="public"
  22776. deprecated="not deprecated">
  22777. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  22778. static="false" final="false" visibility="public"
  22779. deprecated="not deprecated">
  22780. <exception name="IOException" type="java.io.IOException"/>
  22781. </constructor>
  22782. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  22783. static="false" final="false" visibility="public"
  22784. deprecated="not deprecated">
  22785. <exception name="IOException" type="java.io.IOException"/>
  22786. </constructor>
  22787. <constructor name="DecompressorStream" type="java.io.InputStream"
  22788. static="false" final="false" visibility="protected"
  22789. deprecated="not deprecated">
  22790. <exception name="IOException" type="java.io.IOException"/>
  22791. <doc>
  22792. <![CDATA[Allow derived classes to directly set the underlying stream.
  22793. @param in Underlying input stream.
  22794. @throws IOException]]>
  22795. </doc>
  22796. </constructor>
  22797. <method name="read" return="int"
  22798. abstract="false" native="false" synchronized="false"
  22799. static="false" final="false" visibility="public"
  22800. deprecated="not deprecated">
  22801. <exception name="IOException" type="java.io.IOException"/>
  22802. </method>
  22803. <method name="read" return="int"
  22804. abstract="false" native="false" synchronized="false"
  22805. static="false" final="false" visibility="public"
  22806. deprecated="not deprecated">
  22807. <param name="b" type="byte[]"/>
  22808. <param name="off" type="int"/>
  22809. <param name="len" type="int"/>
  22810. <exception name="IOException" type="java.io.IOException"/>
  22811. </method>
  22812. <method name="decompress" return="int"
  22813. abstract="false" native="false" synchronized="false"
  22814. static="false" final="false" visibility="protected"
  22815. deprecated="not deprecated">
  22816. <param name="b" type="byte[]"/>
  22817. <param name="off" type="int"/>
  22818. <param name="len" type="int"/>
  22819. <exception name="IOException" type="java.io.IOException"/>
  22820. </method>
  22821. <method name="getCompressedData" return="int"
  22822. abstract="false" native="false" synchronized="false"
  22823. static="false" final="false" visibility="protected"
  22824. deprecated="not deprecated">
  22825. <exception name="IOException" type="java.io.IOException"/>
  22826. </method>
  22827. <method name="checkStream"
  22828. abstract="false" native="false" synchronized="false"
  22829. static="false" final="false" visibility="protected"
  22830. deprecated="not deprecated">
  22831. <exception name="IOException" type="java.io.IOException"/>
  22832. </method>
  22833. <method name="resetState"
  22834. abstract="false" native="false" synchronized="false"
  22835. static="false" final="false" visibility="public"
  22836. deprecated="not deprecated">
  22837. <exception name="IOException" type="java.io.IOException"/>
  22838. </method>
  22839. <method name="skip" return="long"
  22840. abstract="false" native="false" synchronized="false"
  22841. static="false" final="false" visibility="public"
  22842. deprecated="not deprecated">
  22843. <param name="n" type="long"/>
  22844. <exception name="IOException" type="java.io.IOException"/>
  22845. </method>
  22846. <method name="available" return="int"
  22847. abstract="false" native="false" synchronized="false"
  22848. static="false" final="false" visibility="public"
  22849. deprecated="not deprecated">
  22850. <exception name="IOException" type="java.io.IOException"/>
  22851. </method>
  22852. <method name="close"
  22853. abstract="false" native="false" synchronized="false"
  22854. static="false" final="false" visibility="public"
  22855. deprecated="not deprecated">
  22856. <exception name="IOException" type="java.io.IOException"/>
  22857. </method>
  22858. <method name="markSupported" return="boolean"
  22859. abstract="false" native="false" synchronized="false"
  22860. static="false" final="false" visibility="public"
  22861. deprecated="not deprecated">
  22862. </method>
  22863. <method name="mark"
  22864. abstract="false" native="false" synchronized="true"
  22865. static="false" final="false" visibility="public"
  22866. deprecated="not deprecated">
  22867. <param name="readlimit" type="int"/>
  22868. </method>
  22869. <method name="reset"
  22870. abstract="false" native="false" synchronized="true"
  22871. static="false" final="false" visibility="public"
  22872. deprecated="not deprecated">
  22873. <exception name="IOException" type="java.io.IOException"/>
  22874. </method>
  22875. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  22876. transient="false" volatile="false"
  22877. static="false" final="false" visibility="protected"
  22878. deprecated="not deprecated">
  22879. </field>
  22880. <field name="buffer" type="byte[]"
  22881. transient="false" volatile="false"
  22882. static="false" final="false" visibility="protected"
  22883. deprecated="not deprecated">
  22884. </field>
  22885. <field name="eof" type="boolean"
  22886. transient="false" volatile="false"
  22887. static="false" final="false" visibility="protected"
  22888. deprecated="not deprecated">
  22889. </field>
  22890. <field name="closed" type="boolean"
  22891. transient="false" volatile="false"
  22892. static="false" final="false" visibility="protected"
  22893. deprecated="not deprecated">
  22894. </field>
  22895. </class>
  22896. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  22897. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  22898. <class name="DefaultCodec" extends="java.lang.Object"
  22899. abstract="false"
  22900. static="false" final="false" visibility="public"
  22901. deprecated="not deprecated">
  22902. <implements name="org.apache.hadoop.conf.Configurable"/>
  22903. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  22904. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  22905. <constructor name="DefaultCodec"
  22906. static="false" final="false" visibility="public"
  22907. deprecated="not deprecated">
  22908. </constructor>
  22909. <method name="setConf"
  22910. abstract="false" native="false" synchronized="false"
  22911. static="false" final="false" visibility="public"
  22912. deprecated="not deprecated">
  22913. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22914. </method>
  22915. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22916. abstract="false" native="false" synchronized="false"
  22917. static="false" final="false" visibility="public"
  22918. deprecated="not deprecated">
  22919. </method>
  22920. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22921. abstract="false" native="false" synchronized="false"
  22922. static="false" final="false" visibility="public"
  22923. deprecated="not deprecated">
  22924. <param name="out" type="java.io.OutputStream"/>
  22925. <exception name="IOException" type="java.io.IOException"/>
  22926. </method>
  22927. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22928. abstract="false" native="false" synchronized="false"
  22929. static="false" final="false" visibility="public"
  22930. deprecated="not deprecated">
  22931. <param name="out" type="java.io.OutputStream"/>
  22932. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22933. <exception name="IOException" type="java.io.IOException"/>
  22934. </method>
  22935. <method name="getCompressorType" return="java.lang.Class"
  22936. abstract="false" native="false" synchronized="false"
  22937. static="false" final="false" visibility="public"
  22938. deprecated="not deprecated">
  22939. </method>
  22940. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22941. abstract="false" native="false" synchronized="false"
  22942. static="false" final="false" visibility="public"
  22943. deprecated="not deprecated">
  22944. </method>
  22945. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22946. abstract="false" native="false" synchronized="false"
  22947. static="false" final="false" visibility="public"
  22948. deprecated="not deprecated">
  22949. <param name="in" type="java.io.InputStream"/>
  22950. <exception name="IOException" type="java.io.IOException"/>
  22951. </method>
  22952. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22953. abstract="false" native="false" synchronized="false"
  22954. static="false" final="false" visibility="public"
  22955. deprecated="not deprecated">
  22956. <param name="in" type="java.io.InputStream"/>
  22957. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22958. <exception name="IOException" type="java.io.IOException"/>
  22959. </method>
  22960. <method name="getDecompressorType" return="java.lang.Class"
  22961. abstract="false" native="false" synchronized="false"
  22962. static="false" final="false" visibility="public"
  22963. deprecated="not deprecated">
  22964. </method>
  22965. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22966. abstract="false" native="false" synchronized="false"
  22967. static="false" final="false" visibility="public"
  22968. deprecated="not deprecated">
  22969. </method>
  22970. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  22971. abstract="false" native="false" synchronized="false"
  22972. static="false" final="false" visibility="public"
  22973. deprecated="not deprecated">
  22974. <doc>
  22975. <![CDATA[{@inheritDoc}]]>
  22976. </doc>
  22977. </method>
  22978. <method name="getDefaultExtension" return="java.lang.String"
  22979. abstract="false" native="false" synchronized="false"
  22980. static="false" final="false" visibility="public"
  22981. deprecated="not deprecated">
  22982. </method>
  22983. </class>
  22984. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  22985. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  22986. <interface name="DirectDecompressionCodec" abstract="true"
  22987. static="false" final="false" visibility="public"
  22988. deprecated="not deprecated">
  22989. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  22990. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  22991. abstract="true" native="false" synchronized="false"
  22992. static="false" final="false" visibility="public"
  22993. deprecated="not deprecated">
  22994. <doc>
  22995. <![CDATA[Create a new {@link DirectDecompressor} for use by this {@link DirectDecompressionCodec}.
  22996. @return a new direct decompressor for use by this codec]]>
  22997. </doc>
  22998. </method>
  22999. <doc>
  23000. <![CDATA[This class encapsulates a codec which can decompress direct bytebuffers.]]>
  23001. </doc>
  23002. </interface>
  23003. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  23004. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressor -->
  23005. <interface name="DirectDecompressor" abstract="true"
  23006. static="false" final="false" visibility="public"
  23007. deprecated="not deprecated">
  23008. <method name="decompress"
  23009. abstract="true" native="false" synchronized="false"
  23010. static="false" final="false" visibility="public"
  23011. deprecated="not deprecated">
  23012. <param name="src" type="java.nio.ByteBuffer"/>
  23013. <param name="dst" type="java.nio.ByteBuffer"/>
  23014. <exception name="IOException" type="java.io.IOException"/>
  23015. </method>
  23016. <doc>
  23017. <![CDATA[Specification of a direct ByteBuffer 'de-compressor'.]]>
  23018. </doc>
  23019. </interface>
  23020. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressor -->
  23021. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  23022. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  23023. abstract="false"
  23024. static="false" final="false" visibility="public"
  23025. deprecated="not deprecated">
  23026. <constructor name="GzipCodec"
  23027. static="false" final="false" visibility="public"
  23028. deprecated="not deprecated">
  23029. </constructor>
  23030. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23031. abstract="false" native="false" synchronized="false"
  23032. static="false" final="false" visibility="public"
  23033. deprecated="not deprecated">
  23034. <param name="out" type="java.io.OutputStream"/>
  23035. <exception name="IOException" type="java.io.IOException"/>
  23036. </method>
  23037. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23038. abstract="false" native="false" synchronized="false"
  23039. static="false" final="false" visibility="public"
  23040. deprecated="not deprecated">
  23041. <param name="out" type="java.io.OutputStream"/>
  23042. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  23043. <exception name="IOException" type="java.io.IOException"/>
  23044. </method>
  23045. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  23046. abstract="false" native="false" synchronized="false"
  23047. static="false" final="false" visibility="public"
  23048. deprecated="not deprecated">
  23049. </method>
  23050. <method name="getCompressorType" return="java.lang.Class"
  23051. abstract="false" native="false" synchronized="false"
  23052. static="false" final="false" visibility="public"
  23053. deprecated="not deprecated">
  23054. </method>
  23055. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23056. abstract="false" native="false" synchronized="false"
  23057. static="false" final="false" visibility="public"
  23058. deprecated="not deprecated">
  23059. <param name="in" type="java.io.InputStream"/>
  23060. <exception name="IOException" type="java.io.IOException"/>
  23061. </method>
  23062. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23063. abstract="false" native="false" synchronized="false"
  23064. static="false" final="false" visibility="public"
  23065. deprecated="not deprecated">
  23066. <param name="in" type="java.io.InputStream"/>
  23067. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  23068. <exception name="IOException" type="java.io.IOException"/>
  23069. </method>
  23070. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  23071. abstract="false" native="false" synchronized="false"
  23072. static="false" final="false" visibility="public"
  23073. deprecated="not deprecated">
  23074. </method>
  23075. <method name="getDecompressorType" return="java.lang.Class"
  23076. abstract="false" native="false" synchronized="false"
  23077. static="false" final="false" visibility="public"
  23078. deprecated="not deprecated">
  23079. </method>
  23080. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  23081. abstract="false" native="false" synchronized="false"
  23082. static="false" final="false" visibility="public"
  23083. deprecated="not deprecated">
  23084. </method>
  23085. <method name="getDefaultExtension" return="java.lang.String"
  23086. abstract="false" native="false" synchronized="false"
  23087. static="false" final="false" visibility="public"
  23088. deprecated="not deprecated">
  23089. </method>
  23090. <doc>
  23091. <![CDATA[This class creates gzip compressors/decompressors.]]>
  23092. </doc>
  23093. </class>
  23094. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  23095. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  23096. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  23097. abstract="true"
  23098. static="false" final="false" visibility="public"
  23099. deprecated="not deprecated">
  23100. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  23101. static="false" final="false" visibility="public"
  23102. deprecated="not deprecated">
  23103. <exception name="IOException" type="java.io.IOException"/>
  23104. </constructor>
  23105. <method name="setStart"
  23106. abstract="false" native="false" synchronized="false"
  23107. static="false" final="false" visibility="protected"
  23108. deprecated="not deprecated">
  23109. <param name="start" type="long"/>
  23110. </method>
  23111. <method name="setEnd"
  23112. abstract="false" native="false" synchronized="false"
  23113. static="false" final="false" visibility="protected"
  23114. deprecated="not deprecated">
  23115. <param name="end" type="long"/>
  23116. </method>
  23117. <method name="getAdjustedStart" return="long"
  23118. abstract="false" native="false" synchronized="false"
  23119. static="false" final="false" visibility="public"
  23120. deprecated="not deprecated">
  23121. <doc>
  23122. <![CDATA[After calling createInputStream, the values of start or end
  23123. might change. So this method can be used to get the new value of start.
  23124. @return The changed value of start]]>
  23125. </doc>
  23126. </method>
  23127. <method name="getAdjustedEnd" 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 end.
  23134. @return The changed value of end]]>
  23135. </doc>
  23136. </method>
  23137. <doc>
  23138. <![CDATA[An InputStream covering a range of compressed data. The start and end
  23139. offsets requested by a client may be modified by the codec to fit block
  23140. boundaries or other algorithm-dependent requirements.]]>
  23141. </doc>
  23142. </class>
  23143. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  23144. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  23145. <interface name="SplittableCompressionCodec" abstract="true"
  23146. static="false" final="false" visibility="public"
  23147. deprecated="not deprecated">
  23148. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  23149. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  23150. abstract="true" native="false" synchronized="false"
  23151. static="false" final="false" visibility="public"
  23152. deprecated="not deprecated">
  23153. <param name="seekableIn" type="java.io.InputStream"/>
  23154. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  23155. <param name="start" type="long"/>
  23156. <param name="end" type="long"/>
  23157. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  23158. <exception name="IOException" type="java.io.IOException"/>
  23159. <doc>
  23160. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  23161. the codecs wants the ability to work with the underlying stream positions.
  23162. @param seekableIn The seekable input stream (seeks in compressed data)
  23163. @param start The start offset into the compressed stream. May be changed
  23164. by the underlying codec.
  23165. @param end The end offset into the compressed stream. May be changed by
  23166. the underlying codec.
  23167. @param readMode Controls whether stream position is reported continuously
  23168. from the compressed stream only only at block boundaries.
  23169. @return a stream to read uncompressed bytes from]]>
  23170. </doc>
  23171. </method>
  23172. <doc>
  23173. <![CDATA[This interface is meant to be implemented by those compression codecs
  23174. which are capable to compress / de-compress a stream starting at any
  23175. arbitrary position.
  23176. Especially the process of de-compressing a stream starting at some arbitrary
  23177. position is challenging. Most of the codecs are only able to successfully
  23178. de-compress a stream, if they start from the very beginning till the end.
  23179. One of the reasons is the stored state at the beginning of the stream which
  23180. is crucial for de-compression.
  23181. Yet there are few codecs which do not save the whole state at the beginning
  23182. of the stream and hence can be used to de-compress stream starting at any
  23183. arbitrary points. This interface is meant to be used by such codecs. Such
  23184. codecs are highly valuable, especially in the context of Hadoop, because
  23185. an input compressed file can be split and hence can be worked on by multiple
  23186. machines in parallel.]]>
  23187. </doc>
  23188. </interface>
  23189. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  23190. </package>
  23191. <package name="org.apache.hadoop.io.erasurecode">
  23192. <!-- start class org.apache.hadoop.io.erasurecode.ECSchema -->
  23193. <class name="ECSchema" extends="java.lang.Object"
  23194. abstract="false"
  23195. static="false" final="true" visibility="public"
  23196. deprecated="not deprecated">
  23197. <implements name="java.io.Serializable"/>
  23198. <constructor name="ECSchema" type="java.util.Map"
  23199. static="false" final="false" visibility="public"
  23200. deprecated="not deprecated">
  23201. <doc>
  23202. <![CDATA[Constructor with schema name and provided all options. Note the options may
  23203. contain additional information for the erasure codec to interpret further.
  23204. @param allOptions all schema options]]>
  23205. </doc>
  23206. </constructor>
  23207. <constructor name="ECSchema" type="java.lang.String, int, int"
  23208. static="false" final="false" visibility="public"
  23209. deprecated="not deprecated">
  23210. <doc>
  23211. <![CDATA[Constructor with key parameters provided.
  23212. @param codecName codec name
  23213. @param numDataUnits number of data units used in the schema
  23214. @param numParityUnits number os parity units used in the schema]]>
  23215. </doc>
  23216. </constructor>
  23217. <constructor name="ECSchema" type="java.lang.String, int, int, java.util.Map"
  23218. static="false" final="false" visibility="public"
  23219. deprecated="not deprecated">
  23220. <doc>
  23221. <![CDATA[Constructor with key parameters provided. Note the extraOptions may contain
  23222. additional information for the erasure codec to interpret further.
  23223. @param codecName codec name
  23224. @param numDataUnits number of data units used in the schema
  23225. @param numParityUnits number os parity units used in the schema
  23226. @param extraOptions extra options to configure the codec]]>
  23227. </doc>
  23228. </constructor>
  23229. <method name="getCodecName" return="java.lang.String"
  23230. abstract="false" native="false" synchronized="false"
  23231. static="false" final="false" visibility="public"
  23232. deprecated="not deprecated">
  23233. <doc>
  23234. <![CDATA[Get the codec name
  23235. @return codec name]]>
  23236. </doc>
  23237. </method>
  23238. <method name="getExtraOptions" return="java.util.Map"
  23239. abstract="false" native="false" synchronized="false"
  23240. static="false" final="false" visibility="public"
  23241. deprecated="not deprecated">
  23242. <doc>
  23243. <![CDATA[Get extra options specific to a erasure code.
  23244. @return extra options]]>
  23245. </doc>
  23246. </method>
  23247. <method name="getNumDataUnits" return="int"
  23248. abstract="false" native="false" synchronized="false"
  23249. static="false" final="false" visibility="public"
  23250. deprecated="not deprecated">
  23251. <doc>
  23252. <![CDATA[Get required data units count in a coding group
  23253. @return count of data units]]>
  23254. </doc>
  23255. </method>
  23256. <method name="getNumParityUnits" return="int"
  23257. abstract="false" native="false" synchronized="false"
  23258. static="false" final="false" visibility="public"
  23259. deprecated="not deprecated">
  23260. <doc>
  23261. <![CDATA[Get required parity units count in a coding group
  23262. @return count of parity units]]>
  23263. </doc>
  23264. </method>
  23265. <method name="toString" return="java.lang.String"
  23266. abstract="false" native="false" synchronized="false"
  23267. static="false" final="false" visibility="public"
  23268. deprecated="not deprecated">
  23269. <doc>
  23270. <![CDATA[Make a meaningful string representation for log output.
  23271. @return string representation]]>
  23272. </doc>
  23273. </method>
  23274. <method name="equals" return="boolean"
  23275. abstract="false" native="false" synchronized="false"
  23276. static="false" final="false" visibility="public"
  23277. deprecated="not deprecated">
  23278. <param name="o" type="java.lang.Object"/>
  23279. </method>
  23280. <method name="hashCode" return="int"
  23281. abstract="false" native="false" synchronized="false"
  23282. static="false" final="false" visibility="public"
  23283. deprecated="not deprecated">
  23284. </method>
  23285. <field name="NUM_DATA_UNITS_KEY" type="java.lang.String"
  23286. transient="false" volatile="false"
  23287. static="true" final="true" visibility="public"
  23288. deprecated="not deprecated">
  23289. </field>
  23290. <field name="NUM_PARITY_UNITS_KEY" type="java.lang.String"
  23291. transient="false" volatile="false"
  23292. static="true" final="true" visibility="public"
  23293. deprecated="not deprecated">
  23294. </field>
  23295. <field name="CODEC_NAME_KEY" type="java.lang.String"
  23296. transient="false" volatile="false"
  23297. static="true" final="true" visibility="public"
  23298. deprecated="not deprecated">
  23299. </field>
  23300. <doc>
  23301. <![CDATA[Erasure coding schema to housekeeper relevant information.]]>
  23302. </doc>
  23303. </class>
  23304. <!-- end class org.apache.hadoop.io.erasurecode.ECSchema -->
  23305. </package>
  23306. <package name="org.apache.hadoop.io.erasurecode.coder.util">
  23307. </package>
  23308. <package name="org.apache.hadoop.io.erasurecode.grouper">
  23309. </package>
  23310. <package name="org.apache.hadoop.io.file.tfile">
  23311. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  23312. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  23313. abstract="false"
  23314. static="false" final="false" visibility="public"
  23315. deprecated="not deprecated">
  23316. <doc>
  23317. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  23318. </doc>
  23319. </class>
  23320. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  23321. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  23322. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  23323. abstract="false"
  23324. static="false" final="false" visibility="public"
  23325. deprecated="not deprecated">
  23326. <doc>
  23327. <![CDATA[Exception - No such Meta Block with the given name.]]>
  23328. </doc>
  23329. </class>
  23330. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  23331. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  23332. <interface name="RawComparable" abstract="true"
  23333. static="false" final="false" visibility="public"
  23334. deprecated="not deprecated">
  23335. <method name="buffer" return="byte[]"
  23336. abstract="true" native="false" synchronized="false"
  23337. static="false" final="false" visibility="public"
  23338. deprecated="not deprecated">
  23339. <doc>
  23340. <![CDATA[Get the underlying byte array.
  23341. @return The underlying byte array.]]>
  23342. </doc>
  23343. </method>
  23344. <method name="offset" return="int"
  23345. abstract="true" native="false" synchronized="false"
  23346. static="false" final="false" visibility="public"
  23347. deprecated="not deprecated">
  23348. <doc>
  23349. <![CDATA[Get the offset of the first byte in the byte array.
  23350. @return The offset of the first byte in the byte array.]]>
  23351. </doc>
  23352. </method>
  23353. <method name="size" return="int"
  23354. abstract="true" native="false" synchronized="false"
  23355. static="false" final="false" visibility="public"
  23356. deprecated="not deprecated">
  23357. <doc>
  23358. <![CDATA[Get the size of the byte range in the byte array.
  23359. @return The size of the byte range in the byte array.]]>
  23360. </doc>
  23361. </method>
  23362. <doc>
  23363. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  23364. This is useful in places where we need a single object reference to specify a
  23365. range of bytes in a byte array, such as {@link Comparable} or
  23366. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  23367. The actual comparison among RawComparable's requires an external
  23368. RawComparator and it is applications' responsibility to ensure two
  23369. RawComparable are supposed to be semantically comparable with the same
  23370. RawComparator.]]>
  23371. </doc>
  23372. </interface>
  23373. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  23374. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  23375. <class name="TFile" extends="java.lang.Object"
  23376. abstract="false"
  23377. static="false" final="false" visibility="public"
  23378. deprecated="not deprecated">
  23379. <method name="makeComparator" return="java.util.Comparator"
  23380. abstract="false" native="false" synchronized="false"
  23381. static="true" final="false" visibility="public"
  23382. deprecated="not deprecated">
  23383. <param name="name" type="java.lang.String"/>
  23384. <doc>
  23385. <![CDATA[Make a raw comparator from a string name.
  23386. @param name
  23387. Comparator name
  23388. @return A RawComparable comparator.]]>
  23389. </doc>
  23390. </method>
  23391. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  23392. abstract="false" native="false" synchronized="false"
  23393. static="true" final="false" visibility="public"
  23394. deprecated="not deprecated">
  23395. <doc>
  23396. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  23397. TFile.Writer.
  23398. @return Array of strings, each represents a supported compression
  23399. algorithm. Currently, the following compression algorithms are
  23400. supported.
  23401. <ul>
  23402. <li>"none" - No compression.
  23403. <li>"lzo" - LZO compression.
  23404. <li>"gz" - GZIP compression.
  23405. </ul>]]>
  23406. </doc>
  23407. </method>
  23408. <method name="main"
  23409. abstract="false" native="false" synchronized="false"
  23410. static="true" final="false" visibility="public"
  23411. deprecated="not deprecated">
  23412. <param name="args" type="java.lang.String[]"/>
  23413. <doc>
  23414. <![CDATA[Dumping the TFile information.
  23415. @param args
  23416. A list of TFile paths.]]>
  23417. </doc>
  23418. </method>
  23419. <field name="COMPRESSION_GZ" type="java.lang.String"
  23420. transient="false" volatile="false"
  23421. static="true" final="true" visibility="public"
  23422. deprecated="not deprecated">
  23423. <doc>
  23424. <![CDATA[compression: gzip]]>
  23425. </doc>
  23426. </field>
  23427. <field name="COMPRESSION_LZO" type="java.lang.String"
  23428. transient="false" volatile="false"
  23429. static="true" final="true" visibility="public"
  23430. deprecated="not deprecated">
  23431. <doc>
  23432. <![CDATA[compression: lzo]]>
  23433. </doc>
  23434. </field>
  23435. <field name="COMPRESSION_NONE" type="java.lang.String"
  23436. transient="false" volatile="false"
  23437. static="true" final="true" visibility="public"
  23438. deprecated="not deprecated">
  23439. <doc>
  23440. <![CDATA[compression: none]]>
  23441. </doc>
  23442. </field>
  23443. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  23444. transient="false" volatile="false"
  23445. static="true" final="true" visibility="public"
  23446. deprecated="not deprecated">
  23447. <doc>
  23448. <![CDATA[comparator: memcmp]]>
  23449. </doc>
  23450. </field>
  23451. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  23452. transient="false" volatile="false"
  23453. static="true" final="true" visibility="public"
  23454. deprecated="not deprecated">
  23455. <doc>
  23456. <![CDATA[comparator prefix: java class]]>
  23457. </doc>
  23458. </field>
  23459. <doc>
  23460. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  23461. bytes. Keys are restricted to 64KB, value length is not restricted
  23462. (practically limited to the available disk storage). TFile further provides
  23463. the following features:
  23464. <ul>
  23465. <li>Block Compression.
  23466. <li>Named meta data blocks.
  23467. <li>Sorted or unsorted keys.
  23468. <li>Seek by key or by file offset.
  23469. </ul>
  23470. The memory footprint of a TFile includes the following:
  23471. <ul>
  23472. <li>Some constant overhead of reading or writing a compressed block.
  23473. <ul>
  23474. <li>Each compressed block requires one compression/decompression codec for
  23475. I/O.
  23476. <li>Temporary space to buffer the key.
  23477. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  23478. chunk encoded, so that we buffer at most one chunk of user data. By default,
  23479. the chunk buffer is 1MB. Reading chunked value does not require additional
  23480. memory.
  23481. </ul>
  23482. <li>TFile index, which is proportional to the total number of Data Blocks.
  23483. The total amount of memory needed to hold the index can be estimated as
  23484. (56+AvgKeySize)*NumBlocks.
  23485. <li>MetaBlock index, which is proportional to the total number of Meta
  23486. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  23487. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  23488. </ul>
  23489. <p>
  23490. The behavior of TFile can be customized by the following variables through
  23491. Configuration:
  23492. <ul>
  23493. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  23494. to 1MB. Values of the length less than the chunk size is guaranteed to have
  23495. known value length in read time (See
  23496. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  23497. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  23498. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  23499. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  23500. FSDataInputStream. Integer (in bytes). Default to 256KB.
  23501. </ul>
  23502. <p>
  23503. Suggestions on performance optimization.
  23504. <ul>
  23505. <li>Minimum block size. We recommend a setting of minimum block size between
  23506. 256KB to 1MB for general usage. Larger block size is preferred if files are
  23507. primarily for sequential access. However, it would lead to inefficient random
  23508. access (because there are more data to decompress). Smaller blocks are good
  23509. for random access, but require more memory to hold the block index, and may
  23510. be slower to create (because we must flush the compressor stream at the
  23511. conclusion of each data block, which leads to an FS I/O flush). Further, due
  23512. to the internal caching in Compression codec, the smallest possible block
  23513. size would be around 20KB-30KB.
  23514. <li>The current implementation does not offer true multi-threading for
  23515. reading. The implementation uses FSDataInputStream seek()+read(), which is
  23516. shown to be much faster than positioned-read call in single thread mode.
  23517. However, it also means that if multiple threads attempt to access the same
  23518. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  23519. sequentially even if they access different DFS blocks.
  23520. <li>Compression codec. Use "none" if the data is not very compressable (by
  23521. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  23522. as the starting point for experimenting. "gz" overs slightly better
  23523. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  23524. decompress, comparing to "lzo".
  23525. <li>File system buffering, if the underlying FSDataInputStream and
  23526. FSDataOutputStream is already adequately buffered; or if applications
  23527. reads/writes keys and values in large buffers, we can reduce the sizes of
  23528. input/output buffering in TFile layer by setting the configuration parameters
  23529. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  23530. </ul>
  23531. Some design rationale behind TFile can be found at <a
  23532. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  23533. </doc>
  23534. </class>
  23535. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  23536. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  23537. <class name="Utils" extends="java.lang.Object"
  23538. abstract="false"
  23539. static="false" final="true" visibility="public"
  23540. deprecated="not deprecated">
  23541. <method name="writeVInt"
  23542. abstract="false" native="false" synchronized="false"
  23543. static="true" final="false" visibility="public"
  23544. deprecated="not deprecated">
  23545. <param name="out" type="java.io.DataOutput"/>
  23546. <param name="n" type="int"/>
  23547. <exception name="IOException" type="java.io.IOException"/>
  23548. <doc>
  23549. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  23550. <code>Utils#writeVLong(out, n)</code>.
  23551. @param out
  23552. output stream
  23553. @param n
  23554. The integer to be encoded
  23555. @throws IOException
  23556. @see Utils#writeVLong(DataOutput, long)]]>
  23557. </doc>
  23558. </method>
  23559. <method name="writeVLong"
  23560. abstract="false" native="false" synchronized="false"
  23561. static="true" final="false" visibility="public"
  23562. deprecated="not deprecated">
  23563. <param name="out" type="java.io.DataOutput"/>
  23564. <param name="n" type="long"/>
  23565. <exception name="IOException" type="java.io.IOException"/>
  23566. <doc>
  23567. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  23568. <ul>
  23569. <li>if n in [-32, 127): encode in one byte with the actual value.
  23570. Otherwise,
  23571. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  23572. byte[1]=n&0xff. Otherwise,
  23573. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  23574. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  23575. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  23576. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  23577. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  23578. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  23579. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  23580. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  23581. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  23582. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  23583. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  23584. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  23585. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  23586. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  23587. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  23588. byte[7]=n&0xff;
  23589. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  23590. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  23591. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  23592. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  23593. </ul>
  23594. @param out
  23595. output stream
  23596. @param n
  23597. the integer number
  23598. @throws IOException]]>
  23599. </doc>
  23600. </method>
  23601. <method name="readVInt" return="int"
  23602. abstract="false" native="false" synchronized="false"
  23603. static="true" final="false" visibility="public"
  23604. deprecated="not deprecated">
  23605. <param name="in" type="java.io.DataInput"/>
  23606. <exception name="IOException" type="java.io.IOException"/>
  23607. <doc>
  23608. <![CDATA[Decoding the variable-length integer. Synonymous to
  23609. <code>(int)Utils#readVLong(in)</code>.
  23610. @param in
  23611. input stream
  23612. @return the decoded integer
  23613. @throws IOException
  23614. @see Utils#readVLong(DataInput)]]>
  23615. </doc>
  23616. </method>
  23617. <method name="readVLong" return="long"
  23618. abstract="false" native="false" synchronized="false"
  23619. static="true" final="false" visibility="public"
  23620. deprecated="not deprecated">
  23621. <param name="in" type="java.io.DataInput"/>
  23622. <exception name="IOException" type="java.io.IOException"/>
  23623. <doc>
  23624. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  23625. is FB, and the following bytes are NB[*].
  23626. <ul>
  23627. <li>if (FB >= -32), return (long)FB;
  23628. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  23629. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  23630. NB[1]&0xff;
  23631. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  23632. (NB[1]&0xff)<<8 + NB[2]&0xff;
  23633. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  23634. big-endian integer.
  23635. @param in
  23636. input stream
  23637. @return the decoded long integer.
  23638. @throws IOException]]>
  23639. </doc>
  23640. </method>
  23641. <method name="writeString"
  23642. abstract="false" native="false" synchronized="false"
  23643. static="true" final="false" visibility="public"
  23644. deprecated="not deprecated">
  23645. <param name="out" type="java.io.DataOutput"/>
  23646. <param name="s" type="java.lang.String"/>
  23647. <exception name="IOException" type="java.io.IOException"/>
  23648. <doc>
  23649. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  23650. @param out
  23651. @param s
  23652. @throws IOException]]>
  23653. </doc>
  23654. </method>
  23655. <method name="readString" return="java.lang.String"
  23656. abstract="false" native="false" synchronized="false"
  23657. static="true" final="false" visibility="public"
  23658. deprecated="not deprecated">
  23659. <param name="in" type="java.io.DataInput"/>
  23660. <exception name="IOException" type="java.io.IOException"/>
  23661. <doc>
  23662. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  23663. @param in
  23664. The input stream.
  23665. @return The string
  23666. @throws IOException]]>
  23667. </doc>
  23668. </method>
  23669. <method name="lowerBound" return="int"
  23670. abstract="false" native="false" synchronized="false"
  23671. static="true" final="false" visibility="public"
  23672. deprecated="not deprecated">
  23673. <param name="list" type="java.util.List"/>
  23674. <param name="key" type="T"/>
  23675. <param name="cmp" type="java.util.Comparator"/>
  23676. <doc>
  23677. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  23678. that compares greater than or equal to key.
  23679. @param <T>
  23680. Type of the input key.
  23681. @param list
  23682. The list
  23683. @param key
  23684. The input key.
  23685. @param cmp
  23686. Comparator for the key.
  23687. @return The index to the desired element if it exists; or list.size()
  23688. otherwise.]]>
  23689. </doc>
  23690. </method>
  23691. <method name="upperBound" return="int"
  23692. abstract="false" native="false" synchronized="false"
  23693. static="true" final="false" visibility="public"
  23694. deprecated="not deprecated">
  23695. <param name="list" type="java.util.List"/>
  23696. <param name="key" type="T"/>
  23697. <param name="cmp" type="java.util.Comparator"/>
  23698. <doc>
  23699. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  23700. that compares greater than the input key.
  23701. @param <T>
  23702. Type of the input key.
  23703. @param list
  23704. The list
  23705. @param key
  23706. The input key.
  23707. @param cmp
  23708. Comparator for the key.
  23709. @return The index to the desired element if it exists; or list.size()
  23710. otherwise.]]>
  23711. </doc>
  23712. </method>
  23713. <method name="lowerBound" return="int"
  23714. abstract="false" native="false" synchronized="false"
  23715. static="true" final="false" visibility="public"
  23716. deprecated="not deprecated">
  23717. <param name="list" type="java.util.List"/>
  23718. <param name="key" type="T"/>
  23719. <doc>
  23720. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  23721. that compares greater than or equal to key.
  23722. @param <T>
  23723. Type of the input key.
  23724. @param list
  23725. The list
  23726. @param key
  23727. The input key.
  23728. @return The index to the desired element if it exists; or list.size()
  23729. otherwise.]]>
  23730. </doc>
  23731. </method>
  23732. <method name="upperBound" return="int"
  23733. abstract="false" native="false" synchronized="false"
  23734. static="true" final="false" visibility="public"
  23735. deprecated="not deprecated">
  23736. <param name="list" type="java.util.List"/>
  23737. <param name="key" type="T"/>
  23738. <doc>
  23739. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  23740. that compares greater than the input key.
  23741. @param <T>
  23742. Type of the input key.
  23743. @param list
  23744. The list
  23745. @param key
  23746. The input key.
  23747. @return The index to the desired element if it exists; or list.size()
  23748. otherwise.]]>
  23749. </doc>
  23750. </method>
  23751. <doc>
  23752. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  23753. </doc>
  23754. </class>
  23755. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  23756. </package>
  23757. <package name="org.apache.hadoop.io.serializer">
  23758. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  23759. <class name="JavaSerialization" extends="java.lang.Object"
  23760. abstract="false"
  23761. static="false" final="false" visibility="public"
  23762. deprecated="not deprecated">
  23763. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  23764. <constructor name="JavaSerialization"
  23765. static="false" final="false" visibility="public"
  23766. deprecated="not deprecated">
  23767. </constructor>
  23768. <doc>
  23769. <![CDATA[<p>
  23770. An experimental {@link Serialization} for Java {@link Serializable} classes.
  23771. </p>
  23772. @see JavaSerializationComparator]]>
  23773. </doc>
  23774. </class>
  23775. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  23776. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  23777. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  23778. abstract="false"
  23779. static="false" final="false" visibility="public"
  23780. deprecated="not deprecated">
  23781. <constructor name="JavaSerializationComparator"
  23782. static="false" final="false" visibility="public"
  23783. deprecated="not deprecated">
  23784. <exception name="IOException" type="java.io.IOException"/>
  23785. </constructor>
  23786. <doc>
  23787. <![CDATA[<p>
  23788. A {@link RawComparator} that uses a {@link JavaSerialization}
  23789. {@link Deserializer} to deserialize objects that are then compared via
  23790. their {@link Comparable} interfaces.
  23791. </p>
  23792. @param <T>
  23793. @see JavaSerialization]]>
  23794. </doc>
  23795. </class>
  23796. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  23797. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  23798. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  23799. abstract="false"
  23800. static="false" final="false" visibility="public"
  23801. deprecated="not deprecated">
  23802. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  23803. <constructor name="WritableSerialization"
  23804. static="false" final="false" visibility="public"
  23805. deprecated="not deprecated">
  23806. </constructor>
  23807. <doc>
  23808. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  23809. {@link Writable#write(java.io.DataOutput)} and
  23810. {@link Writable#readFields(java.io.DataInput)}.]]>
  23811. </doc>
  23812. </class>
  23813. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  23814. <doc>
  23815. <![CDATA[<p>
  23816. This package provides a mechanism for using different serialization frameworks
  23817. in Hadoop. The property "io.serializations" defines a list of
  23818. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  23819. {@link org.apache.hadoop.io.serializer.Serializer}s and
  23820. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  23821. </p>
  23822. <p>
  23823. To add a new serialization framework write an implementation of
  23824. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  23825. "io.serializations" property.
  23826. </p>]]>
  23827. </doc>
  23828. </package>
  23829. <package name="org.apache.hadoop.io.serializer.avro">
  23830. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  23831. <interface name="AvroReflectSerializable" abstract="true"
  23832. static="false" final="false" visibility="public"
  23833. deprecated="not deprecated">
  23834. <doc>
  23835. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  23836. this interface can be serialized/deserialized using
  23837. {@link AvroReflectSerialization}.]]>
  23838. </doc>
  23839. </interface>
  23840. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  23841. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  23842. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  23843. abstract="false"
  23844. static="false" final="false" visibility="public"
  23845. deprecated="not deprecated">
  23846. <constructor name="AvroReflectSerialization"
  23847. static="false" final="false" visibility="public"
  23848. deprecated="not deprecated">
  23849. </constructor>
  23850. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  23851. transient="false" volatile="false"
  23852. static="true" final="true" visibility="public"
  23853. deprecated="not deprecated">
  23854. <doc>
  23855. <![CDATA[Key to configure packages that contain classes to be serialized and
  23856. deserialized using this class. Multiple packages can be specified using
  23857. comma-separated list.]]>
  23858. </doc>
  23859. </field>
  23860. <doc>
  23861. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  23862. serialization, it must either be in the package list configured via
  23863. <code>avro.reflect.pkgs</code> or implement
  23864. {@link AvroReflectSerializable} interface.]]>
  23865. </doc>
  23866. </class>
  23867. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  23868. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  23869. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  23870. abstract="true"
  23871. static="false" final="false" visibility="public"
  23872. deprecated="not deprecated">
  23873. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  23874. <constructor name="AvroSerialization"
  23875. static="false" final="false" visibility="public"
  23876. deprecated="not deprecated">
  23877. </constructor>
  23878. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  23879. transient="false" volatile="false"
  23880. static="true" final="true" visibility="public"
  23881. deprecated="not deprecated">
  23882. </field>
  23883. <doc>
  23884. <![CDATA[Base class for providing serialization to Avro types.]]>
  23885. </doc>
  23886. </class>
  23887. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  23888. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  23889. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  23890. abstract="false"
  23891. static="false" final="false" visibility="public"
  23892. deprecated="not deprecated">
  23893. <constructor name="AvroSpecificSerialization"
  23894. static="false" final="false" visibility="public"
  23895. deprecated="not deprecated">
  23896. </constructor>
  23897. <doc>
  23898. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  23899. for classes generated by Avro's 'specific' compiler.]]>
  23900. </doc>
  23901. </class>
  23902. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  23903. <doc>
  23904. <![CDATA[<p>
  23905. This package provides Avro serialization in Hadoop. This can be used to
  23906. serialize/deserialize Avro types in Hadoop.
  23907. </p>
  23908. <p>
  23909. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  23910. serialization of classes generated by Avro's 'specific' compiler.
  23911. </p>
  23912. <p>
  23913. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  23914. other classes.
  23915. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  23916. any class which is either in the package list configured via
  23917. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  23918. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  23919. interface.
  23920. </p>]]>
  23921. </doc>
  23922. </package>
  23923. <package name="org.apache.hadoop.ipc.protocolPB">
  23924. </package>
  23925. <package name="org.apache.hadoop.log">
  23926. </package>
  23927. <package name="org.apache.hadoop.log.metrics">
  23928. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  23929. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  23930. abstract="false"
  23931. static="false" final="false" visibility="public"
  23932. deprecated="not deprecated">
  23933. <constructor name="EventCounter"
  23934. static="false" final="false" visibility="public"
  23935. deprecated="not deprecated">
  23936. </constructor>
  23937. <method name="append"
  23938. abstract="false" native="false" synchronized="false"
  23939. static="false" final="false" visibility="public"
  23940. deprecated="not deprecated">
  23941. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  23942. </method>
  23943. <method name="close"
  23944. abstract="false" native="false" synchronized="false"
  23945. static="false" final="false" visibility="public"
  23946. deprecated="not deprecated">
  23947. </method>
  23948. <method name="requiresLayout" return="boolean"
  23949. abstract="false" native="false" synchronized="false"
  23950. static="false" final="false" visibility="public"
  23951. deprecated="not deprecated">
  23952. </method>
  23953. <doc>
  23954. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  23955. fatal, error and warn. The class name is used in log4j.properties]]>
  23956. </doc>
  23957. </class>
  23958. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  23959. </package>
  23960. <package name="org.apache.hadoop.metrics2">
  23961. <!-- start class org.apache.hadoop.metrics2.AbstractMetric -->
  23962. <class name="AbstractMetric" extends="java.lang.Object"
  23963. abstract="true"
  23964. static="false" final="false" visibility="public"
  23965. deprecated="not deprecated">
  23966. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  23967. <constructor name="AbstractMetric" type="org.apache.hadoop.metrics2.MetricsInfo"
  23968. static="false" final="false" visibility="protected"
  23969. deprecated="not deprecated">
  23970. <doc>
  23971. <![CDATA[Construct the metric
  23972. @param info about the metric]]>
  23973. </doc>
  23974. </constructor>
  23975. <method name="name" return="java.lang.String"
  23976. abstract="false" native="false" synchronized="false"
  23977. static="false" final="false" visibility="public"
  23978. deprecated="not deprecated">
  23979. </method>
  23980. <method name="description" return="java.lang.String"
  23981. abstract="false" native="false" synchronized="false"
  23982. static="false" final="false" visibility="public"
  23983. deprecated="not deprecated">
  23984. </method>
  23985. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  23986. abstract="false" native="false" synchronized="false"
  23987. static="false" final="false" visibility="protected"
  23988. deprecated="not deprecated">
  23989. </method>
  23990. <method name="value" return="java.lang.Number"
  23991. abstract="true" native="false" synchronized="false"
  23992. static="false" final="false" visibility="public"
  23993. deprecated="not deprecated">
  23994. <doc>
  23995. <![CDATA[Get the value of the metric
  23996. @return the value of the metric]]>
  23997. </doc>
  23998. </method>
  23999. <method name="type" return="org.apache.hadoop.metrics2.MetricType"
  24000. abstract="true" native="false" synchronized="false"
  24001. static="false" final="false" visibility="public"
  24002. deprecated="not deprecated">
  24003. <doc>
  24004. <![CDATA[Get the type of the metric
  24005. @return the type of the metric]]>
  24006. </doc>
  24007. </method>
  24008. <method name="visit"
  24009. abstract="true" native="false" synchronized="false"
  24010. static="false" final="false" visibility="public"
  24011. deprecated="not deprecated">
  24012. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  24013. <doc>
  24014. <![CDATA[Accept a visitor interface
  24015. @param visitor of the metric]]>
  24016. </doc>
  24017. </method>
  24018. <method name="equals" return="boolean"
  24019. abstract="false" native="false" synchronized="false"
  24020. static="false" final="false" visibility="public"
  24021. deprecated="not deprecated">
  24022. <param name="obj" type="java.lang.Object"/>
  24023. </method>
  24024. <method name="hashCode" return="int"
  24025. abstract="false" native="false" synchronized="false"
  24026. static="false" final="false" visibility="public"
  24027. deprecated="not deprecated">
  24028. </method>
  24029. <method name="toString" return="java.lang.String"
  24030. abstract="false" native="false" synchronized="false"
  24031. static="false" final="false" visibility="public"
  24032. deprecated="not deprecated">
  24033. </method>
  24034. <doc>
  24035. <![CDATA[The immutable metric]]>
  24036. </doc>
  24037. </class>
  24038. <!-- end class org.apache.hadoop.metrics2.AbstractMetric -->
  24039. <!-- start interface org.apache.hadoop.metrics2.MetricsCollector -->
  24040. <interface name="MetricsCollector" abstract="true"
  24041. static="false" final="false" visibility="public"
  24042. deprecated="not deprecated">
  24043. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24044. abstract="true" native="false" synchronized="false"
  24045. static="false" final="false" visibility="public"
  24046. deprecated="not deprecated">
  24047. <param name="name" type="java.lang.String"/>
  24048. <doc>
  24049. <![CDATA[Add a metrics record
  24050. @param name of the record
  24051. @return a {@link MetricsRecordBuilder} for the record {@code name}]]>
  24052. </doc>
  24053. </method>
  24054. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24055. abstract="true" native="false" synchronized="false"
  24056. static="false" final="false" visibility="public"
  24057. deprecated="not deprecated">
  24058. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24059. <doc>
  24060. <![CDATA[Add a metrics record
  24061. @param info of the record
  24062. @return a {@link MetricsRecordBuilder} for metrics {@code info}]]>
  24063. </doc>
  24064. </method>
  24065. <doc>
  24066. <![CDATA[The metrics collector interface]]>
  24067. </doc>
  24068. </interface>
  24069. <!-- end interface org.apache.hadoop.metrics2.MetricsCollector -->
  24070. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  24071. <class name="MetricsException" extends="java.lang.RuntimeException"
  24072. abstract="false"
  24073. static="false" final="false" visibility="public"
  24074. deprecated="not deprecated">
  24075. <constructor name="MetricsException" type="java.lang.String"
  24076. static="false" final="false" visibility="public"
  24077. deprecated="not deprecated">
  24078. <doc>
  24079. <![CDATA[Construct the exception with a message
  24080. @param message for the exception]]>
  24081. </doc>
  24082. </constructor>
  24083. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  24084. static="false" final="false" visibility="public"
  24085. deprecated="not deprecated">
  24086. <doc>
  24087. <![CDATA[Construct the exception with a message and a cause
  24088. @param message for the exception
  24089. @param cause of the exception]]>
  24090. </doc>
  24091. </constructor>
  24092. <constructor name="MetricsException" type="java.lang.Throwable"
  24093. static="false" final="false" visibility="public"
  24094. deprecated="not deprecated">
  24095. <doc>
  24096. <![CDATA[Construct the exception with a cause
  24097. @param cause of the exception]]>
  24098. </doc>
  24099. </constructor>
  24100. <doc>
  24101. <![CDATA[A general metrics exception wrapper]]>
  24102. </doc>
  24103. </class>
  24104. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  24105. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  24106. <class name="MetricsFilter" extends="java.lang.Object"
  24107. abstract="true"
  24108. static="false" final="false" visibility="public"
  24109. deprecated="not deprecated">
  24110. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  24111. <constructor name="MetricsFilter"
  24112. static="false" final="false" visibility="public"
  24113. deprecated="not deprecated">
  24114. </constructor>
  24115. <method name="accepts" return="boolean"
  24116. abstract="true" native="false" synchronized="false"
  24117. static="false" final="false" visibility="public"
  24118. deprecated="not deprecated">
  24119. <param name="name" type="java.lang.String"/>
  24120. <doc>
  24121. <![CDATA[Whether to accept the name
  24122. @param name to filter on
  24123. @return true to accept; false otherwise.]]>
  24124. </doc>
  24125. </method>
  24126. <method name="accepts" return="boolean"
  24127. abstract="true" native="false" synchronized="false"
  24128. static="false" final="false" visibility="public"
  24129. deprecated="not deprecated">
  24130. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24131. <doc>
  24132. <![CDATA[Whether to accept the tag
  24133. @param tag to filter on
  24134. @return true to accept; false otherwise]]>
  24135. </doc>
  24136. </method>
  24137. <method name="accepts" return="boolean"
  24138. abstract="true" native="false" synchronized="false"
  24139. static="false" final="false" visibility="public"
  24140. deprecated="not deprecated">
  24141. <param name="tags" type="java.lang.Iterable"/>
  24142. <doc>
  24143. <![CDATA[Whether to accept the tags
  24144. @param tags to filter on
  24145. @return true to accept; false otherwise]]>
  24146. </doc>
  24147. </method>
  24148. <method name="accepts" return="boolean"
  24149. abstract="false" native="false" synchronized="false"
  24150. static="false" final="false" visibility="public"
  24151. deprecated="not deprecated">
  24152. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  24153. <doc>
  24154. <![CDATA[Whether to accept the record
  24155. @param record to filter on
  24156. @return true to accept; false otherwise.]]>
  24157. </doc>
  24158. </method>
  24159. <doc>
  24160. <![CDATA[The metrics filter interface. The MetricsFilter objects can be used either to
  24161. filter the metrics from {@link MetricsSource}s or to filter metrics per
  24162. {@link MetricsSink}.]]>
  24163. </doc>
  24164. </class>
  24165. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  24166. <!-- start interface org.apache.hadoop.metrics2.MetricsInfo -->
  24167. <interface name="MetricsInfo" abstract="true"
  24168. static="false" final="false" visibility="public"
  24169. deprecated="not deprecated">
  24170. <method name="name" return="java.lang.String"
  24171. abstract="true" native="false" synchronized="false"
  24172. static="false" final="false" visibility="public"
  24173. deprecated="not deprecated">
  24174. <doc>
  24175. <![CDATA[Typically name corresponds to annotation {@link Metric#value()} or
  24176. the name of the class.
  24177. @return the name of the metric/tag]]>
  24178. </doc>
  24179. </method>
  24180. <method name="description" 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 the description corresponds to annotation {@link Metric#about()}
  24186. or the name of the class.
  24187. @return the description of the metric/tag]]>
  24188. </doc>
  24189. </method>
  24190. <doc>
  24191. <![CDATA[Interface to provide immutable metainfo for metrics.]]>
  24192. </doc>
  24193. </interface>
  24194. <!-- end interface org.apache.hadoop.metrics2.MetricsInfo -->
  24195. <!-- start class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  24196. <class name="MetricsJsonBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24197. abstract="false"
  24198. static="false" final="false" visibility="public"
  24199. deprecated="not deprecated">
  24200. <constructor name="MetricsJsonBuilder" type="org.apache.hadoop.metrics2.MetricsCollector"
  24201. static="false" final="false" visibility="public"
  24202. deprecated="not deprecated">
  24203. <doc>
  24204. <![CDATA[Build an instance.
  24205. @param parent parent collector. Unused in this instance; only used for
  24206. the {@link #parent()} method]]>
  24207. </doc>
  24208. </constructor>
  24209. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24210. abstract="false" native="false" synchronized="false"
  24211. static="false" final="false" visibility="public"
  24212. deprecated="not deprecated">
  24213. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24214. <param name="value" type="java.lang.String"/>
  24215. </method>
  24216. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24217. abstract="false" native="false" synchronized="false"
  24218. static="false" final="false" visibility="public"
  24219. deprecated="not deprecated">
  24220. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24221. </method>
  24222. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24223. abstract="false" native="false" synchronized="false"
  24224. static="false" final="false" visibility="public"
  24225. deprecated="not deprecated">
  24226. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  24227. </method>
  24228. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24229. abstract="false" native="false" synchronized="false"
  24230. static="false" final="false" visibility="public"
  24231. deprecated="not deprecated">
  24232. <param name="value" type="java.lang.String"/>
  24233. </method>
  24234. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24235. abstract="false" native="false" synchronized="false"
  24236. static="false" final="false" visibility="public"
  24237. deprecated="not deprecated">
  24238. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24239. <param name="value" type="int"/>
  24240. </method>
  24241. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24242. abstract="false" native="false" synchronized="false"
  24243. static="false" final="false" visibility="public"
  24244. deprecated="not deprecated">
  24245. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24246. <param name="value" type="long"/>
  24247. </method>
  24248. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24249. abstract="false" native="false" synchronized="false"
  24250. static="false" final="false" visibility="public"
  24251. deprecated="not deprecated">
  24252. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24253. <param name="value" type="int"/>
  24254. </method>
  24255. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24256. abstract="false" native="false" synchronized="false"
  24257. static="false" final="false" visibility="public"
  24258. deprecated="not deprecated">
  24259. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24260. <param name="value" type="long"/>
  24261. </method>
  24262. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24263. abstract="false" native="false" synchronized="false"
  24264. static="false" final="false" visibility="public"
  24265. deprecated="not deprecated">
  24266. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24267. <param name="value" type="float"/>
  24268. </method>
  24269. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24270. abstract="false" native="false" synchronized="false"
  24271. static="false" final="false" visibility="public"
  24272. deprecated="not deprecated">
  24273. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24274. <param name="value" type="double"/>
  24275. </method>
  24276. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  24277. abstract="false" native="false" synchronized="false"
  24278. static="false" final="false" visibility="public"
  24279. deprecated="not deprecated">
  24280. </method>
  24281. <method name="toString" return="java.lang.String"
  24282. abstract="false" native="false" synchronized="false"
  24283. static="false" final="false" visibility="public"
  24284. deprecated="not deprecated">
  24285. </method>
  24286. <field name="LOG" type="org.slf4j.Logger"
  24287. transient="false" volatile="false"
  24288. static="true" final="true" visibility="public"
  24289. deprecated="not deprecated">
  24290. </field>
  24291. <doc>
  24292. <![CDATA[Build a JSON dump of the metrics.
  24293. The {@link #toString()} operator dumps out all values collected.]]>
  24294. </doc>
  24295. </class>
  24296. <!-- end class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  24297. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  24298. <interface name="MetricsPlugin" abstract="true"
  24299. static="false" final="false" visibility="public"
  24300. deprecated="not deprecated">
  24301. <method name="init"
  24302. abstract="true" native="false" synchronized="false"
  24303. static="false" final="false" visibility="public"
  24304. deprecated="not deprecated">
  24305. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  24306. <doc>
  24307. <![CDATA[Initialize the plugin
  24308. @param conf the configuration object for the plugin]]>
  24309. </doc>
  24310. </method>
  24311. <doc>
  24312. <![CDATA[The plugin interface for the metrics framework]]>
  24313. </doc>
  24314. </interface>
  24315. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  24316. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  24317. <interface name="MetricsRecord" abstract="true"
  24318. static="false" final="false" visibility="public"
  24319. deprecated="not deprecated">
  24320. <method name="timestamp" return="long"
  24321. abstract="true" native="false" synchronized="false"
  24322. static="false" final="false" visibility="public"
  24323. deprecated="not deprecated">
  24324. <doc>
  24325. <![CDATA[Get the timestamp of the metrics
  24326. @return the timestamp]]>
  24327. </doc>
  24328. </method>
  24329. <method name="name" return="java.lang.String"
  24330. abstract="true" native="false" synchronized="false"
  24331. static="false" final="false" visibility="public"
  24332. deprecated="not deprecated">
  24333. <doc>
  24334. <![CDATA[@return the metrics record name]]>
  24335. </doc>
  24336. </method>
  24337. <method name="description" return="java.lang.String"
  24338. abstract="true" native="false" synchronized="false"
  24339. static="false" final="false" visibility="public"
  24340. deprecated="not deprecated">
  24341. <doc>
  24342. <![CDATA[@return the description of the metrics record]]>
  24343. </doc>
  24344. </method>
  24345. <method name="context" return="java.lang.String"
  24346. abstract="true" native="false" synchronized="false"
  24347. static="false" final="false" visibility="public"
  24348. deprecated="not deprecated">
  24349. <doc>
  24350. <![CDATA[@return the context name of the metrics record]]>
  24351. </doc>
  24352. </method>
  24353. <method name="tags" return="java.util.Collection"
  24354. abstract="true" native="false" synchronized="false"
  24355. static="false" final="false" visibility="public"
  24356. deprecated="not deprecated">
  24357. <doc>
  24358. <![CDATA[Get the tags of the record
  24359. Note: returning a collection instead of iterable as we
  24360. need to use tags as keys (hence Collection#hashCode etc.) in maps
  24361. @return an unmodifiable collection of tags]]>
  24362. </doc>
  24363. </method>
  24364. <method name="metrics" return="java.lang.Iterable"
  24365. abstract="true" native="false" synchronized="false"
  24366. static="false" final="false" visibility="public"
  24367. deprecated="not deprecated">
  24368. <doc>
  24369. <![CDATA[Get the metrics of the record
  24370. @return an immutable iterable interface for metrics]]>
  24371. </doc>
  24372. </method>
  24373. <doc>
  24374. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  24375. </doc>
  24376. </interface>
  24377. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  24378. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  24379. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  24380. abstract="true"
  24381. static="false" final="false" visibility="public"
  24382. deprecated="not deprecated">
  24383. <constructor name="MetricsRecordBuilder"
  24384. static="false" final="false" visibility="public"
  24385. deprecated="not deprecated">
  24386. </constructor>
  24387. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24388. abstract="true" native="false" synchronized="false"
  24389. static="false" final="false" visibility="public"
  24390. deprecated="not deprecated">
  24391. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24392. <param name="value" type="java.lang.String"/>
  24393. <doc>
  24394. <![CDATA[Add a metrics value with metrics information
  24395. @param info metadata of the tag
  24396. @param value of the tag
  24397. @return self]]>
  24398. </doc>
  24399. </method>
  24400. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24401. abstract="true" native="false" synchronized="false"
  24402. static="false" final="false" visibility="public"
  24403. deprecated="not deprecated">
  24404. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24405. <doc>
  24406. <![CDATA[Add an immutable metrics tag object
  24407. @param tag a pre-made tag object (potentially save an object construction)
  24408. @return self]]>
  24409. </doc>
  24410. </method>
  24411. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24412. abstract="true" native="false" synchronized="false"
  24413. static="false" final="false" visibility="public"
  24414. deprecated="not deprecated">
  24415. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  24416. <doc>
  24417. <![CDATA[Add a pre-made immutable metric object
  24418. @param metric the pre-made metric to save an object construction
  24419. @return self]]>
  24420. </doc>
  24421. </method>
  24422. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24423. abstract="true" native="false" synchronized="false"
  24424. static="false" final="false" visibility="public"
  24425. deprecated="not deprecated">
  24426. <param name="value" type="java.lang.String"/>
  24427. <doc>
  24428. <![CDATA[Set the context tag
  24429. @param value of the context
  24430. @return self]]>
  24431. </doc>
  24432. </method>
  24433. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24434. abstract="true" native="false" synchronized="false"
  24435. static="false" final="false" visibility="public"
  24436. deprecated="not deprecated">
  24437. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24438. <param name="value" type="int"/>
  24439. <doc>
  24440. <![CDATA[Add an integer metric
  24441. @param info metadata of the metric
  24442. @param value of the metric
  24443. @return self]]>
  24444. </doc>
  24445. </method>
  24446. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24447. abstract="true" native="false" synchronized="false"
  24448. static="false" final="false" visibility="public"
  24449. deprecated="not deprecated">
  24450. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24451. <param name="value" type="long"/>
  24452. <doc>
  24453. <![CDATA[Add an long metric
  24454. @param info metadata of the metric
  24455. @param value of the metric
  24456. @return self]]>
  24457. </doc>
  24458. </method>
  24459. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24460. abstract="true" native="false" synchronized="false"
  24461. static="false" final="false" visibility="public"
  24462. deprecated="not deprecated">
  24463. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24464. <param name="value" type="int"/>
  24465. <doc>
  24466. <![CDATA[Add a integer gauge metric
  24467. @param info metadata of the metric
  24468. @param value of the metric
  24469. @return self]]>
  24470. </doc>
  24471. </method>
  24472. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24473. abstract="true" native="false" synchronized="false"
  24474. static="false" final="false" visibility="public"
  24475. deprecated="not deprecated">
  24476. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24477. <param name="value" type="long"/>
  24478. <doc>
  24479. <![CDATA[Add a long gauge metric
  24480. @param info metadata of the metric
  24481. @param value of the metric
  24482. @return self]]>
  24483. </doc>
  24484. </method>
  24485. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24486. abstract="true" native="false" synchronized="false"
  24487. static="false" final="false" visibility="public"
  24488. deprecated="not deprecated">
  24489. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24490. <param name="value" type="float"/>
  24491. <doc>
  24492. <![CDATA[Add a float gauge metric
  24493. @param info metadata of the metric
  24494. @param value of the metric
  24495. @return self]]>
  24496. </doc>
  24497. </method>
  24498. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24499. abstract="true" native="false" synchronized="false"
  24500. static="false" final="false" visibility="public"
  24501. deprecated="not deprecated">
  24502. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24503. <param name="value" type="double"/>
  24504. <doc>
  24505. <![CDATA[Add a double gauge metric
  24506. @param info metadata of the metric
  24507. @param value of the metric
  24508. @return self]]>
  24509. </doc>
  24510. </method>
  24511. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  24512. abstract="true" native="false" synchronized="false"
  24513. static="false" final="false" visibility="public"
  24514. deprecated="not deprecated">
  24515. <doc>
  24516. <![CDATA[@return the parent metrics collector object]]>
  24517. </doc>
  24518. </method>
  24519. <method name="endRecord" return="org.apache.hadoop.metrics2.MetricsCollector"
  24520. abstract="false" native="false" synchronized="false"
  24521. static="false" final="false" visibility="public"
  24522. deprecated="not deprecated">
  24523. <doc>
  24524. <![CDATA[Syntactic sugar to add multiple records in a collector in a one liner.
  24525. @return the parent metrics collector object]]>
  24526. </doc>
  24527. </method>
  24528. <doc>
  24529. <![CDATA[The metrics record builder interface]]>
  24530. </doc>
  24531. </class>
  24532. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  24533. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  24534. <interface name="MetricsSink" abstract="true"
  24535. static="false" final="false" visibility="public"
  24536. deprecated="not deprecated">
  24537. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  24538. <method name="putMetrics"
  24539. abstract="true" native="false" synchronized="false"
  24540. static="false" final="false" visibility="public"
  24541. deprecated="not deprecated">
  24542. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  24543. <doc>
  24544. <![CDATA[Put a metrics record in the sink
  24545. @param record the record to put]]>
  24546. </doc>
  24547. </method>
  24548. <method name="flush"
  24549. abstract="true" native="false" synchronized="false"
  24550. static="false" final="false" visibility="public"
  24551. deprecated="not deprecated">
  24552. <doc>
  24553. <![CDATA[Flush any buffered metrics]]>
  24554. </doc>
  24555. </method>
  24556. <doc>
  24557. <![CDATA[The metrics sink interface. <p>
  24558. Implementations of this interface consume the {@link MetricsRecord} generated
  24559. from {@link MetricsSource}. It registers with {@link MetricsSystem} which
  24560. periodically pushes the {@link MetricsRecord} to the sink using
  24561. {@link #putMetrics(MetricsRecord)} method. If the implementing class also
  24562. implements {@link Closeable}, then the MetricsSystem will close the sink when
  24563. it is stopped.]]>
  24564. </doc>
  24565. </interface>
  24566. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  24567. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  24568. <interface name="MetricsSource" abstract="true"
  24569. static="false" final="false" visibility="public"
  24570. deprecated="not deprecated">
  24571. <method name="getMetrics"
  24572. abstract="true" native="false" synchronized="false"
  24573. static="false" final="false" visibility="public"
  24574. deprecated="not deprecated">
  24575. <param name="collector" type="org.apache.hadoop.metrics2.MetricsCollector"/>
  24576. <param name="all" type="boolean"/>
  24577. <doc>
  24578. <![CDATA[Get metrics from the metrics source
  24579. @param collector to contain the resulting metrics snapshot
  24580. @param all if true, return all metrics even if unchanged.]]>
  24581. </doc>
  24582. </method>
  24583. <doc>
  24584. <![CDATA[The source of metrics information. It generates and updates metrics. It
  24585. registers with {@link MetricsSystem}, which periodically polls it to collect
  24586. {@link MetricsRecord} and passes it to {@link MetricsSink}.]]>
  24587. </doc>
  24588. </interface>
  24589. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  24590. <!-- start class org.apache.hadoop.metrics2.MetricsSystem -->
  24591. <class name="MetricsSystem" extends="java.lang.Object"
  24592. abstract="true"
  24593. static="false" final="false" visibility="public"
  24594. deprecated="not deprecated">
  24595. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  24596. <constructor name="MetricsSystem"
  24597. static="false" final="false" visibility="public"
  24598. deprecated="not deprecated">
  24599. </constructor>
  24600. <method name="unregisterSource"
  24601. abstract="true" native="false" synchronized="false"
  24602. static="false" final="false" visibility="public"
  24603. deprecated="not deprecated">
  24604. <param name="name" type="java.lang.String"/>
  24605. <doc>
  24606. <![CDATA[Unregister a metrics source
  24607. @param name of the source. This is the name you use to call register()]]>
  24608. </doc>
  24609. </method>
  24610. <method name="register" return="T"
  24611. abstract="false" native="false" synchronized="false"
  24612. static="false" final="false" visibility="public"
  24613. deprecated="not deprecated">
  24614. <param name="source" type="T"/>
  24615. <doc>
  24616. <![CDATA[Register a metrics source (deriving name and description from the object)
  24617. @param <T> the actual type of the source object
  24618. @param source object to register
  24619. @return the source object
  24620. @exception MetricsException]]>
  24621. </doc>
  24622. </method>
  24623. <method name="register" return="T"
  24624. abstract="true" native="false" synchronized="false"
  24625. static="false" final="false" visibility="public"
  24626. deprecated="not deprecated">
  24627. <param name="name" type="java.lang.String"/>
  24628. <param name="desc" type="java.lang.String"/>
  24629. <param name="source" type="T"/>
  24630. <doc>
  24631. <![CDATA[Register a metrics source
  24632. @param <T> the actual type of the source object
  24633. @param source object to register
  24634. @param name of the source. Must be unique or null (then extracted from
  24635. the annotations of the source object.)
  24636. @param desc the description of the source (or null. See above.)
  24637. @return the source object
  24638. @exception MetricsException]]>
  24639. </doc>
  24640. </method>
  24641. <method name="register"
  24642. abstract="true" native="false" synchronized="false"
  24643. static="false" final="false" visibility="public"
  24644. deprecated="not deprecated">
  24645. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  24646. <doc>
  24647. <![CDATA[Register a callback interface for JMX events
  24648. @param callback the callback object implementing the MBean interface.]]>
  24649. </doc>
  24650. </method>
  24651. <method name="publishMetricsNow"
  24652. abstract="true" native="false" synchronized="false"
  24653. static="false" final="false" visibility="public"
  24654. deprecated="not deprecated">
  24655. <doc>
  24656. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  24657. This is a "soft" request: the expectation is that a best effort will be
  24658. done to synchronously snapshot the metrics from all the sources and put
  24659. them in all the sinks (including flushing the sinks) before returning to
  24660. the caller. If this can't be accomplished in reasonable time it's OK to
  24661. return to the caller before everything is done.]]>
  24662. </doc>
  24663. </method>
  24664. <method name="shutdown" return="boolean"
  24665. abstract="true" native="false" synchronized="false"
  24666. static="false" final="false" visibility="public"
  24667. deprecated="not deprecated">
  24668. <doc>
  24669. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  24670. The MetricsSystemMXBean will be unregistered.
  24671. @return true if shutdown completed]]>
  24672. </doc>
  24673. </method>
  24674. <doc>
  24675. <![CDATA[The metrics system interface.
  24676. The following components are used for metrics.
  24677. <ul>
  24678. <li>{@link MetricsSource} generate and update metrics information.</li>
  24679. <li>{@link MetricsSink} consume the metrics information</li>
  24680. </ul>
  24681. {@link MetricsSource} and {@link MetricsSink} register with the metrics
  24682. system. Implementations of {@link MetricsSystem} polls the
  24683. {@link MetricsSource}s periodically and pass the {@link MetricsRecord}s to
  24684. {@link MetricsSink}.]]>
  24685. </doc>
  24686. </class>
  24687. <!-- end class org.apache.hadoop.metrics2.MetricsSystem -->
  24688. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  24689. <interface name="MetricsSystemMXBean" abstract="true"
  24690. static="false" final="false" visibility="public"
  24691. deprecated="not deprecated">
  24692. <method name="start"
  24693. abstract="true" native="false" synchronized="false"
  24694. static="false" final="false" visibility="public"
  24695. deprecated="not deprecated">
  24696. <doc>
  24697. <![CDATA[Start the metrics system
  24698. @throws MetricsException]]>
  24699. </doc>
  24700. </method>
  24701. <method name="stop"
  24702. abstract="true" native="false" synchronized="false"
  24703. static="false" final="false" visibility="public"
  24704. deprecated="not deprecated">
  24705. <doc>
  24706. <![CDATA[Stop the metrics system
  24707. @throws MetricsException]]>
  24708. </doc>
  24709. </method>
  24710. <method name="startMetricsMBeans"
  24711. abstract="true" native="false" synchronized="false"
  24712. static="false" final="false" visibility="public"
  24713. deprecated="not deprecated">
  24714. <doc>
  24715. <![CDATA[Start metrics MBeans
  24716. @throws MetricsException]]>
  24717. </doc>
  24718. </method>
  24719. <method name="stopMetricsMBeans"
  24720. abstract="true" native="false" synchronized="false"
  24721. static="false" final="false" visibility="public"
  24722. deprecated="not deprecated">
  24723. <doc>
  24724. <![CDATA[Stop metrics MBeans.
  24725. Note, it doesn't stop the metrics system control MBean,
  24726. i.e this interface.
  24727. @throws MetricsException]]>
  24728. </doc>
  24729. </method>
  24730. <method name="currentConfig" return="java.lang.String"
  24731. abstract="true" native="false" synchronized="false"
  24732. static="false" final="false" visibility="public"
  24733. deprecated="not deprecated">
  24734. <doc>
  24735. <![CDATA[@return the current config
  24736. Avoided getConfig, as it'll turn into a "Config" attribute,
  24737. which doesn't support multiple line values in jconsole.
  24738. @throws MetricsException]]>
  24739. </doc>
  24740. </method>
  24741. <doc>
  24742. <![CDATA[The JMX interface to the metrics system]]>
  24743. </doc>
  24744. </interface>
  24745. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  24746. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  24747. <class name="MetricsTag" extends="java.lang.Object"
  24748. abstract="false"
  24749. static="false" final="false" visibility="public"
  24750. deprecated="not deprecated">
  24751. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  24752. <constructor name="MetricsTag" type="org.apache.hadoop.metrics2.MetricsInfo, java.lang.String"
  24753. static="false" final="false" visibility="public"
  24754. deprecated="not deprecated">
  24755. <doc>
  24756. <![CDATA[Construct the tag with name, description and value
  24757. @param info of the tag
  24758. @param value of the tag]]>
  24759. </doc>
  24760. </constructor>
  24761. <method name="name" return="java.lang.String"
  24762. abstract="false" native="false" synchronized="false"
  24763. static="false" final="false" visibility="public"
  24764. deprecated="not deprecated">
  24765. </method>
  24766. <method name="description" return="java.lang.String"
  24767. abstract="false" native="false" synchronized="false"
  24768. static="false" final="false" visibility="public"
  24769. deprecated="not deprecated">
  24770. </method>
  24771. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  24772. abstract="false" native="false" synchronized="false"
  24773. static="false" final="false" visibility="public"
  24774. deprecated="not deprecated">
  24775. <doc>
  24776. <![CDATA[@return the info object of the tag]]>
  24777. </doc>
  24778. </method>
  24779. <method name="value" return="java.lang.String"
  24780. abstract="false" native="false" synchronized="false"
  24781. static="false" final="false" visibility="public"
  24782. deprecated="not deprecated">
  24783. <doc>
  24784. <![CDATA[Get the value of the tag
  24785. @return the value]]>
  24786. </doc>
  24787. </method>
  24788. <method name="equals" return="boolean"
  24789. abstract="false" native="false" synchronized="false"
  24790. static="false" final="false" visibility="public"
  24791. deprecated="not deprecated">
  24792. <param name="obj" type="java.lang.Object"/>
  24793. </method>
  24794. <method name="hashCode" return="int"
  24795. abstract="false" native="false" synchronized="false"
  24796. static="false" final="false" visibility="public"
  24797. deprecated="not deprecated">
  24798. </method>
  24799. <method name="toString" return="java.lang.String"
  24800. abstract="false" native="false" synchronized="false"
  24801. static="false" final="false" visibility="public"
  24802. deprecated="not deprecated">
  24803. </method>
  24804. <doc>
  24805. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  24806. </doc>
  24807. </class>
  24808. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  24809. <!-- start class org.apache.hadoop.metrics2.MetricStringBuilder -->
  24810. <class name="MetricStringBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24811. abstract="false"
  24812. static="false" final="false" visibility="public"
  24813. deprecated="not deprecated">
  24814. <constructor name="MetricStringBuilder" type="org.apache.hadoop.metrics2.MetricsCollector, java.lang.String, java.lang.String, java.lang.String"
  24815. static="false" final="false" visibility="public"
  24816. deprecated="not deprecated">
  24817. <doc>
  24818. <![CDATA[Build an instance.
  24819. @param parent parent collector. Unused in this instance; only used for
  24820. the {@link #parent()} method
  24821. @param prefix string before each entry
  24822. @param separator separator between name and value
  24823. @param suffix suffix after each entry]]>
  24824. </doc>
  24825. </constructor>
  24826. <method name="add" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  24827. abstract="false" native="false" synchronized="false"
  24828. static="false" final="false" visibility="public"
  24829. deprecated="not deprecated">
  24830. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24831. <param name="value" type="java.lang.Object"/>
  24832. </method>
  24833. <method name="tuple" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  24834. abstract="false" native="false" synchronized="false"
  24835. static="false" final="false" visibility="public"
  24836. deprecated="not deprecated">
  24837. <param name="key" type="java.lang.String"/>
  24838. <param name="value" type="java.lang.String"/>
  24839. <doc>
  24840. <![CDATA[Add any key,val pair to the string, between the prefix and suffix,
  24841. separated by the separator.
  24842. @param key key
  24843. @param value value
  24844. @return this instance]]>
  24845. </doc>
  24846. </method>
  24847. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24848. abstract="false" native="false" synchronized="false"
  24849. static="false" final="false" visibility="public"
  24850. deprecated="not deprecated">
  24851. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24852. <param name="value" type="java.lang.String"/>
  24853. </method>
  24854. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24855. abstract="false" native="false" synchronized="false"
  24856. static="false" final="false" visibility="public"
  24857. deprecated="not deprecated">
  24858. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24859. </method>
  24860. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24861. abstract="false" native="false" synchronized="false"
  24862. static="false" final="false" visibility="public"
  24863. deprecated="not deprecated">
  24864. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  24865. </method>
  24866. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24867. abstract="false" native="false" synchronized="false"
  24868. static="false" final="false" visibility="public"
  24869. deprecated="not deprecated">
  24870. <param name="value" type="java.lang.String"/>
  24871. </method>
  24872. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24873. abstract="false" native="false" synchronized="false"
  24874. static="false" final="false" visibility="public"
  24875. deprecated="not deprecated">
  24876. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24877. <param name="value" type="int"/>
  24878. </method>
  24879. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24880. abstract="false" native="false" synchronized="false"
  24881. static="false" final="false" visibility="public"
  24882. deprecated="not deprecated">
  24883. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24884. <param name="value" type="long"/>
  24885. </method>
  24886. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24887. abstract="false" native="false" synchronized="false"
  24888. static="false" final="false" visibility="public"
  24889. deprecated="not deprecated">
  24890. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24891. <param name="value" type="int"/>
  24892. </method>
  24893. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24894. abstract="false" native="false" synchronized="false"
  24895. static="false" final="false" visibility="public"
  24896. deprecated="not deprecated">
  24897. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24898. <param name="value" type="long"/>
  24899. </method>
  24900. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24901. abstract="false" native="false" synchronized="false"
  24902. static="false" final="false" visibility="public"
  24903. deprecated="not deprecated">
  24904. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24905. <param name="value" type="float"/>
  24906. </method>
  24907. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24908. abstract="false" native="false" synchronized="false"
  24909. static="false" final="false" visibility="public"
  24910. deprecated="not deprecated">
  24911. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24912. <param name="value" type="double"/>
  24913. </method>
  24914. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  24915. abstract="false" native="false" synchronized="false"
  24916. static="false" final="false" visibility="public"
  24917. deprecated="not deprecated">
  24918. </method>
  24919. <method name="toString" return="java.lang.String"
  24920. abstract="false" native="false" synchronized="false"
  24921. static="false" final="false" visibility="public"
  24922. deprecated="not deprecated">
  24923. </method>
  24924. <doc>
  24925. <![CDATA[Build a string dump of the metrics.
  24926. The {@link #toString()} operator dumps out all values collected.
  24927. Every entry is formatted as
  24928. {@code prefix + name + separator + value + suffix}]]>
  24929. </doc>
  24930. </class>
  24931. <!-- end class org.apache.hadoop.metrics2.MetricStringBuilder -->
  24932. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  24933. <interface name="MetricsVisitor" abstract="true"
  24934. static="false" final="false" visibility="public"
  24935. deprecated="not deprecated">
  24936. <method name="gauge"
  24937. abstract="true" native="false" synchronized="false"
  24938. static="false" final="false" visibility="public"
  24939. deprecated="not deprecated">
  24940. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24941. <param name="value" type="int"/>
  24942. <doc>
  24943. <![CDATA[Callback for integer value gauges
  24944. @param info the metric info
  24945. @param value of the metric]]>
  24946. </doc>
  24947. </method>
  24948. <method name="gauge"
  24949. abstract="true" native="false" synchronized="false"
  24950. static="false" final="false" visibility="public"
  24951. deprecated="not deprecated">
  24952. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24953. <param name="value" type="long"/>
  24954. <doc>
  24955. <![CDATA[Callback for long value gauges
  24956. @param info the metric info
  24957. @param value of the metric]]>
  24958. </doc>
  24959. </method>
  24960. <method name="gauge"
  24961. abstract="true" native="false" synchronized="false"
  24962. static="false" final="false" visibility="public"
  24963. deprecated="not deprecated">
  24964. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24965. <param name="value" type="float"/>
  24966. <doc>
  24967. <![CDATA[Callback for float value gauges
  24968. @param info the metric info
  24969. @param value of the metric]]>
  24970. </doc>
  24971. </method>
  24972. <method name="gauge"
  24973. abstract="true" native="false" synchronized="false"
  24974. static="false" final="false" visibility="public"
  24975. deprecated="not deprecated">
  24976. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24977. <param name="value" type="double"/>
  24978. <doc>
  24979. <![CDATA[Callback for double value gauges
  24980. @param info the metric info
  24981. @param value of the metric]]>
  24982. </doc>
  24983. </method>
  24984. <method name="counter"
  24985. abstract="true" native="false" synchronized="false"
  24986. static="false" final="false" visibility="public"
  24987. deprecated="not deprecated">
  24988. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24989. <param name="value" type="int"/>
  24990. <doc>
  24991. <![CDATA[Callback for integer value counters
  24992. @param info the metric info
  24993. @param value of the metric]]>
  24994. </doc>
  24995. </method>
  24996. <method name="counter"
  24997. abstract="true" native="false" synchronized="false"
  24998. static="false" final="false" visibility="public"
  24999. deprecated="not deprecated">
  25000. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25001. <param name="value" type="long"/>
  25002. <doc>
  25003. <![CDATA[Callback for long value counters
  25004. @param info the metric info
  25005. @param value of the metric]]>
  25006. </doc>
  25007. </method>
  25008. <doc>
  25009. <![CDATA[A visitor interface for metrics]]>
  25010. </doc>
  25011. </interface>
  25012. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  25013. </package>
  25014. <package name="org.apache.hadoop.metrics2.annotation">
  25015. <!-- start class org.apache.hadoop.metrics2.annotation.Metric -->
  25016. <class name="Metric" abstract="true"
  25017. static="false" final="false" visibility="public"
  25018. deprecated="not deprecated">
  25019. <implements name="java.lang.annotation.Annotation"/>
  25020. <doc>
  25021. <![CDATA[Annotation interface for a single metric used to annotate a field or a method
  25022. in the class.]]>
  25023. </doc>
  25024. </class>
  25025. <!-- end class org.apache.hadoop.metrics2.annotation.Metric -->
  25026. <!-- start class org.apache.hadoop.metrics2.annotation.Metrics -->
  25027. <class name="Metrics" abstract="true"
  25028. static="false" final="false" visibility="public"
  25029. deprecated="not deprecated">
  25030. <implements name="java.lang.annotation.Annotation"/>
  25031. <doc>
  25032. <![CDATA[Annotation interface for a group of metrics]]>
  25033. </doc>
  25034. </class>
  25035. <!-- end class org.apache.hadoop.metrics2.annotation.Metrics -->
  25036. </package>
  25037. <package name="org.apache.hadoop.metrics2.filter">
  25038. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  25039. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  25040. abstract="false"
  25041. static="false" final="false" visibility="public"
  25042. deprecated="not deprecated">
  25043. <constructor name="GlobFilter"
  25044. static="false" final="false" visibility="public"
  25045. deprecated="not deprecated">
  25046. </constructor>
  25047. <method name="compile" return="com.google.re2j.Pattern"
  25048. abstract="false" native="false" synchronized="false"
  25049. static="false" final="false" visibility="protected"
  25050. deprecated="not deprecated">
  25051. <param name="s" type="java.lang.String"/>
  25052. </method>
  25053. <doc>
  25054. <![CDATA[A glob pattern filter for metrics.
  25055. The class name is used in metrics config files]]>
  25056. </doc>
  25057. </class>
  25058. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  25059. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  25060. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  25061. abstract="false"
  25062. static="false" final="false" visibility="public"
  25063. deprecated="not deprecated">
  25064. <constructor name="RegexFilter"
  25065. static="false" final="false" visibility="public"
  25066. deprecated="not deprecated">
  25067. </constructor>
  25068. <method name="compile" return="com.google.re2j.Pattern"
  25069. abstract="false" native="false" synchronized="false"
  25070. static="false" final="false" visibility="protected"
  25071. deprecated="not deprecated">
  25072. <param name="s" type="java.lang.String"/>
  25073. </method>
  25074. <doc>
  25075. <![CDATA[A regex pattern filter for metrics]]>
  25076. </doc>
  25077. </class>
  25078. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  25079. </package>
  25080. <package name="org.apache.hadoop.metrics2.lib">
  25081. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  25082. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  25083. abstract="false"
  25084. static="false" final="true" visibility="public"
  25085. deprecated="not deprecated">
  25086. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  25087. abstract="false" native="false" synchronized="false"
  25088. static="true" final="false" visibility="public"
  25089. deprecated="not deprecated">
  25090. </method>
  25091. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  25092. abstract="false" native="false" synchronized="false"
  25093. static="true" final="false" visibility="public"
  25094. deprecated="not deprecated">
  25095. <param name="name" type="java.lang.String"/>
  25096. </method>
  25097. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  25098. abstract="false" native="false" synchronized="false"
  25099. static="true" final="false" visibility="public"
  25100. deprecated="not deprecated">
  25101. <param name="prefix" type="java.lang.String"/>
  25102. <doc>
  25103. <![CDATA[Convenience method to initialize the metrics system
  25104. @param prefix for the metrics system configuration
  25105. @return the metrics system instance]]>
  25106. </doc>
  25107. </method>
  25108. <method name="instance" return="org.apache.hadoop.metrics2.MetricsSystem"
  25109. abstract="false" native="false" synchronized="false"
  25110. static="true" final="false" visibility="public"
  25111. deprecated="not deprecated">
  25112. <doc>
  25113. <![CDATA[@return the metrics system object]]>
  25114. </doc>
  25115. </method>
  25116. <method name="shutdown"
  25117. abstract="false" native="false" synchronized="false"
  25118. static="true" final="false" visibility="public"
  25119. deprecated="not deprecated">
  25120. <doc>
  25121. <![CDATA[Shutdown the metrics system]]>
  25122. </doc>
  25123. </method>
  25124. <method name="setMiniClusterMode"
  25125. abstract="false" native="false" synchronized="false"
  25126. static="true" final="false" visibility="public"
  25127. deprecated="not deprecated">
  25128. <param name="choice" type="boolean"/>
  25129. </method>
  25130. <method name="inMiniClusterMode" return="boolean"
  25131. abstract="false" native="false" synchronized="false"
  25132. static="true" final="false" visibility="public"
  25133. deprecated="not deprecated">
  25134. </method>
  25135. <doc>
  25136. <![CDATA[The default metrics system singleton. This class is used by all the daemon
  25137. processes(such as NameNode, DataNode, JobTracker etc.). During daemon process
  25138. initialization the processes call {@link DefaultMetricsSystem#init(String)}
  25139. to initialize the {@link MetricsSystem}.]]>
  25140. </doc>
  25141. </class>
  25142. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  25143. <!-- start class org.apache.hadoop.metrics2.lib.Interns -->
  25144. <class name="Interns" extends="java.lang.Object"
  25145. abstract="false"
  25146. static="false" final="false" visibility="public"
  25147. deprecated="not deprecated">
  25148. <constructor name="Interns"
  25149. static="false" final="false" visibility="public"
  25150. deprecated="not deprecated">
  25151. </constructor>
  25152. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25153. abstract="false" native="false" synchronized="false"
  25154. static="true" final="false" visibility="public"
  25155. deprecated="not deprecated">
  25156. <param name="name" type="java.lang.String"/>
  25157. <param name="description" type="java.lang.String"/>
  25158. <doc>
  25159. <![CDATA[Get a metric info object.
  25160. @param name Name of metric info object
  25161. @param description Description of metric info object
  25162. @return an interned metric info object]]>
  25163. </doc>
  25164. </method>
  25165. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  25166. abstract="false" native="false" synchronized="false"
  25167. static="true" final="false" visibility="public"
  25168. deprecated="not deprecated">
  25169. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25170. <param name="value" type="java.lang.String"/>
  25171. <doc>
  25172. <![CDATA[Get a metrics tag.
  25173. @param info of the tag
  25174. @param value of the tag
  25175. @return an interned metrics tag]]>
  25176. </doc>
  25177. </method>
  25178. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  25179. abstract="false" native="false" synchronized="false"
  25180. static="true" final="false" visibility="public"
  25181. deprecated="not deprecated">
  25182. <param name="name" type="java.lang.String"/>
  25183. <param name="description" type="java.lang.String"/>
  25184. <param name="value" type="java.lang.String"/>
  25185. <doc>
  25186. <![CDATA[Get a metrics tag.
  25187. @param name of the tag
  25188. @param description of the tag
  25189. @param value of the tag
  25190. @return an interned metrics tag]]>
  25191. </doc>
  25192. </method>
  25193. <doc>
  25194. <![CDATA[Helpers to create interned metrics info.]]>
  25195. </doc>
  25196. </class>
  25197. <!-- end class org.apache.hadoop.metrics2.lib.Interns -->
  25198. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  25199. <class name="MetricsRegistry" extends="java.lang.Object"
  25200. abstract="false"
  25201. static="false" final="false" visibility="public"
  25202. deprecated="not deprecated">
  25203. <constructor name="MetricsRegistry" type="java.lang.String"
  25204. static="false" final="false" visibility="public"
  25205. deprecated="not deprecated">
  25206. <doc>
  25207. <![CDATA[Construct the registry with a record name
  25208. @param name of the record of the metrics]]>
  25209. </doc>
  25210. </constructor>
  25211. <constructor name="MetricsRegistry" type="org.apache.hadoop.metrics2.MetricsInfo"
  25212. static="false" final="false" visibility="public"
  25213. deprecated="not deprecated">
  25214. <doc>
  25215. <![CDATA[Construct the registry with a metadata object
  25216. @param info the info object for the metrics record/group]]>
  25217. </doc>
  25218. </constructor>
  25219. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25220. abstract="false" native="false" synchronized="false"
  25221. static="false" final="false" visibility="public"
  25222. deprecated="not deprecated">
  25223. <doc>
  25224. <![CDATA[@return the info object of the metrics registry]]>
  25225. </doc>
  25226. </method>
  25227. <method name="get" return="org.apache.hadoop.metrics2.lib.MutableMetric"
  25228. abstract="false" native="false" synchronized="true"
  25229. static="false" final="false" visibility="public"
  25230. deprecated="not deprecated">
  25231. <param name="name" type="java.lang.String"/>
  25232. <doc>
  25233. <![CDATA[Get a metric by name
  25234. @param name of the metric
  25235. @return the metric object]]>
  25236. </doc>
  25237. </method>
  25238. <method name="getTag" return="org.apache.hadoop.metrics2.MetricsTag"
  25239. abstract="false" native="false" synchronized="true"
  25240. static="false" final="false" visibility="public"
  25241. deprecated="not deprecated">
  25242. <param name="name" type="java.lang.String"/>
  25243. <doc>
  25244. <![CDATA[Get a tag by name
  25245. @param name of the tag
  25246. @return the tag object]]>
  25247. </doc>
  25248. </method>
  25249. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  25250. abstract="false" native="false" synchronized="false"
  25251. static="false" final="false" visibility="public"
  25252. deprecated="not deprecated">
  25253. <param name="name" type="java.lang.String"/>
  25254. <param name="desc" type="java.lang.String"/>
  25255. <param name="iVal" type="int"/>
  25256. <doc>
  25257. <![CDATA[Create a mutable integer counter
  25258. @param name of the metric
  25259. @param desc metric description
  25260. @param iVal initial value
  25261. @return a new counter object]]>
  25262. </doc>
  25263. </method>
  25264. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  25265. abstract="false" native="false" synchronized="true"
  25266. static="false" final="false" visibility="public"
  25267. deprecated="not deprecated">
  25268. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25269. <param name="iVal" type="int"/>
  25270. <doc>
  25271. <![CDATA[Create a mutable integer counter
  25272. @param info metadata of the metric
  25273. @param iVal initial value
  25274. @return a new counter object]]>
  25275. </doc>
  25276. </method>
  25277. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  25278. abstract="false" native="false" synchronized="false"
  25279. static="false" final="false" visibility="public"
  25280. deprecated="not deprecated">
  25281. <param name="name" type="java.lang.String"/>
  25282. <param name="desc" type="java.lang.String"/>
  25283. <param name="iVal" type="long"/>
  25284. <doc>
  25285. <![CDATA[Create a mutable long integer counter
  25286. @param name of the metric
  25287. @param desc metric description
  25288. @param iVal initial value
  25289. @return a new counter object]]>
  25290. </doc>
  25291. </method>
  25292. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  25293. abstract="false" native="false" synchronized="true"
  25294. static="false" final="false" visibility="public"
  25295. deprecated="not deprecated">
  25296. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25297. <param name="iVal" type="long"/>
  25298. <doc>
  25299. <![CDATA[Create a mutable long integer counter
  25300. @param info metadata of the metric
  25301. @param iVal initial value
  25302. @return a new counter object]]>
  25303. </doc>
  25304. </method>
  25305. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  25306. abstract="false" native="false" synchronized="false"
  25307. static="false" final="false" visibility="public"
  25308. deprecated="not deprecated">
  25309. <param name="name" type="java.lang.String"/>
  25310. <param name="desc" type="java.lang.String"/>
  25311. <param name="iVal" type="int"/>
  25312. <doc>
  25313. <![CDATA[Create a mutable integer gauge
  25314. @param name of the metric
  25315. @param desc metric description
  25316. @param iVal initial value
  25317. @return a new gauge object]]>
  25318. </doc>
  25319. </method>
  25320. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  25321. abstract="false" native="false" synchronized="true"
  25322. static="false" final="false" visibility="public"
  25323. deprecated="not deprecated">
  25324. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25325. <param name="iVal" type="int"/>
  25326. <doc>
  25327. <![CDATA[Create a mutable integer gauge
  25328. @param info metadata of the metric
  25329. @param iVal initial value
  25330. @return a new gauge object]]>
  25331. </doc>
  25332. </method>
  25333. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  25334. abstract="false" native="false" synchronized="false"
  25335. static="false" final="false" visibility="public"
  25336. deprecated="not deprecated">
  25337. <param name="name" type="java.lang.String"/>
  25338. <param name="desc" type="java.lang.String"/>
  25339. <param name="iVal" type="long"/>
  25340. <doc>
  25341. <![CDATA[Create a mutable long integer gauge
  25342. @param name of the metric
  25343. @param desc metric description
  25344. @param iVal initial value
  25345. @return a new gauge object]]>
  25346. </doc>
  25347. </method>
  25348. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  25349. abstract="false" native="false" synchronized="true"
  25350. static="false" final="false" visibility="public"
  25351. deprecated="not deprecated">
  25352. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25353. <param name="iVal" type="long"/>
  25354. <doc>
  25355. <![CDATA[Create a mutable long integer gauge
  25356. @param info metadata of the metric
  25357. @param iVal initial value
  25358. @return a new gauge object]]>
  25359. </doc>
  25360. </method>
  25361. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  25362. abstract="false" native="false" synchronized="false"
  25363. static="false" final="false" visibility="public"
  25364. deprecated="not deprecated">
  25365. <param name="name" type="java.lang.String"/>
  25366. <param name="desc" type="java.lang.String"/>
  25367. <param name="iVal" type="float"/>
  25368. <doc>
  25369. <![CDATA[Create a mutable float gauge
  25370. @param name of the metric
  25371. @param desc metric description
  25372. @param iVal initial value
  25373. @return a new gauge object]]>
  25374. </doc>
  25375. </method>
  25376. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  25377. abstract="false" native="false" synchronized="true"
  25378. static="false" final="false" visibility="public"
  25379. deprecated="not deprecated">
  25380. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25381. <param name="iVal" type="float"/>
  25382. <doc>
  25383. <![CDATA[Create a mutable float gauge
  25384. @param info metadata of the metric
  25385. @param iVal initial value
  25386. @return a new gauge object]]>
  25387. </doc>
  25388. </method>
  25389. <method name="newQuantiles" return="org.apache.hadoop.metrics2.lib.MutableQuantiles"
  25390. abstract="false" native="false" synchronized="true"
  25391. static="false" final="false" visibility="public"
  25392. deprecated="not deprecated">
  25393. <param name="name" type="java.lang.String"/>
  25394. <param name="desc" type="java.lang.String"/>
  25395. <param name="sampleName" type="java.lang.String"/>
  25396. <param name="valueName" type="java.lang.String"/>
  25397. <param name="interval" type="int"/>
  25398. <doc>
  25399. <![CDATA[Create a mutable metric that estimates quantiles of a stream of values
  25400. @param name of the metric
  25401. @param desc metric description
  25402. @param sampleName of the metric (e.g., "Ops")
  25403. @param valueName of the metric (e.g., "Time" or "Latency")
  25404. @param interval rollover interval of estimator in seconds
  25405. @return a new quantile estimator object
  25406. @throws MetricsException if interval is not a positive integer]]>
  25407. </doc>
  25408. </method>
  25409. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  25410. abstract="false" native="false" synchronized="true"
  25411. static="false" final="false" visibility="public"
  25412. deprecated="not deprecated">
  25413. <param name="name" type="java.lang.String"/>
  25414. <param name="desc" type="java.lang.String"/>
  25415. <param name="sampleName" type="java.lang.String"/>
  25416. <param name="valueName" type="java.lang.String"/>
  25417. <param name="extended" type="boolean"/>
  25418. <doc>
  25419. <![CDATA[Create a mutable metric with stats
  25420. @param name of the metric
  25421. @param desc metric description
  25422. @param sampleName of the metric (e.g., "Ops")
  25423. @param valueName of the metric (e.g., "Time" or "Latency")
  25424. @param extended produce extended stat (stdev, min/max etc.) if true.
  25425. @return a new mutable stat metric object]]>
  25426. </doc>
  25427. </method>
  25428. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  25429. abstract="false" native="false" synchronized="false"
  25430. static="false" final="false" visibility="public"
  25431. deprecated="not deprecated">
  25432. <param name="name" type="java.lang.String"/>
  25433. <param name="desc" type="java.lang.String"/>
  25434. <param name="sampleName" type="java.lang.String"/>
  25435. <param name="valueName" type="java.lang.String"/>
  25436. <doc>
  25437. <![CDATA[Create a mutable metric with stats
  25438. @param name of the metric
  25439. @param desc metric description
  25440. @param sampleName of the metric (e.g., "Ops")
  25441. @param valueName of the metric (e.g., "Time" or "Latency")
  25442. @return a new mutable metric object]]>
  25443. </doc>
  25444. </method>
  25445. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25446. abstract="false" native="false" synchronized="false"
  25447. static="false" final="false" visibility="public"
  25448. deprecated="not deprecated">
  25449. <param name="name" type="java.lang.String"/>
  25450. <doc>
  25451. <![CDATA[Create a mutable rate metric
  25452. @param name of the metric
  25453. @return a new mutable metric object]]>
  25454. </doc>
  25455. </method>
  25456. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25457. abstract="false" native="false" synchronized="false"
  25458. static="false" final="false" visibility="public"
  25459. deprecated="not deprecated">
  25460. <param name="name" type="java.lang.String"/>
  25461. <param name="description" type="java.lang.String"/>
  25462. <doc>
  25463. <![CDATA[Create a mutable rate metric
  25464. @param name of the metric
  25465. @param description of the metric
  25466. @return a new mutable rate metric object]]>
  25467. </doc>
  25468. </method>
  25469. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25470. abstract="false" native="false" synchronized="false"
  25471. static="false" final="false" visibility="public"
  25472. deprecated="not deprecated">
  25473. <param name="name" type="java.lang.String"/>
  25474. <param name="desc" type="java.lang.String"/>
  25475. <param name="extended" type="boolean"/>
  25476. <doc>
  25477. <![CDATA[Create a mutable rate metric (for throughput measurement)
  25478. @param name of the metric
  25479. @param desc description
  25480. @param extended produce extended stat (stdev/min/max etc.) if true
  25481. @return a new mutable rate metric object]]>
  25482. </doc>
  25483. </method>
  25484. <method name="newRatesWithAggregation" return="org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation"
  25485. abstract="false" native="false" synchronized="true"
  25486. static="false" final="false" visibility="public"
  25487. deprecated="not deprecated">
  25488. <param name="name" type="java.lang.String"/>
  25489. </method>
  25490. <method name="newMutableRollingAverages" return="org.apache.hadoop.metrics2.lib.MutableRollingAverages"
  25491. abstract="false" native="false" synchronized="true"
  25492. static="false" final="false" visibility="public"
  25493. deprecated="not deprecated">
  25494. <param name="name" type="java.lang.String"/>
  25495. <param name="valueName" type="java.lang.String"/>
  25496. </method>
  25497. <method name="add"
  25498. abstract="false" native="false" synchronized="true"
  25499. static="false" final="false" visibility="public"
  25500. deprecated="not deprecated">
  25501. <param name="name" type="java.lang.String"/>
  25502. <param name="value" type="long"/>
  25503. <doc>
  25504. <![CDATA[Add sample to a stat metric by name.
  25505. @param name of the metric
  25506. @param value of the snapshot to add]]>
  25507. </doc>
  25508. </method>
  25509. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25510. abstract="false" native="false" synchronized="false"
  25511. static="false" final="false" visibility="public"
  25512. deprecated="not deprecated">
  25513. <param name="name" type="java.lang.String"/>
  25514. <doc>
  25515. <![CDATA[Set the metrics context tag
  25516. @param name of the context
  25517. @return the registry itself as a convenience]]>
  25518. </doc>
  25519. </method>
  25520. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25521. abstract="false" native="false" synchronized="false"
  25522. static="false" final="false" visibility="public"
  25523. deprecated="not deprecated">
  25524. <param name="name" type="java.lang.String"/>
  25525. <param name="description" type="java.lang.String"/>
  25526. <param name="value" type="java.lang.String"/>
  25527. <doc>
  25528. <![CDATA[Add a tag to the metrics
  25529. @param name of the tag
  25530. @param description of the tag
  25531. @param value of the tag
  25532. @return the registry (for keep adding tags)]]>
  25533. </doc>
  25534. </method>
  25535. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25536. abstract="false" native="false" synchronized="false"
  25537. static="false" final="false" visibility="public"
  25538. deprecated="not deprecated">
  25539. <param name="name" type="java.lang.String"/>
  25540. <param name="description" type="java.lang.String"/>
  25541. <param name="value" type="java.lang.String"/>
  25542. <param name="override" type="boolean"/>
  25543. <doc>
  25544. <![CDATA[Add a tag to the metrics
  25545. @param name of the tag
  25546. @param description of the tag
  25547. @param value of the tag
  25548. @param override existing tag if true
  25549. @return the registry (for keep adding tags)]]>
  25550. </doc>
  25551. </method>
  25552. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25553. abstract="false" native="false" synchronized="true"
  25554. static="false" final="false" visibility="public"
  25555. deprecated="not deprecated">
  25556. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25557. <param name="value" type="java.lang.String"/>
  25558. <param name="override" type="boolean"/>
  25559. <doc>
  25560. <![CDATA[Add a tag to the metrics
  25561. @param info metadata of the tag
  25562. @param value of the tag
  25563. @param override existing tag if true
  25564. @return the registry (for keep adding tags etc.)]]>
  25565. </doc>
  25566. </method>
  25567. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25568. abstract="false" native="false" synchronized="false"
  25569. static="false" final="false" visibility="public"
  25570. deprecated="not deprecated">
  25571. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25572. <param name="value" type="java.lang.String"/>
  25573. </method>
  25574. <method name="snapshot"
  25575. abstract="false" native="false" synchronized="true"
  25576. static="false" final="false" visibility="public"
  25577. deprecated="not deprecated">
  25578. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25579. <param name="all" type="boolean"/>
  25580. <doc>
  25581. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  25582. @param builder to contain the metrics snapshot
  25583. @param all get all the metrics even if the values are not changed.]]>
  25584. </doc>
  25585. </method>
  25586. <method name="toString" return="java.lang.String"
  25587. abstract="false" native="false" synchronized="false"
  25588. static="false" final="false" visibility="public"
  25589. deprecated="not deprecated">
  25590. </method>
  25591. <doc>
  25592. <![CDATA[An optional metrics registry class for creating and maintaining a
  25593. collection of MetricsMutables, making writing metrics source easier.]]>
  25594. </doc>
  25595. </class>
  25596. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  25597. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounter -->
  25598. <class name="MutableCounter" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25599. abstract="true"
  25600. static="false" final="false" visibility="public"
  25601. deprecated="not deprecated">
  25602. <constructor name="MutableCounter" type="org.apache.hadoop.metrics2.MetricsInfo"
  25603. static="false" final="false" visibility="protected"
  25604. deprecated="not deprecated">
  25605. </constructor>
  25606. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25607. abstract="false" native="false" synchronized="false"
  25608. static="false" final="false" visibility="protected"
  25609. deprecated="not deprecated">
  25610. </method>
  25611. <method name="incr"
  25612. abstract="true" native="false" synchronized="false"
  25613. static="false" final="false" visibility="public"
  25614. deprecated="not deprecated">
  25615. <doc>
  25616. <![CDATA[Increment the metric value by 1.]]>
  25617. </doc>
  25618. </method>
  25619. <doc>
  25620. <![CDATA[The mutable counter (monotonically increasing) metric interface]]>
  25621. </doc>
  25622. </class>
  25623. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounter -->
  25624. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  25625. <class name="MutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  25626. abstract="false"
  25627. static="false" final="false" visibility="public"
  25628. deprecated="not deprecated">
  25629. <method name="incr"
  25630. abstract="false" native="false" synchronized="false"
  25631. static="false" final="false" visibility="public"
  25632. deprecated="not deprecated">
  25633. </method>
  25634. <method name="incr"
  25635. abstract="false" native="false" synchronized="true"
  25636. static="false" final="false" visibility="public"
  25637. deprecated="not deprecated">
  25638. <param name="delta" type="int"/>
  25639. <doc>
  25640. <![CDATA[Increment the value by a delta
  25641. @param delta of the increment]]>
  25642. </doc>
  25643. </method>
  25644. <method name="value" return="int"
  25645. abstract="false" native="false" synchronized="false"
  25646. static="false" final="false" visibility="public"
  25647. deprecated="not deprecated">
  25648. </method>
  25649. <method name="snapshot"
  25650. abstract="false" native="false" synchronized="false"
  25651. static="false" final="false" visibility="public"
  25652. deprecated="not deprecated">
  25653. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25654. <param name="all" type="boolean"/>
  25655. </method>
  25656. <doc>
  25657. <![CDATA[A mutable int counter for implementing metrics sources]]>
  25658. </doc>
  25659. </class>
  25660. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  25661. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  25662. <class name="MutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  25663. abstract="false"
  25664. static="false" final="false" visibility="public"
  25665. deprecated="not deprecated">
  25666. <constructor name="MutableCounterLong" type="org.apache.hadoop.metrics2.MetricsInfo, long"
  25667. static="false" final="false" visibility="public"
  25668. deprecated="not deprecated">
  25669. </constructor>
  25670. <method name="incr"
  25671. abstract="false" native="false" synchronized="false"
  25672. static="false" final="false" visibility="public"
  25673. deprecated="not deprecated">
  25674. </method>
  25675. <method name="incr"
  25676. abstract="false" native="false" synchronized="false"
  25677. static="false" final="false" visibility="public"
  25678. deprecated="not deprecated">
  25679. <param name="delta" type="long"/>
  25680. <doc>
  25681. <![CDATA[Increment the value by a delta
  25682. @param delta of the increment]]>
  25683. </doc>
  25684. </method>
  25685. <method name="value" return="long"
  25686. abstract="false" native="false" synchronized="false"
  25687. static="false" final="false" visibility="public"
  25688. deprecated="not deprecated">
  25689. </method>
  25690. <method name="snapshot"
  25691. abstract="false" native="false" synchronized="false"
  25692. static="false" final="false" visibility="public"
  25693. deprecated="not deprecated">
  25694. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25695. <param name="all" type="boolean"/>
  25696. </method>
  25697. <doc>
  25698. <![CDATA[A mutable long counter]]>
  25699. </doc>
  25700. </class>
  25701. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  25702. <!-- start class org.apache.hadoop.metrics2.lib.MutableGauge -->
  25703. <class name="MutableGauge" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25704. abstract="true"
  25705. static="false" final="false" visibility="public"
  25706. deprecated="not deprecated">
  25707. <constructor name="MutableGauge" type="org.apache.hadoop.metrics2.MetricsInfo"
  25708. static="false" final="false" visibility="protected"
  25709. deprecated="not deprecated">
  25710. </constructor>
  25711. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25712. abstract="false" native="false" synchronized="false"
  25713. static="false" final="false" visibility="protected"
  25714. deprecated="not deprecated">
  25715. </method>
  25716. <method name="incr"
  25717. abstract="true" native="false" synchronized="false"
  25718. static="false" final="false" visibility="public"
  25719. deprecated="not deprecated">
  25720. <doc>
  25721. <![CDATA[Increment the value of the metric by 1]]>
  25722. </doc>
  25723. </method>
  25724. <method name="decr"
  25725. abstract="true" native="false" synchronized="false"
  25726. static="false" final="false" visibility="public"
  25727. deprecated="not deprecated">
  25728. <doc>
  25729. <![CDATA[Decrement the value of the metric by 1]]>
  25730. </doc>
  25731. </method>
  25732. <doc>
  25733. <![CDATA[The mutable gauge metric interface]]>
  25734. </doc>
  25735. </class>
  25736. <!-- end class org.apache.hadoop.metrics2.lib.MutableGauge -->
  25737. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  25738. <class name="MutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  25739. abstract="false"
  25740. static="false" final="false" visibility="public"
  25741. deprecated="not deprecated">
  25742. <method name="value" return="int"
  25743. abstract="false" native="false" synchronized="false"
  25744. static="false" final="false" visibility="public"
  25745. deprecated="not deprecated">
  25746. </method>
  25747. <method name="incr"
  25748. abstract="false" native="false" synchronized="false"
  25749. static="false" final="false" visibility="public"
  25750. deprecated="not deprecated">
  25751. </method>
  25752. <method name="incr"
  25753. abstract="false" native="false" synchronized="false"
  25754. static="false" final="false" visibility="public"
  25755. deprecated="not deprecated">
  25756. <param name="delta" type="int"/>
  25757. <doc>
  25758. <![CDATA[Increment by delta
  25759. @param delta of the increment]]>
  25760. </doc>
  25761. </method>
  25762. <method name="decr"
  25763. abstract="false" native="false" synchronized="false"
  25764. static="false" final="false" visibility="public"
  25765. deprecated="not deprecated">
  25766. </method>
  25767. <method name="decr"
  25768. abstract="false" native="false" synchronized="false"
  25769. static="false" final="false" visibility="public"
  25770. deprecated="not deprecated">
  25771. <param name="delta" type="int"/>
  25772. <doc>
  25773. <![CDATA[decrement by delta
  25774. @param delta of the decrement]]>
  25775. </doc>
  25776. </method>
  25777. <method name="set"
  25778. abstract="false" native="false" synchronized="false"
  25779. static="false" final="false" visibility="public"
  25780. deprecated="not deprecated">
  25781. <param name="value" type="int"/>
  25782. <doc>
  25783. <![CDATA[Set the value of the metric
  25784. @param value to set]]>
  25785. </doc>
  25786. </method>
  25787. <method name="snapshot"
  25788. abstract="false" native="false" synchronized="false"
  25789. static="false" final="false" visibility="public"
  25790. deprecated="not deprecated">
  25791. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25792. <param name="all" type="boolean"/>
  25793. </method>
  25794. <method name="toString" return="java.lang.String"
  25795. abstract="false" native="false" synchronized="false"
  25796. static="false" final="false" visibility="public"
  25797. deprecated="not deprecated">
  25798. <doc>
  25799. <![CDATA[@return the value of the metric]]>
  25800. </doc>
  25801. </method>
  25802. <doc>
  25803. <![CDATA[A mutable int gauge]]>
  25804. </doc>
  25805. </class>
  25806. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  25807. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  25808. <class name="MutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  25809. abstract="false"
  25810. static="false" final="false" visibility="public"
  25811. deprecated="not deprecated">
  25812. <method name="value" return="long"
  25813. abstract="false" native="false" synchronized="false"
  25814. static="false" final="false" visibility="public"
  25815. deprecated="not deprecated">
  25816. </method>
  25817. <method name="incr"
  25818. abstract="false" native="false" synchronized="false"
  25819. static="false" final="false" visibility="public"
  25820. deprecated="not deprecated">
  25821. </method>
  25822. <method name="incr"
  25823. abstract="false" native="false" synchronized="false"
  25824. static="false" final="false" visibility="public"
  25825. deprecated="not deprecated">
  25826. <param name="delta" type="long"/>
  25827. <doc>
  25828. <![CDATA[Increment by delta
  25829. @param delta of the increment]]>
  25830. </doc>
  25831. </method>
  25832. <method name="decr"
  25833. abstract="false" native="false" synchronized="false"
  25834. static="false" final="false" visibility="public"
  25835. deprecated="not deprecated">
  25836. </method>
  25837. <method name="decr"
  25838. abstract="false" native="false" synchronized="false"
  25839. static="false" final="false" visibility="public"
  25840. deprecated="not deprecated">
  25841. <param name="delta" type="long"/>
  25842. <doc>
  25843. <![CDATA[decrement by delta
  25844. @param delta of the decrement]]>
  25845. </doc>
  25846. </method>
  25847. <method name="set"
  25848. abstract="false" native="false" synchronized="false"
  25849. static="false" final="false" visibility="public"
  25850. deprecated="not deprecated">
  25851. <param name="value" type="long"/>
  25852. <doc>
  25853. <![CDATA[Set the value of the metric
  25854. @param value to set]]>
  25855. </doc>
  25856. </method>
  25857. <method name="snapshot"
  25858. abstract="false" native="false" synchronized="false"
  25859. static="false" final="false" visibility="public"
  25860. deprecated="not deprecated">
  25861. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25862. <param name="all" type="boolean"/>
  25863. </method>
  25864. <method name="toString" return="java.lang.String"
  25865. abstract="false" native="false" synchronized="false"
  25866. static="false" final="false" visibility="public"
  25867. deprecated="not deprecated">
  25868. <doc>
  25869. <![CDATA[@return the value of the metric]]>
  25870. </doc>
  25871. </method>
  25872. <doc>
  25873. <![CDATA[A mutable long gauge]]>
  25874. </doc>
  25875. </class>
  25876. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  25877. <!-- start class org.apache.hadoop.metrics2.lib.MutableMetric -->
  25878. <class name="MutableMetric" extends="java.lang.Object"
  25879. abstract="true"
  25880. static="false" final="false" visibility="public"
  25881. deprecated="not deprecated">
  25882. <constructor name="MutableMetric"
  25883. static="false" final="false" visibility="public"
  25884. deprecated="not deprecated">
  25885. </constructor>
  25886. <method name="snapshot"
  25887. abstract="true" native="false" synchronized="false"
  25888. static="false" final="false" visibility="public"
  25889. deprecated="not deprecated">
  25890. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25891. <param name="all" type="boolean"/>
  25892. <doc>
  25893. <![CDATA[Get a snapshot of the metric
  25894. @param builder the metrics record builder
  25895. @param all if true, snapshot unchanged metrics as well]]>
  25896. </doc>
  25897. </method>
  25898. <method name="snapshot"
  25899. abstract="false" native="false" synchronized="false"
  25900. static="false" final="false" visibility="public"
  25901. deprecated="not deprecated">
  25902. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25903. <doc>
  25904. <![CDATA[Get a snapshot of metric if changed
  25905. @param builder the metrics record builder]]>
  25906. </doc>
  25907. </method>
  25908. <method name="setChanged"
  25909. abstract="false" native="false" synchronized="false"
  25910. static="false" final="false" visibility="protected"
  25911. deprecated="not deprecated">
  25912. <doc>
  25913. <![CDATA[Set the changed flag in mutable operations]]>
  25914. </doc>
  25915. </method>
  25916. <method name="clearChanged"
  25917. abstract="false" native="false" synchronized="false"
  25918. static="false" final="false" visibility="protected"
  25919. deprecated="not deprecated">
  25920. <doc>
  25921. <![CDATA[Clear the changed flag in the snapshot operations]]>
  25922. </doc>
  25923. </method>
  25924. <method name="changed" return="boolean"
  25925. abstract="false" native="false" synchronized="false"
  25926. static="false" final="false" visibility="public"
  25927. deprecated="not deprecated">
  25928. <doc>
  25929. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  25930. </doc>
  25931. </method>
  25932. <doc>
  25933. <![CDATA[The mutable metric interface]]>
  25934. </doc>
  25935. </class>
  25936. <!-- end class org.apache.hadoop.metrics2.lib.MutableMetric -->
  25937. <!-- start class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  25938. <class name="MutableQuantiles" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25939. abstract="false"
  25940. static="false" final="false" visibility="public"
  25941. deprecated="not deprecated">
  25942. <constructor name="MutableQuantiles" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, int"
  25943. static="false" final="false" visibility="public"
  25944. deprecated="not deprecated">
  25945. <doc>
  25946. <![CDATA[Instantiates a new {@link MutableQuantiles} for a metric that rolls itself
  25947. over on the specified time interval.
  25948. @param name
  25949. of the metric
  25950. @param description
  25951. long-form textual description of the metric
  25952. @param sampleName
  25953. type of items in the stream (e.g., "Ops")
  25954. @param valueName
  25955. type of the values
  25956. @param interval
  25957. rollover interval (in seconds) of the estimator]]>
  25958. </doc>
  25959. </constructor>
  25960. <method name="snapshot"
  25961. abstract="false" native="false" synchronized="true"
  25962. static="false" final="false" visibility="public"
  25963. deprecated="not deprecated">
  25964. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25965. <param name="all" type="boolean"/>
  25966. </method>
  25967. <method name="add"
  25968. abstract="false" native="false" synchronized="true"
  25969. static="false" final="false" visibility="public"
  25970. deprecated="not deprecated">
  25971. <param name="value" type="long"/>
  25972. </method>
  25973. <method name="getInterval" return="int"
  25974. abstract="false" native="false" synchronized="false"
  25975. static="false" final="false" visibility="public"
  25976. deprecated="not deprecated">
  25977. </method>
  25978. <method name="stop"
  25979. abstract="false" native="false" synchronized="false"
  25980. static="false" final="false" visibility="public"
  25981. deprecated="not deprecated">
  25982. </method>
  25983. <method name="getEstimator" return="org.apache.hadoop.metrics2.util.QuantileEstimator"
  25984. abstract="false" native="false" synchronized="true"
  25985. static="false" final="false" visibility="public"
  25986. deprecated="not deprecated">
  25987. <doc>
  25988. <![CDATA[Get the quantile estimator.
  25989. @return the quantile estimator]]>
  25990. </doc>
  25991. </method>
  25992. <method name="setEstimator"
  25993. abstract="false" native="false" synchronized="true"
  25994. static="false" final="false" visibility="public"
  25995. deprecated="not deprecated">
  25996. <param name="quantileEstimator" type="org.apache.hadoop.metrics2.util.QuantileEstimator"/>
  25997. </method>
  25998. <field name="quantiles" type="org.apache.hadoop.metrics2.util.Quantile[]"
  25999. transient="false" volatile="false"
  26000. static="true" final="true" visibility="public"
  26001. deprecated="not deprecated">
  26002. </field>
  26003. <field name="previousSnapshot" type="java.util.Map"
  26004. transient="false" volatile="false"
  26005. static="false" final="false" visibility="protected"
  26006. deprecated="not deprecated">
  26007. </field>
  26008. <doc>
  26009. <![CDATA[Watches a stream of long values, maintaining online estimates of specific
  26010. quantiles with provably low error bounds. This is particularly useful for
  26011. accurate high-percentile (e.g. 95th, 99th) latency metrics.]]>
  26012. </doc>
  26013. </class>
  26014. <!-- end class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  26015. <!-- start class org.apache.hadoop.metrics2.lib.MutableRate -->
  26016. <class name="MutableRate" extends="org.apache.hadoop.metrics2.lib.MutableStat"
  26017. abstract="false"
  26018. static="false" final="false" visibility="public"
  26019. deprecated="not deprecated">
  26020. <doc>
  26021. <![CDATA[A convenient mutable metric for throughput measurement]]>
  26022. </doc>
  26023. </class>
  26024. <!-- end class org.apache.hadoop.metrics2.lib.MutableRate -->
  26025. <!-- start class org.apache.hadoop.metrics2.lib.MutableRates -->
  26026. <class name="MutableRates" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26027. abstract="false"
  26028. static="false" final="false" visibility="public"
  26029. deprecated="not deprecated">
  26030. <method name="init"
  26031. abstract="false" native="false" synchronized="false"
  26032. static="false" final="false" visibility="public"
  26033. deprecated="not deprecated">
  26034. <param name="protocol" type="java.lang.Class"/>
  26035. <doc>
  26036. <![CDATA[Initialize the registry with all the methods in a protocol
  26037. so they all show up in the first snapshot.
  26038. Convenient for JMX implementations.
  26039. @param protocol the protocol class]]>
  26040. </doc>
  26041. </method>
  26042. <method name="add"
  26043. abstract="false" native="false" synchronized="false"
  26044. static="false" final="false" visibility="public"
  26045. deprecated="not deprecated">
  26046. <param name="name" type="java.lang.String"/>
  26047. <param name="elapsed" type="long"/>
  26048. <doc>
  26049. <![CDATA[Add a rate sample for a rate metric
  26050. @param name of the rate metric
  26051. @param elapsed time]]>
  26052. </doc>
  26053. </method>
  26054. <method name="snapshot"
  26055. abstract="false" native="false" synchronized="false"
  26056. static="false" final="false" visibility="public"
  26057. deprecated="not deprecated">
  26058. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26059. <param name="all" type="boolean"/>
  26060. </method>
  26061. <doc>
  26062. <![CDATA[Helper class to manage a group of mutable rate metrics
  26063. This class synchronizes all accesses to the metrics it
  26064. contains, so it should not be used in situations where
  26065. there is high contention on the metrics.
  26066. {@link MutableRatesWithAggregation} is preferable in that
  26067. situation.]]>
  26068. </doc>
  26069. </class>
  26070. <!-- end class org.apache.hadoop.metrics2.lib.MutableRates -->
  26071. <!-- start class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  26072. <class name="MutableRatesWithAggregation" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26073. abstract="false"
  26074. static="false" final="false" visibility="public"
  26075. deprecated="not deprecated">
  26076. <constructor name="MutableRatesWithAggregation"
  26077. static="false" final="false" visibility="public"
  26078. deprecated="not deprecated">
  26079. </constructor>
  26080. <method name="init"
  26081. abstract="false" native="false" synchronized="false"
  26082. static="false" final="false" visibility="public"
  26083. deprecated="not deprecated">
  26084. <param name="protocol" type="java.lang.Class"/>
  26085. <doc>
  26086. <![CDATA[Initialize the registry with all the methods in a protocol
  26087. so they all show up in the first snapshot.
  26088. Convenient for JMX implementations.
  26089. @param protocol the protocol class]]>
  26090. </doc>
  26091. </method>
  26092. <method name="add"
  26093. abstract="false" native="false" synchronized="false"
  26094. static="false" final="false" visibility="public"
  26095. deprecated="not deprecated">
  26096. <param name="name" type="java.lang.String"/>
  26097. <param name="elapsed" type="long"/>
  26098. <doc>
  26099. <![CDATA[Add a rate sample for a rate metric.
  26100. @param name of the rate metric
  26101. @param elapsed time]]>
  26102. </doc>
  26103. </method>
  26104. <method name="snapshot"
  26105. abstract="false" native="false" synchronized="true"
  26106. static="false" final="false" visibility="public"
  26107. deprecated="not deprecated">
  26108. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26109. <param name="all" type="boolean"/>
  26110. </method>
  26111. <doc>
  26112. <![CDATA[Helper class to manage a group of mutable rate metrics.
  26113. Each thread will maintain a local rate count, and upon snapshot,
  26114. these values will be aggregated into a global rate. This class
  26115. should only be used for long running threads, as any metrics
  26116. produced between the last snapshot and the death of a thread
  26117. will be lost. This allows for significantly higher concurrency
  26118. than {@link MutableRates}. See HADOOP-24420.]]>
  26119. </doc>
  26120. </class>
  26121. <!-- end class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  26122. <!-- start class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  26123. <class name="MutableRollingAverages" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26124. abstract="false"
  26125. static="false" final="false" visibility="public"
  26126. deprecated="not deprecated">
  26127. <implements name="java.io.Closeable"/>
  26128. <constructor name="MutableRollingAverages" type="java.lang.String"
  26129. static="false" final="false" visibility="public"
  26130. deprecated="not deprecated">
  26131. <doc>
  26132. <![CDATA[Constructor for {@link MutableRollingAverages}.
  26133. @param metricValueName]]>
  26134. </doc>
  26135. </constructor>
  26136. <method name="snapshot"
  26137. abstract="false" native="false" synchronized="false"
  26138. static="false" final="false" visibility="public"
  26139. deprecated="not deprecated">
  26140. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26141. <param name="all" type="boolean"/>
  26142. </method>
  26143. <method name="collectThreadLocalStates"
  26144. abstract="false" native="false" synchronized="false"
  26145. static="false" final="false" visibility="public"
  26146. deprecated="not deprecated">
  26147. <doc>
  26148. <![CDATA[Collects states maintained in {@link ThreadLocal}, if any.]]>
  26149. </doc>
  26150. </method>
  26151. <method name="add"
  26152. abstract="false" native="false" synchronized="false"
  26153. static="false" final="false" visibility="public"
  26154. deprecated="not deprecated">
  26155. <param name="name" type="java.lang.String"/>
  26156. <param name="value" type="long"/>
  26157. <doc>
  26158. <![CDATA[@param name
  26159. name of metric
  26160. @param value
  26161. value of metric]]>
  26162. </doc>
  26163. </method>
  26164. <method name="close"
  26165. abstract="false" native="false" synchronized="false"
  26166. static="false" final="false" visibility="public"
  26167. deprecated="not deprecated">
  26168. <exception name="IOException" type="java.io.IOException"/>
  26169. </method>
  26170. <method name="getStats" return="java.util.Map"
  26171. abstract="false" native="false" synchronized="true"
  26172. static="false" final="false" visibility="public"
  26173. deprecated="not deprecated">
  26174. <param name="minSamples" type="long"/>
  26175. <doc>
  26176. <![CDATA[Retrieve a map of metric name -> (aggregate).
  26177. Filter out entries that don't have at least minSamples.
  26178. @return a map of peer DataNode Id to the average latency to that
  26179. node seen over the measurement period.]]>
  26180. </doc>
  26181. </method>
  26182. <doc>
  26183. <![CDATA[<p>
  26184. This class maintains a group of rolling average metrics. It implements the
  26185. algorithm of rolling average, i.e. a number of sliding windows are kept to
  26186. roll over and evict old subsets of samples. Each window has a subset of
  26187. samples in a stream, where sub-sum and sub-total are collected. All sub-sums
  26188. and sub-totals in all windows will be aggregated to final-sum and final-total
  26189. used to compute final average, which is called rolling average.
  26190. </p>]]>
  26191. </doc>
  26192. </class>
  26193. <!-- end class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  26194. <!-- start class org.apache.hadoop.metrics2.lib.MutableStat -->
  26195. <class name="MutableStat" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26196. abstract="false"
  26197. static="false" final="false" visibility="public"
  26198. deprecated="not deprecated">
  26199. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  26200. static="false" final="false" visibility="public"
  26201. deprecated="not deprecated">
  26202. <doc>
  26203. <![CDATA[Construct a sample statistics metric
  26204. @param name of the metric
  26205. @param description of the metric
  26206. @param sampleName of the metric (e.g. "Ops")
  26207. @param valueName of the metric (e.g. "Time", "Latency")
  26208. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  26209. </doc>
  26210. </constructor>
  26211. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  26212. static="false" final="false" visibility="public"
  26213. deprecated="not deprecated">
  26214. <doc>
  26215. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  26216. @param name of the metric
  26217. @param description of the metric
  26218. @param sampleName of the metric (e.g. "Ops")
  26219. @param valueName of the metric (e.g. "Time", "Latency")]]>
  26220. </doc>
  26221. </constructor>
  26222. <method name="setExtended"
  26223. abstract="false" native="false" synchronized="true"
  26224. static="false" final="false" visibility="public"
  26225. deprecated="not deprecated">
  26226. <param name="extended" type="boolean"/>
  26227. <doc>
  26228. <![CDATA[Set whether to display the extended stats (stdev, min/max etc.) or not
  26229. @param extended enable/disable displaying extended stats]]>
  26230. </doc>
  26231. </method>
  26232. <method name="add"
  26233. abstract="false" native="false" synchronized="true"
  26234. static="false" final="false" visibility="public"
  26235. deprecated="not deprecated">
  26236. <param name="numSamples" type="long"/>
  26237. <param name="sum" type="long"/>
  26238. <doc>
  26239. <![CDATA[Add a number of samples and their sum to the running stat
  26240. Note that although use of this method will preserve accurate mean values,
  26241. large values for numSamples may result in inaccurate variance values due
  26242. to the use of a single step of the Welford method for variance calculation.
  26243. @param numSamples number of samples
  26244. @param sum of the samples]]>
  26245. </doc>
  26246. </method>
  26247. <method name="add"
  26248. abstract="false" native="false" synchronized="true"
  26249. static="false" final="false" visibility="public"
  26250. deprecated="not deprecated">
  26251. <param name="value" type="long"/>
  26252. <doc>
  26253. <![CDATA[Add a snapshot to the metric
  26254. @param value of the metric]]>
  26255. </doc>
  26256. </method>
  26257. <method name="snapshot"
  26258. abstract="false" native="false" synchronized="true"
  26259. static="false" final="false" visibility="public"
  26260. deprecated="not deprecated">
  26261. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26262. <param name="all" type="boolean"/>
  26263. </method>
  26264. <method name="lastStat" return="org.apache.hadoop.metrics2.util.SampleStat"
  26265. abstract="false" native="false" synchronized="false"
  26266. static="false" final="false" visibility="public"
  26267. deprecated="not deprecated">
  26268. <doc>
  26269. <![CDATA[Return a SampleStat object that supports
  26270. calls like StdDev and Mean.
  26271. @return SampleStat]]>
  26272. </doc>
  26273. </method>
  26274. <method name="resetMinMax"
  26275. abstract="false" native="false" synchronized="false"
  26276. static="false" final="false" visibility="public"
  26277. deprecated="not deprecated">
  26278. <doc>
  26279. <![CDATA[Reset the all time min max of the metric]]>
  26280. </doc>
  26281. </method>
  26282. <method name="toString" return="java.lang.String"
  26283. abstract="false" native="false" synchronized="false"
  26284. static="false" final="false" visibility="public"
  26285. deprecated="not deprecated">
  26286. </method>
  26287. <doc>
  26288. <![CDATA[A mutable metric with stats.
  26289. Useful for keeping throughput/latency stats.]]>
  26290. </doc>
  26291. </class>
  26292. <!-- end class org.apache.hadoop.metrics2.lib.MutableStat -->
  26293. </package>
  26294. <package name="org.apache.hadoop.metrics2.sink">
  26295. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  26296. <class name="FileSink" extends="java.lang.Object"
  26297. abstract="false"
  26298. static="false" final="false" visibility="public"
  26299. deprecated="not deprecated">
  26300. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26301. <implements name="java.io.Closeable"/>
  26302. <constructor name="FileSink"
  26303. static="false" final="false" visibility="public"
  26304. deprecated="not deprecated">
  26305. </constructor>
  26306. <method name="init"
  26307. abstract="false" native="false" synchronized="false"
  26308. static="false" final="false" visibility="public"
  26309. deprecated="not deprecated">
  26310. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  26311. </method>
  26312. <method name="putMetrics"
  26313. abstract="false" native="false" synchronized="false"
  26314. static="false" final="false" visibility="public"
  26315. deprecated="not deprecated">
  26316. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26317. </method>
  26318. <method name="flush"
  26319. abstract="false" native="false" synchronized="false"
  26320. static="false" final="false" visibility="public"
  26321. deprecated="not deprecated">
  26322. </method>
  26323. <method name="close"
  26324. abstract="false" native="false" synchronized="false"
  26325. static="false" final="false" visibility="public"
  26326. deprecated="not deprecated">
  26327. <exception name="IOException" type="java.io.IOException"/>
  26328. </method>
  26329. <doc>
  26330. <![CDATA[A metrics sink that writes to a file]]>
  26331. </doc>
  26332. </class>
  26333. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  26334. <!-- start class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  26335. <class name="GraphiteSink" extends="java.lang.Object"
  26336. abstract="false"
  26337. static="false" final="false" visibility="public"
  26338. deprecated="not deprecated">
  26339. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26340. <implements name="java.io.Closeable"/>
  26341. <constructor name="GraphiteSink"
  26342. static="false" final="false" visibility="public"
  26343. deprecated="not deprecated">
  26344. </constructor>
  26345. <method name="init"
  26346. abstract="false" native="false" synchronized="false"
  26347. static="false" final="false" visibility="public"
  26348. deprecated="not deprecated">
  26349. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  26350. </method>
  26351. <method name="putMetrics"
  26352. abstract="false" native="false" synchronized="false"
  26353. static="false" final="false" visibility="public"
  26354. deprecated="not deprecated">
  26355. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26356. </method>
  26357. <method name="flush"
  26358. abstract="false" native="false" synchronized="false"
  26359. static="false" final="false" visibility="public"
  26360. deprecated="not deprecated">
  26361. </method>
  26362. <method name="close"
  26363. abstract="false" native="false" synchronized="false"
  26364. static="false" final="false" visibility="public"
  26365. deprecated="not deprecated">
  26366. <exception name="IOException" type="java.io.IOException"/>
  26367. </method>
  26368. <doc>
  26369. <![CDATA[A metrics sink that writes to a Graphite server]]>
  26370. </doc>
  26371. </class>
  26372. <!-- end class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  26373. <!-- start class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  26374. <class name="RollingFileSystemSink" extends="java.lang.Object"
  26375. abstract="false"
  26376. static="false" final="false" visibility="public"
  26377. deprecated="not deprecated">
  26378. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26379. <implements name="java.io.Closeable"/>
  26380. <constructor name="RollingFileSystemSink"
  26381. static="false" final="false" visibility="public"
  26382. deprecated="not deprecated">
  26383. <doc>
  26384. <![CDATA[Create an empty instance. Required for reflection.]]>
  26385. </doc>
  26386. </constructor>
  26387. <constructor name="RollingFileSystemSink" type="long, long"
  26388. static="false" final="false" visibility="protected"
  26389. deprecated="not deprecated">
  26390. <doc>
  26391. <![CDATA[Create an instance for testing.
  26392. @param flushIntervalMillis the roll interval in millis
  26393. @param flushOffsetIntervalMillis the roll offset interval in millis]]>
  26394. </doc>
  26395. </constructor>
  26396. <method name="init"
  26397. abstract="false" native="false" synchronized="false"
  26398. static="false" final="false" visibility="public"
  26399. deprecated="not deprecated">
  26400. <param name="metrics2Properties" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  26401. </method>
  26402. <method name="getRollInterval" return="long"
  26403. abstract="false" native="false" synchronized="false"
  26404. static="false" final="false" visibility="protected"
  26405. deprecated="not deprecated">
  26406. <doc>
  26407. <![CDATA[Extract the roll interval from the configuration and return it in
  26408. milliseconds.
  26409. @return the roll interval in millis]]>
  26410. </doc>
  26411. </method>
  26412. <method name="updateFlushTime"
  26413. abstract="false" native="false" synchronized="false"
  26414. static="false" final="false" visibility="protected"
  26415. deprecated="not deprecated">
  26416. <param name="now" type="java.util.Date"/>
  26417. <doc>
  26418. <![CDATA[Update the {@link #nextFlush} variable to the next flush time. Add
  26419. an integer number of flush intervals, preserving the initial random offset.
  26420. @param now the current time]]>
  26421. </doc>
  26422. </method>
  26423. <method name="setInitialFlushTime"
  26424. abstract="false" native="false" synchronized="false"
  26425. static="false" final="false" visibility="protected"
  26426. deprecated="not deprecated">
  26427. <param name="now" type="java.util.Date"/>
  26428. <doc>
  26429. <![CDATA[Set the {@link #nextFlush} variable to the initial flush time. The initial
  26430. flush will be an integer number of flush intervals past the beginning of
  26431. the current hour and will have a random offset added, up to
  26432. {@link #rollOffsetIntervalMillis}. The initial flush will be a time in
  26433. past that can be used from which to calculate future flush times.
  26434. @param now the current time]]>
  26435. </doc>
  26436. </method>
  26437. <method name="putMetrics"
  26438. abstract="false" native="false" synchronized="false"
  26439. static="false" final="false" visibility="public"
  26440. deprecated="not deprecated">
  26441. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26442. </method>
  26443. <method name="flush"
  26444. abstract="false" native="false" synchronized="false"
  26445. static="false" final="false" visibility="public"
  26446. deprecated="not deprecated">
  26447. </method>
  26448. <method name="close"
  26449. abstract="false" native="false" synchronized="false"
  26450. static="false" final="false" visibility="public"
  26451. deprecated="not deprecated">
  26452. </method>
  26453. <field name="source" type="java.lang.String"
  26454. transient="false" volatile="false"
  26455. static="false" final="false" visibility="protected"
  26456. deprecated="not deprecated">
  26457. </field>
  26458. <field name="ignoreError" type="boolean"
  26459. transient="false" volatile="false"
  26460. static="false" final="false" visibility="protected"
  26461. deprecated="not deprecated">
  26462. </field>
  26463. <field name="allowAppend" type="boolean"
  26464. transient="false" volatile="false"
  26465. static="false" final="false" visibility="protected"
  26466. deprecated="not deprecated">
  26467. </field>
  26468. <field name="basePath" type="org.apache.hadoop.fs.Path"
  26469. transient="false" volatile="false"
  26470. static="false" final="false" visibility="protected"
  26471. deprecated="not deprecated">
  26472. </field>
  26473. <field name="rollIntervalMillis" type="long"
  26474. transient="false" volatile="false"
  26475. static="false" final="false" visibility="protected"
  26476. deprecated="not deprecated">
  26477. </field>
  26478. <field name="rollOffsetIntervalMillis" type="long"
  26479. transient="false" volatile="false"
  26480. static="false" final="false" visibility="protected"
  26481. deprecated="not deprecated">
  26482. </field>
  26483. <field name="nextFlush" type="java.util.Calendar"
  26484. transient="false" volatile="false"
  26485. static="false" final="false" visibility="protected"
  26486. deprecated="not deprecated">
  26487. </field>
  26488. <field name="forceFlush" type="boolean"
  26489. transient="false" volatile="false"
  26490. static="true" final="false" visibility="protected"
  26491. deprecated="not deprecated">
  26492. </field>
  26493. <field name="hasFlushed" type="boolean"
  26494. transient="false" volatile="true"
  26495. static="true" final="false" visibility="protected"
  26496. deprecated="not deprecated">
  26497. </field>
  26498. <field name="suppliedConf" type="org.apache.hadoop.conf.Configuration"
  26499. transient="false" volatile="false"
  26500. static="true" final="false" visibility="protected"
  26501. deprecated="not deprecated">
  26502. </field>
  26503. <field name="suppliedFilesystem" type="org.apache.hadoop.fs.FileSystem"
  26504. transient="false" volatile="false"
  26505. static="true" final="false" visibility="protected"
  26506. deprecated="not deprecated">
  26507. </field>
  26508. <doc>
  26509. <![CDATA[<p>This class is a metrics sink that uses
  26510. {@link org.apache.hadoop.fs.FileSystem} to write the metrics logs. Every
  26511. roll interval a new directory will be created under the path specified by the
  26512. <code>basepath</code> property. All metrics will be logged to a file in the
  26513. current interval's directory in a file named &lt;hostname&gt;.log, where
  26514. &lt;hostname&gt; is the name of the host on which the metrics logging
  26515. process is running. The base path is set by the
  26516. <code>&lt;prefix&gt;.sink.&lt;instance&gt;.basepath</code> property. The
  26517. time zone used to create the current interval's directory name is GMT. If
  26518. the <code>basepath</code> property isn't specified, it will default to
  26519. &quot;/tmp&quot;, which is the temp directory on whatever default file
  26520. system is configured for the cluster.</p>
  26521. <p>The <code>&lt;prefix&gt;.sink.&lt;instance&gt;.ignore-error</code>
  26522. property controls whether an exception is thrown when an error is encountered
  26523. writing a log file. The default value is <code>true</code>. When set to
  26524. <code>false</code>, file errors are quietly swallowed.</p>
  26525. <p>The <code>roll-interval</code> property sets the amount of time before
  26526. rolling the directory. The default value is 1 hour. The roll interval may
  26527. not be less than 1 minute. The property's value should be given as
  26528. <i>number unit</i>, where <i>number</i> is an integer value, and
  26529. <i>unit</i> is a valid unit. Valid units are <i>minute</i>, <i>hour</i>,
  26530. and <i>day</i>. The units are case insensitive and may be abbreviated or
  26531. plural. If no units are specified, hours are assumed. For example,
  26532. &quot;2&quot;, &quot;2h&quot;, &quot;2 hour&quot;, and
  26533. &quot;2 hours&quot; are all valid ways to specify two hours.</p>
  26534. <p>The <code>roll-offset-interval-millis</code> property sets the upper
  26535. bound on a random time interval (in milliseconds) that is used to delay
  26536. before the initial roll. All subsequent rolls will happen an integer
  26537. number of roll intervals after the initial roll, hence retaining the original
  26538. offset. The purpose of this property is to insert some variance in the roll
  26539. times so that large clusters using this sink on every node don't cause a
  26540. performance impact on HDFS by rolling simultaneously. The default value is
  26541. 30000 (30s). When writing to HDFS, as a rule of thumb, the roll offset in
  26542. millis should be no less than the number of sink instances times 5.
  26543. <p>The primary use of this class is for logging to HDFS. As it uses
  26544. {@link org.apache.hadoop.fs.FileSystem} to access the target file system,
  26545. however, it can be used to write to the local file system, Amazon S3, or any
  26546. other supported file system. The base path for the sink will determine the
  26547. file system used. An unqualified path will write to the default file system
  26548. set by the configuration.</p>
  26549. <p>Not all file systems support the ability to append to files. In file
  26550. systems without the ability to append to files, only one writer can write to
  26551. a file at a time. To allow for concurrent writes from multiple daemons on a
  26552. single host, the <code>source</code> property is used to set unique headers
  26553. for the log files. The property should be set to the name of
  26554. the source daemon, e.g. <i>namenode</i>. The value of the
  26555. <code>source</code> property should typically be the same as the property's
  26556. prefix. If this property is not set, the source is taken to be
  26557. <i>unknown</i>.</p>
  26558. <p>Instead of appending to an existing file, by default the sink
  26559. will create a new file with a suffix of &quot;.&lt;n&gt;&quet;, where
  26560. <i>n</i> is the next lowest integer that isn't already used in a file name,
  26561. similar to the Hadoop daemon logs. NOTE: the file with the <b>highest</b>
  26562. sequence number is the <b>newest</b> file, unlike the Hadoop daemon logs.</p>
  26563. <p>For file systems that allow append, the sink supports appending to the
  26564. existing file instead. If the <code>allow-append</code> property is set to
  26565. true, the sink will instead append to the existing file on file systems that
  26566. support appends. By default, the <code>allow-append</code> property is
  26567. false.</p>
  26568. <p>Note that when writing to HDFS with <code>allow-append</code> set to true,
  26569. there is a minimum acceptable number of data nodes. If the number of data
  26570. nodes drops below that minimum, the append will succeed, but reading the
  26571. data will fail with an IOException in the DataStreamer class. The minimum
  26572. number of data nodes required for a successful append is generally 2 or
  26573. 3.</p>
  26574. <p>Note also that when writing to HDFS, the file size information is not
  26575. updated until the file is closed (at the end of the interval) even though
  26576. the data is being written successfully. This is a known HDFS limitation that
  26577. exists because of the performance cost of updating the metadata. See
  26578. <a href="https://issues.apache.org/jira/browse/HDFS-5478">HDFS-5478</a>.</p>
  26579. <p>When using this sink in a secure (Kerberos) environment, two additional
  26580. properties must be set: <code>keytab-key</code> and
  26581. <code>principal-key</code>. <code>keytab-key</code> should contain the key by
  26582. which the keytab file can be found in the configuration, for example,
  26583. <code>yarn.nodemanager.keytab</code>. <code>principal-key</code> should
  26584. contain the key by which the principal can be found in the configuration,
  26585. for example, <code>yarn.nodemanager.principal</code>.]]>
  26586. </doc>
  26587. </class>
  26588. <!-- end class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  26589. <!-- start class org.apache.hadoop.metrics2.sink.StatsDSink -->
  26590. <class name="StatsDSink" extends="java.lang.Object"
  26591. abstract="false"
  26592. static="false" final="false" visibility="public"
  26593. deprecated="not deprecated">
  26594. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26595. <implements name="java.io.Closeable"/>
  26596. <constructor name="StatsDSink"
  26597. static="false" final="false" visibility="public"
  26598. deprecated="not deprecated">
  26599. </constructor>
  26600. <method name="init"
  26601. abstract="false" native="false" synchronized="false"
  26602. static="false" final="false" visibility="public"
  26603. deprecated="not deprecated">
  26604. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  26605. </method>
  26606. <method name="putMetrics"
  26607. abstract="false" native="false" synchronized="false"
  26608. static="false" final="false" visibility="public"
  26609. deprecated="not deprecated">
  26610. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26611. </method>
  26612. <method name="writeMetric"
  26613. abstract="false" native="false" synchronized="false"
  26614. static="false" final="false" visibility="public"
  26615. deprecated="not deprecated">
  26616. <param name="line" type="java.lang.String"/>
  26617. </method>
  26618. <method name="flush"
  26619. abstract="false" native="false" synchronized="false"
  26620. static="false" final="false" visibility="public"
  26621. deprecated="not deprecated">
  26622. </method>
  26623. <method name="close"
  26624. abstract="false" native="false" synchronized="false"
  26625. static="false" final="false" visibility="public"
  26626. deprecated="not deprecated">
  26627. <exception name="IOException" type="java.io.IOException"/>
  26628. </method>
  26629. <doc>
  26630. <![CDATA[A metrics sink that writes metrics to a StatsD daemon.
  26631. This sink will produce metrics of the form
  26632. '[hostname].servicename.context.name.metricname:value|type'
  26633. where hostname is optional. This is useful when sending to
  26634. a daemon that is running on the localhost and will add the
  26635. hostname to the metric (such as the
  26636. <a href="https://collectd.org/">CollectD</a> StatsD plugin).
  26637. <br/>
  26638. To configure this plugin, you will need to add the following
  26639. entries to your hadoop-metrics2.properties file:
  26640. <br/>
  26641. <pre>
  26642. *.sink.statsd.class=org.apache.hadoop.metrics2.sink.StatsDSink
  26643. [prefix].sink.statsd.server.host=
  26644. [prefix].sink.statsd.server.port=
  26645. [prefix].sink.statsd.skip.hostname=true|false (optional)
  26646. [prefix].sink.statsd.service.name=NameNode (name you want for service)
  26647. </pre>]]>
  26648. </doc>
  26649. </class>
  26650. <!-- end class org.apache.hadoop.metrics2.sink.StatsDSink -->
  26651. </package>
  26652. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  26653. </package>
  26654. <package name="org.apache.hadoop.metrics2.source">
  26655. </package>
  26656. <package name="org.apache.hadoop.metrics2.util">
  26657. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  26658. <class name="MBeans" extends="java.lang.Object"
  26659. abstract="false"
  26660. static="false" final="true" visibility="public"
  26661. deprecated="not deprecated">
  26662. <method name="register" return="javax.management.ObjectName"
  26663. abstract="false" native="false" synchronized="false"
  26664. static="true" final="false" visibility="public"
  26665. deprecated="not deprecated">
  26666. <param name="serviceName" type="java.lang.String"/>
  26667. <param name="nameName" type="java.lang.String"/>
  26668. <param name="theMbean" type="java.lang.Object"/>
  26669. <doc>
  26670. <![CDATA[Register the MBean using our standard MBeanName format
  26671. "hadoop:service=<serviceName>,name=<nameName>"
  26672. Where the <serviceName> and <nameName> are the supplied parameters.
  26673. @param serviceName
  26674. @param nameName
  26675. @param theMbean - the MBean to register
  26676. @return the named used to register the MBean]]>
  26677. </doc>
  26678. </method>
  26679. <method name="register" return="javax.management.ObjectName"
  26680. abstract="false" native="false" synchronized="false"
  26681. static="true" final="false" visibility="public"
  26682. deprecated="not deprecated">
  26683. <param name="serviceName" type="java.lang.String"/>
  26684. <param name="nameName" type="java.lang.String"/>
  26685. <param name="properties" type="java.util.Map"/>
  26686. <param name="theMbean" type="java.lang.Object"/>
  26687. <doc>
  26688. <![CDATA[Register the MBean using our standard MBeanName format
  26689. "hadoop:service=<serviceName>,name=<nameName>"
  26690. Where the <serviceName> and <nameName> are the supplied parameters.
  26691. @param serviceName
  26692. @param nameName
  26693. @param properties - Key value pairs to define additional JMX ObjectName
  26694. properties.
  26695. @param theMbean - the MBean to register
  26696. @return the named used to register the MBean]]>
  26697. </doc>
  26698. </method>
  26699. <method name="getMbeanNameService" return="java.lang.String"
  26700. abstract="false" native="false" synchronized="false"
  26701. static="true" final="false" visibility="public"
  26702. deprecated="not deprecated">
  26703. <param name="objectName" type="javax.management.ObjectName"/>
  26704. </method>
  26705. <method name="getMbeanNameName" return="java.lang.String"
  26706. abstract="false" native="false" synchronized="false"
  26707. static="true" final="false" visibility="public"
  26708. deprecated="not deprecated">
  26709. <param name="objectName" type="javax.management.ObjectName"/>
  26710. </method>
  26711. <method name="unregister"
  26712. abstract="false" native="false" synchronized="false"
  26713. static="true" final="false" visibility="public"
  26714. deprecated="not deprecated">
  26715. <param name="mbeanName" type="javax.management.ObjectName"/>
  26716. </method>
  26717. <doc>
  26718. <![CDATA[This util class provides a method to register an MBean using
  26719. our standard naming convention as described in the doc
  26720. for {link {@link #register(String, String, Object)}.]]>
  26721. </doc>
  26722. </class>
  26723. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  26724. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  26725. <class name="MetricsCache" extends="java.lang.Object"
  26726. abstract="false"
  26727. static="false" final="false" visibility="public"
  26728. deprecated="not deprecated">
  26729. <constructor name="MetricsCache"
  26730. static="false" final="false" visibility="public"
  26731. deprecated="not deprecated">
  26732. </constructor>
  26733. <constructor name="MetricsCache" type="int"
  26734. static="false" final="false" visibility="public"
  26735. deprecated="not deprecated">
  26736. <doc>
  26737. <![CDATA[Construct a metrics cache
  26738. @param maxRecsPerName limit of the number records per record name]]>
  26739. </doc>
  26740. </constructor>
  26741. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  26742. abstract="false" native="false" synchronized="false"
  26743. static="false" final="false" visibility="public"
  26744. deprecated="not deprecated">
  26745. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26746. <param name="includingTags" type="boolean"/>
  26747. <doc>
  26748. <![CDATA[Update the cache and return the current cached record
  26749. @param mr the update record
  26750. @param includingTags cache tag values (for later lookup by name) if true
  26751. @return the updated cache record]]>
  26752. </doc>
  26753. </method>
  26754. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  26755. abstract="false" native="false" synchronized="false"
  26756. static="false" final="false" visibility="public"
  26757. deprecated="not deprecated">
  26758. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26759. <doc>
  26760. <![CDATA[Update the cache and return the current cache record
  26761. @param mr the update record
  26762. @return the updated cache record]]>
  26763. </doc>
  26764. </method>
  26765. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  26766. abstract="false" native="false" synchronized="false"
  26767. static="false" final="false" visibility="public"
  26768. deprecated="not deprecated">
  26769. <param name="name" type="java.lang.String"/>
  26770. <param name="tags" type="java.util.Collection"/>
  26771. <doc>
  26772. <![CDATA[Get the cached record
  26773. @param name of the record
  26774. @param tags of the record
  26775. @return the cached record or null]]>
  26776. </doc>
  26777. </method>
  26778. <doc>
  26779. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  26780. </doc>
  26781. </class>
  26782. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  26783. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  26784. <class name="Servers" extends="java.lang.Object"
  26785. abstract="false"
  26786. static="false" final="false" visibility="public"
  26787. deprecated="not deprecated">
  26788. <method name="parse" return="java.util.List"
  26789. abstract="false" native="false" synchronized="false"
  26790. static="true" final="false" visibility="public"
  26791. deprecated="not deprecated">
  26792. <param name="specs" type="java.lang.String"/>
  26793. <param name="defaultPort" type="int"/>
  26794. <doc>
  26795. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  26796. of the form <i>hostname</i> or <i>hostname:port</i>. If
  26797. the specs string is null, defaults to localhost:defaultPort.
  26798. @param specs server specs (see description)
  26799. @param defaultPort the default port if not specified
  26800. @return a list of InetSocketAddress objects.]]>
  26801. </doc>
  26802. </method>
  26803. <doc>
  26804. <![CDATA[Helpers to handle server addresses]]>
  26805. </doc>
  26806. </class>
  26807. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  26808. </package>
  26809. <package name="org.apache.hadoop.net">
  26810. <!-- start class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  26811. <class name="AbstractDNSToSwitchMapping" extends="java.lang.Object"
  26812. abstract="true"
  26813. static="false" final="false" visibility="public"
  26814. deprecated="not deprecated">
  26815. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  26816. <implements name="org.apache.hadoop.conf.Configurable"/>
  26817. <constructor name="AbstractDNSToSwitchMapping"
  26818. static="false" final="false" visibility="protected"
  26819. deprecated="not deprecated">
  26820. <doc>
  26821. <![CDATA[Create an unconfigured instance]]>
  26822. </doc>
  26823. </constructor>
  26824. <constructor name="AbstractDNSToSwitchMapping" type="org.apache.hadoop.conf.Configuration"
  26825. static="false" final="false" visibility="protected"
  26826. deprecated="not deprecated">
  26827. <doc>
  26828. <![CDATA[Create an instance, caching the configuration file.
  26829. This constructor does not call {@link #setConf(Configuration)}; if
  26830. a subclass extracts information in that method, it must call it explicitly.
  26831. @param conf the configuration]]>
  26832. </doc>
  26833. </constructor>
  26834. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26835. abstract="false" native="false" synchronized="false"
  26836. static="false" final="false" visibility="public"
  26837. deprecated="not deprecated">
  26838. </method>
  26839. <method name="setConf"
  26840. abstract="false" native="false" synchronized="false"
  26841. static="false" final="false" visibility="public"
  26842. deprecated="not deprecated">
  26843. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26844. </method>
  26845. <method name="isSingleSwitch" return="boolean"
  26846. abstract="false" native="false" synchronized="false"
  26847. static="false" final="false" visibility="public"
  26848. deprecated="not deprecated">
  26849. <doc>
  26850. <![CDATA[Predicate that indicates that the switch mapping is known to be
  26851. single-switch. The base class returns false: it assumes all mappings are
  26852. multi-rack. Subclasses may override this with methods that are more aware
  26853. of their topologies.
  26854. <p/>
  26855. This method is used when parts of Hadoop need know whether to apply
  26856. single rack vs multi-rack policies, such as during block placement.
  26857. Such algorithms behave differently if they are on multi-switch systems.
  26858. </p>
  26859. @return true if the mapping thinks that it is on a single switch]]>
  26860. </doc>
  26861. </method>
  26862. <method name="getSwitchMap" return="java.util.Map"
  26863. abstract="false" native="false" synchronized="false"
  26864. static="false" final="false" visibility="public"
  26865. deprecated="not deprecated">
  26866. <doc>
  26867. <![CDATA[Get a copy of the map (for diagnostics)
  26868. @return a clone of the map or null for none known]]>
  26869. </doc>
  26870. </method>
  26871. <method name="dumpTopology" return="java.lang.String"
  26872. abstract="false" native="false" synchronized="false"
  26873. static="false" final="false" visibility="public"
  26874. deprecated="not deprecated">
  26875. <doc>
  26876. <![CDATA[Generate a string listing the switch mapping implementation,
  26877. the mapping for every known node and the number of nodes and
  26878. unique switches known about -each entry to a separate line.
  26879. @return a string that can be presented to the ops team or used in
  26880. debug messages.]]>
  26881. </doc>
  26882. </method>
  26883. <method name="isSingleSwitchByScriptPolicy" return="boolean"
  26884. abstract="false" native="false" synchronized="false"
  26885. static="false" final="false" visibility="protected"
  26886. deprecated="not deprecated">
  26887. </method>
  26888. <method name="isMappingSingleSwitch" return="boolean"
  26889. abstract="false" native="false" synchronized="false"
  26890. static="true" final="false" visibility="public"
  26891. deprecated="not deprecated">
  26892. <param name="mapping" type="org.apache.hadoop.net.DNSToSwitchMapping"/>
  26893. <doc>
  26894. <![CDATA[Query for a {@link DNSToSwitchMapping} instance being on a single
  26895. switch.
  26896. <p/>
  26897. This predicate simply assumes that all mappings not derived from
  26898. this class are multi-switch.
  26899. @param mapping the mapping to query
  26900. @return true if the base class says it is single switch, or the mapping
  26901. is not derived from this class.]]>
  26902. </doc>
  26903. </method>
  26904. <doc>
  26905. <![CDATA[This is a base class for DNS to Switch mappings. <p/> It is not mandatory to
  26906. derive {@link DNSToSwitchMapping} implementations from it, but it is strongly
  26907. recommended, as it makes it easy for the Hadoop developers to add new methods
  26908. to this base class that are automatically picked up by all implementations.
  26909. <p/>
  26910. This class does not extend the <code>Configured</code>
  26911. base class, and should not be changed to do so, as it causes problems
  26912. for subclasses. The constructor of the <code>Configured</code> calls
  26913. the {@link #setConf(Configuration)} method, which will call into the
  26914. subclasses before they have been fully constructed.]]>
  26915. </doc>
  26916. </class>
  26917. <!-- end class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  26918. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  26919. <class name="CachedDNSToSwitchMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  26920. abstract="false"
  26921. static="false" final="false" visibility="public"
  26922. deprecated="not deprecated">
  26923. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  26924. static="false" final="false" visibility="public"
  26925. deprecated="not deprecated">
  26926. <doc>
  26927. <![CDATA[cache a raw DNS mapping
  26928. @param rawMapping the raw mapping to cache]]>
  26929. </doc>
  26930. </constructor>
  26931. <method name="resolve" return="java.util.List"
  26932. abstract="false" native="false" synchronized="false"
  26933. static="false" final="false" visibility="public"
  26934. deprecated="not deprecated">
  26935. <param name="names" type="java.util.List"/>
  26936. </method>
  26937. <method name="getSwitchMap" return="java.util.Map"
  26938. abstract="false" native="false" synchronized="false"
  26939. static="false" final="false" visibility="public"
  26940. deprecated="not deprecated">
  26941. <doc>
  26942. <![CDATA[Get the (host x switch) map.
  26943. @return a copy of the cached map of hosts to rack]]>
  26944. </doc>
  26945. </method>
  26946. <method name="toString" return="java.lang.String"
  26947. abstract="false" native="false" synchronized="false"
  26948. static="false" final="false" visibility="public"
  26949. deprecated="not deprecated">
  26950. </method>
  26951. <method name="isSingleSwitch" return="boolean"
  26952. abstract="false" native="false" synchronized="false"
  26953. static="false" final="false" visibility="public"
  26954. deprecated="not deprecated">
  26955. <doc>
  26956. <![CDATA[Delegate the switch topology query to the raw mapping, via
  26957. {@link AbstractDNSToSwitchMapping#isMappingSingleSwitch(DNSToSwitchMapping)}
  26958. @return true iff the raw mapper is considered single-switch.]]>
  26959. </doc>
  26960. </method>
  26961. <method name="reloadCachedMappings"
  26962. abstract="false" native="false" synchronized="false"
  26963. static="false" final="false" visibility="public"
  26964. deprecated="not deprecated">
  26965. </method>
  26966. <method name="reloadCachedMappings"
  26967. abstract="false" native="false" synchronized="false"
  26968. static="false" final="false" visibility="public"
  26969. deprecated="not deprecated">
  26970. <param name="names" type="java.util.List"/>
  26971. </method>
  26972. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  26973. transient="false" volatile="false"
  26974. static="false" final="true" visibility="protected"
  26975. deprecated="not deprecated">
  26976. <doc>
  26977. <![CDATA[The uncached mapping]]>
  26978. </doc>
  26979. </field>
  26980. <doc>
  26981. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  26982. raw DNSToSwitchMapping and stores the resolved network location in
  26983. a cache. The following calls to a resolved network location
  26984. will get its location from the cache.]]>
  26985. </doc>
  26986. </class>
  26987. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  26988. <!-- start class org.apache.hadoop.net.ConnectTimeoutException -->
  26989. <class name="ConnectTimeoutException" extends="java.net.SocketTimeoutException"
  26990. abstract="false"
  26991. static="false" final="false" visibility="public"
  26992. deprecated="not deprecated">
  26993. <constructor name="ConnectTimeoutException" type="java.lang.String"
  26994. static="false" final="false" visibility="public"
  26995. deprecated="not deprecated">
  26996. </constructor>
  26997. <doc>
  26998. <![CDATA[Thrown by {@link NetUtils#connect(java.net.Socket, java.net.SocketAddress, int)}
  26999. if it times out while connecting to the remote host.]]>
  27000. </doc>
  27001. </class>
  27002. <!-- end class org.apache.hadoop.net.ConnectTimeoutException -->
  27003. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  27004. <interface name="DNSToSwitchMapping" abstract="true"
  27005. static="false" final="false" visibility="public"
  27006. deprecated="not deprecated">
  27007. <method name="resolve" return="java.util.List"
  27008. abstract="true" native="false" synchronized="false"
  27009. static="false" final="false" visibility="public"
  27010. deprecated="not deprecated">
  27011. <param name="names" type="java.util.List"/>
  27012. <doc>
  27013. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  27014. switch information (network paths). One-to-one correspondence must be
  27015. maintained between the elements in the lists.
  27016. Consider an element in the argument list - x.y.com. The switch information
  27017. that is returned must be a network path of the form /foo/rack,
  27018. where / is the root, and 'foo' is the switch where 'rack' is connected.
  27019. Note the hostname/ip-address is not part of the returned path.
  27020. The network topology of the cluster would determine the number of
  27021. components in the network path.
  27022. <p/>
  27023. If a name cannot be resolved to a rack, the implementation
  27024. should return {@link NetworkTopology#DEFAULT_RACK}. This
  27025. is what the bundled implementations do, though it is not a formal requirement
  27026. @param names the list of hosts to resolve (can be empty)
  27027. @return list of resolved network paths.
  27028. If <i>names</i> is empty, the returned list is also empty]]>
  27029. </doc>
  27030. </method>
  27031. <method name="reloadCachedMappings"
  27032. abstract="true" native="false" synchronized="false"
  27033. static="false" final="false" visibility="public"
  27034. deprecated="not deprecated">
  27035. <doc>
  27036. <![CDATA[Reload all of the cached mappings.
  27037. If there is a cache, this method will clear it, so that future accesses
  27038. will get a chance to see the new data.]]>
  27039. </doc>
  27040. </method>
  27041. <method name="reloadCachedMappings"
  27042. abstract="true" native="false" synchronized="false"
  27043. static="false" final="false" visibility="public"
  27044. deprecated="not deprecated">
  27045. <param name="names" type="java.util.List"/>
  27046. <doc>
  27047. <![CDATA[Reload cached mappings on specific nodes.
  27048. If there is a cache on these nodes, this method will clear it, so that
  27049. future accesses will see updated data.]]>
  27050. </doc>
  27051. </method>
  27052. <doc>
  27053. <![CDATA[An interface that must be implemented to allow pluggable
  27054. DNS-name/IP-address to RackID resolvers.]]>
  27055. </doc>
  27056. </interface>
  27057. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  27058. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  27059. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  27060. abstract="false"
  27061. static="false" final="false" visibility="public"
  27062. deprecated="not deprecated">
  27063. <constructor name="ScriptBasedMapping"
  27064. static="false" final="false" visibility="public"
  27065. deprecated="not deprecated">
  27066. <doc>
  27067. <![CDATA[Create an instance with the default configuration.
  27068. </p>
  27069. Calling {@link #setConf(Configuration)} will trigger a
  27070. re-evaluation of the configuration settings and so be used to
  27071. set up the mapping script.]]>
  27072. </doc>
  27073. </constructor>
  27074. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  27075. static="false" final="false" visibility="public"
  27076. deprecated="not deprecated">
  27077. <doc>
  27078. <![CDATA[Create an instance from the given raw mapping
  27079. @param rawMap raw DNSTOSwithMapping]]>
  27080. </doc>
  27081. </constructor>
  27082. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  27083. static="false" final="false" visibility="public"
  27084. deprecated="not deprecated">
  27085. <doc>
  27086. <![CDATA[Create an instance from the given configuration
  27087. @param conf configuration]]>
  27088. </doc>
  27089. </constructor>
  27090. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27091. abstract="false" native="false" synchronized="false"
  27092. static="false" final="false" visibility="public"
  27093. deprecated="not deprecated">
  27094. </method>
  27095. <method name="toString" return="java.lang.String"
  27096. abstract="false" native="false" synchronized="false"
  27097. static="false" final="false" visibility="public"
  27098. deprecated="not deprecated">
  27099. </method>
  27100. <method name="setConf"
  27101. abstract="false" native="false" synchronized="false"
  27102. static="false" final="false" visibility="public"
  27103. deprecated="not deprecated">
  27104. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27105. <doc>
  27106. <![CDATA[{@inheritDoc}
  27107. <p/>
  27108. This will get called in the superclass constructor, so a check is needed
  27109. to ensure that the raw mapping is defined before trying to relaying a null
  27110. configuration.
  27111. @param conf]]>
  27112. </doc>
  27113. </method>
  27114. <field name="NO_SCRIPT" type="java.lang.String"
  27115. transient="false" volatile="false"
  27116. static="true" final="true" visibility="public"
  27117. deprecated="not deprecated">
  27118. <doc>
  27119. <![CDATA[Text used in the {@link #toString()} method if there is no string
  27120. {@value}]]>
  27121. </doc>
  27122. </field>
  27123. <doc>
  27124. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  27125. script configured via the
  27126. {@link CommonConfigurationKeys#NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY} option.
  27127. <p/>
  27128. It contains a static class <code>RawScriptBasedMapping</code> that performs
  27129. the work: reading the configuration parameters, executing any defined
  27130. script, handling errors and such like. The outer
  27131. class extends {@link CachedDNSToSwitchMapping} to cache the delegated
  27132. queries.
  27133. <p/>
  27134. This DNS mapper's {@link #isSingleSwitch()} predicate returns
  27135. true if and only if a script is defined.]]>
  27136. </doc>
  27137. </class>
  27138. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  27139. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  27140. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  27141. abstract="false"
  27142. static="false" final="false" visibility="public"
  27143. deprecated="not deprecated">
  27144. <implements name="org.apache.hadoop.conf.Configurable"/>
  27145. <constructor name="SocksSocketFactory"
  27146. static="false" final="false" visibility="public"
  27147. deprecated="not deprecated">
  27148. <doc>
  27149. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  27150. </doc>
  27151. </constructor>
  27152. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  27153. static="false" final="false" visibility="public"
  27154. deprecated="not deprecated">
  27155. <doc>
  27156. <![CDATA[Constructor with a supplied Proxy
  27157. @param proxy the proxy to use to create sockets]]>
  27158. </doc>
  27159. </constructor>
  27160. <method name="createSocket" return="java.net.Socket"
  27161. abstract="false" native="false" synchronized="false"
  27162. static="false" final="false" visibility="public"
  27163. deprecated="not deprecated">
  27164. <exception name="IOException" type="java.io.IOException"/>
  27165. </method>
  27166. <method name="createSocket" return="java.net.Socket"
  27167. abstract="false" native="false" synchronized="false"
  27168. static="false" final="false" visibility="public"
  27169. deprecated="not deprecated">
  27170. <param name="addr" type="java.net.InetAddress"/>
  27171. <param name="port" type="int"/>
  27172. <exception name="IOException" type="java.io.IOException"/>
  27173. </method>
  27174. <method name="createSocket" return="java.net.Socket"
  27175. abstract="false" native="false" synchronized="false"
  27176. static="false" final="false" visibility="public"
  27177. deprecated="not deprecated">
  27178. <param name="addr" type="java.net.InetAddress"/>
  27179. <param name="port" type="int"/>
  27180. <param name="localHostAddr" type="java.net.InetAddress"/>
  27181. <param name="localPort" type="int"/>
  27182. <exception name="IOException" type="java.io.IOException"/>
  27183. </method>
  27184. <method name="createSocket" return="java.net.Socket"
  27185. abstract="false" native="false" synchronized="false"
  27186. static="false" final="false" visibility="public"
  27187. deprecated="not deprecated">
  27188. <param name="host" type="java.lang.String"/>
  27189. <param name="port" type="int"/>
  27190. <exception name="IOException" type="java.io.IOException"/>
  27191. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27192. </method>
  27193. <method name="createSocket" return="java.net.Socket"
  27194. abstract="false" native="false" synchronized="false"
  27195. static="false" final="false" visibility="public"
  27196. deprecated="not deprecated">
  27197. <param name="host" type="java.lang.String"/>
  27198. <param name="port" type="int"/>
  27199. <param name="localHostAddr" type="java.net.InetAddress"/>
  27200. <param name="localPort" type="int"/>
  27201. <exception name="IOException" type="java.io.IOException"/>
  27202. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27203. </method>
  27204. <method name="hashCode" return="int"
  27205. abstract="false" native="false" synchronized="false"
  27206. static="false" final="false" visibility="public"
  27207. deprecated="not deprecated">
  27208. </method>
  27209. <method name="equals" return="boolean"
  27210. abstract="false" native="false" synchronized="false"
  27211. static="false" final="false" visibility="public"
  27212. deprecated="not deprecated">
  27213. <param name="obj" type="java.lang.Object"/>
  27214. </method>
  27215. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27216. abstract="false" native="false" synchronized="false"
  27217. static="false" final="false" visibility="public"
  27218. deprecated="not deprecated">
  27219. </method>
  27220. <method name="setConf"
  27221. abstract="false" native="false" synchronized="false"
  27222. static="false" final="false" visibility="public"
  27223. deprecated="not deprecated">
  27224. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27225. </method>
  27226. <doc>
  27227. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  27228. </doc>
  27229. </class>
  27230. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  27231. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  27232. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  27233. abstract="false"
  27234. static="false" final="false" visibility="public"
  27235. deprecated="not deprecated">
  27236. <constructor name="StandardSocketFactory"
  27237. static="false" final="false" visibility="public"
  27238. deprecated="not deprecated">
  27239. <doc>
  27240. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  27241. </doc>
  27242. </constructor>
  27243. <method name="createSocket" return="java.net.Socket"
  27244. abstract="false" native="false" synchronized="false"
  27245. static="false" final="false" visibility="public"
  27246. deprecated="not deprecated">
  27247. <exception name="IOException" type="java.io.IOException"/>
  27248. </method>
  27249. <method name="createSocket" return="java.net.Socket"
  27250. abstract="false" native="false" synchronized="false"
  27251. static="false" final="false" visibility="public"
  27252. deprecated="not deprecated">
  27253. <param name="addr" type="java.net.InetAddress"/>
  27254. <param name="port" type="int"/>
  27255. <exception name="IOException" type="java.io.IOException"/>
  27256. </method>
  27257. <method name="createSocket" return="java.net.Socket"
  27258. abstract="false" native="false" synchronized="false"
  27259. static="false" final="false" visibility="public"
  27260. deprecated="not deprecated">
  27261. <param name="addr" type="java.net.InetAddress"/>
  27262. <param name="port" type="int"/>
  27263. <param name="localHostAddr" type="java.net.InetAddress"/>
  27264. <param name="localPort" type="int"/>
  27265. <exception name="IOException" type="java.io.IOException"/>
  27266. </method>
  27267. <method name="createSocket" return="java.net.Socket"
  27268. abstract="false" native="false" synchronized="false"
  27269. static="false" final="false" visibility="public"
  27270. deprecated="not deprecated">
  27271. <param name="host" type="java.lang.String"/>
  27272. <param name="port" type="int"/>
  27273. <exception name="IOException" type="java.io.IOException"/>
  27274. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27275. </method>
  27276. <method name="createSocket" return="java.net.Socket"
  27277. abstract="false" native="false" synchronized="false"
  27278. static="false" final="false" visibility="public"
  27279. deprecated="not deprecated">
  27280. <param name="host" type="java.lang.String"/>
  27281. <param name="port" type="int"/>
  27282. <param name="localHostAddr" type="java.net.InetAddress"/>
  27283. <param name="localPort" type="int"/>
  27284. <exception name="IOException" type="java.io.IOException"/>
  27285. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27286. </method>
  27287. <method name="equals" return="boolean"
  27288. abstract="false" native="false" synchronized="false"
  27289. static="false" final="false" visibility="public"
  27290. deprecated="not deprecated">
  27291. <param name="obj" type="java.lang.Object"/>
  27292. </method>
  27293. <method name="hashCode" return="int"
  27294. abstract="false" native="false" synchronized="false"
  27295. static="false" final="false" visibility="public"
  27296. deprecated="not deprecated">
  27297. </method>
  27298. <doc>
  27299. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  27300. </doc>
  27301. </class>
  27302. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  27303. <!-- start class org.apache.hadoop.net.TableMapping -->
  27304. <class name="TableMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  27305. abstract="false"
  27306. static="false" final="false" visibility="public"
  27307. deprecated="not deprecated">
  27308. <constructor name="TableMapping"
  27309. static="false" final="false" visibility="public"
  27310. deprecated="not deprecated">
  27311. </constructor>
  27312. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27313. abstract="false" native="false" synchronized="false"
  27314. static="false" final="false" visibility="public"
  27315. deprecated="not deprecated">
  27316. </method>
  27317. <method name="setConf"
  27318. abstract="false" native="false" synchronized="false"
  27319. static="false" final="false" visibility="public"
  27320. deprecated="not deprecated">
  27321. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27322. </method>
  27323. <method name="reloadCachedMappings"
  27324. abstract="false" native="false" synchronized="false"
  27325. static="false" final="false" visibility="public"
  27326. deprecated="not deprecated">
  27327. </method>
  27328. <doc>
  27329. <![CDATA[<p>
  27330. Simple {@link DNSToSwitchMapping} implementation that reads a 2 column text
  27331. file. The columns are separated by whitespace. The first column is a DNS or
  27332. IP address and the second column specifies the rack where the address maps.
  27333. </p>
  27334. <p>
  27335. This class uses the configuration parameter {@code
  27336. net.topology.table.file.name} to locate the mapping file.
  27337. </p>
  27338. <p>
  27339. Calls to {@link #resolve(List)} will look up the address as defined in the
  27340. mapping file. If no entry corresponding to the address is found, the value
  27341. {@code /default-rack} is returned.
  27342. </p>]]>
  27343. </doc>
  27344. </class>
  27345. <!-- end class org.apache.hadoop.net.TableMapping -->
  27346. <doc>
  27347. <![CDATA[Network-related classes.]]>
  27348. </doc>
  27349. </package>
  27350. <package name="org.apache.hadoop.net.unix">
  27351. </package>
  27352. <package name="org.apache.hadoop.security">
  27353. <!-- start class org.apache.hadoop.security.AccessControlException -->
  27354. <class name="AccessControlException" extends="java.io.IOException"
  27355. abstract="false"
  27356. static="false" final="false" visibility="public"
  27357. deprecated="not deprecated">
  27358. <constructor name="AccessControlException"
  27359. static="false" final="false" visibility="public"
  27360. deprecated="not deprecated">
  27361. <doc>
  27362. <![CDATA[Default constructor is needed for unwrapping from
  27363. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  27364. </doc>
  27365. </constructor>
  27366. <constructor name="AccessControlException" type="java.lang.String"
  27367. static="false" final="false" visibility="public"
  27368. deprecated="not deprecated">
  27369. <doc>
  27370. <![CDATA[Constructs an {@link AccessControlException}
  27371. with the specified detail message.
  27372. @param s the detail message.]]>
  27373. </doc>
  27374. </constructor>
  27375. <constructor name="AccessControlException" type="java.lang.Throwable"
  27376. static="false" final="false" visibility="public"
  27377. deprecated="not deprecated">
  27378. <doc>
  27379. <![CDATA[Constructs a new exception with the specified cause and a detail
  27380. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  27381. typically contains the class and detail message of <tt>cause</tt>).
  27382. @param cause the cause (which is saved for later retrieval by the
  27383. {@link #getCause()} method). (A <tt>null</tt> value is
  27384. permitted, and indicates that the cause is nonexistent or
  27385. unknown.)]]>
  27386. </doc>
  27387. </constructor>
  27388. <doc>
  27389. <![CDATA[An exception class for access control related issues.]]>
  27390. </doc>
  27391. </class>
  27392. <!-- end class org.apache.hadoop.security.AccessControlException -->
  27393. <!-- start class org.apache.hadoop.security.Credentials -->
  27394. <class name="Credentials" extends="java.lang.Object"
  27395. abstract="false"
  27396. static="false" final="false" visibility="public"
  27397. deprecated="not deprecated">
  27398. <implements name="org.apache.hadoop.io.Writable"/>
  27399. <constructor name="Credentials"
  27400. static="false" final="false" visibility="public"
  27401. deprecated="not deprecated">
  27402. <doc>
  27403. <![CDATA[Create an empty credentials instance.]]>
  27404. </doc>
  27405. </constructor>
  27406. <constructor name="Credentials" type="org.apache.hadoop.security.Credentials"
  27407. static="false" final="false" visibility="public"
  27408. deprecated="not deprecated">
  27409. <doc>
  27410. <![CDATA[Create a copy of the given credentials.
  27411. @param credentials to copy]]>
  27412. </doc>
  27413. </constructor>
  27414. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  27415. abstract="false" native="false" synchronized="false"
  27416. static="false" final="false" visibility="public"
  27417. deprecated="not deprecated">
  27418. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27419. <doc>
  27420. <![CDATA[Returns the Token object for the alias.
  27421. @param alias the alias for the Token
  27422. @return token for this alias]]>
  27423. </doc>
  27424. </method>
  27425. <method name="addToken"
  27426. abstract="false" native="false" synchronized="false"
  27427. static="false" final="false" visibility="public"
  27428. deprecated="not deprecated">
  27429. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27430. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  27431. <doc>
  27432. <![CDATA[Add a token in the storage (in memory).
  27433. @param alias the alias for the key
  27434. @param t the token object]]>
  27435. </doc>
  27436. </method>
  27437. <method name="getAllTokens" return="java.util.Collection"
  27438. abstract="false" native="false" synchronized="false"
  27439. static="false" final="false" visibility="public"
  27440. deprecated="not deprecated">
  27441. <doc>
  27442. <![CDATA[Return all the tokens in the in-memory map.]]>
  27443. </doc>
  27444. </method>
  27445. <method name="getTokenMap" return="java.util.Map"
  27446. abstract="false" native="false" synchronized="false"
  27447. static="false" final="false" visibility="public"
  27448. deprecated="not deprecated">
  27449. <doc>
  27450. <![CDATA[Returns an unmodifiable version of the full map of aliases to Tokens.]]>
  27451. </doc>
  27452. </method>
  27453. <method name="numberOfTokens" return="int"
  27454. abstract="false" native="false" synchronized="false"
  27455. static="false" final="false" visibility="public"
  27456. deprecated="not deprecated">
  27457. <doc>
  27458. <![CDATA[@return number of Tokens in the in-memory map]]>
  27459. </doc>
  27460. </method>
  27461. <method name="getSecretKey" return="byte[]"
  27462. abstract="false" native="false" synchronized="false"
  27463. static="false" final="false" visibility="public"
  27464. deprecated="not deprecated">
  27465. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27466. <doc>
  27467. <![CDATA[Returns the key bytes for the alias.
  27468. @param alias the alias for the key
  27469. @return key for this alias]]>
  27470. </doc>
  27471. </method>
  27472. <method name="numberOfSecretKeys" return="int"
  27473. abstract="false" native="false" synchronized="false"
  27474. static="false" final="false" visibility="public"
  27475. deprecated="not deprecated">
  27476. <doc>
  27477. <![CDATA[@return number of keys in the in-memory map]]>
  27478. </doc>
  27479. </method>
  27480. <method name="addSecretKey"
  27481. abstract="false" native="false" synchronized="false"
  27482. static="false" final="false" visibility="public"
  27483. deprecated="not deprecated">
  27484. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27485. <param name="key" type="byte[]"/>
  27486. <doc>
  27487. <![CDATA[Set the key for an alias.
  27488. @param alias the alias for the key
  27489. @param key the key bytes]]>
  27490. </doc>
  27491. </method>
  27492. <method name="removeSecretKey"
  27493. abstract="false" native="false" synchronized="false"
  27494. static="false" final="false" visibility="public"
  27495. deprecated="not deprecated">
  27496. <param name="alias" type="org.apache.hadoop.io.Text"/>
  27497. <doc>
  27498. <![CDATA[Remove the key for a given alias.
  27499. @param alias the alias for the key]]>
  27500. </doc>
  27501. </method>
  27502. <method name="getAllSecretKeys" return="java.util.List"
  27503. abstract="false" native="false" synchronized="false"
  27504. static="false" final="false" visibility="public"
  27505. deprecated="not deprecated">
  27506. <doc>
  27507. <![CDATA[Return all the secret key entries in the in-memory map.]]>
  27508. </doc>
  27509. </method>
  27510. <method name="getSecretKeyMap" return="java.util.Map"
  27511. abstract="false" native="false" synchronized="false"
  27512. static="false" final="false" visibility="public"
  27513. deprecated="not deprecated">
  27514. <doc>
  27515. <![CDATA[Returns an unmodifiable version of the full map of aliases to secret keys.]]>
  27516. </doc>
  27517. </method>
  27518. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  27519. abstract="false" native="false" synchronized="false"
  27520. static="true" final="false" visibility="public"
  27521. deprecated="not deprecated">
  27522. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  27523. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27524. <exception name="IOException" type="java.io.IOException"/>
  27525. <doc>
  27526. <![CDATA[Convenience method for reading a token storage file and loading its Tokens.
  27527. @param filename
  27528. @param conf
  27529. @throws IOException]]>
  27530. </doc>
  27531. </method>
  27532. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  27533. abstract="false" native="false" synchronized="false"
  27534. static="true" final="false" visibility="public"
  27535. deprecated="not deprecated">
  27536. <param name="filename" type="java.io.File"/>
  27537. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27538. <exception name="IOException" type="java.io.IOException"/>
  27539. <doc>
  27540. <![CDATA[Convenience method for reading a token storage file and loading its Tokens.
  27541. @param filename
  27542. @param conf
  27543. @throws IOException]]>
  27544. </doc>
  27545. </method>
  27546. <method name="readTokenStorageStream"
  27547. abstract="false" native="false" synchronized="false"
  27548. static="false" final="false" visibility="public"
  27549. deprecated="not deprecated">
  27550. <param name="in" type="java.io.DataInputStream"/>
  27551. <exception name="IOException" type="java.io.IOException"/>
  27552. <doc>
  27553. <![CDATA[Convenience method for reading a token from a DataInputStream.]]>
  27554. </doc>
  27555. </method>
  27556. <method name="writeTokenStorageToStream"
  27557. abstract="false" native="false" synchronized="false"
  27558. static="false" final="false" visibility="public"
  27559. deprecated="not deprecated">
  27560. <param name="os" type="java.io.DataOutputStream"/>
  27561. <exception name="IOException" type="java.io.IOException"/>
  27562. </method>
  27563. <method name="writeTokenStorageToStream"
  27564. abstract="false" native="false" synchronized="false"
  27565. static="false" final="false" visibility="public"
  27566. deprecated="not deprecated">
  27567. <param name="os" type="java.io.DataOutputStream"/>
  27568. <param name="format" type="org.apache.hadoop.security.Credentials.SerializedFormat"/>
  27569. <exception name="IOException" type="java.io.IOException"/>
  27570. </method>
  27571. <method name="writeTokenStorageFile"
  27572. abstract="false" native="false" synchronized="false"
  27573. static="false" final="false" visibility="public"
  27574. deprecated="not deprecated">
  27575. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  27576. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27577. <exception name="IOException" type="java.io.IOException"/>
  27578. </method>
  27579. <method name="writeTokenStorageFile"
  27580. abstract="false" native="false" synchronized="false"
  27581. static="false" final="false" visibility="public"
  27582. deprecated="not deprecated">
  27583. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  27584. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27585. <param name="format" type="org.apache.hadoop.security.Credentials.SerializedFormat"/>
  27586. <exception name="IOException" type="java.io.IOException"/>
  27587. </method>
  27588. <method name="write"
  27589. abstract="false" native="false" synchronized="false"
  27590. static="false" final="false" visibility="public"
  27591. deprecated="not deprecated">
  27592. <param name="out" type="java.io.DataOutput"/>
  27593. <exception name="IOException" type="java.io.IOException"/>
  27594. <doc>
  27595. <![CDATA[Stores all the keys to DataOutput.
  27596. @param out
  27597. @throws IOException]]>
  27598. </doc>
  27599. </method>
  27600. <method name="readFields"
  27601. abstract="false" native="false" synchronized="false"
  27602. static="false" final="false" visibility="public"
  27603. deprecated="not deprecated">
  27604. <param name="in" type="java.io.DataInput"/>
  27605. <exception name="IOException" type="java.io.IOException"/>
  27606. <doc>
  27607. <![CDATA[Loads all the keys.
  27608. @param in
  27609. @throws IOException]]>
  27610. </doc>
  27611. </method>
  27612. <method name="addAll"
  27613. abstract="false" native="false" synchronized="false"
  27614. static="false" final="false" visibility="public"
  27615. deprecated="not deprecated">
  27616. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  27617. <doc>
  27618. <![CDATA[Copy all of the credentials from one credential object into another.
  27619. Existing secrets and tokens are overwritten.
  27620. @param other the credentials to copy]]>
  27621. </doc>
  27622. </method>
  27623. <method name="mergeAll"
  27624. abstract="false" native="false" synchronized="false"
  27625. static="false" final="false" visibility="public"
  27626. deprecated="not deprecated">
  27627. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  27628. <doc>
  27629. <![CDATA[Copy all of the credentials from one credential object into another.
  27630. Existing secrets and tokens are not overwritten.
  27631. @param other the credentials to copy]]>
  27632. </doc>
  27633. </method>
  27634. <doc>
  27635. <![CDATA[A class that provides the facilities of reading and writing
  27636. secret keys and Tokens.]]>
  27637. </doc>
  27638. </class>
  27639. <!-- end class org.apache.hadoop.security.Credentials -->
  27640. <!-- start interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  27641. <interface name="GroupMappingServiceProvider" abstract="true"
  27642. static="false" final="false" visibility="public"
  27643. deprecated="not deprecated">
  27644. <method name="getGroups" return="java.util.List"
  27645. abstract="true" native="false" synchronized="false"
  27646. static="false" final="false" visibility="public"
  27647. deprecated="not deprecated">
  27648. <param name="user" type="java.lang.String"/>
  27649. <exception name="IOException" type="java.io.IOException"/>
  27650. <doc>
  27651. <![CDATA[Get all various group memberships of a given user.
  27652. Returns EMPTY list in case of non-existing user
  27653. @param user User's name
  27654. @return group memberships of user
  27655. @throws IOException]]>
  27656. </doc>
  27657. </method>
  27658. <method name="cacheGroupsRefresh"
  27659. abstract="true" native="false" synchronized="false"
  27660. static="false" final="false" visibility="public"
  27661. deprecated="not deprecated">
  27662. <exception name="IOException" type="java.io.IOException"/>
  27663. <doc>
  27664. <![CDATA[Refresh the cache of groups and user mapping
  27665. @throws IOException]]>
  27666. </doc>
  27667. </method>
  27668. <method name="cacheGroupsAdd"
  27669. abstract="true" native="false" synchronized="false"
  27670. static="false" final="false" visibility="public"
  27671. deprecated="not deprecated">
  27672. <param name="groups" type="java.util.List"/>
  27673. <exception name="IOException" type="java.io.IOException"/>
  27674. <doc>
  27675. <![CDATA[Caches the group user information
  27676. @param groups list of groups to add to cache
  27677. @throws IOException]]>
  27678. </doc>
  27679. </method>
  27680. <field name="GROUP_MAPPING_CONFIG_PREFIX" type="java.lang.String"
  27681. transient="false" volatile="false"
  27682. static="true" final="true" visibility="public"
  27683. deprecated="not deprecated">
  27684. </field>
  27685. <doc>
  27686. <![CDATA[An interface for the implementation of a user-to-groups mapping service
  27687. used by {@link Groups}.]]>
  27688. </doc>
  27689. </interface>
  27690. <!-- end interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  27691. <!-- start interface org.apache.hadoop.security.IdMappingServiceProvider -->
  27692. <interface name="IdMappingServiceProvider" abstract="true"
  27693. static="false" final="false" visibility="public"
  27694. deprecated="not deprecated">
  27695. <method name="getUid" return="int"
  27696. abstract="true" native="false" synchronized="false"
  27697. static="false" final="false" visibility="public"
  27698. deprecated="not deprecated">
  27699. <param name="user" type="java.lang.String"/>
  27700. <exception name="IOException" type="java.io.IOException"/>
  27701. </method>
  27702. <method name="getGid" return="int"
  27703. abstract="true" native="false" synchronized="false"
  27704. static="false" final="false" visibility="public"
  27705. deprecated="not deprecated">
  27706. <param name="group" type="java.lang.String"/>
  27707. <exception name="IOException" type="java.io.IOException"/>
  27708. </method>
  27709. <method name="getUserName" return="java.lang.String"
  27710. abstract="true" native="false" synchronized="false"
  27711. static="false" final="false" visibility="public"
  27712. deprecated="not deprecated">
  27713. <param name="uid" type="int"/>
  27714. <param name="unknown" type="java.lang.String"/>
  27715. </method>
  27716. <method name="getGroupName" return="java.lang.String"
  27717. abstract="true" native="false" synchronized="false"
  27718. static="false" final="false" visibility="public"
  27719. deprecated="not deprecated">
  27720. <param name="gid" type="int"/>
  27721. <param name="unknown" type="java.lang.String"/>
  27722. </method>
  27723. <method name="getUidAllowingUnknown" return="int"
  27724. abstract="true" native="false" synchronized="false"
  27725. static="false" final="false" visibility="public"
  27726. deprecated="not deprecated">
  27727. <param name="user" type="java.lang.String"/>
  27728. </method>
  27729. <method name="getGidAllowingUnknown" return="int"
  27730. abstract="true" native="false" synchronized="false"
  27731. static="false" final="false" visibility="public"
  27732. deprecated="not deprecated">
  27733. <param name="group" type="java.lang.String"/>
  27734. </method>
  27735. <doc>
  27736. <![CDATA[An interface for the implementation of <userId, userName> mapping
  27737. and <groupId, groupName> mapping]]>
  27738. </doc>
  27739. </interface>
  27740. <!-- end interface org.apache.hadoop.security.IdMappingServiceProvider -->
  27741. <!-- start class org.apache.hadoop.security.KerberosAuthException -->
  27742. <class name="KerberosAuthException" extends="java.io.IOException"
  27743. abstract="false"
  27744. static="false" final="false" visibility="public"
  27745. deprecated="not deprecated">
  27746. <constructor name="KerberosAuthException" type="java.lang.String"
  27747. static="false" final="false" visibility="public"
  27748. deprecated="not deprecated">
  27749. </constructor>
  27750. <constructor name="KerberosAuthException" type="java.lang.Throwable"
  27751. static="false" final="false" visibility="public"
  27752. deprecated="not deprecated">
  27753. </constructor>
  27754. <constructor name="KerberosAuthException" type="java.lang.String, java.lang.Throwable"
  27755. static="false" final="false" visibility="public"
  27756. deprecated="not deprecated">
  27757. </constructor>
  27758. <method name="setUser"
  27759. abstract="false" native="false" synchronized="false"
  27760. static="false" final="false" visibility="public"
  27761. deprecated="not deprecated">
  27762. <param name="u" type="java.lang.String"/>
  27763. </method>
  27764. <method name="setPrincipal"
  27765. abstract="false" native="false" synchronized="false"
  27766. static="false" final="false" visibility="public"
  27767. deprecated="not deprecated">
  27768. <param name="p" type="java.lang.String"/>
  27769. </method>
  27770. <method name="setKeytabFile"
  27771. abstract="false" native="false" synchronized="false"
  27772. static="false" final="false" visibility="public"
  27773. deprecated="not deprecated">
  27774. <param name="k" type="java.lang.String"/>
  27775. </method>
  27776. <method name="setTicketCacheFile"
  27777. abstract="false" native="false" synchronized="false"
  27778. static="false" final="false" visibility="public"
  27779. deprecated="not deprecated">
  27780. <param name="t" type="java.lang.String"/>
  27781. </method>
  27782. <method name="getInitialMessage" return="java.lang.String"
  27783. abstract="false" native="false" synchronized="false"
  27784. static="false" final="false" visibility="public"
  27785. deprecated="not deprecated">
  27786. <doc>
  27787. <![CDATA[@return The initial message, or null if not set.]]>
  27788. </doc>
  27789. </method>
  27790. <method name="getKeytabFile" return="java.lang.String"
  27791. abstract="false" native="false" synchronized="false"
  27792. static="false" final="false" visibility="public"
  27793. deprecated="not deprecated">
  27794. <doc>
  27795. <![CDATA[@return The keytab file path, or null if not set.]]>
  27796. </doc>
  27797. </method>
  27798. <method name="getPrincipal" return="java.lang.String"
  27799. abstract="false" native="false" synchronized="false"
  27800. static="false" final="false" visibility="public"
  27801. deprecated="not deprecated">
  27802. <doc>
  27803. <![CDATA[@return The principal, or null if not set.]]>
  27804. </doc>
  27805. </method>
  27806. <method name="getTicketCacheFile" return="java.lang.String"
  27807. abstract="false" native="false" synchronized="false"
  27808. static="false" final="false" visibility="public"
  27809. deprecated="not deprecated">
  27810. <doc>
  27811. <![CDATA[@return The ticket cache file path, or null if not set.]]>
  27812. </doc>
  27813. </method>
  27814. <method name="getUser" return="java.lang.String"
  27815. abstract="false" native="false" synchronized="false"
  27816. static="false" final="false" visibility="public"
  27817. deprecated="not deprecated">
  27818. <doc>
  27819. <![CDATA[@return The user, or null if not set.]]>
  27820. </doc>
  27821. </method>
  27822. <method name="getMessage" return="java.lang.String"
  27823. abstract="false" native="false" synchronized="false"
  27824. static="false" final="false" visibility="public"
  27825. deprecated="not deprecated">
  27826. </method>
  27827. <doc>
  27828. <![CDATA[Thrown when {@link UserGroupInformation} failed with an unrecoverable error,
  27829. such as failure in kerberos login/logout, invalid subject etc.
  27830. Caller should not retry when catching this exception.]]>
  27831. </doc>
  27832. </class>
  27833. <!-- end class org.apache.hadoop.security.KerberosAuthException -->
  27834. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  27835. <class name="SecurityUtil" extends="java.lang.Object"
  27836. abstract="false"
  27837. static="false" final="true" visibility="public"
  27838. deprecated="not deprecated">
  27839. <method name="setConfiguration"
  27840. abstract="false" native="false" synchronized="false"
  27841. static="true" final="false" visibility="public"
  27842. deprecated="not deprecated">
  27843. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27844. </method>
  27845. <method name="isOriginalTGT" return="boolean"
  27846. abstract="false" native="false" synchronized="false"
  27847. static="true" final="false" visibility="protected"
  27848. deprecated="not deprecated">
  27849. <param name="ticket" type="javax.security.auth.kerberos.KerberosTicket"/>
  27850. <doc>
  27851. <![CDATA[Check whether the server principal is the TGS's principal
  27852. @param ticket the original TGT (the ticket that is obtained when a
  27853. kinit is done)
  27854. @return true or false]]>
  27855. </doc>
  27856. </method>
  27857. <method name="getServerPrincipal" return="java.lang.String"
  27858. abstract="false" native="false" synchronized="false"
  27859. static="true" final="false" visibility="public"
  27860. deprecated="not deprecated">
  27861. <param name="principalConfig" type="java.lang.String"/>
  27862. <param name="hostname" type="java.lang.String"/>
  27863. <exception name="IOException" type="java.io.IOException"/>
  27864. <doc>
  27865. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  27866. names. It replaces hostname pattern with hostname, which should be
  27867. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  27868. dynamically looked-up fqdn of the current host instead.
  27869. @param principalConfig
  27870. the Kerberos principal name conf value to convert
  27871. @param hostname
  27872. the fully-qualified domain name used for substitution
  27873. @return converted Kerberos principal name
  27874. @throws IOException if the client address cannot be determined]]>
  27875. </doc>
  27876. </method>
  27877. <method name="getServerPrincipal" return="java.lang.String"
  27878. abstract="false" native="false" synchronized="false"
  27879. static="true" final="false" visibility="public"
  27880. deprecated="not deprecated">
  27881. <param name="principalConfig" type="java.lang.String"/>
  27882. <param name="addr" type="java.net.InetAddress"/>
  27883. <exception name="IOException" type="java.io.IOException"/>
  27884. <doc>
  27885. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  27886. This method is similar to {@link #getServerPrincipal(String, String)},
  27887. except 1) the reverse DNS lookup from addr to hostname is done only when
  27888. necessary, 2) param addr can't be null (no default behavior of using local
  27889. hostname when addr is null).
  27890. @param principalConfig
  27891. Kerberos principal name pattern to convert
  27892. @param addr
  27893. InetAddress of the host used for substitution
  27894. @return converted Kerberos principal name
  27895. @throws IOException if the client address cannot be determined]]>
  27896. </doc>
  27897. </method>
  27898. <method name="login"
  27899. abstract="false" native="false" synchronized="false"
  27900. static="true" final="false" visibility="public"
  27901. deprecated="not deprecated">
  27902. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27903. <param name="keytabFileKey" type="java.lang.String"/>
  27904. <param name="userNameKey" type="java.lang.String"/>
  27905. <exception name="IOException" type="java.io.IOException"/>
  27906. <doc>
  27907. <![CDATA[Login as a principal specified in config. Substitute $host in
  27908. user's Kerberos principal name with a dynamically looked-up fully-qualified
  27909. domain name of the current host.
  27910. @param conf
  27911. conf to use
  27912. @param keytabFileKey
  27913. the key to look for keytab file in conf
  27914. @param userNameKey
  27915. the key to look for user's Kerberos principal name in conf
  27916. @throws IOException if login fails]]>
  27917. </doc>
  27918. </method>
  27919. <method name="login"
  27920. abstract="false" native="false" synchronized="false"
  27921. static="true" final="false" visibility="public"
  27922. deprecated="not deprecated">
  27923. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27924. <param name="keytabFileKey" type="java.lang.String"/>
  27925. <param name="userNameKey" type="java.lang.String"/>
  27926. <param name="hostname" type="java.lang.String"/>
  27927. <exception name="IOException" type="java.io.IOException"/>
  27928. <doc>
  27929. <![CDATA[Login as a principal specified in config. Substitute $host in user's Kerberos principal
  27930. name with hostname. If non-secure mode - return. If no keytab available -
  27931. bail out with an exception
  27932. @param conf
  27933. conf to use
  27934. @param keytabFileKey
  27935. the key to look for keytab file in conf
  27936. @param userNameKey
  27937. the key to look for user's Kerberos principal name in conf
  27938. @param hostname
  27939. hostname to use for substitution
  27940. @throws IOException if the config doesn't specify a keytab]]>
  27941. </doc>
  27942. </method>
  27943. <method name="buildDTServiceName" return="java.lang.String"
  27944. abstract="false" native="false" synchronized="false"
  27945. static="true" final="false" visibility="public"
  27946. deprecated="not deprecated">
  27947. <param name="uri" type="java.net.URI"/>
  27948. <param name="defPort" type="int"/>
  27949. <doc>
  27950. <![CDATA[create the service name for a Delegation token
  27951. @param uri of the service
  27952. @param defPort is used if the uri lacks a port
  27953. @return the token service, or null if no authority
  27954. @see #buildTokenService(InetSocketAddress)]]>
  27955. </doc>
  27956. </method>
  27957. <method name="getHostFromPrincipal" return="java.lang.String"
  27958. abstract="false" native="false" synchronized="false"
  27959. static="true" final="false" visibility="public"
  27960. deprecated="not deprecated">
  27961. <param name="principalName" type="java.lang.String"/>
  27962. <doc>
  27963. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  27964. @param principalName principal name of format as described above
  27965. @return host name if the the string conforms to the above format, else null]]>
  27966. </doc>
  27967. </method>
  27968. <method name="getKerberosInfo" return="org.apache.hadoop.security.KerberosInfo"
  27969. abstract="false" native="false" synchronized="false"
  27970. static="true" final="false" visibility="public"
  27971. deprecated="not deprecated">
  27972. <param name="protocol" type="java.lang.Class"/>
  27973. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27974. <doc>
  27975. <![CDATA[Look up the KerberosInfo for a given protocol. It searches all known
  27976. SecurityInfo providers.
  27977. @param protocol the protocol class to get the information for
  27978. @param conf configuration object
  27979. @return the KerberosInfo or null if it has no KerberosInfo defined]]>
  27980. </doc>
  27981. </method>
  27982. <method name="getClientPrincipal" return="java.lang.String"
  27983. abstract="false" native="false" synchronized="false"
  27984. static="true" final="false" visibility="public"
  27985. deprecated="not deprecated">
  27986. <param name="protocol" type="java.lang.Class"/>
  27987. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27988. <doc>
  27989. <![CDATA[Look up the client principal for a given protocol. It searches all known
  27990. SecurityInfo providers.
  27991. @param protocol the protocol class to get the information for
  27992. @param conf configuration object
  27993. @return client principal or null if it has no client principal defined.]]>
  27994. </doc>
  27995. </method>
  27996. <method name="getTokenInfo" return="org.apache.hadoop.security.token.TokenInfo"
  27997. abstract="false" native="false" synchronized="false"
  27998. static="true" final="false" visibility="public"
  27999. deprecated="not deprecated">
  28000. <param name="protocol" type="java.lang.Class"/>
  28001. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28002. <doc>
  28003. <![CDATA[Look up the TokenInfo for a given protocol. It searches all known
  28004. SecurityInfo providers.
  28005. @param protocol The protocol class to get the information for.
  28006. @param conf Configuration object
  28007. @return the TokenInfo or null if it has no KerberosInfo defined]]>
  28008. </doc>
  28009. </method>
  28010. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  28011. abstract="false" native="false" synchronized="false"
  28012. static="true" final="false" visibility="public"
  28013. deprecated="not deprecated">
  28014. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  28015. <doc>
  28016. <![CDATA[Decode the given token's service field into an InetAddress
  28017. @param token from which to obtain the service
  28018. @return InetAddress for the service]]>
  28019. </doc>
  28020. </method>
  28021. <method name="setTokenService"
  28022. abstract="false" native="false" synchronized="false"
  28023. static="true" final="false" visibility="public"
  28024. deprecated="not deprecated">
  28025. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  28026. <param name="addr" type="java.net.InetSocketAddress"/>
  28027. <doc>
  28028. <![CDATA[Set the given token's service to the format expected by the RPC client
  28029. @param token a delegation token
  28030. @param addr the socket for the rpc connection]]>
  28031. </doc>
  28032. </method>
  28033. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  28034. abstract="false" native="false" synchronized="false"
  28035. static="true" final="false" visibility="public"
  28036. deprecated="not deprecated">
  28037. <param name="addr" type="java.net.InetSocketAddress"/>
  28038. <doc>
  28039. <![CDATA[Construct the service key for a token
  28040. @param addr InetSocketAddress of remote connection with a token
  28041. @return "ip:port" or "host:port" depending on the value of
  28042. hadoop.security.token.service.use_ip]]>
  28043. </doc>
  28044. </method>
  28045. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  28046. abstract="false" native="false" synchronized="false"
  28047. static="true" final="false" visibility="public"
  28048. deprecated="not deprecated">
  28049. <param name="uri" type="java.net.URI"/>
  28050. <doc>
  28051. <![CDATA[Construct the service key for a token
  28052. @param uri of remote connection with a token
  28053. @return "ip:port" or "host:port" depending on the value of
  28054. hadoop.security.token.service.use_ip]]>
  28055. </doc>
  28056. </method>
  28057. <method name="doAsLoginUserOrFatal" return="T"
  28058. abstract="false" native="false" synchronized="false"
  28059. static="true" final="false" visibility="public"
  28060. deprecated="not deprecated">
  28061. <param name="action" type="java.security.PrivilegedAction"/>
  28062. <doc>
  28063. <![CDATA[Perform the given action as the daemon's login user. If the login
  28064. user cannot be determined, this will log a FATAL error and exit
  28065. the whole JVM.]]>
  28066. </doc>
  28067. </method>
  28068. <method name="doAsLoginUser" return="T"
  28069. abstract="false" native="false" synchronized="false"
  28070. static="true" final="false" visibility="public"
  28071. deprecated="not deprecated">
  28072. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  28073. <exception name="IOException" type="java.io.IOException"/>
  28074. <doc>
  28075. <![CDATA[Perform the given action as the daemon's login user. If an
  28076. InterruptedException is thrown, it is converted to an IOException.
  28077. @param action the action to perform
  28078. @return the result of the action
  28079. @throws IOException in the event of error]]>
  28080. </doc>
  28081. </method>
  28082. <method name="doAsCurrentUser" return="T"
  28083. abstract="false" native="false" synchronized="false"
  28084. static="true" final="false" visibility="public"
  28085. deprecated="not deprecated">
  28086. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  28087. <exception name="IOException" type="java.io.IOException"/>
  28088. <doc>
  28089. <![CDATA[Perform the given action as the daemon's current user. If an
  28090. InterruptedException is thrown, it is converted to an IOException.
  28091. @param action the action to perform
  28092. @return the result of the action
  28093. @throws IOException in the event of error]]>
  28094. </doc>
  28095. </method>
  28096. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28097. abstract="false" native="false" synchronized="false"
  28098. static="true" final="false" visibility="public"
  28099. deprecated="not deprecated">
  28100. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28101. </method>
  28102. <method name="setAuthenticationMethod"
  28103. abstract="false" native="false" synchronized="false"
  28104. static="true" final="false" visibility="public"
  28105. deprecated="not deprecated">
  28106. <param name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  28107. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28108. </method>
  28109. <method name="isPrivilegedPort" return="boolean"
  28110. abstract="false" native="false" synchronized="false"
  28111. static="true" final="false" visibility="public"
  28112. deprecated="not deprecated">
  28113. <param name="port" type="int"/>
  28114. </method>
  28115. <method name="getZKAuthInfos" return="java.util.List"
  28116. abstract="false" native="false" synchronized="false"
  28117. static="true" final="false" visibility="public"
  28118. deprecated="not deprecated">
  28119. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28120. <param name="configKey" type="java.lang.String"/>
  28121. <exception name="IOException" type="java.io.IOException"/>
  28122. <doc>
  28123. <![CDATA[Utility method to fetch ZK auth info from the configuration.
  28124. @throws java.io.IOException if the Zookeeper ACLs configuration file
  28125. cannot be read
  28126. @throws ZKUtil.BadAuthFormatException if the auth format is invalid]]>
  28127. </doc>
  28128. </method>
  28129. <field name="LOG" type="org.slf4j.Logger"
  28130. transient="false" volatile="false"
  28131. static="true" final="true" visibility="public"
  28132. deprecated="not deprecated">
  28133. </field>
  28134. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  28135. transient="false" volatile="false"
  28136. static="true" final="true" visibility="public"
  28137. deprecated="not deprecated">
  28138. </field>
  28139. <field name="FAILED_TO_GET_UGI_MSG_HEADER" type="java.lang.String"
  28140. transient="false" volatile="false"
  28141. static="true" final="true" visibility="public"
  28142. deprecated="not deprecated">
  28143. </field>
  28144. <doc>
  28145. <![CDATA[Security Utils.]]>
  28146. </doc>
  28147. </class>
  28148. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  28149. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  28150. <class name="UserGroupInformation" extends="java.lang.Object"
  28151. abstract="false"
  28152. static="false" final="false" visibility="public"
  28153. deprecated="not deprecated">
  28154. <method name="setShouldRenewImmediatelyForTests"
  28155. abstract="false" native="false" synchronized="false"
  28156. static="true" final="false" visibility="public"
  28157. deprecated="not deprecated">
  28158. <param name="immediate" type="boolean"/>
  28159. <doc>
  28160. <![CDATA[For the purposes of unit tests, we want to test login
  28161. from keytab and don't want to wait until the renew
  28162. window (controlled by TICKET_RENEW_WINDOW).
  28163. @param immediate true if we should login without waiting for ticket window]]>
  28164. </doc>
  28165. </method>
  28166. <method name="reattachMetrics"
  28167. abstract="false" native="false" synchronized="false"
  28168. static="true" final="false" visibility="public"
  28169. deprecated="not deprecated">
  28170. <doc>
  28171. <![CDATA[Reattach the class's metrics to a new metric system.]]>
  28172. </doc>
  28173. </method>
  28174. <method name="isInitialized" return="boolean"
  28175. abstract="false" native="false" synchronized="false"
  28176. static="true" final="false" visibility="public"
  28177. deprecated="not deprecated">
  28178. </method>
  28179. <method name="setConfiguration"
  28180. abstract="false" native="false" synchronized="false"
  28181. static="true" final="false" visibility="public"
  28182. deprecated="not deprecated">
  28183. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28184. <doc>
  28185. <![CDATA[Set the static configuration for UGI.
  28186. In particular, set the security authentication mechanism and the
  28187. group look up service.
  28188. @param conf the configuration to use]]>
  28189. </doc>
  28190. </method>
  28191. <method name="isSecurityEnabled" return="boolean"
  28192. abstract="false" native="false" synchronized="false"
  28193. static="true" final="false" visibility="public"
  28194. deprecated="not deprecated">
  28195. <doc>
  28196. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  28197. user identities or is relying on simple authentication
  28198. @return true if UGI is working in a secure environment]]>
  28199. </doc>
  28200. </method>
  28201. <method name="hasKerberosCredentials" return="boolean"
  28202. abstract="false" native="false" synchronized="false"
  28203. static="false" final="false" visibility="public"
  28204. deprecated="not deprecated">
  28205. <doc>
  28206. <![CDATA[checks if logged in using kerberos
  28207. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  28208. </doc>
  28209. </method>
  28210. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  28211. abstract="false" native="false" synchronized="false"
  28212. static="true" final="false" visibility="public"
  28213. deprecated="not deprecated">
  28214. <exception name="IOException" type="java.io.IOException"/>
  28215. <doc>
  28216. <![CDATA[Return the current user, including any doAs in the current stack.
  28217. @return the current user
  28218. @throws IOException if login fails]]>
  28219. </doc>
  28220. </method>
  28221. <method name="getBestUGI" return="org.apache.hadoop.security.UserGroupInformation"
  28222. abstract="false" native="false" synchronized="false"
  28223. static="true" final="false" visibility="public"
  28224. deprecated="not deprecated">
  28225. <param name="ticketCachePath" type="java.lang.String"/>
  28226. <param name="user" type="java.lang.String"/>
  28227. <exception name="IOException" type="java.io.IOException"/>
  28228. <doc>
  28229. <![CDATA[Find the most appropriate UserGroupInformation to use
  28230. @param ticketCachePath The Kerberos ticket cache path, or NULL
  28231. if none is specfied
  28232. @param user The user name, or NULL if none is specified.
  28233. @return The most appropriate UserGroupInformation]]>
  28234. </doc>
  28235. </method>
  28236. <method name="getUGIFromTicketCache" return="org.apache.hadoop.security.UserGroupInformation"
  28237. abstract="false" native="false" synchronized="false"
  28238. static="true" final="false" visibility="public"
  28239. deprecated="not deprecated">
  28240. <param name="ticketCache" type="java.lang.String"/>
  28241. <param name="user" type="java.lang.String"/>
  28242. <exception name="IOException" type="java.io.IOException"/>
  28243. <doc>
  28244. <![CDATA[Create a UserGroupInformation from a Kerberos ticket cache.
  28245. @param user The principal name to load from the ticket
  28246. cache
  28247. @param ticketCache the path to the ticket cache file
  28248. @throws IOException if the kerberos login fails]]>
  28249. </doc>
  28250. </method>
  28251. <method name="getUGIFromSubject" return="org.apache.hadoop.security.UserGroupInformation"
  28252. abstract="false" native="false" synchronized="false"
  28253. static="true" final="false" visibility="public"
  28254. deprecated="not deprecated">
  28255. <param name="subject" type="javax.security.auth.Subject"/>
  28256. <exception name="IOException" type="java.io.IOException"/>
  28257. <doc>
  28258. <![CDATA[Create a UserGroupInformation from a Subject with Kerberos principal.
  28259. @param subject The KerberosPrincipal to use in UGI.
  28260. The creator of subject is responsible for
  28261. renewing credentials.
  28262. @throws IOException
  28263. @throws KerberosAuthException if the kerberos login fails]]>
  28264. </doc>
  28265. </method>
  28266. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  28267. abstract="false" native="false" synchronized="false"
  28268. static="true" final="false" visibility="public"
  28269. deprecated="not deprecated">
  28270. <exception name="IOException" type="java.io.IOException"/>
  28271. <doc>
  28272. <![CDATA[Get the currently logged in user. If no explicit login has occurred,
  28273. the user will automatically be logged in with either kerberos credentials
  28274. if available, or as the local OS user, based on security settings.
  28275. @return the logged in user
  28276. @throws IOException if login fails]]>
  28277. </doc>
  28278. </method>
  28279. <method name="trimLoginMethod" return="java.lang.String"
  28280. abstract="false" native="false" synchronized="false"
  28281. static="true" final="false" visibility="public"
  28282. deprecated="not deprecated">
  28283. <param name="userName" type="java.lang.String"/>
  28284. <doc>
  28285. <![CDATA[remove the login method that is followed by a space from the username
  28286. e.g. "jack (auth:SIMPLE)" -> "jack"
  28287. @param userName
  28288. @return userName without login method]]>
  28289. </doc>
  28290. </method>
  28291. <method name="loginUserFromSubject"
  28292. abstract="false" native="false" synchronized="false"
  28293. static="true" final="false" visibility="public"
  28294. deprecated="not deprecated">
  28295. <param name="subject" type="javax.security.auth.Subject"/>
  28296. <exception name="IOException" type="java.io.IOException"/>
  28297. <doc>
  28298. <![CDATA[Log in a user using the given subject
  28299. @param subject the subject to use when logging in a user, or null to
  28300. create a new subject.
  28301. If subject is not null, the creator of subject is responsible for renewing
  28302. credentials.
  28303. @throws IOException if login fails]]>
  28304. </doc>
  28305. </method>
  28306. <method name="isFromKeytab" return="boolean"
  28307. abstract="false" native="false" synchronized="false"
  28308. static="false" final="false" visibility="public"
  28309. deprecated="not deprecated">
  28310. <doc>
  28311. <![CDATA[Is this user logged in from a keytab file managed by the UGI?
  28312. @return true if the credentials are from a keytab file.]]>
  28313. </doc>
  28314. </method>
  28315. <method name="loginUserFromKeytab"
  28316. abstract="false" native="false" synchronized="false"
  28317. static="true" final="false" visibility="public"
  28318. deprecated="not deprecated">
  28319. <param name="user" type="java.lang.String"/>
  28320. <param name="path" type="java.lang.String"/>
  28321. <exception name="IOException" type="java.io.IOException"/>
  28322. <doc>
  28323. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  28324. file and logs them in. They become the currently logged-in user.
  28325. @param user the principal name to load from the keytab
  28326. @param path the path to the keytab file
  28327. @throws IOException
  28328. @throws KerberosAuthException if it's a kerberos login exception.]]>
  28329. </doc>
  28330. </method>
  28331. <method name="logoutUserFromKeytab"
  28332. abstract="false" native="false" synchronized="false"
  28333. static="false" final="false" visibility="public"
  28334. deprecated="not deprecated">
  28335. <exception name="IOException" type="java.io.IOException"/>
  28336. <doc>
  28337. <![CDATA[Log the current user out who previously logged in using keytab.
  28338. This method assumes that the user logged in by calling
  28339. {@link #loginUserFromKeytab(String, String)}.
  28340. @throws IOException
  28341. @throws KerberosAuthException if a failure occurred in logout,
  28342. or if the user did not log in by invoking loginUserFromKeyTab() before.]]>
  28343. </doc>
  28344. </method>
  28345. <method name="checkTGTAndReloginFromKeytab"
  28346. abstract="false" native="false" synchronized="false"
  28347. static="false" final="false" visibility="public"
  28348. deprecated="not deprecated">
  28349. <exception name="IOException" type="java.io.IOException"/>
  28350. <doc>
  28351. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  28352. @throws IOException
  28353. @throws KerberosAuthException if it's a kerberos login exception.]]>
  28354. </doc>
  28355. </method>
  28356. <method name="reloginFromKeytab"
  28357. abstract="false" native="false" synchronized="false"
  28358. static="false" final="false" visibility="public"
  28359. deprecated="not deprecated">
  28360. <exception name="IOException" type="java.io.IOException"/>
  28361. <doc>
  28362. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  28363. file and logs them in. They become the currently logged-in user. This
  28364. method assumes that {@link #loginUserFromKeytab(String, String)} had
  28365. happened already.
  28366. The Subject field of this UserGroupInformation object is updated to have
  28367. the new credentials.
  28368. @throws IOException
  28369. @throws KerberosAuthException on a failure]]>
  28370. </doc>
  28371. </method>
  28372. <method name="forceReloginFromKeytab"
  28373. abstract="false" native="false" synchronized="false"
  28374. static="false" final="false" visibility="public"
  28375. deprecated="not deprecated">
  28376. <exception name="IOException" type="java.io.IOException"/>
  28377. <doc>
  28378. <![CDATA[Force re-Login a user in from a keytab file irrespective of the last login
  28379. time. Loads a user identity from a keytab file and logs them in. They
  28380. become the currently logged-in user. This method assumes that
  28381. {@link #loginUserFromKeytab(String, String)} had happened already. The
  28382. Subject field of this UserGroupInformation object is updated to have the
  28383. new credentials.
  28384. @throws IOException
  28385. @throws KerberosAuthException on a failure]]>
  28386. </doc>
  28387. </method>
  28388. <method name="reloginFromTicketCache"
  28389. abstract="false" native="false" synchronized="false"
  28390. static="false" final="false" visibility="public"
  28391. deprecated="not deprecated">
  28392. <exception name="IOException" type="java.io.IOException"/>
  28393. <doc>
  28394. <![CDATA[Re-Login a user in from the ticket cache. This
  28395. method assumes that login had happened already.
  28396. The Subject field of this UserGroupInformation object is updated to have
  28397. the new credentials.
  28398. @throws IOException
  28399. @throws KerberosAuthException on a failure]]>
  28400. </doc>
  28401. </method>
  28402. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  28403. abstract="false" native="false" synchronized="false"
  28404. static="true" final="false" visibility="public"
  28405. deprecated="not deprecated">
  28406. <param name="user" type="java.lang.String"/>
  28407. <param name="path" type="java.lang.String"/>
  28408. <exception name="IOException" type="java.io.IOException"/>
  28409. <doc>
  28410. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  28411. file and login them in. This new user does not affect the currently
  28412. logged-in user.
  28413. @param user the principal name to load from the keytab
  28414. @param path the path to the keytab file
  28415. @throws IOException if the keytab file can't be read]]>
  28416. </doc>
  28417. </method>
  28418. <method name="isLoginKeytabBased" return="boolean"
  28419. abstract="false" native="false" synchronized="false"
  28420. static="true" final="false" visibility="public"
  28421. deprecated="not deprecated">
  28422. <exception name="IOException" type="java.io.IOException"/>
  28423. <doc>
  28424. <![CDATA[Did the login happen via keytab
  28425. @return true or false]]>
  28426. </doc>
  28427. </method>
  28428. <method name="isLoginTicketBased" return="boolean"
  28429. abstract="false" native="false" synchronized="false"
  28430. static="true" final="false" visibility="public"
  28431. deprecated="not deprecated">
  28432. <exception name="IOException" type="java.io.IOException"/>
  28433. <doc>
  28434. <![CDATA[Did the login happen via ticket cache
  28435. @return true or false]]>
  28436. </doc>
  28437. </method>
  28438. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  28439. abstract="false" native="false" synchronized="false"
  28440. static="true" final="false" visibility="public"
  28441. deprecated="not deprecated">
  28442. <param name="user" type="java.lang.String"/>
  28443. <doc>
  28444. <![CDATA[Create a user from a login name. It is intended to be used for remote
  28445. users in RPC, since it won't have any credentials.
  28446. @param user the full user principal name, must not be empty or null
  28447. @return the UserGroupInformation for the remote user.]]>
  28448. </doc>
  28449. </method>
  28450. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  28451. abstract="false" native="false" synchronized="false"
  28452. static="true" final="false" visibility="public"
  28453. deprecated="not deprecated">
  28454. <param name="user" type="java.lang.String"/>
  28455. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  28456. <doc>
  28457. <![CDATA[Create a user from a login name. It is intended to be used for remote
  28458. users in RPC, since it won't have any credentials.
  28459. @param user the full user principal name, must not be empty or null
  28460. @return the UserGroupInformation for the remote user.]]>
  28461. </doc>
  28462. </method>
  28463. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  28464. abstract="false" native="false" synchronized="false"
  28465. static="true" final="false" visibility="public"
  28466. deprecated="not deprecated">
  28467. <param name="user" type="java.lang.String"/>
  28468. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  28469. <doc>
  28470. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  28471. real user.
  28472. @param user
  28473. @param realUser
  28474. @return proxyUser ugi]]>
  28475. </doc>
  28476. </method>
  28477. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  28478. abstract="false" native="false" synchronized="false"
  28479. static="false" final="false" visibility="public"
  28480. deprecated="not deprecated">
  28481. <doc>
  28482. <![CDATA[get RealUser (vs. EffectiveUser)
  28483. @return realUser running over proxy user]]>
  28484. </doc>
  28485. </method>
  28486. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  28487. abstract="false" native="false" synchronized="false"
  28488. static="true" final="false" visibility="public"
  28489. deprecated="not deprecated">
  28490. <param name="user" type="java.lang.String"/>
  28491. <param name="userGroups" type="java.lang.String[]"/>
  28492. <doc>
  28493. <![CDATA[Create a UGI for testing HDFS and MapReduce
  28494. @param user the full user principal name
  28495. @param userGroups the names of the groups that the user belongs to
  28496. @return a fake user for running unit tests]]>
  28497. </doc>
  28498. </method>
  28499. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  28500. abstract="false" native="false" synchronized="false"
  28501. static="true" final="false" visibility="public"
  28502. deprecated="not deprecated">
  28503. <param name="user" type="java.lang.String"/>
  28504. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  28505. <param name="userGroups" type="java.lang.String[]"/>
  28506. <doc>
  28507. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  28508. @param user
  28509. the full user principal name for effective user
  28510. @param realUser
  28511. UGI of the real user
  28512. @param userGroups
  28513. the names of the groups that the user belongs to
  28514. @return a fake user for running unit tests]]>
  28515. </doc>
  28516. </method>
  28517. <method name="getShortUserName" return="java.lang.String"
  28518. abstract="false" native="false" synchronized="false"
  28519. static="false" final="false" visibility="public"
  28520. deprecated="not deprecated">
  28521. <doc>
  28522. <![CDATA[Get the user's login name.
  28523. @return the user's name up to the first '/' or '@'.]]>
  28524. </doc>
  28525. </method>
  28526. <method name="getPrimaryGroupName" return="java.lang.String"
  28527. abstract="false" native="false" synchronized="false"
  28528. static="false" final="false" visibility="public"
  28529. deprecated="not deprecated">
  28530. <exception name="IOException" type="java.io.IOException"/>
  28531. </method>
  28532. <method name="getUserName" return="java.lang.String"
  28533. abstract="false" native="false" synchronized="false"
  28534. static="false" final="false" visibility="public"
  28535. deprecated="not deprecated">
  28536. <doc>
  28537. <![CDATA[Get the user's full principal name.
  28538. @return the user's full principal name.]]>
  28539. </doc>
  28540. </method>
  28541. <method name="addTokenIdentifier" return="boolean"
  28542. abstract="false" native="false" synchronized="true"
  28543. static="false" final="false" visibility="public"
  28544. deprecated="not deprecated">
  28545. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  28546. <doc>
  28547. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  28548. authenticated by the RPC layer as belonging to the user represented by this
  28549. UGI.
  28550. @param tokenId
  28551. tokenIdentifier to be added
  28552. @return true on successful add of new tokenIdentifier]]>
  28553. </doc>
  28554. </method>
  28555. <method name="getTokenIdentifiers" return="java.util.Set"
  28556. abstract="false" native="false" synchronized="true"
  28557. static="false" final="false" visibility="public"
  28558. deprecated="not deprecated">
  28559. <doc>
  28560. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  28561. @return the set of TokenIdentifiers belonging to this UGI]]>
  28562. </doc>
  28563. </method>
  28564. <method name="addToken" return="boolean"
  28565. abstract="false" native="false" synchronized="false"
  28566. static="false" final="false" visibility="public"
  28567. deprecated="not deprecated">
  28568. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  28569. <doc>
  28570. <![CDATA[Add a token to this UGI
  28571. @param token Token to be added
  28572. @return true on successful add of new token]]>
  28573. </doc>
  28574. </method>
  28575. <method name="addToken" return="boolean"
  28576. abstract="false" native="false" synchronized="false"
  28577. static="false" final="false" visibility="public"
  28578. deprecated="not deprecated">
  28579. <param name="alias" type="org.apache.hadoop.io.Text"/>
  28580. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  28581. <doc>
  28582. <![CDATA[Add a named token to this UGI
  28583. @param alias Name of the token
  28584. @param token Token to be added
  28585. @return true on successful add of new token]]>
  28586. </doc>
  28587. </method>
  28588. <method name="getTokens" return="java.util.Collection"
  28589. abstract="false" native="false" synchronized="false"
  28590. static="false" final="false" visibility="public"
  28591. deprecated="not deprecated">
  28592. <doc>
  28593. <![CDATA[Obtain the collection of tokens associated with this user.
  28594. @return an unmodifiable collection of tokens associated with user]]>
  28595. </doc>
  28596. </method>
  28597. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  28598. abstract="false" native="false" synchronized="false"
  28599. static="false" final="false" visibility="public"
  28600. deprecated="not deprecated">
  28601. <doc>
  28602. <![CDATA[Obtain the tokens in credentials form associated with this user.
  28603. @return Credentials of tokens associated with this user]]>
  28604. </doc>
  28605. </method>
  28606. <method name="addCredentials"
  28607. abstract="false" native="false" synchronized="false"
  28608. static="false" final="false" visibility="public"
  28609. deprecated="not deprecated">
  28610. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  28611. <doc>
  28612. <![CDATA[Add the given Credentials to this user.
  28613. @param credentials of tokens and secrets]]>
  28614. </doc>
  28615. </method>
  28616. <method name="getGroupNames" return="java.lang.String[]"
  28617. abstract="false" native="false" synchronized="false"
  28618. static="false" final="false" visibility="public"
  28619. deprecated="not deprecated">
  28620. <doc>
  28621. <![CDATA[Get the group names for this user. {@link #getGroups()} is less
  28622. expensive alternative when checking for a contained element.
  28623. @return the list of users with the primary group first. If the command
  28624. fails, it returns an empty list.]]>
  28625. </doc>
  28626. </method>
  28627. <method name="getGroups" return="java.util.List"
  28628. abstract="false" native="false" synchronized="false"
  28629. static="false" final="false" visibility="public"
  28630. deprecated="not deprecated">
  28631. <doc>
  28632. <![CDATA[Get the group names for this user.
  28633. @return the list of users with the primary group first. If the command
  28634. fails, it returns an empty list.]]>
  28635. </doc>
  28636. </method>
  28637. <method name="toString" return="java.lang.String"
  28638. abstract="false" native="false" synchronized="false"
  28639. static="false" final="false" visibility="public"
  28640. deprecated="not deprecated">
  28641. <doc>
  28642. <![CDATA[Return the username.]]>
  28643. </doc>
  28644. </method>
  28645. <method name="setAuthenticationMethod"
  28646. abstract="false" native="false" synchronized="true"
  28647. static="false" final="false" visibility="public"
  28648. deprecated="not deprecated">
  28649. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  28650. <doc>
  28651. <![CDATA[Sets the authentication method in the subject
  28652. @param authMethod]]>
  28653. </doc>
  28654. </method>
  28655. <method name="setAuthenticationMethod"
  28656. abstract="false" native="false" synchronized="false"
  28657. static="false" final="false" visibility="public"
  28658. deprecated="not deprecated">
  28659. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  28660. <doc>
  28661. <![CDATA[Sets the authentication method in the subject
  28662. @param authMethod]]>
  28663. </doc>
  28664. </method>
  28665. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28666. abstract="false" native="false" synchronized="true"
  28667. static="false" final="false" visibility="public"
  28668. deprecated="not deprecated">
  28669. <doc>
  28670. <![CDATA[Get the authentication method from the subject
  28671. @return AuthenticationMethod in the subject, null if not present.]]>
  28672. </doc>
  28673. </method>
  28674. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28675. abstract="false" native="false" synchronized="true"
  28676. static="false" final="false" visibility="public"
  28677. deprecated="not deprecated">
  28678. <doc>
  28679. <![CDATA[Get the authentication method from the real user's subject. If there
  28680. is no real user, return the given user's authentication method.
  28681. @return AuthenticationMethod in the subject, null if not present.]]>
  28682. </doc>
  28683. </method>
  28684. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28685. abstract="false" native="false" synchronized="false"
  28686. static="true" final="false" visibility="public"
  28687. deprecated="not deprecated">
  28688. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  28689. <doc>
  28690. <![CDATA[Returns the authentication method of a ugi. If the authentication method is
  28691. PROXY, returns the authentication method of the real user.
  28692. @param ugi
  28693. @return AuthenticationMethod]]>
  28694. </doc>
  28695. </method>
  28696. <method name="equals" return="boolean"
  28697. abstract="false" native="false" synchronized="false"
  28698. static="false" final="false" visibility="public"
  28699. deprecated="not deprecated">
  28700. <param name="o" type="java.lang.Object"/>
  28701. <doc>
  28702. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  28703. </doc>
  28704. </method>
  28705. <method name="hashCode" return="int"
  28706. abstract="false" native="false" synchronized="false"
  28707. static="false" final="false" visibility="public"
  28708. deprecated="not deprecated">
  28709. <doc>
  28710. <![CDATA[Return the hash of the subject.]]>
  28711. </doc>
  28712. </method>
  28713. <method name="getSubject" return="javax.security.auth.Subject"
  28714. abstract="false" native="false" synchronized="false"
  28715. static="false" final="false" visibility="protected"
  28716. deprecated="not deprecated">
  28717. <doc>
  28718. <![CDATA[Get the underlying subject from this ugi.
  28719. @return the subject that represents this user.]]>
  28720. </doc>
  28721. </method>
  28722. <method name="doAs" return="T"
  28723. abstract="false" native="false" synchronized="false"
  28724. static="false" final="false" visibility="public"
  28725. deprecated="not deprecated">
  28726. <param name="action" type="java.security.PrivilegedAction"/>
  28727. <doc>
  28728. <![CDATA[Run the given action as the user.
  28729. @param <T> the return type of the run method
  28730. @param action the method to execute
  28731. @return the value from the run method]]>
  28732. </doc>
  28733. </method>
  28734. <method name="doAs" return="T"
  28735. abstract="false" native="false" synchronized="false"
  28736. static="false" final="false" visibility="public"
  28737. deprecated="not deprecated">
  28738. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  28739. <exception name="IOException" type="java.io.IOException"/>
  28740. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  28741. <doc>
  28742. <![CDATA[Run the given action as the user, potentially throwing an exception.
  28743. @param <T> the return type of the run method
  28744. @param action the method to execute
  28745. @return the value from the run method
  28746. @throws IOException if the action throws an IOException
  28747. @throws Error if the action throws an Error
  28748. @throws RuntimeException if the action throws a RuntimeException
  28749. @throws InterruptedException if the action throws an InterruptedException
  28750. @throws UndeclaredThrowableException if the action throws something else]]>
  28751. </doc>
  28752. </method>
  28753. <method name="logAllUserInfo"
  28754. abstract="false" native="false" synchronized="false"
  28755. static="true" final="false" visibility="public"
  28756. deprecated="not deprecated">
  28757. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  28758. <exception name="IOException" type="java.io.IOException"/>
  28759. <doc>
  28760. <![CDATA[Log all (current, real, login) UGI and token info into UGI debug log.
  28761. @param ugi - UGI
  28762. @throws IOException]]>
  28763. </doc>
  28764. </method>
  28765. <method name="main"
  28766. abstract="false" native="false" synchronized="false"
  28767. static="true" final="false" visibility="public"
  28768. deprecated="not deprecated">
  28769. <param name="args" type="java.lang.String[]"/>
  28770. <exception name="Exception" type="java.lang.Exception"/>
  28771. <doc>
  28772. <![CDATA[A test method to print out the current user's UGI.
  28773. @param args if there are two arguments, read the user from the keytab
  28774. and print it out.
  28775. @throws Exception]]>
  28776. </doc>
  28777. </method>
  28778. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  28779. transient="false" volatile="false"
  28780. static="true" final="true" visibility="public"
  28781. deprecated="not deprecated">
  28782. <doc>
  28783. <![CDATA[Environment variable pointing to the token cache file]]>
  28784. </doc>
  28785. </field>
  28786. <doc>
  28787. <![CDATA[User and group information for Hadoop.
  28788. This class wraps around a JAAS Subject and provides methods to determine the
  28789. user's username and groups. It supports both the Windows, Unix and Kerberos
  28790. login modules.]]>
  28791. </doc>
  28792. </class>
  28793. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  28794. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  28795. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  28796. abstract="false"
  28797. static="true" final="true" visibility="public"
  28798. deprecated="not deprecated">
  28799. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  28800. abstract="false" native="false" synchronized="false"
  28801. static="true" final="false" visibility="public"
  28802. deprecated="not deprecated">
  28803. </method>
  28804. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28805. abstract="false" native="false" synchronized="false"
  28806. static="true" final="false" visibility="public"
  28807. deprecated="not deprecated">
  28808. <param name="name" type="java.lang.String"/>
  28809. </method>
  28810. <method name="getAuthMethod" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  28811. abstract="false" native="false" synchronized="false"
  28812. static="false" final="false" visibility="public"
  28813. deprecated="not deprecated">
  28814. </method>
  28815. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28816. abstract="false" native="false" synchronized="false"
  28817. static="true" final="false" visibility="public"
  28818. deprecated="not deprecated">
  28819. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  28820. </method>
  28821. <doc>
  28822. <![CDATA[existing types of authentications' methods]]>
  28823. </doc>
  28824. </class>
  28825. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  28826. </package>
  28827. <package name="org.apache.hadoop.security.alias">
  28828. <!-- start class org.apache.hadoop.security.alias.CredentialProvider -->
  28829. <class name="CredentialProvider" extends="java.lang.Object"
  28830. abstract="true"
  28831. static="false" final="false" visibility="public"
  28832. deprecated="not deprecated">
  28833. <constructor name="CredentialProvider"
  28834. static="false" final="false" visibility="public"
  28835. deprecated="not deprecated">
  28836. </constructor>
  28837. <method name="isTransient" return="boolean"
  28838. abstract="false" native="false" synchronized="false"
  28839. static="false" final="false" visibility="public"
  28840. deprecated="not deprecated">
  28841. <doc>
  28842. <![CDATA[Indicates whether this provider represents a store
  28843. that is intended for transient use - such as the UserProvider
  28844. is. These providers are generally used to provide job access to
  28845. passwords rather than for long term storage.
  28846. @return true if transient, false otherwise]]>
  28847. </doc>
  28848. </method>
  28849. <method name="flush"
  28850. abstract="true" native="false" synchronized="false"
  28851. static="false" final="false" visibility="public"
  28852. deprecated="not deprecated">
  28853. <exception name="IOException" type="java.io.IOException"/>
  28854. <doc>
  28855. <![CDATA[Ensures that any changes to the credentials are written to persistent
  28856. store.
  28857. @throws IOException]]>
  28858. </doc>
  28859. </method>
  28860. <method name="getCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  28861. abstract="true" native="false" synchronized="false"
  28862. static="false" final="false" visibility="public"
  28863. deprecated="not deprecated">
  28864. <param name="alias" type="java.lang.String"/>
  28865. <exception name="IOException" type="java.io.IOException"/>
  28866. <doc>
  28867. <![CDATA[Get the credential entry for a specific alias.
  28868. @param alias the name of a specific credential
  28869. @return the credentialEntry
  28870. @throws IOException]]>
  28871. </doc>
  28872. </method>
  28873. <method name="getAliases" return="java.util.List"
  28874. abstract="true" native="false" synchronized="false"
  28875. static="false" final="false" visibility="public"
  28876. deprecated="not deprecated">
  28877. <exception name="IOException" type="java.io.IOException"/>
  28878. <doc>
  28879. <![CDATA[Get the aliases for all credentials.
  28880. @return the list of alias names
  28881. @throws IOException]]>
  28882. </doc>
  28883. </method>
  28884. <method name="createCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  28885. abstract="true" native="false" synchronized="false"
  28886. static="false" final="false" visibility="public"
  28887. deprecated="not deprecated">
  28888. <param name="name" type="java.lang.String"/>
  28889. <param name="credential" type="char[]"/>
  28890. <exception name="IOException" type="java.io.IOException"/>
  28891. <doc>
  28892. <![CDATA[Create a new credential. The given alias must not already exist.
  28893. @param name the alias of the credential
  28894. @param credential the credential value for the alias.
  28895. @throws IOException]]>
  28896. </doc>
  28897. </method>
  28898. <method name="deleteCredentialEntry"
  28899. abstract="true" native="false" synchronized="false"
  28900. static="false" final="false" visibility="public"
  28901. deprecated="not deprecated">
  28902. <param name="name" type="java.lang.String"/>
  28903. <exception name="IOException" type="java.io.IOException"/>
  28904. <doc>
  28905. <![CDATA[Delete the given credential.
  28906. @param name the alias of the credential to delete
  28907. @throws IOException]]>
  28908. </doc>
  28909. </method>
  28910. <method name="needsPassword" return="boolean"
  28911. abstract="false" 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[Does this provider require a password? This means that a password is
  28917. required for normal operation, and it has not been found through normal
  28918. means. If true, the password should be provided by the caller using
  28919. setPassword().
  28920. @return Whether or not the provider requires a password
  28921. @throws IOException]]>
  28922. </doc>
  28923. </method>
  28924. <method name="noPasswordWarning" return="java.lang.String"
  28925. abstract="false" native="false" synchronized="false"
  28926. static="false" final="false" visibility="public"
  28927. deprecated="not deprecated">
  28928. <doc>
  28929. <![CDATA[If a password for the provider is needed, but is not provided, this will
  28930. return a warning and instructions for supplying said password to the
  28931. provider.
  28932. @return A warning and instructions for supplying the password]]>
  28933. </doc>
  28934. </method>
  28935. <method name="noPasswordError" return="java.lang.String"
  28936. abstract="false" native="false" synchronized="false"
  28937. static="false" final="false" visibility="public"
  28938. deprecated="not deprecated">
  28939. <doc>
  28940. <![CDATA[If a password for the provider is needed, but is not provided, this will
  28941. return an error message and instructions for supplying said password to
  28942. the provider.
  28943. @return An error message and instructions for supplying the password]]>
  28944. </doc>
  28945. </method>
  28946. <field name="CLEAR_TEXT_FALLBACK" type="java.lang.String"
  28947. transient="false" volatile="false"
  28948. static="true" final="true" visibility="public"
  28949. deprecated="not deprecated">
  28950. </field>
  28951. <doc>
  28952. <![CDATA[A provider of credentials or password for Hadoop applications. Provides an
  28953. abstraction to separate credential storage from users of them. It
  28954. is intended to support getting or storing passwords in a variety of ways,
  28955. including third party bindings.
  28956. <code>CredentialProvider</code> implementations must be thread safe.]]>
  28957. </doc>
  28958. </class>
  28959. <!-- end class org.apache.hadoop.security.alias.CredentialProvider -->
  28960. <!-- start class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  28961. <class name="CredentialProviderFactory" extends="java.lang.Object"
  28962. abstract="true"
  28963. static="false" final="false" visibility="public"
  28964. deprecated="not deprecated">
  28965. <constructor name="CredentialProviderFactory"
  28966. static="false" final="false" visibility="public"
  28967. deprecated="not deprecated">
  28968. </constructor>
  28969. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  28970. abstract="true" native="false" synchronized="false"
  28971. static="false" final="false" visibility="public"
  28972. deprecated="not deprecated">
  28973. <param name="providerName" type="java.net.URI"/>
  28974. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28975. <exception name="IOException" type="java.io.IOException"/>
  28976. </method>
  28977. <method name="getProviders" return="java.util.List"
  28978. abstract="false" native="false" synchronized="false"
  28979. static="true" final="false" visibility="public"
  28980. deprecated="not deprecated">
  28981. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28982. <exception name="IOException" type="java.io.IOException"/>
  28983. </method>
  28984. <field name="CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  28985. transient="false" volatile="false"
  28986. static="true" final="true" visibility="public"
  28987. deprecated="not deprecated">
  28988. </field>
  28989. <doc>
  28990. <![CDATA[A factory to create a list of CredentialProvider based on the path given in a
  28991. Configuration. It uses a service loader interface to find the available
  28992. CredentialProviders and create them based on the list of URIs.]]>
  28993. </doc>
  28994. </class>
  28995. <!-- end class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  28996. </package>
  28997. <package name="org.apache.hadoop.security.authorize">
  28998. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  28999. <class name="AccessControlList" extends="java.lang.Object"
  29000. abstract="false"
  29001. static="false" final="false" visibility="public"
  29002. deprecated="not deprecated">
  29003. <implements name="org.apache.hadoop.io.Writable"/>
  29004. <constructor name="AccessControlList"
  29005. static="false" final="false" visibility="public"
  29006. deprecated="not deprecated">
  29007. <doc>
  29008. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  29009. </doc>
  29010. </constructor>
  29011. <constructor name="AccessControlList" type="java.lang.String"
  29012. static="false" final="false" visibility="public"
  29013. deprecated="not deprecated">
  29014. <doc>
  29015. <![CDATA[Construct a new ACL from a String representation of the same.
  29016. The String is a a comma separated list of users and groups.
  29017. The user list comes first and is separated by a space followed
  29018. by the group list. For e.g. "user1,user2 group1,group2"
  29019. @param aclString String representation of the ACL]]>
  29020. </doc>
  29021. </constructor>
  29022. <constructor name="AccessControlList" type="java.lang.String, java.lang.String"
  29023. static="false" final="false" visibility="public"
  29024. deprecated="not deprecated">
  29025. <doc>
  29026. <![CDATA[Construct a new ACL from String representation of users and groups
  29027. The arguments are comma separated lists
  29028. @param users comma separated list of users
  29029. @param groups comma separated list of groups]]>
  29030. </doc>
  29031. </constructor>
  29032. <method name="isAllAllowed" return="boolean"
  29033. abstract="false" native="false" synchronized="false"
  29034. static="false" final="false" visibility="public"
  29035. deprecated="not deprecated">
  29036. </method>
  29037. <method name="addUser"
  29038. abstract="false" native="false" synchronized="false"
  29039. static="false" final="false" visibility="public"
  29040. deprecated="not deprecated">
  29041. <param name="user" type="java.lang.String"/>
  29042. <doc>
  29043. <![CDATA[Add user to the names of users allowed for this service.
  29044. @param user
  29045. The user name]]>
  29046. </doc>
  29047. </method>
  29048. <method name="addGroup"
  29049. abstract="false" native="false" synchronized="false"
  29050. static="false" final="false" visibility="public"
  29051. deprecated="not deprecated">
  29052. <param name="group" type="java.lang.String"/>
  29053. <doc>
  29054. <![CDATA[Add group to the names of groups allowed for this service.
  29055. @param group
  29056. The group name]]>
  29057. </doc>
  29058. </method>
  29059. <method name="removeUser"
  29060. abstract="false" native="false" synchronized="false"
  29061. static="false" final="false" visibility="public"
  29062. deprecated="not deprecated">
  29063. <param name="user" type="java.lang.String"/>
  29064. <doc>
  29065. <![CDATA[Remove user from the names of users allowed for this service.
  29066. @param user
  29067. The user name]]>
  29068. </doc>
  29069. </method>
  29070. <method name="removeGroup"
  29071. abstract="false" native="false" synchronized="false"
  29072. static="false" final="false" visibility="public"
  29073. deprecated="not deprecated">
  29074. <param name="group" type="java.lang.String"/>
  29075. <doc>
  29076. <![CDATA[Remove group from the names of groups allowed for this service.
  29077. @param group
  29078. The group name]]>
  29079. </doc>
  29080. </method>
  29081. <method name="getUsers" return="java.util.Collection"
  29082. abstract="false" native="false" synchronized="false"
  29083. static="false" final="false" visibility="public"
  29084. deprecated="not deprecated">
  29085. <doc>
  29086. <![CDATA[Get the names of users allowed for this service.
  29087. @return the set of user names. the set must not be modified.]]>
  29088. </doc>
  29089. </method>
  29090. <method name="getGroups" return="java.util.Collection"
  29091. abstract="false" native="false" synchronized="false"
  29092. static="false" final="false" visibility="public"
  29093. deprecated="not deprecated">
  29094. <doc>
  29095. <![CDATA[Get the names of user groups allowed for this service.
  29096. @return the set of group names. the set must not be modified.]]>
  29097. </doc>
  29098. </method>
  29099. <method name="isUserInList" return="boolean"
  29100. abstract="false" native="false" synchronized="false"
  29101. static="false" final="true" visibility="public"
  29102. deprecated="not deprecated">
  29103. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  29104. <doc>
  29105. <![CDATA[Checks if a user represented by the provided {@link UserGroupInformation}
  29106. is a member of the Access Control List
  29107. @param ugi UserGroupInformation to check if contained in the ACL
  29108. @return true if ugi is member of the list]]>
  29109. </doc>
  29110. </method>
  29111. <method name="isUserAllowed" return="boolean"
  29112. abstract="false" native="false" synchronized="false"
  29113. static="false" final="false" visibility="public"
  29114. deprecated="not deprecated">
  29115. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  29116. </method>
  29117. <method name="toString" return="java.lang.String"
  29118. abstract="false" native="false" synchronized="false"
  29119. static="false" final="false" visibility="public"
  29120. deprecated="not deprecated">
  29121. <doc>
  29122. <![CDATA[Returns descriptive way of users and groups that are part of this ACL.
  29123. Use {@link #getAclString()} to get the exact String that can be given to
  29124. the constructor of AccessControlList to create a new instance.]]>
  29125. </doc>
  29126. </method>
  29127. <method name="getAclString" return="java.lang.String"
  29128. abstract="false" native="false" synchronized="false"
  29129. static="false" final="false" visibility="public"
  29130. deprecated="not deprecated">
  29131. <doc>
  29132. <![CDATA[Returns the access control list as a String that can be used for building a
  29133. new instance by sending it to the constructor of {@link AccessControlList}.]]>
  29134. </doc>
  29135. </method>
  29136. <method name="write"
  29137. abstract="false" native="false" synchronized="false"
  29138. static="false" final="false" visibility="public"
  29139. deprecated="not deprecated">
  29140. <param name="out" type="java.io.DataOutput"/>
  29141. <exception name="IOException" type="java.io.IOException"/>
  29142. <doc>
  29143. <![CDATA[Serializes the AccessControlList object]]>
  29144. </doc>
  29145. </method>
  29146. <method name="readFields"
  29147. abstract="false" native="false" synchronized="false"
  29148. static="false" final="false" visibility="public"
  29149. deprecated="not deprecated">
  29150. <param name="in" type="java.io.DataInput"/>
  29151. <exception name="IOException" type="java.io.IOException"/>
  29152. <doc>
  29153. <![CDATA[Deserializes the AccessControlList object]]>
  29154. </doc>
  29155. </method>
  29156. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  29157. transient="false" volatile="false"
  29158. static="true" final="true" visibility="public"
  29159. deprecated="not deprecated">
  29160. </field>
  29161. <doc>
  29162. <![CDATA[Class representing a configured access control list.]]>
  29163. </doc>
  29164. </class>
  29165. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  29166. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  29167. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  29168. abstract="false"
  29169. static="false" final="false" visibility="public"
  29170. deprecated="not deprecated">
  29171. <constructor name="AuthorizationException"
  29172. static="false" final="false" visibility="public"
  29173. deprecated="not deprecated">
  29174. </constructor>
  29175. <constructor name="AuthorizationException" type="java.lang.String"
  29176. static="false" final="false" visibility="public"
  29177. deprecated="not deprecated">
  29178. </constructor>
  29179. <constructor name="AuthorizationException" type="java.lang.Throwable"
  29180. static="false" final="false" visibility="public"
  29181. deprecated="not deprecated">
  29182. <doc>
  29183. <![CDATA[Constructs a new exception with the specified cause and a detail
  29184. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  29185. typically contains the class and detail message of <tt>cause</tt>).
  29186. @param cause the cause (which is saved for later retrieval by the
  29187. {@link #getCause()} method). (A <tt>null</tt> value is
  29188. permitted, and indicates that the cause is nonexistent or
  29189. unknown.)]]>
  29190. </doc>
  29191. </constructor>
  29192. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  29193. abstract="false" native="false" synchronized="false"
  29194. static="false" final="false" visibility="public"
  29195. deprecated="not deprecated">
  29196. </method>
  29197. <method name="printStackTrace"
  29198. abstract="false" native="false" synchronized="false"
  29199. static="false" final="false" visibility="public"
  29200. deprecated="not deprecated">
  29201. </method>
  29202. <method name="printStackTrace"
  29203. abstract="false" native="false" synchronized="false"
  29204. static="false" final="false" visibility="public"
  29205. deprecated="not deprecated">
  29206. <param name="s" type="java.io.PrintStream"/>
  29207. </method>
  29208. <method name="printStackTrace"
  29209. abstract="false" native="false" synchronized="false"
  29210. static="false" final="false" visibility="public"
  29211. deprecated="not deprecated">
  29212. <param name="s" type="java.io.PrintWriter"/>
  29213. </method>
  29214. <doc>
  29215. <![CDATA[An exception class for authorization-related issues.
  29216. This class <em>does not</em> provide the stack trace for security purposes.]]>
  29217. </doc>
  29218. </class>
  29219. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  29220. <!-- start class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  29221. <class name="DefaultImpersonationProvider" extends="java.lang.Object"
  29222. abstract="false"
  29223. static="false" final="false" visibility="public"
  29224. deprecated="not deprecated">
  29225. <implements name="org.apache.hadoop.security.authorize.ImpersonationProvider"/>
  29226. <constructor name="DefaultImpersonationProvider"
  29227. static="false" final="false" visibility="public"
  29228. deprecated="not deprecated">
  29229. </constructor>
  29230. <method name="getTestProvider" return="org.apache.hadoop.security.authorize.DefaultImpersonationProvider"
  29231. abstract="false" native="false" synchronized="true"
  29232. static="true" final="false" visibility="public"
  29233. deprecated="not deprecated">
  29234. </method>
  29235. <method name="setConf"
  29236. abstract="false" native="false" synchronized="false"
  29237. static="false" final="false" visibility="public"
  29238. deprecated="not deprecated">
  29239. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29240. </method>
  29241. <method name="init"
  29242. abstract="false" native="false" synchronized="false"
  29243. static="false" final="false" visibility="public"
  29244. deprecated="not deprecated">
  29245. <param name="configurationPrefix" type="java.lang.String"/>
  29246. </method>
  29247. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  29248. abstract="false" native="false" synchronized="false"
  29249. static="false" final="false" visibility="public"
  29250. deprecated="not deprecated">
  29251. </method>
  29252. <method name="authorize"
  29253. abstract="false" native="false" synchronized="false"
  29254. static="false" final="false" visibility="public"
  29255. deprecated="not deprecated">
  29256. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  29257. <param name="remoteAddress" type="java.net.InetAddress"/>
  29258. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  29259. </method>
  29260. <method name="getProxySuperuserUserConfKey" return="java.lang.String"
  29261. abstract="false" native="false" synchronized="false"
  29262. static="false" final="false" visibility="public"
  29263. deprecated="not deprecated">
  29264. <param name="userName" type="java.lang.String"/>
  29265. <doc>
  29266. <![CDATA[Returns configuration key for effective usergroups allowed for a superuser
  29267. @param userName name of the superuser
  29268. @return configuration key for superuser usergroups]]>
  29269. </doc>
  29270. </method>
  29271. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  29272. abstract="false" native="false" synchronized="false"
  29273. static="false" final="false" visibility="public"
  29274. deprecated="not deprecated">
  29275. <param name="userName" type="java.lang.String"/>
  29276. <doc>
  29277. <![CDATA[Returns configuration key for effective groups allowed for a superuser
  29278. @param userName name of the superuser
  29279. @return configuration key for superuser groups]]>
  29280. </doc>
  29281. </method>
  29282. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  29283. abstract="false" native="false" synchronized="false"
  29284. static="false" final="false" visibility="public"
  29285. deprecated="not deprecated">
  29286. <param name="userName" type="java.lang.String"/>
  29287. <doc>
  29288. <![CDATA[Return configuration key for superuser ip addresses
  29289. @param userName name of the superuser
  29290. @return configuration key for superuser ip-addresses]]>
  29291. </doc>
  29292. </method>
  29293. <method name="getProxyGroups" return="java.util.Map"
  29294. abstract="false" native="false" synchronized="false"
  29295. static="false" final="false" visibility="public"
  29296. deprecated="not deprecated">
  29297. </method>
  29298. <method name="getProxyHosts" return="java.util.Map"
  29299. abstract="false" native="false" synchronized="false"
  29300. static="false" final="false" visibility="public"
  29301. deprecated="not deprecated">
  29302. </method>
  29303. </class>
  29304. <!-- end class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  29305. <!-- start interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  29306. <interface name="ImpersonationProvider" abstract="true"
  29307. static="false" final="false" visibility="public"
  29308. deprecated="not deprecated">
  29309. <implements name="org.apache.hadoop.conf.Configurable"/>
  29310. <method name="init"
  29311. abstract="true" native="false" synchronized="false"
  29312. static="false" final="false" visibility="public"
  29313. deprecated="not deprecated">
  29314. <param name="configurationPrefix" type="java.lang.String"/>
  29315. <doc>
  29316. <![CDATA[Specifies the configuration prefix for the proxy user properties and
  29317. initializes the provider.
  29318. @param configurationPrefix the configuration prefix for the proxy user
  29319. properties]]>
  29320. </doc>
  29321. </method>
  29322. <method name="authorize"
  29323. abstract="false" native="false" synchronized="false"
  29324. static="false" final="false" visibility="public"
  29325. deprecated="not deprecated">
  29326. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  29327. <param name="remoteAddress" type="java.lang.String"/>
  29328. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  29329. <doc>
  29330. <![CDATA[Authorize the superuser which is doing doAs.
  29331. {@link #authorize(UserGroupInformation, InetAddress)} should
  29332. be preferred to avoid possibly re-resolving the ip address.
  29333. @param user ugi of the effective or proxy user which contains a real user.
  29334. @param remoteAddress the ip address of client.
  29335. @throws AuthorizationException]]>
  29336. </doc>
  29337. </method>
  29338. <method name="authorize"
  29339. abstract="true" native="false" synchronized="false"
  29340. static="false" final="false" visibility="public"
  29341. deprecated="not deprecated">
  29342. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  29343. <param name="remoteAddress" type="java.net.InetAddress"/>
  29344. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  29345. <doc>
  29346. <![CDATA[Authorize the superuser which is doing doAs.
  29347. @param user ugi of the effective or proxy user which contains a real user
  29348. @param remoteAddress the ip address of client
  29349. @throws AuthorizationException]]>
  29350. </doc>
  29351. </method>
  29352. </interface>
  29353. <!-- end interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  29354. </package>
  29355. <package name="org.apache.hadoop.security.http">
  29356. <!-- start class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  29357. <class name="RestCsrfPreventionFilter" extends="java.lang.Object"
  29358. abstract="false"
  29359. static="false" final="false" visibility="public"
  29360. deprecated="not deprecated">
  29361. <implements name="javax.servlet.Filter"/>
  29362. <constructor name="RestCsrfPreventionFilter"
  29363. static="false" final="false" visibility="public"
  29364. deprecated="not deprecated">
  29365. </constructor>
  29366. <method name="init"
  29367. abstract="false" native="false" synchronized="false"
  29368. static="false" final="false" visibility="public"
  29369. deprecated="not deprecated">
  29370. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  29371. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29372. </method>
  29373. <method name="isBrowser" return="boolean"
  29374. abstract="false" native="false" synchronized="false"
  29375. static="false" final="false" visibility="protected"
  29376. deprecated="not deprecated">
  29377. <param name="userAgent" type="java.lang.String"/>
  29378. <doc>
  29379. <![CDATA[This method interrogates the User-Agent String and returns whether it
  29380. refers to a browser. If its not a browser, then the requirement for the
  29381. CSRF header will not be enforced; if it is a browser, the requirement will
  29382. be enforced.
  29383. <p>
  29384. A User-Agent String is considered to be a browser if it matches
  29385. any of the regex patterns from browser-useragent-regex; the default
  29386. behavior is to consider everything a browser that matches the following:
  29387. "^Mozilla.*,^Opera.*". Subclasses can optionally override
  29388. this method to use different behavior.
  29389. @param userAgent The User-Agent String, or null if there isn't one
  29390. @return true if the User-Agent String refers to a browser, false if not]]>
  29391. </doc>
  29392. </method>
  29393. <method name="handleHttpInteraction"
  29394. abstract="false" native="false" synchronized="false"
  29395. static="false" final="false" visibility="public"
  29396. deprecated="not deprecated">
  29397. <param name="httpInteraction" type="org.apache.hadoop.security.http.RestCsrfPreventionFilter.HttpInteraction"/>
  29398. <exception name="IOException" type="java.io.IOException"/>
  29399. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29400. <doc>
  29401. <![CDATA[Handles an {@link HttpInteraction} by applying the filtering logic.
  29402. @param httpInteraction caller's HTTP interaction
  29403. @throws IOException if there is an I/O error
  29404. @throws ServletException if the implementation relies on the servlet API
  29405. and a servlet API call has failed]]>
  29406. </doc>
  29407. </method>
  29408. <method name="doFilter"
  29409. abstract="false" native="false" synchronized="false"
  29410. static="false" final="false" visibility="public"
  29411. deprecated="not deprecated">
  29412. <param name="request" type="javax.servlet.ServletRequest"/>
  29413. <param name="response" type="javax.servlet.ServletResponse"/>
  29414. <param name="chain" type="javax.servlet.FilterChain"/>
  29415. <exception name="IOException" type="java.io.IOException"/>
  29416. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29417. </method>
  29418. <method name="destroy"
  29419. abstract="false" native="false" synchronized="false"
  29420. static="false" final="false" visibility="public"
  29421. deprecated="not deprecated">
  29422. </method>
  29423. <method name="getFilterParams" return="java.util.Map"
  29424. abstract="false" native="false" synchronized="false"
  29425. static="true" final="false" visibility="public"
  29426. deprecated="not deprecated">
  29427. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29428. <param name="confPrefix" type="java.lang.String"/>
  29429. <doc>
  29430. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  29431. initialization. The mapping includes all properties that start with the
  29432. specified configuration prefix. Property names in the mapping are trimmed
  29433. to remove the configuration prefix.
  29434. @param conf configuration to read
  29435. @param confPrefix configuration prefix
  29436. @return mapping of configuration properties to be used for filter
  29437. initialization]]>
  29438. </doc>
  29439. </method>
  29440. <field name="HEADER_USER_AGENT" type="java.lang.String"
  29441. transient="false" volatile="false"
  29442. static="true" final="true" visibility="public"
  29443. deprecated="not deprecated">
  29444. </field>
  29445. <field name="BROWSER_USER_AGENT_PARAM" type="java.lang.String"
  29446. transient="false" volatile="false"
  29447. static="true" final="true" visibility="public"
  29448. deprecated="not deprecated">
  29449. </field>
  29450. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  29451. transient="false" volatile="false"
  29452. static="true" final="true" visibility="public"
  29453. deprecated="not deprecated">
  29454. </field>
  29455. <field name="CUSTOM_METHODS_TO_IGNORE_PARAM" type="java.lang.String"
  29456. transient="false" volatile="false"
  29457. static="true" final="true" visibility="public"
  29458. deprecated="not deprecated">
  29459. </field>
  29460. <field name="HEADER_DEFAULT" type="java.lang.String"
  29461. transient="false" volatile="false"
  29462. static="true" final="true" visibility="public"
  29463. deprecated="not deprecated">
  29464. </field>
  29465. <doc>
  29466. <![CDATA[This filter provides protection against cross site request forgery (CSRF)
  29467. attacks for REST APIs. Enabling this filter on an endpoint results in the
  29468. requirement of all client to send a particular (configurable) HTTP header
  29469. with every request. In the absense of this header the filter will reject the
  29470. attempt as a bad request.]]>
  29471. </doc>
  29472. </class>
  29473. <!-- end class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  29474. <!-- start class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  29475. <class name="XFrameOptionsFilter" extends="java.lang.Object"
  29476. abstract="false"
  29477. static="false" final="false" visibility="public"
  29478. deprecated="not deprecated">
  29479. <implements name="javax.servlet.Filter"/>
  29480. <constructor name="XFrameOptionsFilter"
  29481. static="false" final="false" visibility="public"
  29482. deprecated="not deprecated">
  29483. </constructor>
  29484. <method name="destroy"
  29485. abstract="false" native="false" synchronized="false"
  29486. static="false" final="false" visibility="public"
  29487. deprecated="not deprecated">
  29488. </method>
  29489. <method name="doFilter"
  29490. abstract="false" native="false" synchronized="false"
  29491. static="false" final="false" visibility="public"
  29492. deprecated="not deprecated">
  29493. <param name="req" type="javax.servlet.ServletRequest"/>
  29494. <param name="res" type="javax.servlet.ServletResponse"/>
  29495. <param name="chain" type="javax.servlet.FilterChain"/>
  29496. <exception name="IOException" type="java.io.IOException"/>
  29497. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29498. </method>
  29499. <method name="init"
  29500. abstract="false" native="false" synchronized="false"
  29501. static="false" final="false" visibility="public"
  29502. deprecated="not deprecated">
  29503. <param name="config" type="javax.servlet.FilterConfig"/>
  29504. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29505. </method>
  29506. <method name="getFilterParams" return="java.util.Map"
  29507. abstract="false" native="false" synchronized="false"
  29508. static="true" final="false" visibility="public"
  29509. deprecated="not deprecated">
  29510. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29511. <param name="confPrefix" type="java.lang.String"/>
  29512. <doc>
  29513. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  29514. initialization. The mapping includes all properties that start with the
  29515. specified configuration prefix. Property names in the mapping are trimmed
  29516. to remove the configuration prefix.
  29517. @param conf configuration to read
  29518. @param confPrefix configuration prefix
  29519. @return mapping of configuration properties to be used for filter
  29520. initialization]]>
  29521. </doc>
  29522. </method>
  29523. <field name="X_FRAME_OPTIONS" type="java.lang.String"
  29524. transient="false" volatile="false"
  29525. static="true" final="true" visibility="public"
  29526. deprecated="not deprecated">
  29527. </field>
  29528. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  29529. transient="false" volatile="false"
  29530. static="true" final="true" visibility="public"
  29531. deprecated="not deprecated">
  29532. </field>
  29533. <doc>
  29534. <![CDATA[This filter protects webapps from clickjacking attacks that
  29535. are possible through use of Frames to embed the resources in another
  29536. application and intercept clicks to accomplish nefarious things.]]>
  29537. </doc>
  29538. </class>
  29539. <!-- end class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  29540. </package>
  29541. <package name="org.apache.hadoop.security.protocolPB">
  29542. </package>
  29543. <package name="org.apache.hadoop.security.ssl">
  29544. </package>
  29545. <package name="org.apache.hadoop.security.token">
  29546. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  29547. <class name="SecretManager" extends="java.lang.Object"
  29548. abstract="true"
  29549. static="false" final="false" visibility="public"
  29550. deprecated="not deprecated">
  29551. <constructor name="SecretManager"
  29552. static="false" final="false" visibility="public"
  29553. deprecated="not deprecated">
  29554. </constructor>
  29555. <method name="createPassword" return="byte[]"
  29556. abstract="true" native="false" synchronized="false"
  29557. static="false" final="false" visibility="protected"
  29558. deprecated="not deprecated">
  29559. <param name="identifier" type="T"/>
  29560. <doc>
  29561. <![CDATA[Create the password for the given identifier.
  29562. identifier may be modified inside this method.
  29563. @param identifier the identifier to use
  29564. @return the new password]]>
  29565. </doc>
  29566. </method>
  29567. <method name="retrievePassword" return="byte[]"
  29568. abstract="true" native="false" synchronized="false"
  29569. static="false" final="false" visibility="public"
  29570. deprecated="not deprecated">
  29571. <param name="identifier" type="T"/>
  29572. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  29573. <doc>
  29574. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  29575. or registry to make sure the token hasn't expired or been revoked. Returns
  29576. the relevant password.
  29577. @param identifier the identifier to validate
  29578. @return the password to use
  29579. @throws InvalidToken the token was invalid]]>
  29580. </doc>
  29581. </method>
  29582. <method name="retriableRetrievePassword" return="byte[]"
  29583. abstract="false" native="false" synchronized="false"
  29584. static="false" final="false" visibility="public"
  29585. deprecated="not deprecated">
  29586. <param name="identifier" type="T"/>
  29587. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  29588. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  29589. <exception name="RetriableException" type="org.apache.hadoop.ipc.RetriableException"/>
  29590. <exception name="IOException" type="java.io.IOException"/>
  29591. <doc>
  29592. <![CDATA[The same functionality with {@link #retrievePassword}, except that this
  29593. method can throw a {@link RetriableException} or a {@link StandbyException}
  29594. to indicate that client can retry/failover the same operation because of
  29595. temporary issue on the server side.
  29596. @param identifier the identifier to validate
  29597. @return the password to use
  29598. @throws InvalidToken the token was invalid
  29599. @throws StandbyException the server is in standby state, the client can
  29600. try other servers
  29601. @throws RetriableException the token was invalid, and the server thinks
  29602. this may be a temporary issue and suggests the client to retry
  29603. @throws IOException to allow future exceptions to be added without breaking
  29604. compatibility]]>
  29605. </doc>
  29606. </method>
  29607. <method name="createIdentifier" return="T"
  29608. abstract="true" native="false" synchronized="false"
  29609. static="false" final="false" visibility="public"
  29610. deprecated="not deprecated">
  29611. <doc>
  29612. <![CDATA[Create an empty token identifier.
  29613. @return the newly created empty token identifier]]>
  29614. </doc>
  29615. </method>
  29616. <method name="checkAvailableForRead"
  29617. abstract="false" native="false" synchronized="false"
  29618. static="false" final="false" visibility="public"
  29619. deprecated="not deprecated">
  29620. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  29621. <doc>
  29622. <![CDATA[No-op if the secret manager is available for reading tokens, throw a
  29623. StandbyException otherwise.
  29624. @throws StandbyException if the secret manager is not available to read
  29625. tokens]]>
  29626. </doc>
  29627. </method>
  29628. <method name="generateSecret" return="javax.crypto.SecretKey"
  29629. abstract="false" native="false" synchronized="false"
  29630. static="false" final="false" visibility="protected"
  29631. deprecated="not deprecated">
  29632. <doc>
  29633. <![CDATA[Generate a new random secret key.
  29634. @return the new key]]>
  29635. </doc>
  29636. </method>
  29637. <method name="createPassword" return="byte[]"
  29638. abstract="false" native="false" synchronized="false"
  29639. static="true" final="false" visibility="public"
  29640. deprecated="not deprecated">
  29641. <param name="identifier" type="byte[]"/>
  29642. <param name="key" type="javax.crypto.SecretKey"/>
  29643. <doc>
  29644. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  29645. output as password
  29646. @param identifier the bytes of the identifier
  29647. @param key the secret key
  29648. @return the bytes of the generated password]]>
  29649. </doc>
  29650. </method>
  29651. <method name="createSecretKey" return="javax.crypto.SecretKey"
  29652. abstract="false" native="false" synchronized="false"
  29653. static="true" final="false" visibility="protected"
  29654. deprecated="not deprecated">
  29655. <param name="key" type="byte[]"/>
  29656. <doc>
  29657. <![CDATA[Convert the byte[] to a secret key
  29658. @param key the byte[] to create a secret key from
  29659. @return the secret key]]>
  29660. </doc>
  29661. </method>
  29662. <doc>
  29663. <![CDATA[The server-side secret manager for each token type.
  29664. @param <T> The type of the token identifier]]>
  29665. </doc>
  29666. </class>
  29667. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  29668. <!-- start class org.apache.hadoop.security.token.Token -->
  29669. <class name="Token" extends="java.lang.Object"
  29670. abstract="false"
  29671. static="false" final="false" visibility="public"
  29672. deprecated="not deprecated">
  29673. <implements name="org.apache.hadoop.io.Writable"/>
  29674. <constructor name="Token" type="T, org.apache.hadoop.security.token.SecretManager"
  29675. static="false" final="false" visibility="public"
  29676. deprecated="not deprecated">
  29677. <doc>
  29678. <![CDATA[Construct a token given a token identifier and a secret manager for the
  29679. type of the token identifier.
  29680. @param id the token identifier
  29681. @param mgr the secret manager]]>
  29682. </doc>
  29683. </constructor>
  29684. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  29685. static="false" final="false" visibility="public"
  29686. deprecated="not deprecated">
  29687. <doc>
  29688. <![CDATA[Construct a token from the components.
  29689. @param identifier the token identifier
  29690. @param password the token's password
  29691. @param kind the kind of token
  29692. @param service the service for this token]]>
  29693. </doc>
  29694. </constructor>
  29695. <constructor name="Token"
  29696. static="false" final="false" visibility="public"
  29697. deprecated="not deprecated">
  29698. <doc>
  29699. <![CDATA[Default constructor.]]>
  29700. </doc>
  29701. </constructor>
  29702. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  29703. static="false" final="false" visibility="public"
  29704. deprecated="not deprecated">
  29705. <doc>
  29706. <![CDATA[Clone a token.
  29707. @param other the token to clone]]>
  29708. </doc>
  29709. </constructor>
  29710. <constructor name="Token" type="org.apache.hadoop.security.proto.SecurityProtos.TokenProto"
  29711. static="false" final="false" visibility="public"
  29712. deprecated="not deprecated">
  29713. <doc>
  29714. <![CDATA[Construct a Token from a TokenProto.
  29715. @param tokenPB the TokenProto object]]>
  29716. </doc>
  29717. </constructor>
  29718. <method name="setID"
  29719. abstract="false" native="false" synchronized="false"
  29720. static="false" final="false" visibility="public"
  29721. deprecated="not deprecated">
  29722. <param name="bytes" type="byte[]"/>
  29723. </method>
  29724. <method name="setPassword"
  29725. abstract="false" native="false" synchronized="false"
  29726. static="false" final="false" visibility="public"
  29727. deprecated="not deprecated">
  29728. <param name="newPassword" type="byte[]"/>
  29729. </method>
  29730. <method name="copyToken" return="org.apache.hadoop.security.token.Token"
  29731. abstract="false" native="false" synchronized="false"
  29732. static="false" final="false" visibility="public"
  29733. deprecated="not deprecated">
  29734. </method>
  29735. <method name="toTokenProto" return="org.apache.hadoop.security.proto.SecurityProtos.TokenProto"
  29736. abstract="false" native="false" synchronized="false"
  29737. static="false" final="false" visibility="public"
  29738. deprecated="not deprecated">
  29739. <doc>
  29740. <![CDATA[Construct a TokenProto from this Token instance.
  29741. @return a new TokenProto object holding copies of data in this instance]]>
  29742. </doc>
  29743. </method>
  29744. <method name="getIdentifier" return="byte[]"
  29745. abstract="false" native="false" synchronized="false"
  29746. static="false" final="false" visibility="public"
  29747. deprecated="not deprecated">
  29748. <doc>
  29749. <![CDATA[Get the token identifier's byte representation.
  29750. @return the token identifier's byte representation]]>
  29751. </doc>
  29752. </method>
  29753. <method name="decodeIdentifier" return="T"
  29754. abstract="false" native="false" synchronized="false"
  29755. static="false" final="false" visibility="public"
  29756. deprecated="not deprecated">
  29757. <exception name="IOException" type="java.io.IOException"/>
  29758. <doc>
  29759. <![CDATA[Get the token identifier object, or null if it could not be constructed
  29760. (because the class could not be loaded, for example).
  29761. @return the token identifier, or null if there was no class found for it
  29762. @throws IOException failure to unmarshall the data
  29763. @throws RuntimeException if the token class could not be instantiated.]]>
  29764. </doc>
  29765. </method>
  29766. <method name="getPassword" return="byte[]"
  29767. abstract="false" native="false" synchronized="false"
  29768. static="false" final="false" visibility="public"
  29769. deprecated="not deprecated">
  29770. <doc>
  29771. <![CDATA[Get the token password/secret.
  29772. @return the token password/secret]]>
  29773. </doc>
  29774. </method>
  29775. <method name="getKind" return="org.apache.hadoop.io.Text"
  29776. abstract="false" native="false" synchronized="true"
  29777. static="false" final="false" visibility="public"
  29778. deprecated="not deprecated">
  29779. <doc>
  29780. <![CDATA[Get the token kind.
  29781. @return the kind of the token]]>
  29782. </doc>
  29783. </method>
  29784. <method name="getService" return="org.apache.hadoop.io.Text"
  29785. abstract="false" native="false" synchronized="false"
  29786. static="false" final="false" visibility="public"
  29787. deprecated="not deprecated">
  29788. <doc>
  29789. <![CDATA[Get the service on which the token is supposed to be used.
  29790. @return the service name]]>
  29791. </doc>
  29792. </method>
  29793. <method name="setService"
  29794. abstract="false" native="false" synchronized="false"
  29795. static="false" final="false" visibility="public"
  29796. deprecated="not deprecated">
  29797. <param name="newService" type="org.apache.hadoop.io.Text"/>
  29798. <doc>
  29799. <![CDATA[Set the service on which the token is supposed to be used.
  29800. @param newService the service name]]>
  29801. </doc>
  29802. </method>
  29803. <method name="isPrivate" return="boolean"
  29804. abstract="false" native="false" synchronized="false"
  29805. static="false" final="false" visibility="public"
  29806. deprecated="not deprecated">
  29807. <doc>
  29808. <![CDATA[Whether this is a private token.
  29809. @return false always for non-private tokens]]>
  29810. </doc>
  29811. </method>
  29812. <method name="isPrivateCloneOf" return="boolean"
  29813. abstract="false" native="false" synchronized="false"
  29814. static="false" final="false" visibility="public"
  29815. deprecated="not deprecated">
  29816. <param name="thePublicService" type="org.apache.hadoop.io.Text"/>
  29817. <doc>
  29818. <![CDATA[Whether this is a private clone of a public token.
  29819. @param thePublicService the public service name
  29820. @return false always for non-private tokens]]>
  29821. </doc>
  29822. </method>
  29823. <method name="privateClone" return="org.apache.hadoop.security.token.Token"
  29824. abstract="false" native="false" synchronized="false"
  29825. static="false" final="false" visibility="public"
  29826. deprecated="not deprecated">
  29827. <param name="newService" type="org.apache.hadoop.io.Text"/>
  29828. <doc>
  29829. <![CDATA[Create a private clone of a public token.
  29830. @param newService the new service name
  29831. @return a private token]]>
  29832. </doc>
  29833. </method>
  29834. <method name="readFields"
  29835. abstract="false" native="false" synchronized="false"
  29836. static="false" final="false" visibility="public"
  29837. deprecated="not deprecated">
  29838. <param name="in" type="java.io.DataInput"/>
  29839. <exception name="IOException" type="java.io.IOException"/>
  29840. </method>
  29841. <method name="write"
  29842. abstract="false" native="false" synchronized="false"
  29843. static="false" final="false" visibility="public"
  29844. deprecated="not deprecated">
  29845. <param name="out" type="java.io.DataOutput"/>
  29846. <exception name="IOException" type="java.io.IOException"/>
  29847. </method>
  29848. <method name="encodeToUrlString" return="java.lang.String"
  29849. abstract="false" native="false" synchronized="false"
  29850. static="false" final="false" visibility="public"
  29851. deprecated="not deprecated">
  29852. <exception name="IOException" type="java.io.IOException"/>
  29853. <doc>
  29854. <![CDATA[Encode this token as a url safe string.
  29855. @return the encoded string
  29856. @throws IOException]]>
  29857. </doc>
  29858. </method>
  29859. <method name="decodeFromUrlString"
  29860. abstract="false" native="false" synchronized="false"
  29861. static="false" final="false" visibility="public"
  29862. deprecated="not deprecated">
  29863. <param name="newValue" type="java.lang.String"/>
  29864. <exception name="IOException" type="java.io.IOException"/>
  29865. <doc>
  29866. <![CDATA[Decode the given url safe string into this token.
  29867. @param newValue the encoded string
  29868. @throws IOException]]>
  29869. </doc>
  29870. </method>
  29871. <method name="equals" return="boolean"
  29872. abstract="false" native="false" synchronized="false"
  29873. static="false" final="false" visibility="public"
  29874. deprecated="not deprecated">
  29875. <param name="right" type="java.lang.Object"/>
  29876. </method>
  29877. <method name="hashCode" return="int"
  29878. abstract="false" native="false" synchronized="false"
  29879. static="false" final="false" visibility="public"
  29880. deprecated="not deprecated">
  29881. </method>
  29882. <method name="toString" return="java.lang.String"
  29883. abstract="false" native="false" synchronized="false"
  29884. static="false" final="false" visibility="public"
  29885. deprecated="not deprecated">
  29886. </method>
  29887. <method name="buildCacheKey" return="java.lang.String"
  29888. abstract="false" native="false" synchronized="false"
  29889. static="false" final="false" visibility="public"
  29890. deprecated="not deprecated">
  29891. </method>
  29892. <method name="isManaged" return="boolean"
  29893. abstract="false" native="false" synchronized="false"
  29894. static="false" final="false" visibility="public"
  29895. deprecated="not deprecated">
  29896. <exception name="IOException" type="java.io.IOException"/>
  29897. <doc>
  29898. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  29899. @return true, if it can be renewed and cancelled.]]>
  29900. </doc>
  29901. </method>
  29902. <method name="renew" return="long"
  29903. abstract="false" native="false" synchronized="false"
  29904. static="false" final="false" visibility="public"
  29905. deprecated="not deprecated">
  29906. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29907. <exception name="IOException" type="java.io.IOException"/>
  29908. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  29909. <doc>
  29910. <![CDATA[Renew this delegation token.
  29911. @return the new expiration time
  29912. @throws IOException
  29913. @throws InterruptedException]]>
  29914. </doc>
  29915. </method>
  29916. <method name="cancel"
  29917. abstract="false" native="false" synchronized="false"
  29918. static="false" final="false" visibility="public"
  29919. deprecated="not deprecated">
  29920. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29921. <exception name="IOException" type="java.io.IOException"/>
  29922. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  29923. <doc>
  29924. <![CDATA[Cancel this delegation token.
  29925. @throws IOException
  29926. @throws InterruptedException]]>
  29927. </doc>
  29928. </method>
  29929. <field name="LOG" type="org.slf4j.Logger"
  29930. transient="false" volatile="false"
  29931. static="true" final="true" visibility="public"
  29932. deprecated="not deprecated">
  29933. </field>
  29934. <doc>
  29935. <![CDATA[The client-side form of the token.]]>
  29936. </doc>
  29937. </class>
  29938. <!-- end class org.apache.hadoop.security.token.Token -->
  29939. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  29940. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  29941. abstract="false"
  29942. static="true" final="false" visibility="public"
  29943. deprecated="not deprecated">
  29944. <constructor name="TrivialRenewer"
  29945. static="false" final="false" visibility="public"
  29946. deprecated="not deprecated">
  29947. </constructor>
  29948. <method name="getKind" return="org.apache.hadoop.io.Text"
  29949. abstract="false" native="false" synchronized="false"
  29950. static="false" final="false" visibility="protected"
  29951. deprecated="not deprecated">
  29952. </method>
  29953. <method name="handleKind" return="boolean"
  29954. abstract="false" native="false" synchronized="false"
  29955. static="false" final="false" visibility="public"
  29956. deprecated="not deprecated">
  29957. <param name="kind" type="org.apache.hadoop.io.Text"/>
  29958. </method>
  29959. <method name="isManaged" return="boolean"
  29960. abstract="false" native="false" synchronized="false"
  29961. static="false" final="false" visibility="public"
  29962. deprecated="not deprecated">
  29963. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  29964. </method>
  29965. <method name="renew" return="long"
  29966. abstract="false" native="false" synchronized="false"
  29967. static="false" final="false" visibility="public"
  29968. deprecated="not deprecated">
  29969. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  29970. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29971. </method>
  29972. <method name="cancel"
  29973. abstract="false" native="false" synchronized="false"
  29974. static="false" final="false" visibility="public"
  29975. deprecated="not deprecated">
  29976. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  29977. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29978. <exception name="IOException" type="java.io.IOException"/>
  29979. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  29980. </method>
  29981. <doc>
  29982. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  29983. to implement getKind for their token kind.]]>
  29984. </doc>
  29985. </class>
  29986. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  29987. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  29988. <class name="TokenIdentifier" extends="java.lang.Object"
  29989. abstract="true"
  29990. static="false" final="false" visibility="public"
  29991. deprecated="not deprecated">
  29992. <implements name="org.apache.hadoop.io.Writable"/>
  29993. <constructor name="TokenIdentifier"
  29994. static="false" final="false" visibility="public"
  29995. deprecated="not deprecated">
  29996. </constructor>
  29997. <method name="getKind" return="org.apache.hadoop.io.Text"
  29998. abstract="true" native="false" synchronized="false"
  29999. static="false" final="false" visibility="public"
  30000. deprecated="not deprecated">
  30001. <doc>
  30002. <![CDATA[Get the token kind
  30003. @return the kind of the token]]>
  30004. </doc>
  30005. </method>
  30006. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  30007. abstract="true" native="false" synchronized="false"
  30008. static="false" final="false" visibility="public"
  30009. deprecated="not deprecated">
  30010. <doc>
  30011. <![CDATA[Get the Ugi with the username encoded in the token identifier
  30012. @return the username. null is returned if username in the identifier is
  30013. empty or null.]]>
  30014. </doc>
  30015. </method>
  30016. <method name="getBytes" return="byte[]"
  30017. abstract="false" native="false" synchronized="false"
  30018. static="false" final="false" visibility="public"
  30019. deprecated="not deprecated">
  30020. <doc>
  30021. <![CDATA[Get the bytes for the token identifier
  30022. @return the bytes of the identifier]]>
  30023. </doc>
  30024. </method>
  30025. <method name="getTrackingId" return="java.lang.String"
  30026. abstract="false" native="false" synchronized="false"
  30027. static="false" final="false" visibility="public"
  30028. deprecated="not deprecated">
  30029. <doc>
  30030. <![CDATA[Returns a tracking identifier that can be used to associate usages of a
  30031. token across multiple client sessions.
  30032. Currently, this function just returns an MD5 of {{@link #getBytes()}.
  30033. @return tracking identifier]]>
  30034. </doc>
  30035. </method>
  30036. <doc>
  30037. <![CDATA[An identifier that identifies a token, may contain public information
  30038. about a token, including its kind (or type).]]>
  30039. </doc>
  30040. </class>
  30041. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  30042. <!-- start class org.apache.hadoop.security.token.TokenInfo -->
  30043. <class name="TokenInfo" abstract="true"
  30044. static="false" final="false" visibility="public"
  30045. deprecated="not deprecated">
  30046. <implements name="java.lang.annotation.Annotation"/>
  30047. <doc>
  30048. <![CDATA[Indicates Token related information to be used]]>
  30049. </doc>
  30050. </class>
  30051. <!-- end class org.apache.hadoop.security.token.TokenInfo -->
  30052. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  30053. <class name="TokenRenewer" extends="java.lang.Object"
  30054. abstract="true"
  30055. static="false" final="false" visibility="public"
  30056. deprecated="not deprecated">
  30057. <constructor name="TokenRenewer"
  30058. static="false" final="false" visibility="public"
  30059. deprecated="not deprecated">
  30060. </constructor>
  30061. <method name="handleKind" return="boolean"
  30062. abstract="true" native="false" synchronized="false"
  30063. static="false" final="false" visibility="public"
  30064. deprecated="not deprecated">
  30065. <param name="kind" type="org.apache.hadoop.io.Text"/>
  30066. <doc>
  30067. <![CDATA[Does this renewer handle this kind of token?
  30068. @param kind the kind of the token
  30069. @return true if this renewer can renew it]]>
  30070. </doc>
  30071. </method>
  30072. <method name="isManaged" return="boolean"
  30073. abstract="true" native="false" synchronized="false"
  30074. static="false" final="false" visibility="public"
  30075. deprecated="not deprecated">
  30076. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30077. <exception name="IOException" type="java.io.IOException"/>
  30078. <doc>
  30079. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  30080. cancelled.
  30081. @param token the token being checked
  30082. @return true if the token may be renewed or cancelled
  30083. @throws IOException]]>
  30084. </doc>
  30085. </method>
  30086. <method name="renew" return="long"
  30087. abstract="true" native="false" synchronized="false"
  30088. static="false" final="false" visibility="public"
  30089. deprecated="not deprecated">
  30090. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30091. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30092. <exception name="IOException" type="java.io.IOException"/>
  30093. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  30094. <doc>
  30095. <![CDATA[Renew the given token.
  30096. @return the new expiration time
  30097. @throws IOException
  30098. @throws InterruptedException]]>
  30099. </doc>
  30100. </method>
  30101. <method name="cancel"
  30102. abstract="true" native="false" synchronized="false"
  30103. static="false" final="false" visibility="public"
  30104. deprecated="not deprecated">
  30105. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  30106. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30107. <exception name="IOException" type="java.io.IOException"/>
  30108. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  30109. <doc>
  30110. <![CDATA[Cancel the given token
  30111. @throws IOException
  30112. @throws InterruptedException]]>
  30113. </doc>
  30114. </method>
  30115. <doc>
  30116. <![CDATA[This is the interface for plugins that handle tokens.]]>
  30117. </doc>
  30118. </class>
  30119. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  30120. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  30121. <interface name="TokenSelector" abstract="true"
  30122. static="false" final="false" visibility="public"
  30123. deprecated="not deprecated">
  30124. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  30125. abstract="true" native="false" synchronized="false"
  30126. static="false" final="false" visibility="public"
  30127. deprecated="not deprecated">
  30128. <param name="service" type="org.apache.hadoop.io.Text"/>
  30129. <param name="tokens" type="java.util.Collection"/>
  30130. </method>
  30131. <doc>
  30132. <![CDATA[Select token of type T from tokens for use with named service
  30133. @param <T>
  30134. T extends TokenIdentifier]]>
  30135. </doc>
  30136. </interface>
  30137. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  30138. </package>
  30139. <package name="org.apache.hadoop.security.token.delegation.web">
  30140. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  30141. <class name="DelegationTokenAuthenticatedURL" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL"
  30142. abstract="false"
  30143. static="false" final="false" visibility="public"
  30144. deprecated="not deprecated">
  30145. <constructor name="DelegationTokenAuthenticatedURL"
  30146. static="false" final="false" visibility="public"
  30147. deprecated="not deprecated">
  30148. <doc>
  30149. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  30150. <p/>
  30151. An instance of the default {@link DelegationTokenAuthenticator} will be
  30152. used.]]>
  30153. </doc>
  30154. </constructor>
  30155. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  30156. static="false" final="false" visibility="public"
  30157. deprecated="not deprecated">
  30158. <doc>
  30159. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  30160. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  30161. use, if <code>null</code> the default one will be used.]]>
  30162. </doc>
  30163. </constructor>
  30164. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  30165. static="false" final="false" visibility="public"
  30166. deprecated="not deprecated">
  30167. <doc>
  30168. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code> using the default
  30169. {@link DelegationTokenAuthenticator} class.
  30170. @param connConfigurator a connection configurator.]]>
  30171. </doc>
  30172. </constructor>
  30173. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator, org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  30174. static="false" final="false" visibility="public"
  30175. deprecated="not deprecated">
  30176. <doc>
  30177. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  30178. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  30179. use, if <code>null</code> the default one will be used.
  30180. @param connConfigurator a connection configurator.]]>
  30181. </doc>
  30182. </constructor>
  30183. <method name="setDefaultDelegationTokenAuthenticator"
  30184. abstract="false" native="false" synchronized="false"
  30185. static="true" final="false" visibility="public"
  30186. deprecated="not deprecated">
  30187. <param name="authenticator" type="java.lang.Class"/>
  30188. <doc>
  30189. <![CDATA[Sets the default {@link DelegationTokenAuthenticator} class to use when an
  30190. {@link DelegationTokenAuthenticatedURL} instance is created without
  30191. specifying one.
  30192. The default class is {@link KerberosDelegationTokenAuthenticator}
  30193. @param authenticator the authenticator class to use as default.]]>
  30194. </doc>
  30195. </method>
  30196. <method name="getDefaultDelegationTokenAuthenticator" return="java.lang.Class"
  30197. abstract="false" native="false" synchronized="false"
  30198. static="true" final="false" visibility="public"
  30199. deprecated="not deprecated">
  30200. <doc>
  30201. <![CDATA[Returns the default {@link DelegationTokenAuthenticator} class to use when
  30202. an {@link DelegationTokenAuthenticatedURL} instance is created without
  30203. specifying one.
  30204. <p/>
  30205. The default class is {@link KerberosDelegationTokenAuthenticator}
  30206. @return the delegation token authenticator class to use as default.]]>
  30207. </doc>
  30208. </method>
  30209. <method name="setUseQueryStringForDelegationToken"
  30210. abstract="false" native="false" synchronized="false"
  30211. static="false" final="false" visibility="protected"
  30212. deprecated="not deprecated">
  30213. <param name="useQueryString" type="boolean"/>
  30214. <doc>
  30215. <![CDATA[Sets if delegation token should be transmitted in the URL query string.
  30216. By default it is transmitted using the
  30217. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.
  30218. <p/>
  30219. This method is provided to enable WebHDFS backwards compatibility.
  30220. @param useQueryString <code>TRUE</code> if the token is transmitted in the
  30221. URL query string, <code>FALSE</code> if the delegation token is transmitted
  30222. using the {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP
  30223. header.]]>
  30224. </doc>
  30225. </method>
  30226. <method name="useQueryStringForDelegationToken" return="boolean"
  30227. abstract="false" native="false" synchronized="false"
  30228. static="false" final="false" visibility="public"
  30229. deprecated="not deprecated">
  30230. <doc>
  30231. <![CDATA[Returns if delegation token is transmitted as a HTTP header.
  30232. @return <code>TRUE</code> if the token is transmitted in the URL query
  30233. string, <code>FALSE</code> if the delegation token is transmitted using the
  30234. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.]]>
  30235. </doc>
  30236. </method>
  30237. <method name="openConnection" return="java.net.HttpURLConnection"
  30238. abstract="false" native="false" synchronized="false"
  30239. static="false" final="false" visibility="public"
  30240. deprecated="not deprecated">
  30241. <param name="url" type="java.net.URL"/>
  30242. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30243. <exception name="IOException" type="java.io.IOException"/>
  30244. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30245. <doc>
  30246. <![CDATA[Returns an authenticated {@link HttpURLConnection}, it uses a Delegation
  30247. Token only if the given auth token is an instance of {@link Token} and
  30248. it contains a Delegation Token, otherwise use the configured
  30249. {@link DelegationTokenAuthenticator} to authenticate the connection.
  30250. @param url the URL to connect to. Only HTTP/S URLs are supported.
  30251. @param token the authentication token being used for the user.
  30252. @return an authenticated {@link HttpURLConnection}.
  30253. @throws IOException if an IO error occurred.
  30254. @throws AuthenticationException if an authentication exception occurred.]]>
  30255. </doc>
  30256. </method>
  30257. <method name="openConnection" return="java.net.HttpURLConnection"
  30258. abstract="false" native="false" synchronized="false"
  30259. static="false" final="false" visibility="public"
  30260. deprecated="not deprecated">
  30261. <param name="url" type="java.net.URL"/>
  30262. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30263. <exception name="IOException" type="java.io.IOException"/>
  30264. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30265. <doc>
  30266. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  30267. Token is present, it will be used taking precedence over the configured
  30268. <code>Authenticator</code>.
  30269. @param url the URL to connect to. Only HTTP/S URLs are supported.
  30270. @param token the authentication token being used for the user.
  30271. @return an authenticated {@link HttpURLConnection}.
  30272. @throws IOException if an IO error occurred.
  30273. @throws AuthenticationException if an authentication exception occurred.]]>
  30274. </doc>
  30275. </method>
  30276. <method name="openConnection" return="java.net.HttpURLConnection"
  30277. abstract="false" native="false" synchronized="false"
  30278. static="false" final="false" visibility="public"
  30279. deprecated="not deprecated">
  30280. <param name="url" type="java.net.URL"/>
  30281. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30282. <param name="doAs" type="java.lang.String"/>
  30283. <exception name="IOException" type="java.io.IOException"/>
  30284. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30285. <doc>
  30286. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  30287. Token is present, it will be used taking precedence over the configured
  30288. <code>Authenticator</code>. If the <code>doAs</code> parameter is not NULL,
  30289. the request will be done on behalf of the specified <code>doAs</code> user.
  30290. @param url the URL to connect to. Only HTTP/S URLs are supported.
  30291. @param token the authentication token being used for the user.
  30292. @param doAs user to do the the request on behalf of, if NULL the request is
  30293. as self.
  30294. @return an authenticated {@link HttpURLConnection}.
  30295. @throws IOException if an IO error occurred.
  30296. @throws AuthenticationException if an authentication exception occurred.]]>
  30297. </doc>
  30298. </method>
  30299. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  30300. abstract="false" native="false" synchronized="false"
  30301. static="false" final="false" visibility="public"
  30302. deprecated="not deprecated">
  30303. <param name="url" type="java.net.URL"/>
  30304. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30305. <param name="renewer" type="java.lang.String"/>
  30306. <exception name="IOException" type="java.io.IOException"/>
  30307. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30308. <doc>
  30309. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  30310. for authentication.
  30311. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  30312. supported.
  30313. @param token the authentication token being used for the user where the
  30314. Delegation token will be stored.
  30315. @param renewer the renewer user.
  30316. @return a delegation token.
  30317. @throws IOException if an IO error occurred.
  30318. @throws AuthenticationException if an authentication exception occurred.]]>
  30319. </doc>
  30320. </method>
  30321. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  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="renewer" type="java.lang.String"/>
  30328. <param name="doAsUser" type="java.lang.String"/>
  30329. <exception name="IOException" type="java.io.IOException"/>
  30330. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30331. <doc>
  30332. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  30333. for authentication.
  30334. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  30335. supported.
  30336. @param token the authentication token being used for the user where the
  30337. Delegation token will be stored.
  30338. @param renewer the renewer user.
  30339. @param doAsUser the user to do as, which will be the token owner.
  30340. @return a delegation token.
  30341. @throws IOException if an IO error occurred.
  30342. @throws AuthenticationException if an authentication exception occurred.]]>
  30343. </doc>
  30344. </method>
  30345. <method name="renewDelegationToken" return="long"
  30346. abstract="false" native="false" synchronized="false"
  30347. static="false" final="false" visibility="public"
  30348. deprecated="not deprecated">
  30349. <param name="url" type="java.net.URL"/>
  30350. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30351. <exception name="IOException" type="java.io.IOException"/>
  30352. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30353. <doc>
  30354. <![CDATA[Renews a delegation token from the server end-point using the
  30355. configured <code>Authenticator</code> for authentication.
  30356. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  30357. supported.
  30358. @param token the authentication token with the Delegation Token to renew.
  30359. @throws IOException if an IO error occurred.
  30360. @throws AuthenticationException if an authentication exception occurred.]]>
  30361. </doc>
  30362. </method>
  30363. <method name="renewDelegationToken" return="long"
  30364. abstract="false" native="false" synchronized="false"
  30365. static="false" final="false" visibility="public"
  30366. deprecated="not deprecated">
  30367. <param name="url" type="java.net.URL"/>
  30368. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30369. <param name="doAsUser" type="java.lang.String"/>
  30370. <exception name="IOException" type="java.io.IOException"/>
  30371. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30372. <doc>
  30373. <![CDATA[Renews a delegation token from the server end-point using the
  30374. configured <code>Authenticator</code> for authentication.
  30375. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  30376. supported.
  30377. @param token the authentication token with the Delegation Token to renew.
  30378. @param doAsUser the user to do as, which will be the token owner.
  30379. @throws IOException if an IO error occurred.
  30380. @throws AuthenticationException if an authentication exception occurred.]]>
  30381. </doc>
  30382. </method>
  30383. <method name="cancelDelegationToken"
  30384. abstract="false" native="false" synchronized="false"
  30385. static="false" final="false" visibility="public"
  30386. deprecated="not deprecated">
  30387. <param name="url" type="java.net.URL"/>
  30388. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30389. <exception name="IOException" type="java.io.IOException"/>
  30390. <doc>
  30391. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  30392. being authenticated by the configured <code>Authenticator</code>.
  30393. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  30394. are supported.
  30395. @param token the authentication token with the Delegation Token to cancel.
  30396. @throws IOException if an IO error occurred.]]>
  30397. </doc>
  30398. </method>
  30399. <method name="cancelDelegationToken"
  30400. abstract="false" native="false" synchronized="false"
  30401. static="false" final="false" visibility="public"
  30402. deprecated="not deprecated">
  30403. <param name="url" type="java.net.URL"/>
  30404. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  30405. <param name="doAsUser" type="java.lang.String"/>
  30406. <exception name="IOException" type="java.io.IOException"/>
  30407. <doc>
  30408. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  30409. being authenticated by the configured <code>Authenticator</code>.
  30410. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  30411. are supported.
  30412. @param token the authentication token with the Delegation Token to cancel.
  30413. @param doAsUser the user to do as, which will be the token owner.
  30414. @throws IOException if an IO error occurred.]]>
  30415. </doc>
  30416. </method>
  30417. <doc>
  30418. <![CDATA[The <code>DelegationTokenAuthenticatedURL</code> is a
  30419. {@link AuthenticatedURL} sub-class with built-in Hadoop Delegation Token
  30420. functionality.
  30421. <p/>
  30422. The authentication mechanisms supported by default are Hadoop Simple
  30423. authentication (also known as pseudo authentication) and Kerberos SPNEGO
  30424. authentication.
  30425. <p/>
  30426. Additional authentication mechanisms can be supported via {@link
  30427. DelegationTokenAuthenticator} implementations.
  30428. <p/>
  30429. The default {@link DelegationTokenAuthenticator} is the {@link
  30430. KerberosDelegationTokenAuthenticator} class which supports
  30431. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication via
  30432. the {@link PseudoDelegationTokenAuthenticator} class.
  30433. <p/>
  30434. <code>AuthenticatedURL</code> instances are not thread-safe.]]>
  30435. </doc>
  30436. </class>
  30437. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  30438. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  30439. <class name="DelegationTokenAuthenticatedURL.Token" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"
  30440. abstract="false"
  30441. static="true" final="false" visibility="public"
  30442. deprecated="not deprecated">
  30443. <constructor name="Token"
  30444. static="false" final="false" visibility="public"
  30445. deprecated="not deprecated">
  30446. </constructor>
  30447. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  30448. abstract="false" native="false" synchronized="false"
  30449. static="false" final="false" visibility="public"
  30450. deprecated="not deprecated">
  30451. </method>
  30452. <method name="setDelegationToken"
  30453. abstract="false" native="false" synchronized="false"
  30454. static="false" final="false" visibility="public"
  30455. deprecated="not deprecated">
  30456. <param name="delegationToken" type="org.apache.hadoop.security.token.Token"/>
  30457. </method>
  30458. <doc>
  30459. <![CDATA[Client side authentication token that handles Delegation Tokens.]]>
  30460. </doc>
  30461. </class>
  30462. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  30463. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  30464. <class name="DelegationTokenAuthenticator" extends="java.lang.Object"
  30465. abstract="true"
  30466. static="false" final="false" visibility="public"
  30467. deprecated="not deprecated">
  30468. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  30469. <constructor name="DelegationTokenAuthenticator" type="org.apache.hadoop.security.authentication.client.Authenticator"
  30470. static="false" final="false" visibility="public"
  30471. deprecated="not deprecated">
  30472. </constructor>
  30473. <method name="setConnectionConfigurator"
  30474. abstract="false" native="false" synchronized="false"
  30475. static="false" final="false" visibility="public"
  30476. deprecated="not deprecated">
  30477. <param name="configurator" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"/>
  30478. </method>
  30479. <method name="authenticate"
  30480. abstract="false" native="false" synchronized="false"
  30481. static="false" final="false" visibility="public"
  30482. deprecated="not deprecated">
  30483. <param name="url" type="java.net.URL"/>
  30484. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30485. <exception name="IOException" type="java.io.IOException"/>
  30486. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30487. </method>
  30488. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  30489. abstract="false" native="false" synchronized="false"
  30490. static="false" final="false" visibility="public"
  30491. deprecated="not deprecated">
  30492. <param name="url" type="java.net.URL"/>
  30493. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30494. <param name="renewer" type="java.lang.String"/>
  30495. <exception name="IOException" type="java.io.IOException"/>
  30496. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30497. <doc>
  30498. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  30499. for authentication.
  30500. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  30501. supported.
  30502. @param token the authentication token being used for the user where the
  30503. Delegation token will be stored.
  30504. @param renewer the renewer user.
  30505. @throws IOException if an IO error occurred.
  30506. @throws AuthenticationException if an authentication exception occurred.]]>
  30507. </doc>
  30508. </method>
  30509. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  30510. abstract="false" native="false" synchronized="false"
  30511. static="false" final="false" visibility="public"
  30512. deprecated="not deprecated">
  30513. <param name="url" type="java.net.URL"/>
  30514. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30515. <param name="renewer" type="java.lang.String"/>
  30516. <param name="doAsUser" type="java.lang.String"/>
  30517. <exception name="IOException" type="java.io.IOException"/>
  30518. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30519. <doc>
  30520. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  30521. for authentication.
  30522. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  30523. supported.
  30524. @param token the authentication token being used for the user where the
  30525. Delegation token will be stored.
  30526. @param renewer the renewer user.
  30527. @param doAsUser the user to do as, which will be the token owner.
  30528. @throws IOException if an IO error occurred.
  30529. @throws AuthenticationException if an authentication exception occurred.]]>
  30530. </doc>
  30531. </method>
  30532. <method name="renewDelegationToken" return="long"
  30533. abstract="false" native="false" synchronized="false"
  30534. static="false" final="false" visibility="public"
  30535. deprecated="not deprecated">
  30536. <param name="url" type="java.net.URL"/>
  30537. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30538. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  30539. <exception name="IOException" type="java.io.IOException"/>
  30540. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30541. <doc>
  30542. <![CDATA[Renews a delegation token from the server end-point using the
  30543. configured <code>Authenticator</code> for authentication.
  30544. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  30545. supported.
  30546. @param token the authentication token with the Delegation Token to renew.
  30547. @throws IOException if an IO error occurred.
  30548. @throws AuthenticationException if an authentication exception occurred.]]>
  30549. </doc>
  30550. </method>
  30551. <method name="renewDelegationToken" return="long"
  30552. abstract="false" native="false" synchronized="false"
  30553. static="false" final="false" visibility="public"
  30554. deprecated="not deprecated">
  30555. <param name="url" type="java.net.URL"/>
  30556. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30557. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  30558. <param name="doAsUser" type="java.lang.String"/>
  30559. <exception name="IOException" type="java.io.IOException"/>
  30560. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  30561. <doc>
  30562. <![CDATA[Renews a delegation token from the server end-point using the
  30563. configured <code>Authenticator</code> for authentication.
  30564. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  30565. supported.
  30566. @param token the authentication token with the Delegation Token to renew.
  30567. @param doAsUser the user to do as, which will be the token owner.
  30568. @throws IOException if an IO error occurred.
  30569. @throws AuthenticationException if an authentication exception occurred.]]>
  30570. </doc>
  30571. </method>
  30572. <method name="cancelDelegationToken"
  30573. abstract="false" native="false" synchronized="false"
  30574. static="false" final="false" visibility="public"
  30575. deprecated="not deprecated">
  30576. <param name="url" type="java.net.URL"/>
  30577. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30578. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  30579. <exception name="IOException" type="java.io.IOException"/>
  30580. <doc>
  30581. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  30582. being authenticated by the configured <code>Authenticator</code>.
  30583. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  30584. are supported.
  30585. @param token the authentication token with the Delegation Token to cancel.
  30586. @throws IOException if an IO error occurred.]]>
  30587. </doc>
  30588. </method>
  30589. <method name="cancelDelegationToken"
  30590. abstract="false" native="false" synchronized="false"
  30591. static="false" final="false" visibility="public"
  30592. deprecated="not deprecated">
  30593. <param name="url" type="java.net.URL"/>
  30594. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  30595. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  30596. <param name="doAsUser" type="java.lang.String"/>
  30597. <exception name="IOException" type="java.io.IOException"/>
  30598. <doc>
  30599. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  30600. being authenticated by the configured <code>Authenticator</code>.
  30601. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  30602. are supported.
  30603. @param token the authentication token with the Delegation Token to cancel.
  30604. @param doAsUser the user to do as, which will be the token owner.
  30605. @throws IOException if an IO error occurred.]]>
  30606. </doc>
  30607. </method>
  30608. <field name="OP_PARAM" type="java.lang.String"
  30609. transient="false" volatile="false"
  30610. static="true" final="true" visibility="public"
  30611. deprecated="not deprecated">
  30612. </field>
  30613. <field name="DELEGATION_TOKEN_HEADER" type="java.lang.String"
  30614. transient="false" volatile="false"
  30615. static="true" final="true" visibility="public"
  30616. deprecated="not deprecated">
  30617. </field>
  30618. <field name="DELEGATION_PARAM" type="java.lang.String"
  30619. transient="false" volatile="false"
  30620. static="true" final="true" visibility="public"
  30621. deprecated="not deprecated">
  30622. </field>
  30623. <field name="TOKEN_PARAM" type="java.lang.String"
  30624. transient="false" volatile="false"
  30625. static="true" final="true" visibility="public"
  30626. deprecated="not deprecated">
  30627. </field>
  30628. <field name="RENEWER_PARAM" type="java.lang.String"
  30629. transient="false" volatile="false"
  30630. static="true" final="true" visibility="public"
  30631. deprecated="not deprecated">
  30632. </field>
  30633. <field name="SERVICE_PARAM" type="java.lang.String"
  30634. transient="false" volatile="false"
  30635. static="true" final="true" visibility="public"
  30636. deprecated="not deprecated">
  30637. </field>
  30638. <field name="DELEGATION_TOKEN_JSON" type="java.lang.String"
  30639. transient="false" volatile="false"
  30640. static="true" final="true" visibility="public"
  30641. deprecated="not deprecated">
  30642. </field>
  30643. <field name="DELEGATION_TOKEN_URL_STRING_JSON" type="java.lang.String"
  30644. transient="false" volatile="false"
  30645. static="true" final="true" visibility="public"
  30646. deprecated="not deprecated">
  30647. </field>
  30648. <field name="RENEW_DELEGATION_TOKEN_JSON" type="java.lang.String"
  30649. transient="false" volatile="false"
  30650. static="true" final="true" visibility="public"
  30651. deprecated="not deprecated">
  30652. </field>
  30653. <doc>
  30654. <![CDATA[{@link Authenticator} wrapper that enhances an {@link Authenticator} with
  30655. Delegation Token support.]]>
  30656. </doc>
  30657. </class>
  30658. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  30659. <!-- start class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  30660. <class name="KerberosDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  30661. abstract="false"
  30662. static="false" final="false" visibility="public"
  30663. deprecated="not deprecated">
  30664. <constructor name="KerberosDelegationTokenAuthenticator"
  30665. static="false" final="false" visibility="public"
  30666. deprecated="not deprecated">
  30667. </constructor>
  30668. <doc>
  30669. <![CDATA[The <code>KerberosDelegationTokenAuthenticator</code> provides support for
  30670. Kerberos SPNEGO authentication mechanism and support for Hadoop Delegation
  30671. Token operations.
  30672. <p/>
  30673. It falls back to the {@link PseudoDelegationTokenAuthenticator} if the HTTP
  30674. endpoint does not trigger a SPNEGO authentication]]>
  30675. </doc>
  30676. </class>
  30677. <!-- end class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  30678. <!-- start class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  30679. <class name="PseudoDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  30680. abstract="false"
  30681. static="false" final="false" visibility="public"
  30682. deprecated="not deprecated">
  30683. <constructor name="PseudoDelegationTokenAuthenticator"
  30684. static="false" final="false" visibility="public"
  30685. deprecated="not deprecated">
  30686. </constructor>
  30687. <doc>
  30688. <![CDATA[The <code>PseudoDelegationTokenAuthenticator</code> provides support for
  30689. Hadoop's pseudo authentication mechanism that accepts
  30690. the user name specified as a query string parameter and support for Hadoop
  30691. Delegation Token operations.
  30692. <p/>
  30693. This mimics the model of Hadoop Simple authentication trusting the
  30694. {@link UserGroupInformation#getCurrentUser()} value.]]>
  30695. </doc>
  30696. </class>
  30697. <!-- end class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  30698. </package>
  30699. <package name="org.apache.hadoop.service">
  30700. <!-- start class org.apache.hadoop.service.AbstractService -->
  30701. <class name="AbstractService" extends="java.lang.Object"
  30702. abstract="true"
  30703. static="false" final="false" visibility="public"
  30704. deprecated="not deprecated">
  30705. <implements name="org.apache.hadoop.service.Service"/>
  30706. <constructor name="AbstractService" type="java.lang.String"
  30707. static="false" final="false" visibility="public"
  30708. deprecated="not deprecated">
  30709. <doc>
  30710. <![CDATA[Construct the service.
  30711. @param name service name]]>
  30712. </doc>
  30713. </constructor>
  30714. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  30715. abstract="false" native="false" synchronized="false"
  30716. static="false" final="true" visibility="public"
  30717. deprecated="not deprecated">
  30718. </method>
  30719. <method name="getFailureCause" return="java.lang.Throwable"
  30720. abstract="false" native="false" synchronized="true"
  30721. static="false" final="true" visibility="public"
  30722. deprecated="not deprecated">
  30723. </method>
  30724. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  30725. abstract="false" native="false" synchronized="true"
  30726. static="false" final="false" visibility="public"
  30727. deprecated="not deprecated">
  30728. </method>
  30729. <method name="setConfig"
  30730. abstract="false" native="false" synchronized="false"
  30731. static="false" final="false" visibility="protected"
  30732. deprecated="not deprecated">
  30733. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30734. <doc>
  30735. <![CDATA[Set the configuration for this service.
  30736. This method is called during {@link #init(Configuration)}
  30737. and should only be needed if for some reason a service implementation
  30738. needs to override that initial setting -for example replacing
  30739. it with a new subclass of {@link Configuration}
  30740. @param conf new configuration.]]>
  30741. </doc>
  30742. </method>
  30743. <method name="init"
  30744. abstract="false" native="false" synchronized="false"
  30745. static="false" final="false" visibility="public"
  30746. deprecated="not deprecated">
  30747. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30748. <doc>
  30749. <![CDATA[{@inheritDoc}
  30750. This invokes {@link #serviceInit}
  30751. @param conf the configuration of the service. This must not be null
  30752. @throws ServiceStateException if the configuration was null,
  30753. the state change not permitted, or something else went wrong]]>
  30754. </doc>
  30755. </method>
  30756. <method name="start"
  30757. abstract="false" native="false" synchronized="false"
  30758. static="false" final="false" visibility="public"
  30759. deprecated="not deprecated">
  30760. <doc>
  30761. <![CDATA[{@inheritDoc}
  30762. @throws ServiceStateException if the current service state does not permit
  30763. this action]]>
  30764. </doc>
  30765. </method>
  30766. <method name="stop"
  30767. abstract="false" native="false" synchronized="false"
  30768. static="false" final="false" visibility="public"
  30769. deprecated="not deprecated">
  30770. <doc>
  30771. <![CDATA[{@inheritDoc}]]>
  30772. </doc>
  30773. </method>
  30774. <method name="close"
  30775. abstract="false" native="false" synchronized="false"
  30776. static="false" final="true" visibility="public"
  30777. deprecated="not deprecated">
  30778. <exception name="IOException" type="java.io.IOException"/>
  30779. <doc>
  30780. <![CDATA[Relay to {@link #stop()}
  30781. @throws IOException]]>
  30782. </doc>
  30783. </method>
  30784. <method name="noteFailure"
  30785. abstract="false" native="false" synchronized="false"
  30786. static="false" final="true" visibility="protected"
  30787. deprecated="not deprecated">
  30788. <param name="exception" type="java.lang.Exception"/>
  30789. <doc>
  30790. <![CDATA[Failure handling: record the exception
  30791. that triggered it -if there was not one already.
  30792. Services are free to call this themselves.
  30793. @param exception the exception]]>
  30794. </doc>
  30795. </method>
  30796. <method name="waitForServiceToStop" return="boolean"
  30797. abstract="false" native="false" synchronized="false"
  30798. static="false" final="true" visibility="public"
  30799. deprecated="not deprecated">
  30800. <param name="timeout" type="long"/>
  30801. </method>
  30802. <method name="serviceInit"
  30803. abstract="false" native="false" synchronized="false"
  30804. static="false" final="false" visibility="protected"
  30805. deprecated="not deprecated">
  30806. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30807. <exception name="Exception" type="java.lang.Exception"/>
  30808. <doc>
  30809. <![CDATA[All initialization code needed by a service.
  30810. This method will only ever be called once during the lifecycle of
  30811. a specific service instance.
  30812. Implementations do not need to be synchronized as the logic
  30813. in {@link #init(Configuration)} prevents re-entrancy.
  30814. The base implementation checks to see if the subclass has created
  30815. a new configuration instance, and if so, updates the base class value
  30816. @param conf configuration
  30817. @throws Exception on a failure -these will be caught,
  30818. possibly wrapped, and wil; trigger a service stop]]>
  30819. </doc>
  30820. </method>
  30821. <method name="serviceStart"
  30822. abstract="false" native="false" synchronized="false"
  30823. static="false" final="false" visibility="protected"
  30824. deprecated="not deprecated">
  30825. <exception name="Exception" type="java.lang.Exception"/>
  30826. <doc>
  30827. <![CDATA[Actions called during the INITED to STARTED transition.
  30828. This method will only ever be called once during the lifecycle of
  30829. a specific service instance.
  30830. Implementations do not need to be synchronized as the logic
  30831. in {@link #start()} prevents re-entrancy.
  30832. @throws Exception if needed -these will be caught,
  30833. wrapped, and trigger a service stop]]>
  30834. </doc>
  30835. </method>
  30836. <method name="serviceStop"
  30837. abstract="false" native="false" synchronized="false"
  30838. static="false" final="false" visibility="protected"
  30839. deprecated="not deprecated">
  30840. <exception name="Exception" type="java.lang.Exception"/>
  30841. <doc>
  30842. <![CDATA[Actions called during the transition to the STOPPED state.
  30843. This method will only ever be called once during the lifecycle of
  30844. a specific service instance.
  30845. Implementations do not need to be synchronized as the logic
  30846. in {@link #stop()} prevents re-entrancy.
  30847. Implementations MUST write this to be robust against failures, including
  30848. checks for null references -and for the first failure to not stop other
  30849. attempts to shut down parts of the service.
  30850. @throws Exception if needed -these will be caught and logged.]]>
  30851. </doc>
  30852. </method>
  30853. <method name="registerServiceListener"
  30854. abstract="false" native="false" synchronized="false"
  30855. static="false" final="false" visibility="public"
  30856. deprecated="not deprecated">
  30857. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  30858. </method>
  30859. <method name="unregisterServiceListener"
  30860. abstract="false" native="false" synchronized="false"
  30861. static="false" final="false" visibility="public"
  30862. deprecated="not deprecated">
  30863. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  30864. </method>
  30865. <method name="registerGlobalListener"
  30866. abstract="false" native="false" synchronized="false"
  30867. static="true" final="false" visibility="public"
  30868. deprecated="not deprecated">
  30869. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  30870. <doc>
  30871. <![CDATA[Register a global listener, which receives notifications
  30872. from the state change events of all services in the JVM
  30873. @param l listener]]>
  30874. </doc>
  30875. </method>
  30876. <method name="unregisterGlobalListener" return="boolean"
  30877. abstract="false" native="false" synchronized="false"
  30878. static="true" final="false" visibility="public"
  30879. deprecated="not deprecated">
  30880. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  30881. <doc>
  30882. <![CDATA[unregister a global listener.
  30883. @param l listener to unregister
  30884. @return true if the listener was found (and then deleted)]]>
  30885. </doc>
  30886. </method>
  30887. <method name="getName" return="java.lang.String"
  30888. abstract="false" native="false" synchronized="false"
  30889. static="false" final="false" visibility="public"
  30890. deprecated="not deprecated">
  30891. </method>
  30892. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  30893. abstract="false" native="false" synchronized="false"
  30894. static="false" final="false" visibility="public"
  30895. deprecated="not deprecated">
  30896. </method>
  30897. <method name="getStartTime" return="long"
  30898. abstract="false" native="false" synchronized="false"
  30899. static="false" final="false" visibility="public"
  30900. deprecated="not deprecated">
  30901. </method>
  30902. <method name="getLifecycleHistory" return="java.util.List"
  30903. abstract="false" native="false" synchronized="true"
  30904. static="false" final="false" visibility="public"
  30905. deprecated="not deprecated">
  30906. </method>
  30907. <method name="isInState" return="boolean"
  30908. abstract="false" native="false" synchronized="false"
  30909. static="false" final="true" visibility="public"
  30910. deprecated="not deprecated">
  30911. <param name="expected" type="org.apache.hadoop.service.Service.STATE"/>
  30912. </method>
  30913. <method name="toString" return="java.lang.String"
  30914. abstract="false" native="false" synchronized="false"
  30915. static="false" final="false" visibility="public"
  30916. deprecated="not deprecated">
  30917. </method>
  30918. <method name="putBlocker"
  30919. abstract="false" native="false" synchronized="false"
  30920. static="false" final="false" visibility="protected"
  30921. deprecated="not deprecated">
  30922. <param name="name" type="java.lang.String"/>
  30923. <param name="details" type="java.lang.String"/>
  30924. <doc>
  30925. <![CDATA[Put a blocker to the blocker map -replacing any
  30926. with the same name.
  30927. @param name blocker name
  30928. @param details any specifics on the block. This must be non-null.]]>
  30929. </doc>
  30930. </method>
  30931. <method name="removeBlocker"
  30932. abstract="false" native="false" synchronized="false"
  30933. static="false" final="false" visibility="public"
  30934. deprecated="not deprecated">
  30935. <param name="name" type="java.lang.String"/>
  30936. <doc>
  30937. <![CDATA[Remove a blocker from the blocker map -
  30938. this is a no-op if the blocker is not present
  30939. @param name the name of the blocker]]>
  30940. </doc>
  30941. </method>
  30942. <method name="getBlockers" return="java.util.Map"
  30943. abstract="false" native="false" synchronized="false"
  30944. static="false" final="false" visibility="public"
  30945. deprecated="not deprecated">
  30946. </method>
  30947. <doc>
  30948. <![CDATA[This is the base implementation class for services.]]>
  30949. </doc>
  30950. </class>
  30951. <!-- end class org.apache.hadoop.service.AbstractService -->
  30952. <!-- start class org.apache.hadoop.service.CompositeService -->
  30953. <class name="CompositeService" extends="org.apache.hadoop.service.AbstractService"
  30954. abstract="false"
  30955. static="false" final="false" visibility="public"
  30956. deprecated="not deprecated">
  30957. <constructor name="CompositeService" type="java.lang.String"
  30958. static="false" final="false" visibility="public"
  30959. deprecated="not deprecated">
  30960. </constructor>
  30961. <method name="getServices" return="java.util.List"
  30962. abstract="false" native="false" synchronized="false"
  30963. static="false" final="false" visibility="public"
  30964. deprecated="not deprecated">
  30965. <doc>
  30966. <![CDATA[Get a cloned list of services
  30967. @return a list of child services at the time of invocation -
  30968. added services will not be picked up.]]>
  30969. </doc>
  30970. </method>
  30971. <method name="addService"
  30972. abstract="false" native="false" synchronized="false"
  30973. static="false" final="false" visibility="protected"
  30974. deprecated="not deprecated">
  30975. <param name="service" type="org.apache.hadoop.service.Service"/>
  30976. <doc>
  30977. <![CDATA[Add the passed {@link Service} to the list of services managed by this
  30978. {@link CompositeService}
  30979. @param service the {@link Service} to be added]]>
  30980. </doc>
  30981. </method>
  30982. <method name="addIfService" return="boolean"
  30983. abstract="false" native="false" synchronized="false"
  30984. static="false" final="false" visibility="protected"
  30985. deprecated="not deprecated">
  30986. <param name="object" type="java.lang.Object"/>
  30987. <doc>
  30988. <![CDATA[If the passed object is an instance of {@link Service},
  30989. add it to the list of services managed by this {@link CompositeService}
  30990. @param object
  30991. @return true if a service is added, false otherwise.]]>
  30992. </doc>
  30993. </method>
  30994. <method name="removeService" return="boolean"
  30995. abstract="false" native="false" synchronized="true"
  30996. static="false" final="false" visibility="protected"
  30997. deprecated="not deprecated">
  30998. <param name="service" type="org.apache.hadoop.service.Service"/>
  30999. </method>
  31000. <method name="serviceInit"
  31001. abstract="false" native="false" synchronized="false"
  31002. static="false" final="false" visibility="protected"
  31003. deprecated="not deprecated">
  31004. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31005. <exception name="Exception" type="java.lang.Exception"/>
  31006. </method>
  31007. <method name="serviceStart"
  31008. abstract="false" native="false" synchronized="false"
  31009. static="false" final="false" visibility="protected"
  31010. deprecated="not deprecated">
  31011. <exception name="Exception" type="java.lang.Exception"/>
  31012. </method>
  31013. <method name="serviceStop"
  31014. abstract="false" native="false" synchronized="false"
  31015. static="false" final="false" visibility="protected"
  31016. deprecated="not deprecated">
  31017. <exception name="Exception" type="java.lang.Exception"/>
  31018. </method>
  31019. <field name="STOP_ONLY_STARTED_SERVICES" type="boolean"
  31020. transient="false" volatile="false"
  31021. static="true" final="true" visibility="protected"
  31022. deprecated="not deprecated">
  31023. <doc>
  31024. <![CDATA[Policy on shutdown: attempt to close everything (purest) or
  31025. only try to close started services (which assumes
  31026. that the service implementations may not handle the stop() operation
  31027. except when started.
  31028. Irrespective of this policy, if a child service fails during
  31029. its init() or start() operations, it will have stop() called on it.]]>
  31030. </doc>
  31031. </field>
  31032. <doc>
  31033. <![CDATA[Composition of services.]]>
  31034. </doc>
  31035. </class>
  31036. <!-- end class org.apache.hadoop.service.CompositeService -->
  31037. <!-- start class org.apache.hadoop.service.LifecycleEvent -->
  31038. <class name="LifecycleEvent" extends="java.lang.Object"
  31039. abstract="false"
  31040. static="false" final="false" visibility="public"
  31041. deprecated="not deprecated">
  31042. <implements name="java.io.Serializable"/>
  31043. <constructor name="LifecycleEvent"
  31044. static="false" final="false" visibility="public"
  31045. deprecated="not deprecated">
  31046. </constructor>
  31047. <field name="time" type="long"
  31048. transient="false" volatile="false"
  31049. static="false" final="false" visibility="public"
  31050. deprecated="not deprecated">
  31051. <doc>
  31052. <![CDATA[Local time in milliseconds when the event occurred]]>
  31053. </doc>
  31054. </field>
  31055. <field name="state" type="org.apache.hadoop.service.Service.STATE"
  31056. transient="false" volatile="false"
  31057. static="false" final="false" visibility="public"
  31058. deprecated="not deprecated">
  31059. <doc>
  31060. <![CDATA[new state]]>
  31061. </doc>
  31062. </field>
  31063. <doc>
  31064. <![CDATA[A serializable lifecycle event: the time a state
  31065. transition occurred, and what state was entered.]]>
  31066. </doc>
  31067. </class>
  31068. <!-- end class org.apache.hadoop.service.LifecycleEvent -->
  31069. <!-- start class org.apache.hadoop.service.LoggingStateChangeListener -->
  31070. <class name="LoggingStateChangeListener" extends="java.lang.Object"
  31071. abstract="false"
  31072. static="false" final="false" visibility="public"
  31073. deprecated="not deprecated">
  31074. <implements name="org.apache.hadoop.service.ServiceStateChangeListener"/>
  31075. <constructor name="LoggingStateChangeListener" type="org.slf4j.Logger"
  31076. static="false" final="false" visibility="public"
  31077. deprecated="not deprecated">
  31078. <doc>
  31079. <![CDATA[Log events to the given log
  31080. @param log destination for events]]>
  31081. </doc>
  31082. </constructor>
  31083. <constructor name="LoggingStateChangeListener"
  31084. static="false" final="false" visibility="public"
  31085. deprecated="not deprecated">
  31086. <doc>
  31087. <![CDATA[Log events to the static log for this class]]>
  31088. </doc>
  31089. </constructor>
  31090. <method name="stateChanged"
  31091. abstract="false" native="false" synchronized="false"
  31092. static="false" final="false" visibility="public"
  31093. deprecated="not deprecated">
  31094. <param name="service" type="org.apache.hadoop.service.Service"/>
  31095. <doc>
  31096. <![CDATA[Callback for a state change event: log it
  31097. @param service the service that has changed.]]>
  31098. </doc>
  31099. </method>
  31100. <doc>
  31101. <![CDATA[This is a state change listener that logs events at INFO level]]>
  31102. </doc>
  31103. </class>
  31104. <!-- end class org.apache.hadoop.service.LoggingStateChangeListener -->
  31105. <!-- start interface org.apache.hadoop.service.Service -->
  31106. <interface name="Service" abstract="true"
  31107. static="false" final="false" visibility="public"
  31108. deprecated="not deprecated">
  31109. <implements name="java.io.Closeable"/>
  31110. <method name="init"
  31111. abstract="true" native="false" synchronized="false"
  31112. static="false" final="false" visibility="public"
  31113. deprecated="not deprecated">
  31114. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  31115. <doc>
  31116. <![CDATA[Initialize the service.
  31117. The transition MUST be from {@link STATE#NOTINITED} to {@link STATE#INITED}
  31118. unless the operation failed and an exception was raised, in which case
  31119. {@link #stop()} MUST be invoked and the service enter the state
  31120. {@link STATE#STOPPED}.
  31121. @param config the configuration of the service
  31122. @throws RuntimeException on any failure during the operation]]>
  31123. </doc>
  31124. </method>
  31125. <method name="start"
  31126. abstract="true" native="false" synchronized="false"
  31127. static="false" final="false" visibility="public"
  31128. deprecated="not deprecated">
  31129. <doc>
  31130. <![CDATA[Start the service.
  31131. The transition MUST be from {@link STATE#INITED} to {@link STATE#STARTED}
  31132. unless the operation failed and an exception was raised, in which case
  31133. {@link #stop()} MUST be invoked and the service enter the state
  31134. {@link STATE#STOPPED}.
  31135. @throws RuntimeException on any failure during the operation]]>
  31136. </doc>
  31137. </method>
  31138. <method name="stop"
  31139. abstract="true" native="false" synchronized="false"
  31140. static="false" final="false" visibility="public"
  31141. deprecated="not deprecated">
  31142. <doc>
  31143. <![CDATA[Stop the service. This MUST be a no-op if the service is already
  31144. in the {@link STATE#STOPPED} state. It SHOULD be a best-effort attempt
  31145. to stop all parts of the service.
  31146. The implementation must be designed to complete regardless of the service
  31147. state, including the initialized/uninitialized state of all its internal
  31148. fields.
  31149. @throws RuntimeException on any failure during the stop operation]]>
  31150. </doc>
  31151. </method>
  31152. <method name="close"
  31153. abstract="true" native="false" synchronized="false"
  31154. static="false" final="false" visibility="public"
  31155. deprecated="not deprecated">
  31156. <exception name="IOException" type="java.io.IOException"/>
  31157. <doc>
  31158. <![CDATA[A version of stop() that is designed to be usable in Java7 closure
  31159. clauses.
  31160. Implementation classes MUST relay this directly to {@link #stop()}
  31161. @throws IOException never
  31162. @throws RuntimeException on any failure during the stop operation]]>
  31163. </doc>
  31164. </method>
  31165. <method name="registerServiceListener"
  31166. abstract="true" native="false" synchronized="false"
  31167. static="false" final="false" visibility="public"
  31168. deprecated="not deprecated">
  31169. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  31170. <doc>
  31171. <![CDATA[Register a listener to the service state change events.
  31172. If the supplied listener is already listening to this service,
  31173. this method is a no-op.
  31174. @param listener a new listener]]>
  31175. </doc>
  31176. </method>
  31177. <method name="unregisterServiceListener"
  31178. abstract="true" native="false" synchronized="false"
  31179. static="false" final="false" visibility="public"
  31180. deprecated="not deprecated">
  31181. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  31182. <doc>
  31183. <![CDATA[Unregister a previously registered listener of the service state
  31184. change events. No-op if the listener is already unregistered.
  31185. @param listener the listener to unregister.]]>
  31186. </doc>
  31187. </method>
  31188. <method name="getName" return="java.lang.String"
  31189. abstract="true" native="false" synchronized="false"
  31190. static="false" final="false" visibility="public"
  31191. deprecated="not deprecated">
  31192. <doc>
  31193. <![CDATA[Get the name of this service.
  31194. @return the service name]]>
  31195. </doc>
  31196. </method>
  31197. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  31198. abstract="true" native="false" synchronized="false"
  31199. static="false" final="false" visibility="public"
  31200. deprecated="not deprecated">
  31201. <doc>
  31202. <![CDATA[Get the configuration of this service.
  31203. This is normally not a clone and may be manipulated, though there are no
  31204. guarantees as to what the consequences of such actions may be
  31205. @return the current configuration, unless a specific implentation chooses
  31206. otherwise.]]>
  31207. </doc>
  31208. </method>
  31209. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  31210. abstract="true" native="false" synchronized="false"
  31211. static="false" final="false" visibility="public"
  31212. deprecated="not deprecated">
  31213. <doc>
  31214. <![CDATA[Get the current service state
  31215. @return the state of the service]]>
  31216. </doc>
  31217. </method>
  31218. <method name="getStartTime" return="long"
  31219. abstract="true" native="false" synchronized="false"
  31220. static="false" final="false" visibility="public"
  31221. deprecated="not deprecated">
  31222. <doc>
  31223. <![CDATA[Get the service start time
  31224. @return the start time of the service. This will be zero if the service
  31225. has not yet been started.]]>
  31226. </doc>
  31227. </method>
  31228. <method name="isInState" return="boolean"
  31229. abstract="true" native="false" synchronized="false"
  31230. static="false" final="false" visibility="public"
  31231. deprecated="not deprecated">
  31232. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  31233. <doc>
  31234. <![CDATA[Query to see if the service is in a specific state.
  31235. In a multi-threaded system, the state may not hold for very long.
  31236. @param state the expected state
  31237. @return true if, at the time of invocation, the service was in that state.]]>
  31238. </doc>
  31239. </method>
  31240. <method name="getFailureCause" return="java.lang.Throwable"
  31241. abstract="true" native="false" synchronized="false"
  31242. static="false" final="false" visibility="public"
  31243. deprecated="not deprecated">
  31244. <doc>
  31245. <![CDATA[Get the first exception raised during the service failure. If null,
  31246. no exception was logged
  31247. @return the failure logged during a transition to the stopped state]]>
  31248. </doc>
  31249. </method>
  31250. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  31251. abstract="true" native="false" synchronized="false"
  31252. static="false" final="false" visibility="public"
  31253. deprecated="not deprecated">
  31254. <doc>
  31255. <![CDATA[Get the state in which the failure in {@link #getFailureCause()} occurred.
  31256. @return the state or null if there was no failure]]>
  31257. </doc>
  31258. </method>
  31259. <method name="waitForServiceToStop" return="boolean"
  31260. abstract="true" native="false" synchronized="false"
  31261. static="false" final="false" visibility="public"
  31262. deprecated="not deprecated">
  31263. <param name="timeout" type="long"/>
  31264. <doc>
  31265. <![CDATA[Block waiting for the service to stop; uses the termination notification
  31266. object to do so.
  31267. This method will only return after all the service stop actions
  31268. have been executed (to success or failure), or the timeout elapsed
  31269. This method can be called before the service is inited or started; this is
  31270. to eliminate any race condition with the service stopping before
  31271. this event occurs.
  31272. @param timeout timeout in milliseconds. A value of zero means "forever"
  31273. @return true iff the service stopped in the time period]]>
  31274. </doc>
  31275. </method>
  31276. <method name="getLifecycleHistory" return="java.util.List"
  31277. abstract="true" native="false" synchronized="false"
  31278. static="false" final="false" visibility="public"
  31279. deprecated="not deprecated">
  31280. <doc>
  31281. <![CDATA[Get a snapshot of the lifecycle history; it is a static list
  31282. @return a possibly empty but never null list of lifecycle events.]]>
  31283. </doc>
  31284. </method>
  31285. <method name="getBlockers" return="java.util.Map"
  31286. abstract="true" native="false" synchronized="false"
  31287. static="false" final="false" visibility="public"
  31288. deprecated="not deprecated">
  31289. <doc>
  31290. <![CDATA[Get the blockers on a service -remote dependencies
  31291. that are stopping the service from being <i>live</i>.
  31292. @return a (snapshotted) map of blocker name-&gt;description values]]>
  31293. </doc>
  31294. </method>
  31295. <doc>
  31296. <![CDATA[Service LifeCycle.]]>
  31297. </doc>
  31298. </interface>
  31299. <!-- end interface org.apache.hadoop.service.Service -->
  31300. <!-- start class org.apache.hadoop.service.ServiceOperations -->
  31301. <class name="ServiceOperations" extends="java.lang.Object"
  31302. abstract="false"
  31303. static="false" final="true" visibility="public"
  31304. deprecated="not deprecated">
  31305. <method name="stop"
  31306. abstract="false" native="false" synchronized="false"
  31307. static="true" final="false" visibility="public"
  31308. deprecated="not deprecated">
  31309. <param name="service" type="org.apache.hadoop.service.Service"/>
  31310. <doc>
  31311. <![CDATA[Stop a service.
  31312. <p/>Do nothing if the service is null or not
  31313. in a state in which it can be/needs to be stopped.
  31314. <p/>
  31315. The service state is checked <i>before</i> the operation begins.
  31316. This process is <i>not</i> thread safe.
  31317. @param service a service or null]]>
  31318. </doc>
  31319. </method>
  31320. <method name="stopQuietly" return="java.lang.Exception"
  31321. abstract="false" native="false" synchronized="false"
  31322. static="true" final="false" visibility="public"
  31323. deprecated="not deprecated">
  31324. <param name="service" type="org.apache.hadoop.service.Service"/>
  31325. <doc>
  31326. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  31327. logged at warn level. (but not Throwables). This operation is intended to
  31328. be used in cleanup operations
  31329. @param service a service; may be null
  31330. @return any exception that was caught; null if none was.]]>
  31331. </doc>
  31332. </method>
  31333. <method name="stopQuietly" return="java.lang.Exception"
  31334. abstract="false" native="false" synchronized="false"
  31335. static="true" final="false" visibility="public"
  31336. deprecated="not deprecated">
  31337. <param name="log" type="org.apache.commons.logging.Log"/>
  31338. <param name="service" type="org.apache.hadoop.service.Service"/>
  31339. <doc>
  31340. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  31341. logged at warn level. (but not Throwables). This operation is intended to
  31342. be used in cleanup operations
  31343. @param log the log to warn at
  31344. @param service a service; may be null
  31345. @return any exception that was caught; null if none was.
  31346. @see ServiceOperations#stopQuietly(Service)]]>
  31347. </doc>
  31348. </method>
  31349. <method name="stopQuietly" return="java.lang.Exception"
  31350. abstract="false" native="false" synchronized="false"
  31351. static="true" final="false" visibility="public"
  31352. deprecated="not deprecated">
  31353. <param name="log" type="org.slf4j.Logger"/>
  31354. <param name="service" type="org.apache.hadoop.service.Service"/>
  31355. <doc>
  31356. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  31357. logged at warn level. (but not Throwables). This operation is intended to
  31358. be used in cleanup operations
  31359. @param log the log to warn at
  31360. @param service a service; may be null
  31361. @return any exception that was caught; null if none was.
  31362. @see ServiceOperations#stopQuietly(Service)]]>
  31363. </doc>
  31364. </method>
  31365. <doc>
  31366. <![CDATA[This class contains a set of methods to work with services, especially
  31367. to walk them through their lifecycle.]]>
  31368. </doc>
  31369. </class>
  31370. <!-- end class org.apache.hadoop.service.ServiceOperations -->
  31371. <!-- start interface org.apache.hadoop.service.ServiceStateChangeListener -->
  31372. <interface name="ServiceStateChangeListener" abstract="true"
  31373. static="false" final="false" visibility="public"
  31374. deprecated="not deprecated">
  31375. <method name="stateChanged"
  31376. abstract="true" native="false" synchronized="false"
  31377. static="false" final="false" visibility="public"
  31378. deprecated="not deprecated">
  31379. <param name="service" type="org.apache.hadoop.service.Service"/>
  31380. <doc>
  31381. <![CDATA[Callback to notify of a state change. The service will already
  31382. have changed state before this callback is invoked.
  31383. This operation is invoked on the thread that initiated the state change,
  31384. while the service itself in in a sychronized section.
  31385. <ol>
  31386. <li>Any long-lived operation here will prevent the service state
  31387. change from completing in a timely manner.</li>
  31388. <li>If another thread is somehow invoked from the listener, and
  31389. that thread invokes the methods of the service (including
  31390. subclass-specific methods), there is a risk of a deadlock.</li>
  31391. </ol>
  31392. @param service the service that has changed.]]>
  31393. </doc>
  31394. </method>
  31395. <doc>
  31396. <![CDATA[Interface to notify state changes of a service.]]>
  31397. </doc>
  31398. </interface>
  31399. <!-- end interface org.apache.hadoop.service.ServiceStateChangeListener -->
  31400. <!-- start class org.apache.hadoop.service.ServiceStateException -->
  31401. <class name="ServiceStateException" extends="java.lang.RuntimeException"
  31402. abstract="false"
  31403. static="false" final="false" visibility="public"
  31404. deprecated="not deprecated">
  31405. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  31406. <constructor name="ServiceStateException" type="java.lang.String"
  31407. static="false" final="false" visibility="public"
  31408. deprecated="not deprecated">
  31409. <doc>
  31410. <![CDATA[Instantiate
  31411. @param message error message]]>
  31412. </doc>
  31413. </constructor>
  31414. <constructor name="ServiceStateException" type="java.lang.String, java.lang.Throwable"
  31415. static="false" final="false" visibility="public"
  31416. deprecated="not deprecated">
  31417. <doc>
  31418. <![CDATA[Instantiate with a message and cause; if the cause has an exit code
  31419. then it is used, otherwise the generic
  31420. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION} exit code
  31421. is used.
  31422. @param message exception message
  31423. @param cause optional inner cause]]>
  31424. </doc>
  31425. </constructor>
  31426. <constructor name="ServiceStateException" type="int, java.lang.String, java.lang.Throwable"
  31427. static="false" final="false" visibility="public"
  31428. deprecated="not deprecated">
  31429. <doc>
  31430. <![CDATA[Instantiate, using the specified exit code as the exit code
  31431. of the exception, irrespetive of any exit code supplied by any inner
  31432. cause.
  31433. @param exitCode exit code to declare
  31434. @param message exception message
  31435. @param cause inner cause]]>
  31436. </doc>
  31437. </constructor>
  31438. <constructor name="ServiceStateException" type="java.lang.Throwable"
  31439. static="false" final="false" visibility="public"
  31440. deprecated="not deprecated">
  31441. </constructor>
  31442. <method name="getExitCode" return="int"
  31443. abstract="false" native="false" synchronized="false"
  31444. static="false" final="false" visibility="public"
  31445. deprecated="not deprecated">
  31446. </method>
  31447. <method name="convert" return="java.lang.RuntimeException"
  31448. abstract="false" native="false" synchronized="false"
  31449. static="true" final="false" visibility="public"
  31450. deprecated="not deprecated">
  31451. <param name="fault" type="java.lang.Throwable"/>
  31452. <doc>
  31453. <![CDATA[Convert any exception into a {@link RuntimeException}.
  31454. All other exception types are wrapped in a new instance of
  31455. {@code ServiceStateException}.
  31456. @param fault exception or throwable
  31457. @return a {@link RuntimeException} to rethrow]]>
  31458. </doc>
  31459. </method>
  31460. <method name="convert" return="java.lang.RuntimeException"
  31461. abstract="false" native="false" synchronized="false"
  31462. static="true" final="false" visibility="public"
  31463. deprecated="not deprecated">
  31464. <param name="text" type="java.lang.String"/>
  31465. <param name="fault" type="java.lang.Throwable"/>
  31466. <doc>
  31467. <![CDATA[Convert any exception into a {@link RuntimeException}.
  31468. If the caught exception is already of that type, it is typecast to a
  31469. {@link RuntimeException} and returned.
  31470. All other exception types are wrapped in a new instance of
  31471. {@code ServiceStateException}.
  31472. @param text text to use if a new exception is created
  31473. @param fault exception or throwable
  31474. @return a {@link RuntimeException} to rethrow]]>
  31475. </doc>
  31476. </method>
  31477. <doc>
  31478. <![CDATA[Exception that can be raised on state change operations, whose
  31479. exit code can be explicitly set, determined from that of any nested
  31480. cause, or a default value of
  31481. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION}.]]>
  31482. </doc>
  31483. </class>
  31484. <!-- end class org.apache.hadoop.service.ServiceStateException -->
  31485. <!-- start class org.apache.hadoop.service.ServiceStateModel -->
  31486. <class name="ServiceStateModel" extends="java.lang.Object"
  31487. abstract="false"
  31488. static="false" final="false" visibility="public"
  31489. deprecated="not deprecated">
  31490. <constructor name="ServiceStateModel" type="java.lang.String"
  31491. static="false" final="false" visibility="public"
  31492. deprecated="not deprecated">
  31493. <doc>
  31494. <![CDATA[Create the service state model in the {@link Service.STATE#NOTINITED}
  31495. state.]]>
  31496. </doc>
  31497. </constructor>
  31498. <constructor name="ServiceStateModel" type="java.lang.String, org.apache.hadoop.service.Service.STATE"
  31499. static="false" final="false" visibility="public"
  31500. deprecated="not deprecated">
  31501. <doc>
  31502. <![CDATA[Create a service state model instance in the chosen state
  31503. @param state the starting state]]>
  31504. </doc>
  31505. </constructor>
  31506. <method name="getState" return="org.apache.hadoop.service.Service.STATE"
  31507. abstract="false" native="false" synchronized="false"
  31508. static="false" final="false" visibility="public"
  31509. deprecated="not deprecated">
  31510. <doc>
  31511. <![CDATA[Query the service state. This is a non-blocking operation.
  31512. @return the state]]>
  31513. </doc>
  31514. </method>
  31515. <method name="isInState" return="boolean"
  31516. abstract="false" native="false" synchronized="false"
  31517. static="false" final="false" visibility="public"
  31518. deprecated="not deprecated">
  31519. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  31520. <doc>
  31521. <![CDATA[Query that the state is in a specific state
  31522. @param proposed proposed new state
  31523. @return the state]]>
  31524. </doc>
  31525. </method>
  31526. <method name="ensureCurrentState"
  31527. abstract="false" native="false" synchronized="false"
  31528. static="false" final="false" visibility="public"
  31529. deprecated="not deprecated">
  31530. <param name="expectedState" type="org.apache.hadoop.service.Service.STATE"/>
  31531. <doc>
  31532. <![CDATA[Verify that that a service is in a given state.
  31533. @param expectedState the desired state
  31534. @throws ServiceStateException if the service state is different from
  31535. the desired state]]>
  31536. </doc>
  31537. </method>
  31538. <method name="enterState" return="org.apache.hadoop.service.Service.STATE"
  31539. abstract="false" native="false" synchronized="true"
  31540. static="false" final="false" visibility="public"
  31541. deprecated="not deprecated">
  31542. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  31543. <doc>
  31544. <![CDATA[Enter a state -thread safe.
  31545. @param proposed proposed new state
  31546. @return the original state
  31547. @throws ServiceStateException if the transition is not permitted]]>
  31548. </doc>
  31549. </method>
  31550. <method name="checkStateTransition"
  31551. abstract="false" native="false" synchronized="false"
  31552. static="true" final="false" visibility="public"
  31553. deprecated="not deprecated">
  31554. <param name="name" type="java.lang.String"/>
  31555. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  31556. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  31557. <doc>
  31558. <![CDATA[Check that a state tansition is valid and
  31559. throw an exception if not
  31560. @param name name of the service (can be null)
  31561. @param state current state
  31562. @param proposed proposed new state]]>
  31563. </doc>
  31564. </method>
  31565. <method name="isValidStateTransition" return="boolean"
  31566. abstract="false" native="false" synchronized="false"
  31567. static="true" final="false" visibility="public"
  31568. deprecated="not deprecated">
  31569. <param name="current" type="org.apache.hadoop.service.Service.STATE"/>
  31570. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  31571. <doc>
  31572. <![CDATA[Is a state transition valid?
  31573. There are no checks for current==proposed
  31574. as that is considered a non-transition.
  31575. using an array kills off all branch misprediction costs, at the expense
  31576. of cache line misses.
  31577. @param current current state
  31578. @param proposed proposed new state
  31579. @return true if the transition to a new state is valid]]>
  31580. </doc>
  31581. </method>
  31582. <method name="toString" return="java.lang.String"
  31583. abstract="false" native="false" synchronized="false"
  31584. static="false" final="false" visibility="public"
  31585. deprecated="not deprecated">
  31586. <doc>
  31587. <![CDATA[return the state text as the toString() value
  31588. @return the current state's description]]>
  31589. </doc>
  31590. </method>
  31591. <doc>
  31592. <![CDATA[Implements the service state model.]]>
  31593. </doc>
  31594. </class>
  31595. <!-- end class org.apache.hadoop.service.ServiceStateModel -->
  31596. </package>
  31597. <package name="org.apache.hadoop.service.launcher">
  31598. <!-- start class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  31599. <class name="AbstractLaunchableService" extends="org.apache.hadoop.service.AbstractService"
  31600. abstract="true"
  31601. static="false" final="false" visibility="public"
  31602. deprecated="not deprecated">
  31603. <implements name="org.apache.hadoop.service.launcher.LaunchableService"/>
  31604. <constructor name="AbstractLaunchableService" type="java.lang.String"
  31605. static="false" final="false" visibility="protected"
  31606. deprecated="not deprecated">
  31607. <doc>
  31608. <![CDATA[Construct an instance with the given name.]]>
  31609. </doc>
  31610. </constructor>
  31611. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  31612. abstract="false" native="false" synchronized="false"
  31613. static="false" final="false" visibility="public"
  31614. deprecated="not deprecated">
  31615. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  31616. <param name="args" type="java.util.List"/>
  31617. <exception name="Exception" type="java.lang.Exception"/>
  31618. <doc>
  31619. <![CDATA[{@inheritDoc}
  31620. <p>
  31621. The base implementation logs all arguments at the debug level,
  31622. then returns the passed in config unchanged.]]>
  31623. </doc>
  31624. </method>
  31625. <method name="execute" return="int"
  31626. abstract="false" native="false" synchronized="false"
  31627. static="false" final="false" visibility="public"
  31628. deprecated="not deprecated">
  31629. <exception name="Exception" type="java.lang.Exception"/>
  31630. <doc>
  31631. <![CDATA[{@inheritDoc}
  31632. <p>
  31633. The action is to signal success by returning the exit code 0.]]>
  31634. </doc>
  31635. </method>
  31636. <doc>
  31637. <![CDATA[Subclass of {@link AbstractService} that provides basic implementations
  31638. of the {@link LaunchableService} methods.]]>
  31639. </doc>
  31640. </class>
  31641. <!-- end class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  31642. <!-- start class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  31643. <class name="HadoopUncaughtExceptionHandler" extends="java.lang.Object"
  31644. abstract="false"
  31645. static="false" final="false" visibility="public"
  31646. deprecated="not deprecated">
  31647. <implements name="java.lang.Thread.UncaughtExceptionHandler"/>
  31648. <constructor name="HadoopUncaughtExceptionHandler" type="java.lang.Thread.UncaughtExceptionHandler"
  31649. static="false" final="false" visibility="public"
  31650. deprecated="not deprecated">
  31651. <doc>
  31652. <![CDATA[Create an instance delegating to the supplied handler if
  31653. the exception is considered "simple".
  31654. @param delegate a delegate exception handler.]]>
  31655. </doc>
  31656. </constructor>
  31657. <constructor name="HadoopUncaughtExceptionHandler"
  31658. static="false" final="false" visibility="public"
  31659. deprecated="not deprecated">
  31660. <doc>
  31661. <![CDATA[Basic exception handler -logs simple exceptions, then continues.]]>
  31662. </doc>
  31663. </constructor>
  31664. <method name="uncaughtException"
  31665. abstract="false" native="false" synchronized="false"
  31666. static="false" final="false" visibility="public"
  31667. deprecated="not deprecated">
  31668. <param name="thread" type="java.lang.Thread"/>
  31669. <param name="exception" type="java.lang.Throwable"/>
  31670. <doc>
  31671. <![CDATA[Uncaught exception handler.
  31672. If an error is raised: shutdown
  31673. The state of the system is unknown at this point -attempting
  31674. a clean shutdown is dangerous. Instead: exit
  31675. @param thread thread that failed
  31676. @param exception the raised exception]]>
  31677. </doc>
  31678. </method>
  31679. <doc>
  31680. <![CDATA[This class is intended to be installed by calling
  31681. {@link Thread#setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler)}
  31682. in the main entry point.
  31683. The base class will always attempt to shut down the process if an Error
  31684. was raised; the behavior on a standard Exception, raised outside
  31685. process shutdown, is simply to log it.
  31686. (Based on the class {@code YarnUncaughtExceptionHandler})]]>
  31687. </doc>
  31688. </class>
  31689. <!-- end class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  31690. <!-- start interface org.apache.hadoop.service.launcher.LaunchableService -->
  31691. <interface name="LaunchableService" abstract="true"
  31692. static="false" final="false" visibility="public"
  31693. deprecated="not deprecated">
  31694. <implements name="org.apache.hadoop.service.Service"/>
  31695. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  31696. abstract="true" native="false" synchronized="false"
  31697. static="false" final="false" visibility="public"
  31698. deprecated="not deprecated">
  31699. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  31700. <param name="args" type="java.util.List"/>
  31701. <exception name="Exception" type="java.lang.Exception"/>
  31702. <doc>
  31703. <![CDATA[Propagate the command line arguments.
  31704. <p>
  31705. This method is called before {@link #init(Configuration)};
  31706. Any non-null configuration that is returned from this operation
  31707. becomes the one that is passed on to that {@link #init(Configuration)}
  31708. operation.
  31709. <p>
  31710. This permits implementations to change the configuration before
  31711. the init operation. As the ServiceLauncher only creates
  31712. an instance of the base {@link Configuration} class, it is
  31713. recommended to instantiate any subclass (such as YarnConfiguration)
  31714. that injects new resources.
  31715. <p>
  31716. @param config the initial configuration build up by the
  31717. service launcher.
  31718. @param args list of arguments passed to the command line
  31719. after any launcher-specific commands have been stripped.
  31720. @return the configuration to init the service with.
  31721. Recommended: pass down the config parameter with any changes
  31722. @throws Exception any problem]]>
  31723. </doc>
  31724. </method>
  31725. <method name="execute" return="int"
  31726. abstract="true" native="false" synchronized="false"
  31727. static="false" final="false" visibility="public"
  31728. deprecated="not deprecated">
  31729. <exception name="Exception" type="java.lang.Exception"/>
  31730. <doc>
  31731. <![CDATA[Run a service. This method is called after {@link Service#start()}.
  31732. <p>
  31733. The return value becomes the exit code of the launched process.
  31734. <p>
  31735. If an exception is raised, the policy is:
  31736. <ol>
  31737. <li>Any subset of {@link org.apache.hadoop.util.ExitUtil.ExitException}:
  31738. the exception is passed up unmodified.
  31739. </li>
  31740. <li>Any exception which implements
  31741. {@link org.apache.hadoop.util.ExitCodeProvider}:
  31742. A new {@link ServiceLaunchException} is created with the exit code
  31743. and message of the thrown exception; the thrown exception becomes the
  31744. cause.</li>
  31745. <li>Any other exception: a new {@link ServiceLaunchException} is created
  31746. with the exit code {@link LauncherExitCodes#EXIT_EXCEPTION_THROWN} and
  31747. the message of the original exception (which becomes the cause).</li>
  31748. </ol>
  31749. @return the exit code
  31750. @throws org.apache.hadoop.util.ExitUtil.ExitException an exception passed
  31751. up as the exit code and error text.
  31752. @throws Exception any exception to report. If it provides an exit code
  31753. this is used in a wrapping exception.]]>
  31754. </doc>
  31755. </method>
  31756. <doc>
  31757. <![CDATA[An interface which services can implement to have their
  31758. execution managed by the ServiceLauncher.
  31759. <p>
  31760. The command line options will be passed down before the
  31761. {@link Service#init(Configuration)} operation is invoked via an
  31762. invocation of {@link LaunchableService#bindArgs(Configuration, List)}
  31763. After the service has been successfully started via {@link Service#start()}
  31764. the {@link LaunchableService#execute()} method is called to execute the
  31765. service. When this method returns, the service launcher will exit, using
  31766. the return code from the method as its exit option.]]>
  31767. </doc>
  31768. </interface>
  31769. <!-- end interface org.apache.hadoop.service.launcher.LaunchableService -->
  31770. <!-- start interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  31771. <interface name="LauncherExitCodes" abstract="true"
  31772. static="false" final="false" visibility="public"
  31773. deprecated="not deprecated">
  31774. <field name="EXIT_SUCCESS" type="int"
  31775. transient="false" volatile="false"
  31776. static="true" final="true" visibility="public"
  31777. deprecated="not deprecated">
  31778. <doc>
  31779. <![CDATA[Success: {@value}.]]>
  31780. </doc>
  31781. </field>
  31782. <field name="EXIT_FAIL" type="int"
  31783. transient="false" volatile="false"
  31784. static="true" final="true" visibility="public"
  31785. deprecated="not deprecated">
  31786. <doc>
  31787. <![CDATA[Generic "false/fail" response: {@value}.
  31788. The operation worked but the result was not "true" from the viewpoint
  31789. of the executed code.]]>
  31790. </doc>
  31791. </field>
  31792. <field name="EXIT_CLIENT_INITIATED_SHUTDOWN" type="int"
  31793. transient="false" volatile="false"
  31794. static="true" final="true" visibility="public"
  31795. deprecated="not deprecated">
  31796. <doc>
  31797. <![CDATA[Exit code when a client requested service termination: {@value}.]]>
  31798. </doc>
  31799. </field>
  31800. <field name="EXIT_TASK_LAUNCH_FAILURE" type="int"
  31801. transient="false" volatile="false"
  31802. static="true" final="true" visibility="public"
  31803. deprecated="not deprecated">
  31804. <doc>
  31805. <![CDATA[Exit code when targets could not be launched: {@value}.]]>
  31806. </doc>
  31807. </field>
  31808. <field name="EXIT_INTERRUPTED" type="int"
  31809. transient="false" volatile="false"
  31810. static="true" final="true" visibility="public"
  31811. deprecated="not deprecated">
  31812. <doc>
  31813. <![CDATA[Exit code when a control-C, kill -3, signal was picked up: {@value}.]]>
  31814. </doc>
  31815. </field>
  31816. <field name="EXIT_OTHER_FAILURE" type="int"
  31817. transient="false" volatile="false"
  31818. static="true" final="true" visibility="public"
  31819. deprecated="not deprecated">
  31820. <doc>
  31821. <![CDATA[Exit code when something happened but we can't be specific: {@value}.]]>
  31822. </doc>
  31823. </field>
  31824. <field name="EXIT_COMMAND_ARGUMENT_ERROR" type="int"
  31825. transient="false" volatile="false"
  31826. static="true" final="true" visibility="public"
  31827. deprecated="not deprecated">
  31828. <doc>
  31829. <![CDATA[Exit code when the command line doesn't parse: {@value}, or
  31830. when it is otherwise invalid.
  31831. <p>
  31832. Approximate HTTP equivalent: {@code 400 Bad Request}]]>
  31833. </doc>
  31834. </field>
  31835. <field name="EXIT_UNAUTHORIZED" type="int"
  31836. transient="false" volatile="false"
  31837. static="true" final="true" visibility="public"
  31838. deprecated="not deprecated">
  31839. <doc>
  31840. <![CDATA[The request requires user authentication: {@value}.
  31841. <p>
  31842. approximate HTTP equivalent: Approximate HTTP equivalent: {@code 401 Unauthorized}]]>
  31843. </doc>
  31844. </field>
  31845. <field name="EXIT_USAGE" 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 a usage message was printed: {@value}.]]>
  31851. </doc>
  31852. </field>
  31853. <field name="EXIT_FORBIDDEN" type="int"
  31854. transient="false" volatile="false"
  31855. static="true" final="true" visibility="public"
  31856. deprecated="not deprecated">
  31857. <doc>
  31858. <![CDATA[Forbidden action: {@value}.
  31859. <p>
  31860. Approximate HTTP equivalent: Approximate HTTP equivalent: {@code 403: Forbidden}]]>
  31861. </doc>
  31862. </field>
  31863. <field name="EXIT_NOT_FOUND" type="int"
  31864. transient="false" volatile="false"
  31865. static="true" final="true" visibility="public"
  31866. deprecated="not deprecated">
  31867. <doc>
  31868. <![CDATA[Something was not found: {@value}.
  31869. <p>
  31870. Approximate HTTP equivalent: {@code 404: Not Found}]]>
  31871. </doc>
  31872. </field>
  31873. <field name="EXIT_OPERATION_NOT_ALLOWED" type="int"
  31874. transient="false" volatile="false"
  31875. static="true" final="true" visibility="public"
  31876. deprecated="not deprecated">
  31877. <doc>
  31878. <![CDATA[The operation is not allowed: {@value}.
  31879. <p>
  31880. Approximate HTTP equivalent: {@code 405: Not allowed}]]>
  31881. </doc>
  31882. </field>
  31883. <field name="EXIT_NOT_ACCEPTABLE" type="int"
  31884. transient="false" volatile="false"
  31885. static="true" final="true" visibility="public"
  31886. deprecated="not deprecated">
  31887. <doc>
  31888. <![CDATA[The command is somehow not acceptable: {@value}.
  31889. <p>
  31890. Approximate HTTP equivalent: {@code 406: Not Acceptable}]]>
  31891. </doc>
  31892. </field>
  31893. <field name="EXIT_CONNECTIVITY_PROBLEM" type="int"
  31894. transient="false" volatile="false"
  31895. static="true" final="true" visibility="public"
  31896. deprecated="not deprecated">
  31897. <doc>
  31898. <![CDATA[Exit code on connectivity problems: {@value}.
  31899. <p>
  31900. Approximate HTTP equivalent: {@code 408: Request Timeout}]]>
  31901. </doc>
  31902. </field>
  31903. <field name="EXIT_BAD_CONFIGURATION" type="int"
  31904. transient="false" volatile="false"
  31905. static="true" final="true" visibility="public"
  31906. deprecated="not deprecated">
  31907. <doc>
  31908. <![CDATA[Exit code when the configurations in valid/incomplete: {@value}.
  31909. <p>
  31910. Approximate HTTP equivalent: {@code 409: Conflict}]]>
  31911. </doc>
  31912. </field>
  31913. <field name="EXIT_EXCEPTION_THROWN" type="int"
  31914. transient="false" volatile="false"
  31915. static="true" final="true" visibility="public"
  31916. deprecated="not deprecated">
  31917. <doc>
  31918. <![CDATA[Exit code when an exception was thrown from the service: {@value}.
  31919. <p>
  31920. Approximate HTTP equivalent: {@code 500 Internal Server Error}]]>
  31921. </doc>
  31922. </field>
  31923. <field name="EXIT_UNIMPLEMENTED" type="int"
  31924. transient="false" volatile="false"
  31925. static="true" final="true" visibility="public"
  31926. deprecated="not deprecated">
  31927. <doc>
  31928. <![CDATA[Unimplemented feature: {@value}.
  31929. <p>
  31930. Approximate HTTP equivalent: {@code 501: Not Implemented}]]>
  31931. </doc>
  31932. </field>
  31933. <field name="EXIT_SERVICE_UNAVAILABLE" type="int"
  31934. transient="false" volatile="false"
  31935. static="true" final="true" visibility="public"
  31936. deprecated="not deprecated">
  31937. <doc>
  31938. <![CDATA[Service Unavailable; it may be available later: {@value}.
  31939. <p>
  31940. Approximate HTTP equivalent: {@code 503 Service Unavailable}]]>
  31941. </doc>
  31942. </field>
  31943. <field name="EXIT_UNSUPPORTED_VERSION" type="int"
  31944. transient="false" volatile="false"
  31945. static="true" final="true" visibility="public"
  31946. deprecated="not deprecated">
  31947. <doc>
  31948. <![CDATA[The application does not support, or refuses to support this
  31949. version: {@value}.
  31950. <p>
  31951. If raised, this is expected to be raised server-side and likely due
  31952. to client/server version incompatibilities.
  31953. <p>
  31954. Approximate HTTP equivalent: {@code 505: Version Not Supported}]]>
  31955. </doc>
  31956. </field>
  31957. <field name="EXIT_SERVICE_CREATION_FAILURE" type="int"
  31958. transient="false" volatile="false"
  31959. static="true" final="true" visibility="public"
  31960. deprecated="not deprecated">
  31961. <doc>
  31962. <![CDATA[The service instance could not be created: {@value}.]]>
  31963. </doc>
  31964. </field>
  31965. <field name="EXIT_SERVICE_LIFECYCLE_EXCEPTION" type="int"
  31966. transient="false" volatile="false"
  31967. static="true" final="true" visibility="public"
  31968. deprecated="not deprecated">
  31969. <doc>
  31970. <![CDATA[The service instance could not be created: {@value}.]]>
  31971. </doc>
  31972. </field>
  31973. <doc>
  31974. <![CDATA[Common Exit codes.
  31975. <p>
  31976. Codes with a YARN prefix are YARN-related.
  31977. <p>
  31978. Many of the exit codes are designed to resemble HTTP error codes,
  31979. squashed into a single byte. e.g 44 , "not found" is the equivalent
  31980. of 404. The various 2XX HTTP error codes aren't followed;
  31981. the Unix standard of "0" for success is used.
  31982. <pre>
  31983. 0-10: general command issues
  31984. 30-39: equivalent to the 3XX responses, where those responses are
  31985. considered errors by the application.
  31986. 40-49: client-side/CLI/config problems
  31987. 50-59: service-side problems.
  31988. 60+ : application specific error codes
  31989. </pre>]]>
  31990. </doc>
  31991. </interface>
  31992. <!-- end interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  31993. <!-- start class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  31994. <class name="ServiceLaunchException" extends="org.apache.hadoop.util.ExitUtil.ExitException"
  31995. abstract="false"
  31996. static="false" final="false" visibility="public"
  31997. deprecated="not deprecated">
  31998. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  31999. <implements name="org.apache.hadoop.service.launcher.LauncherExitCodes"/>
  32000. <constructor name="ServiceLaunchException" type="int, java.lang.Throwable"
  32001. static="false" final="false" visibility="public"
  32002. deprecated="not deprecated">
  32003. <doc>
  32004. <![CDATA[Create an exception with the specific exit code.
  32005. @param exitCode exit code
  32006. @param cause cause of the exception]]>
  32007. </doc>
  32008. </constructor>
  32009. <constructor name="ServiceLaunchException" type="int, java.lang.String"
  32010. static="false" final="false" visibility="public"
  32011. deprecated="not deprecated">
  32012. <doc>
  32013. <![CDATA[Create an exception with the specific exit code and text.
  32014. @param exitCode exit code
  32015. @param message message to use in exception]]>
  32016. </doc>
  32017. </constructor>
  32018. <constructor name="ServiceLaunchException" type="int, java.lang.String, java.lang.Object[]"
  32019. static="false" final="false" visibility="public"
  32020. deprecated="not deprecated">
  32021. <doc>
  32022. <![CDATA[Create a formatted exception.
  32023. <p>
  32024. This uses {@link String#format(String, Object...)}
  32025. to build the formatted exception in the ENGLISH locale.
  32026. <p>
  32027. If the last argument is a throwable, it becomes the cause of the exception.
  32028. It will also be used as a parameter for the format.
  32029. @param exitCode exit code
  32030. @param format format for message to use in exception
  32031. @param args list of arguments]]>
  32032. </doc>
  32033. </constructor>
  32034. <doc>
  32035. <![CDATA[A service launch exception that includes an exit code.
  32036. <p>
  32037. When caught by the ServiceLauncher, it will convert that
  32038. into a process exit code.
  32039. The {@link #ServiceLaunchException(int, String, Object...)} constructor
  32040. generates formatted exceptions.]]>
  32041. </doc>
  32042. </class>
  32043. <!-- end class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  32044. </package>
  32045. <package name="org.apache.hadoop.tools">
  32046. </package>
  32047. <package name="org.apache.hadoop.tools.protocolPB">
  32048. </package>
  32049. <package name="org.apache.hadoop.tracing">
  32050. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfo -->
  32051. <class name="SpanReceiverInfo" extends="java.lang.Object"
  32052. abstract="false"
  32053. static="false" final="false" visibility="public"
  32054. deprecated="not deprecated">
  32055. <method name="getId" return="long"
  32056. abstract="false" native="false" synchronized="false"
  32057. static="false" final="false" visibility="public"
  32058. deprecated="not deprecated">
  32059. </method>
  32060. <method name="getClassName" return="java.lang.String"
  32061. abstract="false" native="false" synchronized="false"
  32062. static="false" final="false" visibility="public"
  32063. deprecated="not deprecated">
  32064. </method>
  32065. </class>
  32066. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfo -->
  32067. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  32068. <class name="SpanReceiverInfoBuilder" extends="java.lang.Object"
  32069. abstract="false"
  32070. static="false" final="false" visibility="public"
  32071. deprecated="not deprecated">
  32072. <constructor name="SpanReceiverInfoBuilder" type="java.lang.String"
  32073. static="false" final="false" visibility="public"
  32074. deprecated="not deprecated">
  32075. </constructor>
  32076. <method name="addConfigurationPair"
  32077. abstract="false" native="false" synchronized="false"
  32078. static="false" final="false" visibility="public"
  32079. deprecated="not deprecated">
  32080. <param name="key" type="java.lang.String"/>
  32081. <param name="value" type="java.lang.String"/>
  32082. </method>
  32083. <method name="build" return="org.apache.hadoop.tracing.SpanReceiverInfo"
  32084. abstract="false" native="false" synchronized="false"
  32085. static="false" final="false" visibility="public"
  32086. deprecated="not deprecated">
  32087. </method>
  32088. </class>
  32089. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  32090. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  32091. <interface name="TraceAdminProtocol" abstract="true"
  32092. static="false" final="false" visibility="public"
  32093. deprecated="not deprecated">
  32094. <method name="listSpanReceivers" return="org.apache.hadoop.tracing.SpanReceiverInfo[]"
  32095. abstract="true" native="false" synchronized="false"
  32096. static="false" final="false" visibility="public"
  32097. deprecated="not deprecated">
  32098. <exception name="IOException" type="java.io.IOException"/>
  32099. <doc>
  32100. <![CDATA[List the currently active trace span receivers.
  32101. @throws IOException On error.]]>
  32102. </doc>
  32103. </method>
  32104. <method name="addSpanReceiver" return="long"
  32105. abstract="true" native="false" synchronized="false"
  32106. static="false" final="false" visibility="public"
  32107. deprecated="not deprecated">
  32108. <param name="desc" type="org.apache.hadoop.tracing.SpanReceiverInfo"/>
  32109. <exception name="IOException" type="java.io.IOException"/>
  32110. <doc>
  32111. <![CDATA[Add a new trace span receiver.
  32112. @param desc The span receiver description.
  32113. @return The ID of the new trace span receiver.
  32114. @throws IOException On error.]]>
  32115. </doc>
  32116. </method>
  32117. <method name="removeSpanReceiver"
  32118. abstract="true" native="false" synchronized="false"
  32119. static="false" final="false" visibility="public"
  32120. deprecated="not deprecated">
  32121. <param name="spanReceiverId" type="long"/>
  32122. <exception name="IOException" type="java.io.IOException"/>
  32123. <doc>
  32124. <![CDATA[Remove a trace span receiver.
  32125. @param spanReceiverId The id of the span receiver to remove.
  32126. @throws IOException On error.]]>
  32127. </doc>
  32128. </method>
  32129. <field name="versionID" type="long"
  32130. transient="false" volatile="false"
  32131. static="true" final="true" visibility="public"
  32132. deprecated="not deprecated">
  32133. </field>
  32134. <doc>
  32135. <![CDATA[Protocol interface that provides tracing.]]>
  32136. </doc>
  32137. </interface>
  32138. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  32139. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  32140. <interface name="TraceAdminProtocolPB" abstract="true"
  32141. static="false" final="false" visibility="public"
  32142. deprecated="not deprecated">
  32143. <implements name="org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService.BlockingInterface"/>
  32144. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  32145. </interface>
  32146. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  32147. </package>
  32148. <package name="org.apache.hadoop.util">
  32149. <!-- start class org.apache.hadoop.util.ApplicationClassLoader -->
  32150. <class name="ApplicationClassLoader" extends="java.net.URLClassLoader"
  32151. abstract="false"
  32152. static="false" final="false" visibility="public"
  32153. deprecated="not deprecated">
  32154. <constructor name="ApplicationClassLoader" type="java.net.URL[], java.lang.ClassLoader, java.util.List"
  32155. static="false" final="false" visibility="public"
  32156. deprecated="not deprecated">
  32157. </constructor>
  32158. <constructor name="ApplicationClassLoader" type="java.lang.String, java.lang.ClassLoader, java.util.List"
  32159. static="false" final="false" visibility="public"
  32160. deprecated="not deprecated">
  32161. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  32162. </constructor>
  32163. <method name="getResource" return="java.net.URL"
  32164. abstract="false" native="false" synchronized="false"
  32165. static="false" final="false" visibility="public"
  32166. deprecated="not deprecated">
  32167. <param name="name" type="java.lang.String"/>
  32168. </method>
  32169. <method name="loadClass" return="java.lang.Class"
  32170. abstract="false" native="false" synchronized="false"
  32171. static="false" final="false" visibility="public"
  32172. deprecated="not deprecated">
  32173. <param name="name" type="java.lang.String"/>
  32174. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  32175. </method>
  32176. <method name="loadClass" return="java.lang.Class"
  32177. abstract="false" native="false" synchronized="true"
  32178. static="false" final="false" visibility="protected"
  32179. deprecated="not deprecated">
  32180. <param name="name" type="java.lang.String"/>
  32181. <param name="resolve" type="boolean"/>
  32182. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  32183. </method>
  32184. <method name="isSystemClass" return="boolean"
  32185. abstract="false" native="false" synchronized="false"
  32186. static="true" final="false" visibility="public"
  32187. deprecated="not deprecated">
  32188. <param name="name" type="java.lang.String"/>
  32189. <param name="systemClasses" type="java.util.List"/>
  32190. <doc>
  32191. <![CDATA[Checks if a class should be included as a system class.
  32192. A class is a system class if and only if it matches one of the positive
  32193. patterns and none of the negative ones.
  32194. @param name the class name to check
  32195. @param systemClasses a list of system class configurations.
  32196. @return true if the class is a system class]]>
  32197. </doc>
  32198. </method>
  32199. <field name="SYSTEM_CLASSES_DEFAULT" type="java.lang.String"
  32200. transient="false" volatile="false"
  32201. static="true" final="true" visibility="public"
  32202. deprecated="not deprecated">
  32203. <doc>
  32204. <![CDATA[Default value of the system classes if the user did not override them.
  32205. JDK classes, hadoop classes and resources, and some select third-party
  32206. classes are considered system classes, and are not loaded by the
  32207. application classloader.]]>
  32208. </doc>
  32209. </field>
  32210. <doc>
  32211. <![CDATA[A {@link URLClassLoader} for application isolation. Classes from the
  32212. application JARs are loaded in preference to the parent loader.]]>
  32213. </doc>
  32214. </class>
  32215. <!-- end class org.apache.hadoop.util.ApplicationClassLoader -->
  32216. <!-- start interface org.apache.hadoop.util.IPList -->
  32217. <interface name="IPList" abstract="true"
  32218. static="false" final="false" visibility="public"
  32219. deprecated="not deprecated">
  32220. <method name="isIn" return="boolean"
  32221. abstract="true" native="false" synchronized="false"
  32222. static="false" final="false" visibility="public"
  32223. deprecated="not deprecated">
  32224. <param name="ipAddress" type="java.lang.String"/>
  32225. <doc>
  32226. <![CDATA[returns true if the ipAddress is in the IPList.
  32227. @param ipAddress
  32228. @return boolean value indicating whether the ipAddress is in the IPList]]>
  32229. </doc>
  32230. </method>
  32231. </interface>
  32232. <!-- end interface org.apache.hadoop.util.IPList -->
  32233. <!-- start interface org.apache.hadoop.util.Progressable -->
  32234. <interface name="Progressable" abstract="true"
  32235. static="false" final="false" visibility="public"
  32236. deprecated="not deprecated">
  32237. <method name="progress"
  32238. abstract="true" native="false" synchronized="false"
  32239. static="false" final="false" visibility="public"
  32240. deprecated="not deprecated">
  32241. <doc>
  32242. <![CDATA[Report progress to the Hadoop framework.]]>
  32243. </doc>
  32244. </method>
  32245. <doc>
  32246. <![CDATA[A facility for reporting progress.
  32247. <p>Clients and/or applications can use the provided <code>Progressable</code>
  32248. to explicitly report progress to the Hadoop framework. This is especially
  32249. important for operations which take significant amount of time since,
  32250. in-lieu of the reported progress, the framework has to assume that an error
  32251. has occurred and time-out the operation.</p>]]>
  32252. </doc>
  32253. </interface>
  32254. <!-- end interface org.apache.hadoop.util.Progressable -->
  32255. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  32256. <class name="PureJavaCrc32" extends="java.lang.Object"
  32257. abstract="false"
  32258. static="false" final="false" visibility="public"
  32259. deprecated="not deprecated">
  32260. <implements name="java.util.zip.Checksum"/>
  32261. <constructor name="PureJavaCrc32"
  32262. static="false" final="false" visibility="public"
  32263. deprecated="not deprecated">
  32264. <doc>
  32265. <![CDATA[Create a new PureJavaCrc32 object.]]>
  32266. </doc>
  32267. </constructor>
  32268. <method name="getValue" return="long"
  32269. abstract="false" native="false" synchronized="false"
  32270. static="false" final="false" visibility="public"
  32271. deprecated="not deprecated">
  32272. </method>
  32273. <method name="reset"
  32274. abstract="false" native="false" synchronized="false"
  32275. static="false" final="false" visibility="public"
  32276. deprecated="not deprecated">
  32277. </method>
  32278. <method name="update"
  32279. abstract="false" native="false" synchronized="false"
  32280. static="false" final="false" visibility="public"
  32281. deprecated="not deprecated">
  32282. <param name="b" type="byte[]"/>
  32283. <param name="offset" type="int"/>
  32284. <param name="len" type="int"/>
  32285. </method>
  32286. <method name="update"
  32287. abstract="false" native="false" synchronized="false"
  32288. static="false" final="true" visibility="public"
  32289. deprecated="not deprecated">
  32290. <param name="b" type="int"/>
  32291. </method>
  32292. <doc>
  32293. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  32294. the same polynomial as the built-in native CRC32.
  32295. This is to avoid the JNI overhead for certain uses of Checksumming
  32296. where many small pieces of data are checksummed in succession.
  32297. The current version is ~10x to 1.8x as fast as Sun's native
  32298. java.util.zip.CRC32 in Java 1.6
  32299. @see java.util.zip.CRC32]]>
  32300. </doc>
  32301. </class>
  32302. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  32303. <!-- start class org.apache.hadoop.util.PureJavaCrc32C -->
  32304. <class name="PureJavaCrc32C" extends="java.lang.Object"
  32305. abstract="false"
  32306. static="false" final="false" visibility="public"
  32307. deprecated="not deprecated">
  32308. <implements name="java.util.zip.Checksum"/>
  32309. <constructor name="PureJavaCrc32C"
  32310. static="false" final="false" visibility="public"
  32311. deprecated="not deprecated">
  32312. <doc>
  32313. <![CDATA[Create a new PureJavaCrc32 object.]]>
  32314. </doc>
  32315. </constructor>
  32316. <method name="getValue" return="long"
  32317. abstract="false" native="false" synchronized="false"
  32318. static="false" final="false" visibility="public"
  32319. deprecated="not deprecated">
  32320. </method>
  32321. <method name="reset"
  32322. abstract="false" native="false" synchronized="false"
  32323. static="false" final="false" visibility="public"
  32324. deprecated="not deprecated">
  32325. </method>
  32326. <method name="update"
  32327. abstract="false" native="false" synchronized="false"
  32328. static="false" final="false" visibility="public"
  32329. deprecated="not deprecated">
  32330. <param name="b" type="byte[]"/>
  32331. <param name="off" type="int"/>
  32332. <param name="len" type="int"/>
  32333. </method>
  32334. <method name="update"
  32335. abstract="false" native="false" synchronized="false"
  32336. static="false" final="true" visibility="public"
  32337. deprecated="not deprecated">
  32338. <param name="b" type="int"/>
  32339. </method>
  32340. <doc>
  32341. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  32342. the CRC32-C polynomial, the same polynomial used by iSCSI
  32343. and implemented on many Intel chipsets supporting SSE4.2.]]>
  32344. </doc>
  32345. </class>
  32346. <!-- end class org.apache.hadoop.util.PureJavaCrc32C -->
  32347. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  32348. <class name="ReflectionUtils" extends="java.lang.Object"
  32349. abstract="false"
  32350. static="false" final="false" visibility="public"
  32351. deprecated="not deprecated">
  32352. <constructor name="ReflectionUtils"
  32353. static="false" final="false" visibility="public"
  32354. deprecated="not deprecated">
  32355. </constructor>
  32356. <method name="setConf"
  32357. abstract="false" native="false" synchronized="false"
  32358. static="true" final="false" visibility="public"
  32359. deprecated="not deprecated">
  32360. <param name="theObject" type="java.lang.Object"/>
  32361. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32362. <doc>
  32363. <![CDATA[Check and set 'configuration' if necessary.
  32364. @param theObject object for which to set configuration
  32365. @param conf Configuration]]>
  32366. </doc>
  32367. </method>
  32368. <method name="newInstance" return="T"
  32369. abstract="false" native="false" synchronized="false"
  32370. static="true" final="false" visibility="public"
  32371. deprecated="not deprecated">
  32372. <param name="theClass" type="java.lang.Class"/>
  32373. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32374. <doc>
  32375. <![CDATA[Create an object for the given class and initialize it from conf
  32376. @param theClass class of which an object is created
  32377. @param conf Configuration
  32378. @return a new object]]>
  32379. </doc>
  32380. </method>
  32381. <method name="newInstance" return="T"
  32382. abstract="false" native="false" synchronized="false"
  32383. static="true" final="false" visibility="public"
  32384. deprecated="not deprecated">
  32385. <param name="theClass" type="java.lang.Class"/>
  32386. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32387. <param name="argTypes" type="java.lang.Class[]"/>
  32388. <param name="values" type="java.lang.Object[]"/>
  32389. <doc>
  32390. <![CDATA[Create an object for the given class and initialize it from conf
  32391. @param theClass class of which an object is created
  32392. @param conf Configuration
  32393. @param argTypes the types of the arguments
  32394. @param values the values of the arguments
  32395. @return a new object]]>
  32396. </doc>
  32397. </method>
  32398. <method name="setContentionTracing"
  32399. abstract="false" native="false" synchronized="false"
  32400. static="true" final="false" visibility="public"
  32401. deprecated="not deprecated">
  32402. <param name="val" type="boolean"/>
  32403. </method>
  32404. <method name="printThreadInfo"
  32405. abstract="false" native="false" synchronized="true"
  32406. static="true" final="false" visibility="public"
  32407. deprecated="not deprecated">
  32408. <param name="stream" type="java.io.PrintStream"/>
  32409. <param name="title" type="java.lang.String"/>
  32410. <doc>
  32411. <![CDATA[Print all of the thread's information and stack traces.
  32412. @param stream the stream to
  32413. @param title a string title for the stack trace]]>
  32414. </doc>
  32415. </method>
  32416. <method name="logThreadInfo"
  32417. abstract="false" native="false" synchronized="false"
  32418. static="true" final="false" visibility="public"
  32419. deprecated="not deprecated">
  32420. <param name="log" type="org.apache.commons.logging.Log"/>
  32421. <param name="title" type="java.lang.String"/>
  32422. <param name="minInterval" type="long"/>
  32423. <doc>
  32424. <![CDATA[Log the current thread stacks at INFO level.
  32425. @param log the logger that logs the stack trace
  32426. @param title a descriptive title for the call stacks
  32427. @param minInterval the minimum time from the last]]>
  32428. </doc>
  32429. </method>
  32430. <method name="logThreadInfo"
  32431. abstract="false" native="false" synchronized="false"
  32432. static="true" final="false" visibility="public"
  32433. deprecated="not deprecated">
  32434. <param name="log" type="org.slf4j.Logger"/>
  32435. <param name="title" type="java.lang.String"/>
  32436. <param name="minInterval" type="long"/>
  32437. <doc>
  32438. <![CDATA[Log the current thread stacks at INFO level.
  32439. @param log the logger that logs the stack trace
  32440. @param title a descriptive title for the call stacks
  32441. @param minInterval the minimum time from the last]]>
  32442. </doc>
  32443. </method>
  32444. <method name="getClass" return="java.lang.Class"
  32445. abstract="false" native="false" synchronized="false"
  32446. static="true" final="false" visibility="public"
  32447. deprecated="not deprecated">
  32448. <param name="o" type="T"/>
  32449. <doc>
  32450. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  32451. @param o object whose correctly-typed <code>Class</code> is to be obtained
  32452. @return the correctly typed <code>Class</code> of the given object.]]>
  32453. </doc>
  32454. </method>
  32455. <method name="copy" return="T"
  32456. abstract="false" native="false" synchronized="false"
  32457. static="true" final="false" visibility="public"
  32458. deprecated="not deprecated">
  32459. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32460. <param name="src" type="T"/>
  32461. <param name="dst" type="T"/>
  32462. <exception name="IOException" type="java.io.IOException"/>
  32463. <doc>
  32464. <![CDATA[Make a copy of the writable object using serialization to a buffer
  32465. @param src the object to copy from
  32466. @param dst the object to copy into, which is destroyed
  32467. @return dst param (the copy)
  32468. @throws IOException]]>
  32469. </doc>
  32470. </method>
  32471. <method name="cloneWritableInto"
  32472. abstract="false" native="false" synchronized="false"
  32473. static="true" final="false" visibility="public"
  32474. deprecated="not deprecated">
  32475. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  32476. <param name="src" type="org.apache.hadoop.io.Writable"/>
  32477. <exception name="IOException" type="java.io.IOException"/>
  32478. </method>
  32479. <method name="getDeclaredFieldsIncludingInherited" return="java.util.List"
  32480. abstract="false" native="false" synchronized="false"
  32481. static="true" final="false" visibility="public"
  32482. deprecated="not deprecated">
  32483. <param name="clazz" type="java.lang.Class"/>
  32484. <doc>
  32485. <![CDATA[Gets all the declared fields of a class including fields declared in
  32486. superclasses.]]>
  32487. </doc>
  32488. </method>
  32489. <method name="getDeclaredMethodsIncludingInherited" return="java.util.List"
  32490. abstract="false" native="false" synchronized="false"
  32491. static="true" final="false" visibility="public"
  32492. deprecated="not deprecated">
  32493. <param name="clazz" type="java.lang.Class"/>
  32494. <doc>
  32495. <![CDATA[Gets all the declared methods of a class including methods declared in
  32496. superclasses.]]>
  32497. </doc>
  32498. </method>
  32499. <doc>
  32500. <![CDATA[General reflection utils]]>
  32501. </doc>
  32502. </class>
  32503. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  32504. <!-- start class org.apache.hadoop.util.Shell -->
  32505. <class name="Shell" extends="java.lang.Object"
  32506. abstract="true"
  32507. static="false" final="false" visibility="public"
  32508. deprecated="not deprecated">
  32509. <constructor name="Shell"
  32510. static="false" final="false" visibility="protected"
  32511. deprecated="not deprecated">
  32512. <doc>
  32513. <![CDATA[Create an instance with no minimum interval between runs; stderr is
  32514. not merged with stdout.]]>
  32515. </doc>
  32516. </constructor>
  32517. <constructor name="Shell" type="long"
  32518. static="false" final="false" visibility="protected"
  32519. deprecated="not deprecated">
  32520. <doc>
  32521. <![CDATA[Create an instance with a minimum interval between executions; stderr is
  32522. not merged with stdout.
  32523. @param interval interval in milliseconds between command executions.]]>
  32524. </doc>
  32525. </constructor>
  32526. <constructor name="Shell" type="long, boolean"
  32527. static="false" final="false" visibility="protected"
  32528. deprecated="not deprecated">
  32529. <doc>
  32530. <![CDATA[Create a shell instance which can be re-executed when the {@link #run()}
  32531. method is invoked with a given elapsed time between calls.
  32532. @param interval the minimum duration in milliseconds to wait before
  32533. re-executing the command. If set to 0, there is no minimum.
  32534. @param redirectErrorStream should the error stream be merged with
  32535. the normal output stream?]]>
  32536. </doc>
  32537. </constructor>
  32538. <method name="isJava7OrAbove" return="boolean"
  32539. abstract="false" native="false" synchronized="false"
  32540. static="true" final="false" visibility="public"
  32541. deprecated="This call isn't needed any more: please remove uses of it.">
  32542. <doc>
  32543. <![CDATA[query to see if system is Java 7 or later.
  32544. Now that Hadoop requires Java 7 or later, this always returns true.
  32545. @deprecated This call isn't needed any more: please remove uses of it.
  32546. @return true, always.]]>
  32547. </doc>
  32548. </method>
  32549. <method name="isJavaVersionAtLeast" return="boolean"
  32550. abstract="false" native="false" synchronized="false"
  32551. static="true" final="false" visibility="public"
  32552. deprecated="not deprecated">
  32553. <param name="version" type="int"/>
  32554. <doc>
  32555. <![CDATA[Query to see if major version of Java specification of the system
  32556. is equal or greater than the parameter.
  32557. @param version 8, 9, 10 etc.
  32558. @return comparison with system property, always true for 8]]>
  32559. </doc>
  32560. </method>
  32561. <method name="checkWindowsCommandLineLength"
  32562. abstract="false" native="false" synchronized="false"
  32563. static="true" final="false" visibility="public"
  32564. deprecated="not deprecated">
  32565. <param name="commands" type="java.lang.String[]"/>
  32566. <exception name="IOException" type="java.io.IOException"/>
  32567. <doc>
  32568. <![CDATA[Checks if a given command (String[]) fits in the Windows maximum command
  32569. line length Note that the input is expected to already include space
  32570. delimiters, no extra count will be added for delimiters.
  32571. @param commands command parts, including any space delimiters]]>
  32572. </doc>
  32573. </method>
  32574. <method name="getGroupsCommand" return="java.lang.String[]"
  32575. abstract="false" native="false" synchronized="false"
  32576. static="true" final="false" visibility="public"
  32577. deprecated="not deprecated">
  32578. <doc>
  32579. <![CDATA[a Unix command to get the current user's groups list.]]>
  32580. </doc>
  32581. </method>
  32582. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  32583. abstract="false" native="false" synchronized="false"
  32584. static="true" final="false" visibility="public"
  32585. deprecated="not deprecated">
  32586. <param name="user" type="java.lang.String"/>
  32587. <doc>
  32588. <![CDATA[A command to get a given user's groups list.
  32589. If the OS is not WINDOWS, the command will get the user's primary group
  32590. first and finally get the groups list which includes the primary group.
  32591. i.e. the user's primary group will be included twice.]]>
  32592. </doc>
  32593. </method>
  32594. <method name="getGroupsIDForUserCommand" return="java.lang.String[]"
  32595. abstract="false" native="false" synchronized="false"
  32596. static="true" final="false" visibility="public"
  32597. deprecated="not deprecated">
  32598. <param name="user" type="java.lang.String"/>
  32599. <doc>
  32600. <![CDATA[A command to get a given user's group id list.
  32601. The command will get the user's primary group
  32602. first and finally get the groups list which includes the primary group.
  32603. i.e. the user's primary group will be included twice.
  32604. This command does not support Windows and will only return group names.]]>
  32605. </doc>
  32606. </method>
  32607. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  32608. abstract="false" native="false" synchronized="false"
  32609. static="true" final="false" visibility="public"
  32610. deprecated="not deprecated">
  32611. <param name="netgroup" type="java.lang.String"/>
  32612. <doc>
  32613. <![CDATA[A command to get a given netgroup's user list.]]>
  32614. </doc>
  32615. </method>
  32616. <method name="getGetPermissionCommand" return="java.lang.String[]"
  32617. abstract="false" native="false" synchronized="false"
  32618. static="true" final="false" visibility="public"
  32619. deprecated="not deprecated">
  32620. <doc>
  32621. <![CDATA[Return a command to get permission information.]]>
  32622. </doc>
  32623. </method>
  32624. <method name="getSetPermissionCommand" return="java.lang.String[]"
  32625. abstract="false" native="false" synchronized="false"
  32626. static="true" final="false" visibility="public"
  32627. deprecated="not deprecated">
  32628. <param name="perm" type="java.lang.String"/>
  32629. <param name="recursive" type="boolean"/>
  32630. <doc>
  32631. <![CDATA[Return a command to set permission.]]>
  32632. </doc>
  32633. </method>
  32634. <method name="getSetPermissionCommand" return="java.lang.String[]"
  32635. abstract="false" native="false" synchronized="false"
  32636. static="true" final="false" visibility="public"
  32637. deprecated="not deprecated">
  32638. <param name="perm" type="java.lang.String"/>
  32639. <param name="recursive" type="boolean"/>
  32640. <param name="file" type="java.lang.String"/>
  32641. <doc>
  32642. <![CDATA[Return a command to set permission for specific file.
  32643. @param perm String permission to set
  32644. @param recursive boolean true to apply to all sub-directories recursively
  32645. @param file String file to set
  32646. @return String[] containing command and arguments]]>
  32647. </doc>
  32648. </method>
  32649. <method name="getSetOwnerCommand" return="java.lang.String[]"
  32650. abstract="false" native="false" synchronized="false"
  32651. static="true" final="false" visibility="public"
  32652. deprecated="not deprecated">
  32653. <param name="owner" type="java.lang.String"/>
  32654. <doc>
  32655. <![CDATA[Return a command to set owner.]]>
  32656. </doc>
  32657. </method>
  32658. <method name="getSymlinkCommand" return="java.lang.String[]"
  32659. abstract="false" native="false" synchronized="false"
  32660. static="true" final="false" visibility="public"
  32661. deprecated="not deprecated">
  32662. <param name="target" type="java.lang.String"/>
  32663. <param name="link" type="java.lang.String"/>
  32664. <doc>
  32665. <![CDATA[Return a command to create symbolic links.]]>
  32666. </doc>
  32667. </method>
  32668. <method name="getReadlinkCommand" return="java.lang.String[]"
  32669. abstract="false" native="false" synchronized="false"
  32670. static="true" final="false" visibility="public"
  32671. deprecated="not deprecated">
  32672. <param name="link" type="java.lang.String"/>
  32673. <doc>
  32674. <![CDATA[Return a command to read the target of the a symbolic link.]]>
  32675. </doc>
  32676. </method>
  32677. <method name="getCheckProcessIsAliveCommand" return="java.lang.String[]"
  32678. abstract="false" native="false" synchronized="false"
  32679. static="true" final="false" visibility="public"
  32680. deprecated="not deprecated">
  32681. <param name="pid" type="java.lang.String"/>
  32682. <doc>
  32683. <![CDATA[Return a command for determining if process with specified pid is alive.
  32684. @param pid process ID
  32685. @return a <code>kill -0</code> command or equivalent]]>
  32686. </doc>
  32687. </method>
  32688. <method name="getSignalKillCommand" return="java.lang.String[]"
  32689. abstract="false" native="false" synchronized="false"
  32690. static="true" final="false" visibility="public"
  32691. deprecated="not deprecated">
  32692. <param name="code" type="int"/>
  32693. <param name="pid" type="java.lang.String"/>
  32694. <doc>
  32695. <![CDATA[Return a command to send a signal to a given pid.]]>
  32696. </doc>
  32697. </method>
  32698. <method name="getEnvironmentVariableRegex" return="java.lang.String"
  32699. abstract="false" native="false" synchronized="false"
  32700. static="true" final="false" visibility="public"
  32701. deprecated="not deprecated">
  32702. <doc>
  32703. <![CDATA[Return a regular expression string that match environment variables.]]>
  32704. </doc>
  32705. </method>
  32706. <method name="appendScriptExtension" return="java.io.File"
  32707. abstract="false" native="false" synchronized="false"
  32708. static="true" final="false" visibility="public"
  32709. deprecated="not deprecated">
  32710. <param name="parent" type="java.io.File"/>
  32711. <param name="basename" type="java.lang.String"/>
  32712. <doc>
  32713. <![CDATA[Returns a File referencing a script with the given basename, inside the
  32714. given parent directory. The file extension is inferred by platform:
  32715. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  32716. @param parent File parent directory
  32717. @param basename String script file basename
  32718. @return File referencing the script in the directory]]>
  32719. </doc>
  32720. </method>
  32721. <method name="appendScriptExtension" return="java.lang.String"
  32722. abstract="false" native="false" synchronized="false"
  32723. static="true" final="false" visibility="public"
  32724. deprecated="not deprecated">
  32725. <param name="basename" type="java.lang.String"/>
  32726. <doc>
  32727. <![CDATA[Returns a script file name with the given basename.
  32728. The file extension is inferred by platform:
  32729. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  32730. @param basename String script file basename
  32731. @return String script file name]]>
  32732. </doc>
  32733. </method>
  32734. <method name="getRunScriptCommand" return="java.lang.String[]"
  32735. abstract="false" native="false" synchronized="false"
  32736. static="true" final="false" visibility="public"
  32737. deprecated="not deprecated">
  32738. <param name="script" type="java.io.File"/>
  32739. <doc>
  32740. <![CDATA[Returns a command to run the given script. The script interpreter is
  32741. inferred by platform: cmd on Windows or bash otherwise.
  32742. @param script File script to run
  32743. @return String[] command to run the script]]>
  32744. </doc>
  32745. </method>
  32746. <method name="getHadoopHome" return="java.lang.String"
  32747. abstract="false" native="false" synchronized="false"
  32748. static="true" final="false" visibility="public"
  32749. deprecated="not deprecated">
  32750. <exception name="IOException" type="java.io.IOException"/>
  32751. <doc>
  32752. <![CDATA[Get the Hadoop home directory. Raises an exception if not found
  32753. @return the home dir
  32754. @throws IOException if the home directory cannot be located.]]>
  32755. </doc>
  32756. </method>
  32757. <method name="getQualifiedBin" return="java.io.File"
  32758. abstract="false" native="false" synchronized="false"
  32759. static="true" final="false" visibility="public"
  32760. deprecated="not deprecated">
  32761. <param name="executable" type="java.lang.String"/>
  32762. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  32763. <doc>
  32764. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  32765. bin location. This is primarily useful for disambiguating call-outs
  32766. to executable sub-components of Hadoop to avoid clashes with other
  32767. executables that may be in the path. Caveat: this call doesn't
  32768. just format the path to the bin directory. It also checks for file
  32769. existence of the composed path. The output of this call should be
  32770. cached by callers.
  32771. @param executable executable
  32772. @return executable file reference
  32773. @throws FileNotFoundException if the path does not exist]]>
  32774. </doc>
  32775. </method>
  32776. <method name="getQualifiedBinPath" return="java.lang.String"
  32777. abstract="false" native="false" synchronized="false"
  32778. static="true" final="false" visibility="public"
  32779. deprecated="not deprecated">
  32780. <param name="executable" type="java.lang.String"/>
  32781. <exception name="IOException" type="java.io.IOException"/>
  32782. <doc>
  32783. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  32784. bin location. This is primarily useful for disambiguating call-outs
  32785. to executable sub-components of Hadoop to avoid clashes with other
  32786. executables that may be in the path. Caveat: this call doesn't
  32787. just format the path to the bin directory. It also checks for file
  32788. existence of the composed path. The output of this call should be
  32789. cached by callers.
  32790. @param executable executable
  32791. @return executable file reference
  32792. @throws FileNotFoundException if the path does not exist
  32793. @throws IOException on path canonicalization failures]]>
  32794. </doc>
  32795. </method>
  32796. <method name="hasWinutilsPath" return="boolean"
  32797. abstract="false" native="false" synchronized="false"
  32798. static="true" final="false" visibility="public"
  32799. deprecated="not deprecated">
  32800. <doc>
  32801. <![CDATA[Predicate to indicate whether or not the path to winutils is known.
  32802. If true, then {@link #WINUTILS} is non-null, and both
  32803. {@link #getWinUtilsPath()} and {@link #getWinUtilsFile()}
  32804. will successfully return this value. Always false on non-windows systems.
  32805. @return true if there is a valid path to the binary]]>
  32806. </doc>
  32807. </method>
  32808. <method name="getWinUtilsPath" return="java.lang.String"
  32809. abstract="false" native="false" synchronized="false"
  32810. static="true" final="false" visibility="public"
  32811. deprecated="not deprecated">
  32812. <doc>
  32813. <![CDATA[Locate the winutils binary, or fail with a meaningful
  32814. exception and stack trace as an RTE.
  32815. This method is for use in methods which don't explicitly throw
  32816. an <code>IOException</code>.
  32817. @return the path to {@link #WINUTILS_EXE}
  32818. @throws RuntimeException if the path is not resolvable]]>
  32819. </doc>
  32820. </method>
  32821. <method name="getWinUtilsFile" return="java.io.File"
  32822. abstract="false" native="false" synchronized="false"
  32823. static="true" final="false" visibility="public"
  32824. deprecated="not deprecated">
  32825. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  32826. <doc>
  32827. <![CDATA[Get a file reference to winutils.
  32828. Always raises an exception if there isn't one
  32829. @return the file instance referring to the winutils bin.
  32830. @throws FileNotFoundException on any failure to locate that file.]]>
  32831. </doc>
  32832. </method>
  32833. <method name="checkIsBashSupported" return="boolean"
  32834. abstract="false" native="false" synchronized="false"
  32835. static="true" final="false" visibility="public"
  32836. deprecated="not deprecated">
  32837. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  32838. </method>
  32839. <method name="setEnvironment"
  32840. abstract="false" native="false" synchronized="false"
  32841. static="false" final="false" visibility="protected"
  32842. deprecated="not deprecated">
  32843. <param name="env" type="java.util.Map"/>
  32844. <doc>
  32845. <![CDATA[Set the environment for the command.
  32846. @param env Mapping of environment variables]]>
  32847. </doc>
  32848. </method>
  32849. <method name="setWorkingDirectory"
  32850. abstract="false" native="false" synchronized="false"
  32851. static="false" final="false" visibility="protected"
  32852. deprecated="not deprecated">
  32853. <param name="dir" type="java.io.File"/>
  32854. <doc>
  32855. <![CDATA[Set the working directory.
  32856. @param dir The directory where the command will be executed]]>
  32857. </doc>
  32858. </method>
  32859. <method name="run"
  32860. abstract="false" native="false" synchronized="false"
  32861. static="false" final="false" visibility="protected"
  32862. deprecated="not deprecated">
  32863. <exception name="IOException" type="java.io.IOException"/>
  32864. <doc>
  32865. <![CDATA[Check to see if a command needs to be executed and execute if needed.]]>
  32866. </doc>
  32867. </method>
  32868. <method name="getExecString" return="java.lang.String[]"
  32869. abstract="true" native="false" synchronized="false"
  32870. static="false" final="false" visibility="protected"
  32871. deprecated="not deprecated">
  32872. <doc>
  32873. <![CDATA[return an array containing the command name and its parameters.]]>
  32874. </doc>
  32875. </method>
  32876. <method name="parseExecResult"
  32877. abstract="true" native="false" synchronized="false"
  32878. static="false" final="false" visibility="protected"
  32879. deprecated="not deprecated">
  32880. <param name="lines" type="java.io.BufferedReader"/>
  32881. <exception name="IOException" type="java.io.IOException"/>
  32882. <doc>
  32883. <![CDATA[Parse the execution result]]>
  32884. </doc>
  32885. </method>
  32886. <method name="getEnvironment" return="java.lang.String"
  32887. abstract="false" native="false" synchronized="false"
  32888. static="false" final="false" visibility="public"
  32889. deprecated="not deprecated">
  32890. <param name="env" type="java.lang.String"/>
  32891. <doc>
  32892. <![CDATA[Get an environment variable.
  32893. @param env the environment var
  32894. @return the value or null if it was unset.]]>
  32895. </doc>
  32896. </method>
  32897. <method name="getProcess" return="java.lang.Process"
  32898. abstract="false" native="false" synchronized="false"
  32899. static="false" final="false" visibility="public"
  32900. deprecated="not deprecated">
  32901. <doc>
  32902. <![CDATA[get the current sub-process executing the given command.
  32903. @return process executing the command]]>
  32904. </doc>
  32905. </method>
  32906. <method name="getExitCode" return="int"
  32907. abstract="false" native="false" synchronized="false"
  32908. static="false" final="false" visibility="public"
  32909. deprecated="not deprecated">
  32910. <doc>
  32911. <![CDATA[get the exit code.
  32912. @return the exit code of the process]]>
  32913. </doc>
  32914. </method>
  32915. <method name="getWaitingThread" return="java.lang.Thread"
  32916. abstract="false" native="false" synchronized="false"
  32917. static="false" final="false" visibility="public"
  32918. deprecated="not deprecated">
  32919. <doc>
  32920. <![CDATA[get the thread that is waiting on this instance of <code>Shell</code>.
  32921. @return the thread that ran runCommand() that spawned this shell
  32922. or null if no thread is waiting for this shell to complete]]>
  32923. </doc>
  32924. </method>
  32925. <method name="isTimedOut" return="boolean"
  32926. abstract="false" native="false" synchronized="false"
  32927. static="false" final="false" visibility="public"
  32928. deprecated="not deprecated">
  32929. <doc>
  32930. <![CDATA[To check if the passed script to shell command executor timed out or
  32931. not.
  32932. @return if the script timed out.]]>
  32933. </doc>
  32934. </method>
  32935. <method name="execCommand" return="java.lang.String"
  32936. abstract="false" native="false" synchronized="false"
  32937. static="true" final="false" visibility="public"
  32938. deprecated="not deprecated">
  32939. <param name="cmd" type="java.lang.String[]"/>
  32940. <exception name="IOException" type="java.io.IOException"/>
  32941. <doc>
  32942. <![CDATA[Static method to execute a shell command.
  32943. Covers most of the simple cases without requiring the user to implement
  32944. the <code>Shell</code> interface.
  32945. @param cmd shell command to execute.
  32946. @return the output of the executed command.]]>
  32947. </doc>
  32948. </method>
  32949. <method name="execCommand" return="java.lang.String"
  32950. abstract="false" native="false" synchronized="false"
  32951. static="true" final="false" visibility="public"
  32952. deprecated="not deprecated">
  32953. <param name="env" type="java.util.Map"/>
  32954. <param name="cmd" type="java.lang.String[]"/>
  32955. <param name="timeout" type="long"/>
  32956. <exception name="IOException" type="java.io.IOException"/>
  32957. <doc>
  32958. <![CDATA[Static method to execute a shell command.
  32959. Covers most of the simple cases without requiring the user to implement
  32960. the <code>Shell</code> interface.
  32961. @param env the map of environment key=value
  32962. @param cmd shell command to execute.
  32963. @param timeout time in milliseconds after which script should be marked timeout
  32964. @return the output of the executed command.
  32965. @throws IOException on any problem.]]>
  32966. </doc>
  32967. </method>
  32968. <method name="execCommand" return="java.lang.String"
  32969. abstract="false" native="false" synchronized="false"
  32970. static="true" final="false" visibility="public"
  32971. deprecated="not deprecated">
  32972. <param name="env" type="java.util.Map"/>
  32973. <param name="cmd" type="java.lang.String[]"/>
  32974. <exception name="IOException" type="java.io.IOException"/>
  32975. <doc>
  32976. <![CDATA[Static method to execute a shell command.
  32977. Covers most of the simple cases without requiring the user to implement
  32978. the <code>Shell</code> interface.
  32979. @param env the map of environment key=value
  32980. @param cmd shell command to execute.
  32981. @return the output of the executed command.
  32982. @throws IOException on any problem.]]>
  32983. </doc>
  32984. </method>
  32985. <method name="destroyAllShellProcesses"
  32986. abstract="false" native="false" synchronized="false"
  32987. static="true" final="false" visibility="public"
  32988. deprecated="not deprecated">
  32989. <doc>
  32990. <![CDATA[Static method to destroy all running <code>Shell</code> processes.
  32991. Iterates through a map of all currently running <code>Shell</code>
  32992. processes and destroys them one by one. This method is thread safe]]>
  32993. </doc>
  32994. </method>
  32995. <method name="getAllShells" return="java.util.Set"
  32996. abstract="false" native="false" synchronized="false"
  32997. static="true" final="false" visibility="public"
  32998. deprecated="not deprecated">
  32999. <doc>
  33000. <![CDATA[Static method to return a Set of all <code>Shell</code> objects.]]>
  33001. </doc>
  33002. </method>
  33003. <method name="getMemlockLimit" return="java.lang.Long"
  33004. abstract="false" native="false" synchronized="false"
  33005. static="true" final="false" visibility="public"
  33006. deprecated="not deprecated">
  33007. <param name="ulimit" type="java.lang.Long"/>
  33008. <doc>
  33009. <![CDATA[Static method to return the memory lock limit for datanode.
  33010. @param ulimit max value at which memory locked should be capped.
  33011. @return long value specifying the memory lock limit.]]>
  33012. </doc>
  33013. </method>
  33014. <field name="LOG" type="org.slf4j.Logger"
  33015. transient="false" volatile="false"
  33016. static="true" final="true" visibility="public"
  33017. deprecated="not deprecated">
  33018. </field>
  33019. <field name="SYSPROP_HADOOP_HOME_DIR" type="java.lang.String"
  33020. transient="false" volatile="false"
  33021. static="true" final="true" visibility="public"
  33022. deprecated="not deprecated">
  33023. <doc>
  33024. <![CDATA[System property for the Hadoop home directory: {@value}.]]>
  33025. </doc>
  33026. </field>
  33027. <field name="ENV_HADOOP_HOME" type="java.lang.String"
  33028. transient="false" volatile="false"
  33029. static="true" final="true" visibility="public"
  33030. deprecated="not deprecated">
  33031. <doc>
  33032. <![CDATA[Environment variable for Hadoop's home dir: {@value}.]]>
  33033. </doc>
  33034. </field>
  33035. <field name="WINDOWS_MAX_SHELL_LENGTH" type="int"
  33036. transient="false" volatile="false"
  33037. static="true" final="true" visibility="public"
  33038. deprecated="not deprecated">
  33039. <doc>
  33040. <![CDATA[Maximum command line length in Windows
  33041. KB830473 documents this as 8191]]>
  33042. </doc>
  33043. </field>
  33044. <field name="WINDOWS_MAX_SHELL_LENGHT" type="int"
  33045. transient="false" volatile="false"
  33046. static="true" final="true" visibility="public"
  33047. deprecated="use the correctly spelled constant.">
  33048. <doc>
  33049. <![CDATA[mis-spelling of {@link #WINDOWS_MAX_SHELL_LENGTH}.
  33050. @deprecated use the correctly spelled constant.]]>
  33051. </doc>
  33052. </field>
  33053. <field name="USER_NAME_COMMAND" type="java.lang.String"
  33054. transient="false" volatile="false"
  33055. static="true" final="true" visibility="public"
  33056. deprecated="not deprecated">
  33057. <doc>
  33058. <![CDATA[a Unix command to get the current user's name: {@value}.]]>
  33059. </doc>
  33060. </field>
  33061. <field name="WindowsProcessLaunchLock" type="java.lang.Object"
  33062. transient="false" volatile="false"
  33063. static="true" final="true" visibility="public"
  33064. deprecated="not deprecated">
  33065. <doc>
  33066. <![CDATA[Windows <code>CreateProcess</code> synchronization object.]]>
  33067. </doc>
  33068. </field>
  33069. <field name="osType" type="org.apache.hadoop.util.Shell.OSType"
  33070. transient="false" volatile="false"
  33071. static="true" final="true" visibility="public"
  33072. deprecated="not deprecated">
  33073. <doc>
  33074. <![CDATA[Get the type of the operating system, as determined from parsing
  33075. the <code>os.name</code> property.]]>
  33076. </doc>
  33077. </field>
  33078. <field name="WINDOWS" type="boolean"
  33079. transient="false" volatile="false"
  33080. static="true" final="true" visibility="public"
  33081. deprecated="not deprecated">
  33082. </field>
  33083. <field name="SOLARIS" type="boolean"
  33084. transient="false" volatile="false"
  33085. static="true" final="true" visibility="public"
  33086. deprecated="not deprecated">
  33087. </field>
  33088. <field name="MAC" type="boolean"
  33089. transient="false" volatile="false"
  33090. static="true" final="true" visibility="public"
  33091. deprecated="not deprecated">
  33092. </field>
  33093. <field name="FREEBSD" type="boolean"
  33094. transient="false" volatile="false"
  33095. static="true" final="true" visibility="public"
  33096. deprecated="not deprecated">
  33097. </field>
  33098. <field name="LINUX" type="boolean"
  33099. transient="false" volatile="false"
  33100. static="true" final="true" visibility="public"
  33101. deprecated="not deprecated">
  33102. </field>
  33103. <field name="OTHER" type="boolean"
  33104. transient="false" volatile="false"
  33105. static="true" final="true" visibility="public"
  33106. deprecated="not deprecated">
  33107. </field>
  33108. <field name="PPC_64" type="boolean"
  33109. transient="false" volatile="false"
  33110. static="true" final="true" visibility="public"
  33111. deprecated="not deprecated">
  33112. </field>
  33113. <field name="ENV_NAME_REGEX" type="java.lang.String"
  33114. transient="false" volatile="false"
  33115. static="true" final="true" visibility="public"
  33116. deprecated="not deprecated">
  33117. <doc>
  33118. <![CDATA[Regular expression for environment variables: {@value}.]]>
  33119. </doc>
  33120. </field>
  33121. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  33122. transient="false" volatile="false"
  33123. static="true" final="true" visibility="public"
  33124. deprecated="not deprecated">
  33125. <doc>
  33126. <![CDATA[a Unix command to set permission: {@value}.]]>
  33127. </doc>
  33128. </field>
  33129. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  33130. transient="false" volatile="false"
  33131. static="true" final="true" visibility="public"
  33132. deprecated="not deprecated">
  33133. <doc>
  33134. <![CDATA[a Unix command to set owner: {@value}.]]>
  33135. </doc>
  33136. </field>
  33137. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  33138. transient="false" volatile="false"
  33139. static="true" final="true" visibility="public"
  33140. deprecated="not deprecated">
  33141. <doc>
  33142. <![CDATA[a Unix command to set the change user's groups list: {@value}.]]>
  33143. </doc>
  33144. </field>
  33145. <field name="LINK_COMMAND" type="java.lang.String"
  33146. transient="false" volatile="false"
  33147. static="true" final="true" visibility="public"
  33148. deprecated="not deprecated">
  33149. <doc>
  33150. <![CDATA[a Unix command to create a link: {@value}.]]>
  33151. </doc>
  33152. </field>
  33153. <field name="READ_LINK_COMMAND" type="java.lang.String"
  33154. transient="false" volatile="false"
  33155. static="true" final="true" visibility="public"
  33156. deprecated="not deprecated">
  33157. <doc>
  33158. <![CDATA[a Unix command to get a link target: {@value}.]]>
  33159. </doc>
  33160. </field>
  33161. <field name="timeOutInterval" type="long"
  33162. transient="false" volatile="false"
  33163. static="false" final="false" visibility="protected"
  33164. deprecated="not deprecated">
  33165. <doc>
  33166. <![CDATA[Time after which the executing script would be timedout.]]>
  33167. </doc>
  33168. </field>
  33169. <field name="inheritParentEnv" type="boolean"
  33170. transient="false" volatile="false"
  33171. static="false" final="false" visibility="protected"
  33172. deprecated="not deprecated">
  33173. <doc>
  33174. <![CDATA[Indicates if the parent env vars should be inherited or not]]>
  33175. </doc>
  33176. </field>
  33177. <field name="WINUTILS" type="java.lang.String"
  33178. transient="false" volatile="false"
  33179. static="true" final="true" visibility="public"
  33180. deprecated="use one of the exception-raising getter methods,
  33181. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}">
  33182. <doc>
  33183. <![CDATA[Location of winutils as a string; null if not found.
  33184. <p>
  33185. <i>Important: caller must check for this value being null</i>.
  33186. The lack of such checks has led to many support issues being raised.
  33187. <p>
  33188. @deprecated use one of the exception-raising getter methods,
  33189. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}]]>
  33190. </doc>
  33191. </field>
  33192. <field name="isSetsidAvailable" type="boolean"
  33193. transient="false" volatile="false"
  33194. static="true" final="true" visibility="public"
  33195. deprecated="not deprecated">
  33196. <doc>
  33197. <![CDATA[Flag which is true if setsid exists.]]>
  33198. </doc>
  33199. </field>
  33200. <field name="TOKEN_SEPARATOR_REGEX" type="java.lang.String"
  33201. transient="false" volatile="false"
  33202. static="true" final="true" visibility="public"
  33203. deprecated="not deprecated">
  33204. <doc>
  33205. <![CDATA[Token separator regex used to parse Shell tool outputs.]]>
  33206. </doc>
  33207. </field>
  33208. <doc>
  33209. <![CDATA[A base class for running a Shell command.
  33210. <code>Shell</code> can be used to run shell commands like <code>du</code> or
  33211. <code>df</code>. It also offers facilities to gate commands by
  33212. time-intervals.]]>
  33213. </doc>
  33214. </class>
  33215. <!-- end class org.apache.hadoop.util.Shell -->
  33216. <!-- start class org.apache.hadoop.util.ShutdownHookManager -->
  33217. <class name="ShutdownHookManager" extends="java.lang.Object"
  33218. abstract="false"
  33219. static="false" final="true" visibility="public"
  33220. deprecated="not deprecated">
  33221. <method name="get" return="org.apache.hadoop.util.ShutdownHookManager"
  33222. abstract="false" native="false" synchronized="false"
  33223. static="true" final="false" visibility="public"
  33224. deprecated="not deprecated">
  33225. <doc>
  33226. <![CDATA[Return <code>ShutdownHookManager</code> singleton.
  33227. @return <code>ShutdownHookManager</code> singleton.]]>
  33228. </doc>
  33229. </method>
  33230. <method name="addShutdownHook"
  33231. abstract="false" native="false" synchronized="false"
  33232. static="false" final="false" visibility="public"
  33233. deprecated="not deprecated">
  33234. <param name="shutdownHook" type="java.lang.Runnable"/>
  33235. <param name="priority" type="int"/>
  33236. <doc>
  33237. <![CDATA[Adds a shutdownHook with a priority, the higher the priority
  33238. the earlier will run. ShutdownHooks with same priority run
  33239. in a non-deterministic order.
  33240. @param shutdownHook shutdownHook <code>Runnable</code>
  33241. @param priority priority of the shutdownHook.]]>
  33242. </doc>
  33243. </method>
  33244. <method name="addShutdownHook"
  33245. abstract="false" native="false" synchronized="false"
  33246. static="false" final="false" visibility="public"
  33247. deprecated="not deprecated">
  33248. <param name="shutdownHook" type="java.lang.Runnable"/>
  33249. <param name="priority" type="int"/>
  33250. <param name="timeout" type="long"/>
  33251. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  33252. <doc>
  33253. <![CDATA[Adds a shutdownHook with a priority and timeout the higher the priority
  33254. the earlier will run. ShutdownHooks with same priority run
  33255. in a non-deterministic order. The shutdown hook will be terminated if it
  33256. has not been finished in the specified period of time.
  33257. @param shutdownHook shutdownHook <code>Runnable</code>
  33258. @param priority priority of the shutdownHook
  33259. @param timeout timeout of the shutdownHook
  33260. @param unit unit of the timeout <code>TimeUnit</code>]]>
  33261. </doc>
  33262. </method>
  33263. <method name="removeShutdownHook" return="boolean"
  33264. abstract="false" native="false" synchronized="false"
  33265. static="false" final="false" visibility="public"
  33266. deprecated="not deprecated">
  33267. <param name="shutdownHook" type="java.lang.Runnable"/>
  33268. <doc>
  33269. <![CDATA[Removes a shutdownHook.
  33270. @param shutdownHook shutdownHook to remove.
  33271. @return TRUE if the shutdownHook was registered and removed,
  33272. FALSE otherwise.]]>
  33273. </doc>
  33274. </method>
  33275. <method name="hasShutdownHook" return="boolean"
  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. <doc>
  33281. <![CDATA[Indicates if a shutdownHook is registered or not.
  33282. @param shutdownHook shutdownHook to check if registered.
  33283. @return TRUE/FALSE depending if the shutdownHook is is registered.]]>
  33284. </doc>
  33285. </method>
  33286. <method name="isShutdownInProgress" return="boolean"
  33287. abstract="false" native="false" synchronized="false"
  33288. static="false" final="false" visibility="public"
  33289. deprecated="not deprecated">
  33290. <doc>
  33291. <![CDATA[Indicates if shutdown is in progress or not.
  33292. @return TRUE if the shutdown is in progress, otherwise FALSE.]]>
  33293. </doc>
  33294. </method>
  33295. <method name="clearShutdownHooks"
  33296. abstract="false" native="false" synchronized="false"
  33297. static="false" final="false" visibility="public"
  33298. deprecated="not deprecated">
  33299. <doc>
  33300. <![CDATA[clear all registered shutdownHooks.]]>
  33301. </doc>
  33302. </method>
  33303. <field name="TIMEOUT_MINIMUM" type="long"
  33304. transient="false" volatile="false"
  33305. static="true" final="true" visibility="public"
  33306. deprecated="not deprecated">
  33307. <doc>
  33308. <![CDATA[Minimum shutdown timeout: {@value} second(s).]]>
  33309. </doc>
  33310. </field>
  33311. <field name="TIME_UNIT_DEFAULT" type="java.util.concurrent.TimeUnit"
  33312. transient="false" volatile="false"
  33313. static="true" final="true" visibility="public"
  33314. deprecated="not deprecated">
  33315. <doc>
  33316. <![CDATA[The default time unit used: seconds.]]>
  33317. </doc>
  33318. </field>
  33319. <doc>
  33320. <![CDATA[The <code>ShutdownHookManager</code> enables running shutdownHook
  33321. in a deterministic order, higher priority first.
  33322. <p/>
  33323. The JVM runs ShutdownHooks in a non-deterministic order or in parallel.
  33324. This class registers a single JVM shutdownHook and run all the
  33325. shutdownHooks registered to it (to this class) in order based on their
  33326. priority.
  33327. Unless a hook was registered with a shutdown explicitly set through
  33328. {@link #addShutdownHook(Runnable, int, long, TimeUnit)},
  33329. the shutdown time allocated to it is set by the configuration option
  33330. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT} in
  33331. {@code core-site.xml}, with a default value of
  33332. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT_DEFAULT}
  33333. seconds.]]>
  33334. </doc>
  33335. </class>
  33336. <!-- end class org.apache.hadoop.util.ShutdownHookManager -->
  33337. <!-- start class org.apache.hadoop.util.StringInterner -->
  33338. <class name="StringInterner" extends="java.lang.Object"
  33339. abstract="false"
  33340. static="false" final="false" visibility="public"
  33341. deprecated="not deprecated">
  33342. <constructor name="StringInterner"
  33343. static="false" final="false" visibility="public"
  33344. deprecated="not deprecated">
  33345. </constructor>
  33346. <method name="strongIntern" return="java.lang.String"
  33347. abstract="false" native="false" synchronized="false"
  33348. static="true" final="false" visibility="public"
  33349. deprecated="not deprecated">
  33350. <param name="sample" type="java.lang.String"/>
  33351. <doc>
  33352. <![CDATA[Interns and returns a reference to the representative instance
  33353. for any of a collection of string instances that are equal to each other.
  33354. Retains strong reference to the instance,
  33355. thus preventing it from being garbage-collected.
  33356. @param sample string instance to be interned
  33357. @return strong reference to interned string instance]]>
  33358. </doc>
  33359. </method>
  33360. <method name="weakIntern" return="java.lang.String"
  33361. abstract="false" native="false" synchronized="false"
  33362. static="true" final="false" visibility="public"
  33363. deprecated="not deprecated">
  33364. <param name="sample" type="java.lang.String"/>
  33365. <doc>
  33366. <![CDATA[Interns and returns a reference to the representative instance
  33367. for any of a collection of string instances that are equal to each other.
  33368. Retains weak reference to the instance,
  33369. and so does not prevent it from being garbage-collected.
  33370. @param sample string instance to be interned
  33371. @return weak reference to interned string instance]]>
  33372. </doc>
  33373. </method>
  33374. <method name="internStringsInArray" return="java.lang.String[]"
  33375. abstract="false" native="false" synchronized="false"
  33376. static="true" final="false" visibility="public"
  33377. deprecated="not deprecated">
  33378. <param name="strings" type="java.lang.String[]"/>
  33379. <doc>
  33380. <![CDATA[Interns all the strings in the given array in place,
  33381. returning the same array.]]>
  33382. </doc>
  33383. </method>
  33384. <doc>
  33385. <![CDATA[Provides string interning utility methods. For weak interning,
  33386. we use the standard String.intern() call, that performs very well
  33387. (no problems with PermGen overflowing, etc.) starting from JDK 7.]]>
  33388. </doc>
  33389. </class>
  33390. <!-- end class org.apache.hadoop.util.StringInterner -->
  33391. <!-- start class org.apache.hadoop.util.SysInfo -->
  33392. <class name="SysInfo" extends="java.lang.Object"
  33393. abstract="true"
  33394. static="false" final="false" visibility="public"
  33395. deprecated="not deprecated">
  33396. <constructor name="SysInfo"
  33397. static="false" final="false" visibility="public"
  33398. deprecated="not deprecated">
  33399. </constructor>
  33400. <method name="newInstance" return="org.apache.hadoop.util.SysInfo"
  33401. abstract="false" native="false" synchronized="false"
  33402. static="true" final="false" visibility="public"
  33403. deprecated="not deprecated">
  33404. <doc>
  33405. <![CDATA[Return default OS instance.
  33406. @throws UnsupportedOperationException If cannot determine OS.
  33407. @return Default instance for the detected OS.]]>
  33408. </doc>
  33409. </method>
  33410. <method name="getVirtualMemorySize" return="long"
  33411. abstract="true" native="false" synchronized="false"
  33412. static="false" final="false" visibility="public"
  33413. deprecated="not deprecated">
  33414. <doc>
  33415. <![CDATA[Obtain the total size of the virtual memory present in the system.
  33416. @return virtual memory size in bytes.]]>
  33417. </doc>
  33418. </method>
  33419. <method name="getPhysicalMemorySize" return="long"
  33420. abstract="true" native="false" synchronized="false"
  33421. static="false" final="false" visibility="public"
  33422. deprecated="not deprecated">
  33423. <doc>
  33424. <![CDATA[Obtain the total size of the physical memory present in the system.
  33425. @return physical memory size bytes.]]>
  33426. </doc>
  33427. </method>
  33428. <method name="getAvailableVirtualMemorySize" return="long"
  33429. abstract="true" native="false" synchronized="false"
  33430. static="false" final="false" visibility="public"
  33431. deprecated="not deprecated">
  33432. <doc>
  33433. <![CDATA[Obtain the total size of the available virtual memory present
  33434. in the system.
  33435. @return available virtual memory size in bytes.]]>
  33436. </doc>
  33437. </method>
  33438. <method name="getAvailablePhysicalMemorySize" return="long"
  33439. abstract="true" native="false" synchronized="false"
  33440. static="false" final="false" visibility="public"
  33441. deprecated="not deprecated">
  33442. <doc>
  33443. <![CDATA[Obtain the total size of the available physical memory present
  33444. in the system.
  33445. @return available physical memory size bytes.]]>
  33446. </doc>
  33447. </method>
  33448. <method name="getNumProcessors" return="int"
  33449. abstract="true" native="false" synchronized="false"
  33450. static="false" final="false" visibility="public"
  33451. deprecated="not deprecated">
  33452. <doc>
  33453. <![CDATA[Obtain the total number of logical processors present on the system.
  33454. @return number of logical processors]]>
  33455. </doc>
  33456. </method>
  33457. <method name="getNumCores" return="int"
  33458. abstract="true" native="false" synchronized="false"
  33459. static="false" final="false" visibility="public"
  33460. deprecated="not deprecated">
  33461. <doc>
  33462. <![CDATA[Obtain total number of physical cores present on the system.
  33463. @return number of physical cores]]>
  33464. </doc>
  33465. </method>
  33466. <method name="getCpuFrequency" return="long"
  33467. abstract="true" native="false" synchronized="false"
  33468. static="false" final="false" visibility="public"
  33469. deprecated="not deprecated">
  33470. <doc>
  33471. <![CDATA[Obtain the CPU frequency of on the system.
  33472. @return CPU frequency in kHz]]>
  33473. </doc>
  33474. </method>
  33475. <method name="getCumulativeCpuTime" return="long"
  33476. abstract="true" native="false" synchronized="false"
  33477. static="false" final="false" visibility="public"
  33478. deprecated="not deprecated">
  33479. <doc>
  33480. <![CDATA[Obtain the cumulative CPU time since the system is on.
  33481. @return cumulative CPU time in milliseconds]]>
  33482. </doc>
  33483. </method>
  33484. <method name="getCpuUsagePercentage" return="float"
  33485. abstract="true" native="false" synchronized="false"
  33486. static="false" final="false" visibility="public"
  33487. deprecated="not deprecated">
  33488. <doc>
  33489. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  33490. @return CPU usage as a percentage (from 0 to 100) of available cycles.]]>
  33491. </doc>
  33492. </method>
  33493. <method name="getNumVCoresUsed" return="float"
  33494. abstract="true" native="false" synchronized="false"
  33495. static="false" final="false" visibility="public"
  33496. deprecated="not deprecated">
  33497. <doc>
  33498. <![CDATA[Obtain the number of VCores used. Return -1 if it is unavailable
  33499. @return Number of VCores used a percentage (from 0 to #VCores).]]>
  33500. </doc>
  33501. </method>
  33502. <method name="getNetworkBytesRead" return="long"
  33503. abstract="true" native="false" synchronized="false"
  33504. static="false" final="false" visibility="public"
  33505. deprecated="not deprecated">
  33506. <doc>
  33507. <![CDATA[Obtain the aggregated number of bytes read over the network.
  33508. @return total number of bytes read.]]>
  33509. </doc>
  33510. </method>
  33511. <method name="getNetworkBytesWritten" 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 aggregated number of bytes written to the network.
  33517. @return total number of bytes written.]]>
  33518. </doc>
  33519. </method>
  33520. <method name="getStorageBytesRead" 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 aggregated number of bytes read from disks.
  33526. @return total number of bytes read.]]>
  33527. </doc>
  33528. </method>
  33529. <method name="getStorageBytesWritten" return="long"
  33530. abstract="true" native="false" synchronized="false"
  33531. static="false" final="false" visibility="public"
  33532. deprecated="not deprecated">
  33533. <doc>
  33534. <![CDATA[Obtain the aggregated number of bytes written to disks.
  33535. @return total number of bytes written.]]>
  33536. </doc>
  33537. </method>
  33538. <doc>
  33539. <![CDATA[Plugin to calculate resource information on the system.]]>
  33540. </doc>
  33541. </class>
  33542. <!-- end class org.apache.hadoop.util.SysInfo -->
  33543. <!-- start interface org.apache.hadoop.util.Tool -->
  33544. <interface name="Tool" abstract="true"
  33545. static="false" final="false" visibility="public"
  33546. deprecated="not deprecated">
  33547. <implements name="org.apache.hadoop.conf.Configurable"/>
  33548. <method name="run" return="int"
  33549. abstract="true" native="false" synchronized="false"
  33550. static="false" final="false" visibility="public"
  33551. deprecated="not deprecated">
  33552. <param name="args" type="java.lang.String[]"/>
  33553. <exception name="Exception" type="java.lang.Exception"/>
  33554. <doc>
  33555. <![CDATA[Execute the command with the given arguments.
  33556. @param args command specific arguments.
  33557. @return exit code.
  33558. @throws Exception]]>
  33559. </doc>
  33560. </method>
  33561. <doc>
  33562. <![CDATA[A tool interface that supports handling of generic command-line options.
  33563. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  33564. The tool/application should delegate the handling of
  33565. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  33566. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  33567. and only handle its custom arguments.</p>
  33568. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  33569. <p><blockquote><pre>
  33570. public class MyApp extends Configured implements Tool {
  33571. public int run(String[] args) throws Exception {
  33572. // <code>Configuration</code> processed by <code>ToolRunner</code>
  33573. Configuration conf = getConf();
  33574. // Create a JobConf using the processed <code>conf</code>
  33575. JobConf job = new JobConf(conf, MyApp.class);
  33576. // Process custom command-line options
  33577. Path in = new Path(args[1]);
  33578. Path out = new Path(args[2]);
  33579. // Specify various job-specific parameters
  33580. job.setJobName("my-app");
  33581. job.setInputPath(in);
  33582. job.setOutputPath(out);
  33583. job.setMapperClass(MyMapper.class);
  33584. job.setReducerClass(MyReducer.class);
  33585. // Submit the job, then poll for progress until the job is complete
  33586. RunningJob runningJob = JobClient.runJob(job);
  33587. if (runningJob.isSuccessful()) {
  33588. return 0;
  33589. } else {
  33590. return 1;
  33591. }
  33592. }
  33593. public static void main(String[] args) throws Exception {
  33594. // Let <code>ToolRunner</code> handle generic command-line options
  33595. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  33596. System.exit(res);
  33597. }
  33598. }
  33599. </pre></blockquote></p>
  33600. @see GenericOptionsParser
  33601. @see ToolRunner]]>
  33602. </doc>
  33603. </interface>
  33604. <!-- end interface org.apache.hadoop.util.Tool -->
  33605. <!-- start class org.apache.hadoop.util.ToolRunner -->
  33606. <class name="ToolRunner" extends="java.lang.Object"
  33607. abstract="false"
  33608. static="false" final="false" visibility="public"
  33609. deprecated="not deprecated">
  33610. <constructor name="ToolRunner"
  33611. static="false" final="false" visibility="public"
  33612. deprecated="not deprecated">
  33613. </constructor>
  33614. <method name="run" return="int"
  33615. abstract="false" native="false" synchronized="false"
  33616. static="true" final="false" visibility="public"
  33617. deprecated="not deprecated">
  33618. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33619. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  33620. <param name="args" type="java.lang.String[]"/>
  33621. <exception name="Exception" type="java.lang.Exception"/>
  33622. <doc>
  33623. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  33624. parsing with the given generic arguments. Uses the given
  33625. <code>Configuration</code>, or builds one if null.
  33626. Sets the <code>Tool</code>'s configuration with the possibly modified
  33627. version of the <code>conf</code>.
  33628. @param conf <code>Configuration</code> for the <code>Tool</code>.
  33629. @param tool <code>Tool</code> to run.
  33630. @param args command-line arguments to the tool.
  33631. @return exit code of the {@link Tool#run(String[])} method.]]>
  33632. </doc>
  33633. </method>
  33634. <method name="run" return="int"
  33635. abstract="false" native="false" synchronized="false"
  33636. static="true" final="false" visibility="public"
  33637. deprecated="not deprecated">
  33638. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  33639. <param name="args" type="java.lang.String[]"/>
  33640. <exception name="Exception" type="java.lang.Exception"/>
  33641. <doc>
  33642. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  33643. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  33644. @param tool <code>Tool</code> to run.
  33645. @param args command-line arguments to the tool.
  33646. @return exit code of the {@link Tool#run(String[])} method.]]>
  33647. </doc>
  33648. </method>
  33649. <method name="printGenericCommandUsage"
  33650. abstract="false" native="false" synchronized="false"
  33651. static="true" final="false" visibility="public"
  33652. deprecated="not deprecated">
  33653. <param name="out" type="java.io.PrintStream"/>
  33654. <doc>
  33655. <![CDATA[Prints generic command-line argurments and usage information.
  33656. @param out stream to write usage information to.]]>
  33657. </doc>
  33658. </method>
  33659. <method name="confirmPrompt" return="boolean"
  33660. abstract="false" native="false" synchronized="false"
  33661. static="true" final="false" visibility="public"
  33662. deprecated="not deprecated">
  33663. <param name="prompt" type="java.lang.String"/>
  33664. <exception name="IOException" type="java.io.IOException"/>
  33665. <doc>
  33666. <![CDATA[Print out a prompt to the user, and return true if the user
  33667. responds with "y" or "yes". (case insensitive)]]>
  33668. </doc>
  33669. </method>
  33670. <doc>
  33671. <![CDATA[A utility to help run {@link Tool}s.
  33672. <p><code>ToolRunner</code> can be used to run classes implementing
  33673. <code>Tool</code> interface. It works in conjunction with
  33674. {@link GenericOptionsParser} to parse the
  33675. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  33676. generic hadoop command line arguments</a> and modifies the
  33677. <code>Configuration</code> of the <code>Tool</code>. The
  33678. application-specific options are passed along without being modified.
  33679. </p>
  33680. @see Tool
  33681. @see GenericOptionsParser]]>
  33682. </doc>
  33683. </class>
  33684. <!-- end class org.apache.hadoop.util.ToolRunner -->
  33685. <!-- start class org.apache.hadoop.util.VersionInfo -->
  33686. <class name="VersionInfo" extends="java.lang.Object"
  33687. abstract="false"
  33688. static="false" final="false" visibility="public"
  33689. deprecated="not deprecated">
  33690. <constructor name="VersionInfo" type="java.lang.String"
  33691. static="false" final="false" visibility="protected"
  33692. deprecated="not deprecated">
  33693. </constructor>
  33694. <method name="_getVersion" return="java.lang.String"
  33695. abstract="false" native="false" synchronized="false"
  33696. static="false" final="false" visibility="protected"
  33697. deprecated="not deprecated">
  33698. </method>
  33699. <method name="_getRevision" return="java.lang.String"
  33700. abstract="false" native="false" synchronized="false"
  33701. static="false" final="false" visibility="protected"
  33702. deprecated="not deprecated">
  33703. </method>
  33704. <method name="_getBranch" return="java.lang.String"
  33705. abstract="false" native="false" synchronized="false"
  33706. static="false" final="false" visibility="protected"
  33707. deprecated="not deprecated">
  33708. </method>
  33709. <method name="_getDate" return="java.lang.String"
  33710. abstract="false" native="false" synchronized="false"
  33711. static="false" final="false" visibility="protected"
  33712. deprecated="not deprecated">
  33713. </method>
  33714. <method name="_getUser" return="java.lang.String"
  33715. abstract="false" native="false" synchronized="false"
  33716. static="false" final="false" visibility="protected"
  33717. deprecated="not deprecated">
  33718. </method>
  33719. <method name="_getUrl" return="java.lang.String"
  33720. abstract="false" native="false" synchronized="false"
  33721. static="false" final="false" visibility="protected"
  33722. deprecated="not deprecated">
  33723. </method>
  33724. <method name="_getSrcChecksum" return="java.lang.String"
  33725. abstract="false" native="false" synchronized="false"
  33726. static="false" final="false" visibility="protected"
  33727. deprecated="not deprecated">
  33728. </method>
  33729. <method name="_getBuildVersion" return="java.lang.String"
  33730. abstract="false" native="false" synchronized="false"
  33731. static="false" final="false" visibility="protected"
  33732. deprecated="not deprecated">
  33733. </method>
  33734. <method name="_getProtocVersion" return="java.lang.String"
  33735. abstract="false" native="false" synchronized="false"
  33736. static="false" final="false" visibility="protected"
  33737. deprecated="not deprecated">
  33738. </method>
  33739. <method name="getVersion" return="java.lang.String"
  33740. abstract="false" native="false" synchronized="false"
  33741. static="true" final="false" visibility="public"
  33742. deprecated="not deprecated">
  33743. <doc>
  33744. <![CDATA[Get the Hadoop version.
  33745. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  33746. </doc>
  33747. </method>
  33748. <method name="getRevision" return="java.lang.String"
  33749. abstract="false" native="false" synchronized="false"
  33750. static="true" final="false" visibility="public"
  33751. deprecated="not deprecated">
  33752. <doc>
  33753. <![CDATA[Get the Git commit hash of the repository when compiled.
  33754. @return the commit hash, eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a"]]>
  33755. </doc>
  33756. </method>
  33757. <method name="getBranch" return="java.lang.String"
  33758. abstract="false" native="false" synchronized="false"
  33759. static="true" final="false" visibility="public"
  33760. deprecated="not deprecated">
  33761. <doc>
  33762. <![CDATA[Get the branch on which this originated.
  33763. @return The branch name, e.g. "trunk" or "branches/branch-0.20"]]>
  33764. </doc>
  33765. </method>
  33766. <method name="getDate" return="java.lang.String"
  33767. abstract="false" native="false" synchronized="false"
  33768. static="true" final="false" visibility="public"
  33769. deprecated="not deprecated">
  33770. <doc>
  33771. <![CDATA[The date that Hadoop was compiled.
  33772. @return the compilation date in unix date format]]>
  33773. </doc>
  33774. </method>
  33775. <method name="getUser" return="java.lang.String"
  33776. abstract="false" native="false" synchronized="false"
  33777. static="true" final="false" visibility="public"
  33778. deprecated="not deprecated">
  33779. <doc>
  33780. <![CDATA[The user that compiled Hadoop.
  33781. @return the username of the user]]>
  33782. </doc>
  33783. </method>
  33784. <method name="getUrl" 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 URL for the Hadoop repository.
  33790. @return the URL of the Hadoop repository]]>
  33791. </doc>
  33792. </method>
  33793. <method name="getSrcChecksum" 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 checksum of the source files from which Hadoop was built.
  33799. @return the checksum of the source files]]>
  33800. </doc>
  33801. </method>
  33802. <method name="getBuildVersion" 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[Returns the buildVersion which includes version,
  33808. revision, user and date.
  33809. @return the buildVersion]]>
  33810. </doc>
  33811. </method>
  33812. <method name="getProtocVersion" return="java.lang.String"
  33813. abstract="false" native="false" synchronized="false"
  33814. static="true" final="false" visibility="public"
  33815. deprecated="not deprecated">
  33816. <doc>
  33817. <![CDATA[Returns the protoc version used for the build.
  33818. @return the protoc version]]>
  33819. </doc>
  33820. </method>
  33821. <method name="main"
  33822. abstract="false" native="false" synchronized="false"
  33823. static="true" final="false" visibility="public"
  33824. deprecated="not deprecated">
  33825. <param name="args" type="java.lang.String[]"/>
  33826. </method>
  33827. <doc>
  33828. <![CDATA[This class returns build information about Hadoop components.]]>
  33829. </doc>
  33830. </class>
  33831. <!-- end class org.apache.hadoop.util.VersionInfo -->
  33832. <doc>
  33833. <![CDATA[Common utilities.]]>
  33834. </doc>
  33835. </package>
  33836. <package name="org.apache.hadoop.util.bloom">
  33837. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  33838. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  33839. abstract="false"
  33840. static="false" final="false" visibility="public"
  33841. deprecated="not deprecated">
  33842. <constructor name="BloomFilter"
  33843. static="false" final="false" visibility="public"
  33844. deprecated="not deprecated">
  33845. <doc>
  33846. <![CDATA[Default constructor - use with readFields]]>
  33847. </doc>
  33848. </constructor>
  33849. <constructor name="BloomFilter" type="int, int, int"
  33850. static="false" final="false" visibility="public"
  33851. deprecated="not deprecated">
  33852. <doc>
  33853. <![CDATA[Constructor
  33854. @param vectorSize The vector size of <i>this</i> filter.
  33855. @param nbHash The number of hash function to consider.
  33856. @param hashType type of the hashing function (see
  33857. {@link org.apache.hadoop.util.hash.Hash}).]]>
  33858. </doc>
  33859. </constructor>
  33860. <method name="add"
  33861. abstract="false" native="false" synchronized="false"
  33862. static="false" final="false" visibility="public"
  33863. deprecated="not deprecated">
  33864. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  33865. </method>
  33866. <method name="and"
  33867. abstract="false" native="false" synchronized="false"
  33868. static="false" final="false" visibility="public"
  33869. deprecated="not deprecated">
  33870. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  33871. </method>
  33872. <method name="membershipTest" return="boolean"
  33873. abstract="false" native="false" synchronized="false"
  33874. static="false" final="false" visibility="public"
  33875. deprecated="not deprecated">
  33876. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  33877. </method>
  33878. <method name="not"
  33879. abstract="false" native="false" synchronized="false"
  33880. static="false" final="false" visibility="public"
  33881. deprecated="not deprecated">
  33882. </method>
  33883. <method name="or"
  33884. abstract="false" native="false" synchronized="false"
  33885. static="false" final="false" visibility="public"
  33886. deprecated="not deprecated">
  33887. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  33888. </method>
  33889. <method name="xor"
  33890. abstract="false" native="false" synchronized="false"
  33891. static="false" final="false" visibility="public"
  33892. deprecated="not deprecated">
  33893. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  33894. </method>
  33895. <method name="toString" return="java.lang.String"
  33896. abstract="false" native="false" synchronized="false"
  33897. static="false" final="false" visibility="public"
  33898. deprecated="not deprecated">
  33899. </method>
  33900. <method name="getVectorSize" return="int"
  33901. abstract="false" native="false" synchronized="false"
  33902. static="false" final="false" visibility="public"
  33903. deprecated="not deprecated">
  33904. <doc>
  33905. <![CDATA[@return size of the the bloomfilter]]>
  33906. </doc>
  33907. </method>
  33908. <method name="write"
  33909. abstract="false" native="false" synchronized="false"
  33910. static="false" final="false" visibility="public"
  33911. deprecated="not deprecated">
  33912. <param name="out" type="java.io.DataOutput"/>
  33913. <exception name="IOException" type="java.io.IOException"/>
  33914. </method>
  33915. <method name="readFields"
  33916. abstract="false" native="false" synchronized="false"
  33917. static="false" final="false" visibility="public"
  33918. deprecated="not deprecated">
  33919. <param name="in" type="java.io.DataInput"/>
  33920. <exception name="IOException" type="java.io.IOException"/>
  33921. </method>
  33922. <doc>
  33923. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  33924. <p>
  33925. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  33926. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  33927. offers for the transmission of set membership information between networked hosts. A sender encodes
  33928. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  33929. representation. Computation and space costs for construction are linear in the number of elements.
  33930. The receiver uses the filter to test whether various elements are members of the set. Though the
  33931. filter will occasionally return a false positive, it will never return a false negative. When creating
  33932. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  33933. <p>
  33934. Originally created by
  33935. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  33936. @see Filter The general behavior of a filter
  33937. @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>]]>
  33938. </doc>
  33939. </class>
  33940. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  33941. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  33942. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  33943. abstract="false"
  33944. static="false" final="true" visibility="public"
  33945. deprecated="not deprecated">
  33946. <constructor name="CountingBloomFilter"
  33947. static="false" final="false" visibility="public"
  33948. deprecated="not deprecated">
  33949. <doc>
  33950. <![CDATA[Default constructor - use with readFields]]>
  33951. </doc>
  33952. </constructor>
  33953. <constructor name="CountingBloomFilter" type="int, int, int"
  33954. static="false" final="false" visibility="public"
  33955. deprecated="not deprecated">
  33956. <doc>
  33957. <![CDATA[Constructor
  33958. @param vectorSize The vector size of <i>this</i> filter.
  33959. @param nbHash The number of hash function to consider.
  33960. @param hashType type of the hashing function (see
  33961. {@link org.apache.hadoop.util.hash.Hash}).]]>
  33962. </doc>
  33963. </constructor>
  33964. <method name="add"
  33965. abstract="false" native="false" synchronized="false"
  33966. static="false" final="false" visibility="public"
  33967. deprecated="not deprecated">
  33968. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  33969. </method>
  33970. <method name="delete"
  33971. abstract="false" native="false" synchronized="false"
  33972. static="false" final="false" visibility="public"
  33973. deprecated="not deprecated">
  33974. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  33975. <doc>
  33976. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  33977. <p>
  33978. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  33979. @param key The key to remove.]]>
  33980. </doc>
  33981. </method>
  33982. <method name="and"
  33983. abstract="false" native="false" synchronized="false"
  33984. static="false" final="false" visibility="public"
  33985. deprecated="not deprecated">
  33986. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  33987. </method>
  33988. <method name="membershipTest" return="boolean"
  33989. abstract="false" native="false" synchronized="false"
  33990. static="false" final="false" visibility="public"
  33991. deprecated="not deprecated">
  33992. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  33993. </method>
  33994. <method name="approximateCount" return="int"
  33995. abstract="false" native="false" synchronized="false"
  33996. static="false" final="false" visibility="public"
  33997. deprecated="not deprecated">
  33998. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  33999. <doc>
  34000. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  34001. times the key was added to the filter. This allows the filter to be
  34002. used as an approximate <code>key -&gt; count</code> map.
  34003. <p>NOTE: due to the bucket size of this filter, inserting the same
  34004. key more than 15 times will cause an overflow at all filter positions
  34005. associated with this key, and it will significantly increase the error
  34006. rate for this and other keys. For this reason the filter can only be
  34007. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  34008. @param key key to be tested
  34009. @return 0 if the key is not present. Otherwise, a positive value v will
  34010. be returned such that <code>v == count</code> with probability equal to the
  34011. error rate of this filter, and <code>v &gt; count</code> otherwise.
  34012. Additionally, if the filter experienced an underflow as a result of
  34013. {@link #delete(Key)} operation, the return value may be lower than the
  34014. <code>count</code> with the probability of the false negative rate of such
  34015. filter.]]>
  34016. </doc>
  34017. </method>
  34018. <method name="not"
  34019. abstract="false" native="false" synchronized="false"
  34020. static="false" final="false" visibility="public"
  34021. deprecated="not deprecated">
  34022. </method>
  34023. <method name="or"
  34024. abstract="false" native="false" synchronized="false"
  34025. static="false" final="false" visibility="public"
  34026. deprecated="not deprecated">
  34027. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34028. </method>
  34029. <method name="xor"
  34030. abstract="false" native="false" synchronized="false"
  34031. static="false" final="false" visibility="public"
  34032. deprecated="not deprecated">
  34033. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34034. </method>
  34035. <method name="toString" return="java.lang.String"
  34036. abstract="false" native="false" synchronized="false"
  34037. static="false" final="false" visibility="public"
  34038. deprecated="not deprecated">
  34039. </method>
  34040. <method name="write"
  34041. abstract="false" native="false" synchronized="false"
  34042. static="false" final="false" visibility="public"
  34043. deprecated="not deprecated">
  34044. <param name="out" type="java.io.DataOutput"/>
  34045. <exception name="IOException" type="java.io.IOException"/>
  34046. </method>
  34047. <method name="readFields"
  34048. abstract="false" native="false" synchronized="false"
  34049. static="false" final="false" visibility="public"
  34050. deprecated="not deprecated">
  34051. <param name="in" type="java.io.DataInput"/>
  34052. <exception name="IOException" type="java.io.IOException"/>
  34053. </method>
  34054. <doc>
  34055. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  34056. 2000 paper.
  34057. <p>
  34058. A counting Bloom filter is an improvement to standard a Bloom filter as it
  34059. allows dynamic additions and deletions of set membership information. This
  34060. is achieved through the use of a counting vector instead of a bit vector.
  34061. <p>
  34062. Originally created by
  34063. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  34064. @see Filter The general behavior of a filter
  34065. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  34066. </doc>
  34067. </class>
  34068. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  34069. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  34070. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  34071. abstract="false"
  34072. static="false" final="false" visibility="public"
  34073. deprecated="not deprecated">
  34074. <constructor name="DynamicBloomFilter"
  34075. static="false" final="false" visibility="public"
  34076. deprecated="not deprecated">
  34077. <doc>
  34078. <![CDATA[Zero-args constructor for the serialization.]]>
  34079. </doc>
  34080. </constructor>
  34081. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  34082. static="false" final="false" visibility="public"
  34083. deprecated="not deprecated">
  34084. <doc>
  34085. <![CDATA[Constructor.
  34086. <p>
  34087. Builds an empty Dynamic Bloom filter.
  34088. @param vectorSize The number of bits in the vector.
  34089. @param nbHash The number of hash function to consider.
  34090. @param hashType type of the hashing function (see
  34091. {@link org.apache.hadoop.util.hash.Hash}).
  34092. @param nr The threshold for the maximum number of keys to record in a
  34093. dynamic Bloom filter row.]]>
  34094. </doc>
  34095. </constructor>
  34096. <method name="add"
  34097. abstract="false" native="false" synchronized="false"
  34098. static="false" final="false" visibility="public"
  34099. deprecated="not deprecated">
  34100. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34101. </method>
  34102. <method name="and"
  34103. abstract="false" native="false" synchronized="false"
  34104. static="false" final="false" visibility="public"
  34105. deprecated="not deprecated">
  34106. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34107. </method>
  34108. <method name="membershipTest" return="boolean"
  34109. abstract="false" native="false" synchronized="false"
  34110. static="false" final="false" visibility="public"
  34111. deprecated="not deprecated">
  34112. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34113. </method>
  34114. <method name="not"
  34115. abstract="false" native="false" synchronized="false"
  34116. static="false" final="false" visibility="public"
  34117. deprecated="not deprecated">
  34118. </method>
  34119. <method name="or"
  34120. abstract="false" native="false" synchronized="false"
  34121. static="false" final="false" visibility="public"
  34122. deprecated="not deprecated">
  34123. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34124. </method>
  34125. <method name="xor"
  34126. abstract="false" native="false" synchronized="false"
  34127. static="false" final="false" visibility="public"
  34128. deprecated="not deprecated">
  34129. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  34130. </method>
  34131. <method name="toString" return="java.lang.String"
  34132. abstract="false" native="false" synchronized="false"
  34133. static="false" final="false" visibility="public"
  34134. deprecated="not deprecated">
  34135. </method>
  34136. <method name="write"
  34137. abstract="false" native="false" synchronized="false"
  34138. static="false" final="false" visibility="public"
  34139. deprecated="not deprecated">
  34140. <param name="out" type="java.io.DataOutput"/>
  34141. <exception name="IOException" type="java.io.IOException"/>
  34142. </method>
  34143. <method name="readFields"
  34144. abstract="false" native="false" synchronized="false"
  34145. static="false" final="false" visibility="public"
  34146. deprecated="not deprecated">
  34147. <param name="in" type="java.io.DataInput"/>
  34148. <exception name="IOException" type="java.io.IOException"/>
  34149. </method>
  34150. <doc>
  34151. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  34152. <p>
  34153. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  34154. each of the <code>s</code> rows is a standard Bloom filter. The creation
  34155. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  34156. bit matrix, i.e., it is composed of a single standard Bloom filter.
  34157. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  34158. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  34159. the cardinality of the set <code>A</code> to record in the filter).
  34160. <p>
  34161. As the size of <code>A</code> grows during the execution of the application,
  34162. several keys must be inserted in the DBF. When inserting a key into the DBF,
  34163. one must first get an active Bloom filter in the matrix. A Bloom filter is
  34164. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  34165. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  34166. If an active Bloom filter is found, the key is inserted and
  34167. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  34168. is no active Bloom filter, a new one is created (i.e., a new row is added to
  34169. the matrix) according to the current size of <code>A</code> and the element
  34170. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  34171. this new Bloom filter is set to one. A given key is said to belong to the
  34172. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  34173. <p>
  34174. Originally created by
  34175. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  34176. @see Filter The general behavior of a filter
  34177. @see BloomFilter A Bloom filter
  34178. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  34179. </doc>
  34180. </class>
  34181. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  34182. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  34183. <class name="HashFunction" extends="java.lang.Object"
  34184. abstract="false"
  34185. static="false" final="true" visibility="public"
  34186. deprecated="not deprecated">
  34187. <constructor name="HashFunction" type="int, int, int"
  34188. static="false" final="false" visibility="public"
  34189. deprecated="not deprecated">
  34190. <doc>
  34191. <![CDATA[Constructor.
  34192. <p>
  34193. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  34194. @param maxValue The maximum highest returned value.
  34195. @param nbHash The number of resulting hashed values.
  34196. @param hashType type of the hashing function (see {@link Hash}).]]>
  34197. </doc>
  34198. </constructor>
  34199. <method name="clear"
  34200. abstract="false" native="false" synchronized="false"
  34201. static="false" final="false" visibility="public"
  34202. deprecated="not deprecated">
  34203. <doc>
  34204. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  34205. </doc>
  34206. </method>
  34207. <method name="hash" return="int[]"
  34208. abstract="false" native="false" synchronized="false"
  34209. static="false" final="false" visibility="public"
  34210. deprecated="not deprecated">
  34211. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  34212. <doc>
  34213. <![CDATA[Hashes a specified key into several integers.
  34214. @param k The specified key.
  34215. @return The array of hashed values.]]>
  34216. </doc>
  34217. </method>
  34218. <doc>
  34219. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  34220. @see Key The general behavior of a key being stored in a filter
  34221. @see Filter The general behavior of a filter]]>
  34222. </doc>
  34223. </class>
  34224. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  34225. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  34226. <interface name="RemoveScheme" abstract="true"
  34227. static="false" final="false" visibility="public"
  34228. deprecated="not deprecated">
  34229. <field name="RANDOM" type="short"
  34230. transient="false" volatile="false"
  34231. static="true" final="true" visibility="public"
  34232. deprecated="not deprecated">
  34233. <doc>
  34234. <![CDATA[Random selection.
  34235. <p>
  34236. The idea is to randomly select a bit to reset.]]>
  34237. </doc>
  34238. </field>
  34239. <field name="MINIMUM_FN" type="short"
  34240. transient="false" volatile="false"
  34241. static="true" final="true" visibility="public"
  34242. deprecated="not deprecated">
  34243. <doc>
  34244. <![CDATA[MinimumFN Selection.
  34245. <p>
  34246. The idea is to select the bit to reset that will generate the minimum
  34247. number of false negative.]]>
  34248. </doc>
  34249. </field>
  34250. <field name="MAXIMUM_FP" type="short"
  34251. transient="false" volatile="false"
  34252. static="true" final="true" visibility="public"
  34253. deprecated="not deprecated">
  34254. <doc>
  34255. <![CDATA[MaximumFP Selection.
  34256. <p>
  34257. The idea is to select the bit to reset that will remove the maximum number
  34258. of false positive.]]>
  34259. </doc>
  34260. </field>
  34261. <field name="RATIO" type="short"
  34262. transient="false" volatile="false"
  34263. static="true" final="true" visibility="public"
  34264. deprecated="not deprecated">
  34265. <doc>
  34266. <![CDATA[Ratio Selection.
  34267. <p>
  34268. The idea is to select the bit to reset that will, at the same time, remove
  34269. the maximum number of false positve while minimizing the amount of false
  34270. negative generated.]]>
  34271. </doc>
  34272. </field>
  34273. <doc>
  34274. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  34275. <p>
  34276. Originally created by
  34277. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  34278. </doc>
  34279. </interface>
  34280. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  34281. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  34282. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  34283. abstract="false"
  34284. static="false" final="true" visibility="public"
  34285. deprecated="not deprecated">
  34286. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  34287. <constructor name="RetouchedBloomFilter"
  34288. static="false" final="false" visibility="public"
  34289. deprecated="not deprecated">
  34290. <doc>
  34291. <![CDATA[Default constructor - use with readFields]]>
  34292. </doc>
  34293. </constructor>
  34294. <constructor name="RetouchedBloomFilter" type="int, int, int"
  34295. static="false" final="false" visibility="public"
  34296. deprecated="not deprecated">
  34297. <doc>
  34298. <![CDATA[Constructor
  34299. @param vectorSize The vector size of <i>this</i> filter.
  34300. @param nbHash The number of hash function to consider.
  34301. @param hashType type of the hashing function (see
  34302. {@link org.apache.hadoop.util.hash.Hash}).]]>
  34303. </doc>
  34304. </constructor>
  34305. <method name="add"
  34306. abstract="false" native="false" synchronized="false"
  34307. static="false" final="false" visibility="public"
  34308. deprecated="not deprecated">
  34309. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34310. </method>
  34311. <method name="addFalsePositive"
  34312. abstract="false" native="false" synchronized="false"
  34313. static="false" final="false" visibility="public"
  34314. deprecated="not deprecated">
  34315. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  34316. <doc>
  34317. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  34318. <p>
  34319. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  34320. @param key The false positive key to add.]]>
  34321. </doc>
  34322. </method>
  34323. <method name="addFalsePositive"
  34324. abstract="false" native="false" synchronized="false"
  34325. static="false" final="false" visibility="public"
  34326. deprecated="not deprecated">
  34327. <param name="coll" type="java.util.Collection"/>
  34328. <doc>
  34329. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  34330. @param coll The collection of false positive.]]>
  34331. </doc>
  34332. </method>
  34333. <method name="addFalsePositive"
  34334. abstract="false" native="false" synchronized="false"
  34335. static="false" final="false" visibility="public"
  34336. deprecated="not deprecated">
  34337. <param name="keys" type="java.util.List"/>
  34338. <doc>
  34339. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  34340. @param keys The list of false positive.]]>
  34341. </doc>
  34342. </method>
  34343. <method name="addFalsePositive"
  34344. abstract="false" native="false" synchronized="false"
  34345. static="false" final="false" visibility="public"
  34346. deprecated="not deprecated">
  34347. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  34348. <doc>
  34349. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  34350. @param keys The array of false positive.]]>
  34351. </doc>
  34352. </method>
  34353. <method name="selectiveClearing"
  34354. abstract="false" native="false" synchronized="false"
  34355. static="false" final="false" visibility="public"
  34356. deprecated="not deprecated">
  34357. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  34358. <param name="scheme" type="short"/>
  34359. <doc>
  34360. <![CDATA[Performs the selective clearing for a given key.
  34361. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  34362. @param scheme The selective clearing scheme to apply.]]>
  34363. </doc>
  34364. </method>
  34365. <method name="write"
  34366. abstract="false" native="false" synchronized="false"
  34367. static="false" final="false" visibility="public"
  34368. deprecated="not deprecated">
  34369. <param name="out" type="java.io.DataOutput"/>
  34370. <exception name="IOException" type="java.io.IOException"/>
  34371. </method>
  34372. <method name="readFields"
  34373. abstract="false" native="false" synchronized="false"
  34374. static="false" final="false" visibility="public"
  34375. deprecated="not deprecated">
  34376. <param name="in" type="java.io.DataInput"/>
  34377. <exception name="IOException" type="java.io.IOException"/>
  34378. </method>
  34379. <doc>
  34380. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  34381. <p>
  34382. It allows the removal of selected false positives at the cost of introducing
  34383. random false negatives, and with the benefit of eliminating some random false
  34384. positives at the same time.
  34385. <p>
  34386. Originally created by
  34387. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  34388. @see Filter The general behavior of a filter
  34389. @see BloomFilter A Bloom filter
  34390. @see RemoveScheme The different selective clearing algorithms
  34391. @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>]]>
  34392. </doc>
  34393. </class>
  34394. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  34395. </package>
  34396. <package name="org.apache.hadoop.util.curator">
  34397. </package>
  34398. <package name="org.apache.hadoop.util.hash">
  34399. </package>
  34400. </api>